diff --git a/data/template/buf.go.gen.yaml b/data/template/buf.go.gen.yaml index 7bcd3b30bd..ce2ba55f0b 100644 --- a/data/template/buf.go.gen.yaml +++ b/data/template/buf.go.gen.yaml @@ -9,6 +9,7 @@ plugins: out: private/gen/proto/go opt: - paths=source_relative + - default_api_level=API_HYBRID - Mgoogle/protobuf/cpp_features.proto=github.com/bufbuild/buf/private/gen/proto/go/google/protobuf - Mgoogle/protobuf/java_features.proto=github.com/bufbuild/buf/private/gen/proto/go/google/protobuf inputs: diff --git a/private/gen/proto/go/buf/alpha/audit/v1alpha1/event.pb.go b/private/gen/proto/go/buf/alpha/audit/v1alpha1/event.pb.go index 56230c2ce6..5b9d5142da 100644 --- a/private/gen/proto/go/buf/alpha/audit/v1alpha1/event.pb.go +++ b/private/gen/proto/go/buf/alpha/audit/v1alpha1/event.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/audit/v1alpha1/event.proto +//go:build !protoopaque + package auditv1alpha1 import ( @@ -26,7 +28,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -81,11 +82,6 @@ func (x ActorType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use ActorType.Descriptor instead. -func (ActorType) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{0} -} - // ResourceType is the type of the resource that was affected by the audited // event. type ResourceType int32 @@ -174,11 +170,6 @@ func (x ResourceType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use ResourceType.Descriptor instead. -func (ResourceType) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{1} -} - // EventType is the type of audited event. type EventType int32 @@ -367,14 +358,9 @@ func (x EventType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use EventType.Descriptor instead. -func (EventType) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{2} -} - // Actor is the actor who caused the audited event. type Actor struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Type of actor who caused the audited event. Type ActorType `protobuf:"varint,1,opt,name=type,proto3,enum=buf.alpha.audit.v1alpha1.ActorType" json:"type,omitempty"` // Id of the actor who caused the audited event. @@ -410,11 +396,6 @@ func (x *Actor) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Actor.ProtoReflect.Descriptor instead. -func (*Actor) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{0} -} - func (x *Actor) GetType() ActorType { if x != nil { return x.Type @@ -436,9 +417,42 @@ func (x *Actor) GetName() string { return "" } +func (x *Actor) SetType(v ActorType) { + x.Type = v +} + +func (x *Actor) SetId(v string) { + x.Id = v +} + +func (x *Actor) SetName(v string) { + x.Name = v +} + +type Actor_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Type of actor who caused the audited event. + Type ActorType + // Id of the actor who caused the audited event. + Id string + // Name of the actor who caused the audited event. + Name string +} + +func (b0 Actor_builder) Build() *Actor { + m0 := &Actor{} + b, x := &b0, m0 + _, _ = b, x + x.Type = b.Type + x.Id = b.Id + x.Name = b.Name + return m0 +} + // Resource is the affected resource by the audited event. type Resource struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Type of resource that was affected by the audited event. Type ResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=buf.alpha.audit.v1alpha1.ResourceType" json:"type,omitempty"` // Id of the affected resource by the audited event. @@ -474,11 +488,6 @@ func (x *Resource) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Resource.ProtoReflect.Descriptor instead. -func (*Resource) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{1} -} - func (x *Resource) GetType() ResourceType { if x != nil { return x.Type @@ -500,9 +509,42 @@ func (x *Resource) GetName() string { return "" } +func (x *Resource) SetType(v ResourceType) { + x.Type = v +} + +func (x *Resource) SetId(v string) { + x.Id = v +} + +func (x *Resource) SetName(v string) { + x.Name = v +} + +type Resource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Type of resource that was affected by the audited event. + Type ResourceType + // Id of the affected resource by the audited event. + Id string + // Name of the affected resource by the audited event. + Name string +} + +func (b0 Resource_builder) Build() *Resource { + m0 := &Resource{} + b, x := &b0, m0 + _, _ = b, x + x.Type = b.Type + x.Id = b.Id + x.Name = b.Name + return m0 +} + // EventMetadata provides additional details about the audited event. type EventMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // UserAgent is the User-Agent header associated with the request that triggered the audited event, if any. UserAgent string `protobuf:"bytes,1,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` // IP is the IP address associated with the request that triggered the audited event, if any. @@ -538,11 +580,6 @@ func (x *EventMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EventMetadata.ProtoReflect.Descriptor instead. -func (*EventMetadata) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{2} -} - func (x *EventMetadata) GetUserAgent() string { if x != nil { return x.UserAgent @@ -564,11 +601,44 @@ func (x *EventMetadata) GetTraceId() string { return "" } +func (x *EventMetadata) SetUserAgent(v string) { + x.UserAgent = v +} + +func (x *EventMetadata) SetIp(v string) { + x.Ip = v +} + +func (x *EventMetadata) SetTraceId(v string) { + x.TraceId = v +} + +type EventMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // UserAgent is the User-Agent header associated with the request that triggered the audited event, if any. + UserAgent string + // IP is the IP address associated with the request that triggered the audited event, if any. + Ip string + // TraceID is the ID of the trace associated with the audited event, if any. + TraceId string +} + +func (b0 EventMetadata_builder) Build() *EventMetadata { + m0 := &EventMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.UserAgent = b.UserAgent + x.Ip = b.Ip + x.TraceId = b.TraceId + return m0 +} + // Event is an audited action that happened in the BSR, with the information of // what happened, when it happened, who did it, which resource was affected, and // more contextual information on the event. type Event struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Unique id of the audited event. EventId string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` // Type of the audited event. It specifies "what" happened. @@ -664,11 +734,6 @@ func (x *Event) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Event.ProtoReflect.Descriptor instead. -func (*Event) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{3} -} - func (x *Event) GetEventId() string { if x != nil { return x.EventId @@ -1161,213 +1226,1777 @@ func (x *Event) GetPluginLabelUnarchived() *PayloadPluginLabelUnarchived { return nil } -type isEvent_Payload interface { - isEvent_Payload() +func (x *Event) SetEventId(v string) { + x.EventId = v } -type Event_OrganizationCreated struct { - OrganizationCreated *PayloadOrganizationCreated `protobuf:"bytes,7,opt,name=organization_created,json=organizationCreated,proto3,oneof"` +func (x *Event) SetType(v EventType) { + x.Type = v } -type Event_OrganizationDeleted struct { - OrganizationDeleted *PayloadOrganizationDeleted `protobuf:"bytes,8,opt,name=organization_deleted,json=organizationDeleted,proto3,oneof"` +func (x *Event) SetActor(v *Actor) { + x.Actor = v } -type Event_OrganizationMemberAdded struct { - OrganizationMemberAdded *PayloadOrganizationMemberAdded `protobuf:"bytes,9,opt,name=organization_member_added,json=organizationMemberAdded,proto3,oneof"` +func (x *Event) SetResource(v *Resource) { + x.Resource = v } -type Event_OrganizationMemberRoleChanged struct { - OrganizationMemberRoleChanged *PayloadOrganizationMemberRoleChanged `protobuf:"bytes,10,opt,name=organization_member_role_changed,json=organizationMemberRoleChanged,proto3,oneof"` +func (x *Event) SetEventTime(v *timestamppb.Timestamp) { + x.EventTime = v } -type Event_OrganizationMemberRemoved struct { - OrganizationMemberRemoved *PayloadOrganizationMemberRemoved `protobuf:"bytes,11,opt,name=organization_member_removed,json=organizationMemberRemoved,proto3,oneof"` +func (x *Event) SetMetadata(v *EventMetadata) { + x.Metadata = v } -type Event_RepositoryCreated struct { - RepositoryCreated *PayloadRepositoryCreated `protobuf:"bytes,12,opt,name=repository_created,json=repositoryCreated,proto3,oneof"` +func (x *Event) SetOrganizationCreated(v *PayloadOrganizationCreated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_OrganizationCreated{v} } -type Event_RepositoryDeprecated struct { - RepositoryDeprecated *PayloadRepositoryDeprecated `protobuf:"bytes,54,opt,name=repository_deprecated,json=repositoryDeprecated,proto3,oneof"` +func (x *Event) SetOrganizationDeleted(v *PayloadOrganizationDeleted) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_OrganizationDeleted{v} } -type Event_RepositoryUndeprecated struct { - RepositoryUndeprecated *PayloadRepositoryUndeprecated `protobuf:"bytes,55,opt,name=repository_undeprecated,json=repositoryUndeprecated,proto3,oneof"` +func (x *Event) SetOrganizationMemberAdded(v *PayloadOrganizationMemberAdded) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_OrganizationMemberAdded{v} } -type Event_RepositoryDeleted struct { - RepositoryDeleted *PayloadRepositoryDeleted `protobuf:"bytes,13,opt,name=repository_deleted,json=repositoryDeleted,proto3,oneof"` +func (x *Event) SetOrganizationMemberRoleChanged(v *PayloadOrganizationMemberRoleChanged) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_OrganizationMemberRoleChanged{v} } -type Event_RepositoryCommitPushed struct { - RepositoryCommitPushed *PayloadRepositoryCommitPushed `protobuf:"bytes,14,opt,name=repository_commit_pushed,json=repositoryCommitPushed,proto3,oneof"` +func (x *Event) SetOrganizationMemberRemoved(v *PayloadOrganizationMemberRemoved) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_OrganizationMemberRemoved{v} } -type Event_RepositoryContributorAdded struct { - RepositoryContributorAdded *PayloadRepositoryContributorAdded `protobuf:"bytes,15,opt,name=repository_contributor_added,json=repositoryContributorAdded,proto3,oneof"` +func (x *Event) SetRepositoryCreated(v *PayloadRepositoryCreated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryCreated{v} } -type Event_RepositoryContributorRoleChanged struct { - RepositoryContributorRoleChanged *PayloadRepositoryContributorRoleChanged `protobuf:"bytes,16,opt,name=repository_contributor_role_changed,json=repositoryContributorRoleChanged,proto3,oneof"` +func (x *Event) SetRepositoryDeprecated(v *PayloadRepositoryDeprecated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryDeprecated{v} } -type Event_RepositoryContributorRemoved struct { - RepositoryContributorRemoved *PayloadRepositoryContributorRemoved `protobuf:"bytes,17,opt,name=repository_contributor_removed,json=repositoryContributorRemoved,proto3,oneof"` +func (x *Event) SetRepositoryUndeprecated(v *PayloadRepositoryUndeprecated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryUndeprecated{v} } -type Event_RepositoryVisibilityChanged struct { - RepositoryVisibilityChanged *PayloadRepositoryVisibilityChanged `protobuf:"bytes,18,opt,name=repository_visibility_changed,json=repositoryVisibilityChanged,proto3,oneof"` +func (x *Event) SetRepositoryDeleted(v *PayloadRepositoryDeleted) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryDeleted{v} } -type Event_RepositoryDefaultLabelNameChanged struct { - RepositoryDefaultLabelNameChanged *PayloadRepositoryDefaultLabelNameChanged `protobuf:"bytes,46,opt,name=repository_default_label_name_changed,json=repositoryDefaultLabelNameChanged,proto3,oneof"` +func (x *Event) SetRepositoryCommitPushed(v *PayloadRepositoryCommitPushed) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryCommitPushed{v} } -type Event_PluginCreated struct { - PluginCreated *PayloadPluginCreated `protobuf:"bytes,19,opt,name=plugin_created,json=pluginCreated,proto3,oneof"` +func (x *Event) SetRepositoryContributorAdded(v *PayloadRepositoryContributorAdded) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryContributorAdded{v} } -type Event_PluginDeleted struct { - PluginDeleted *PayloadPluginDeleted `protobuf:"bytes,20,opt,name=plugin_deleted,json=pluginDeleted,proto3,oneof"` +func (x *Event) SetRepositoryContributorRoleChanged(v *PayloadRepositoryContributorRoleChanged) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryContributorRoleChanged{v} } -type Event_PluginCommitPushed struct { - PluginCommitPushed *PayloadPluginCommitPushed `protobuf:"bytes,49,opt,name=plugin_commit_pushed,json=pluginCommitPushed,proto3,oneof"` +func (x *Event) SetRepositoryContributorRemoved(v *PayloadRepositoryContributorRemoved) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryContributorRemoved{v} } -type Event_UserCreated struct { - UserCreated *PayloadUserCreated `protobuf:"bytes,21,opt,name=user_created,json=userCreated,proto3,oneof"` +func (x *Event) SetRepositoryVisibilityChanged(v *PayloadRepositoryVisibilityChanged) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryVisibilityChanged{v} } -type Event_UserDeactivated struct { - UserDeactivated *PayloadUserDeactivated `protobuf:"bytes,22,opt,name=user_deactivated,json=userDeactivated,proto3,oneof"` +func (x *Event) SetRepositoryDefaultLabelNameChanged(v *PayloadRepositoryDefaultLabelNameChanged) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryDefaultLabelNameChanged{v} } -type Event_UserDeleted struct { - UserDeleted *PayloadUserDeleted `protobuf:"bytes,23,opt,name=user_deleted,json=userDeleted,proto3,oneof"` +func (x *Event) SetPluginCreated(v *PayloadPluginCreated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_PluginCreated{v} } -type Event_UserLoggedIn struct { - UserLoggedIn *PayloadUserLoggedIn `protobuf:"bytes,24,opt,name=user_logged_in,json=userLoggedIn,proto3,oneof"` +func (x *Event) SetPluginDeleted(v *PayloadPluginDeleted) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_PluginDeleted{v} } -type Event_UserLoggedOut struct { - UserLoggedOut *PayloadUserLoggedOut `protobuf:"bytes,25,opt,name=user_logged_out,json=userLoggedOut,proto3,oneof"` +func (x *Event) SetPluginCommitPushed(v *PayloadPluginCommitPushed) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_PluginCommitPushed{v} } -type Event_CuratedPluginCreated struct { - CuratedPluginCreated *PayloadCuratedPluginCreated `protobuf:"bytes,26,opt,name=curated_plugin_created,json=curatedPluginCreated,proto3,oneof"` +func (x *Event) SetUserCreated(v *PayloadUserCreated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_UserCreated{v} } -type Event_IdpGroupAdded struct { - IdpGroupAdded *PayloadOrganizationIDPGroupAdded `protobuf:"bytes,27,opt,name=idp_group_added,json=idpGroupAdded,proto3,oneof"` +func (x *Event) SetUserDeactivated(v *PayloadUserDeactivated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_UserDeactivated{v} } -type Event_IdpGroupRemoved struct { - IdpGroupRemoved *PayloadOrganizationIDPGroupRemoved `protobuf:"bytes,28,opt,name=idp_group_removed,json=idpGroupRemoved,proto3,oneof"` +func (x *Event) SetUserDeleted(v *PayloadUserDeleted) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_UserDeleted{v} } -type Event_TokenCreated struct { - TokenCreated *PayloadTokenCreated `protobuf:"bytes,29,opt,name=token_created,json=tokenCreated,proto3,oneof"` +func (x *Event) SetUserLoggedIn(v *PayloadUserLoggedIn) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_UserLoggedIn{v} } -type Event_TokenDeleted struct { - TokenDeleted *PayloadTokenDeleted `protobuf:"bytes,30,opt,name=token_deleted,json=tokenDeleted,proto3,oneof"` +func (x *Event) SetUserLoggedOut(v *PayloadUserLoggedOut) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_UserLoggedOut{v} } -type Event_UserReactivated struct { - UserReactivated *PayloadUserReactivated `protobuf:"bytes,31,opt,name=user_reactivated,json=userReactivated,proto3,oneof"` +func (x *Event) SetCuratedPluginCreated(v *PayloadCuratedPluginCreated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_CuratedPluginCreated{v} } -type Event_ScimTokenCreated struct { - ScimTokenCreated *PayloadSCIMTokenCreated `protobuf:"bytes,32,opt,name=scim_token_created,json=scimTokenCreated,proto3,oneof"` +func (x *Event) SetIdpGroupAdded(v *PayloadOrganizationIDPGroupAdded) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_IdpGroupAdded{v} } -type Event_ScimTokenDeleted struct { - ScimTokenDeleted *PayloadSCIMTokenDeleted `protobuf:"bytes,33,opt,name=scim_token_deleted,json=scimTokenDeleted,proto3,oneof"` +func (x *Event) SetIdpGroupRemoved(v *PayloadOrganizationIDPGroupRemoved) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_IdpGroupRemoved{v} } -type Event_RepositoryCommitDeleted struct { - // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. - RepositoryCommitDeleted *PayloadRepositoryCommitDeleted `protobuf:"bytes,34,opt,name=repository_commit_deleted,json=repositoryCommitDeleted,proto3,oneof"` +func (x *Event) SetTokenCreated(v *PayloadTokenCreated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_TokenCreated{v} } -type Event_RepositoryLabelCreated struct { - RepositoryLabelCreated *PayloadRepositoryLabelCreated `protobuf:"bytes,35,opt,name=repository_label_created,json=repositoryLabelCreated,proto3,oneof"` +func (x *Event) SetTokenDeleted(v *PayloadTokenDeleted) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_TokenDeleted{v} } -type Event_RepositoryLabelMoved struct { - RepositoryLabelMoved *PayloadRepositoryLabelMoved `protobuf:"bytes,36,opt,name=repository_label_moved,json=repositoryLabelMoved,proto3,oneof"` +func (x *Event) SetUserReactivated(v *PayloadUserReactivated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_UserReactivated{v} } -type Event_RepositoryLabelArchived struct { - RepositoryLabelArchived *PayloadRepositoryLabelArchived `protobuf:"bytes,44,opt,name=repository_label_archived,json=repositoryLabelArchived,proto3,oneof"` +func (x *Event) SetScimTokenCreated(v *PayloadSCIMTokenCreated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_ScimTokenCreated{v} } -type Event_RepositoryLabelUnarchived struct { - RepositoryLabelUnarchived *PayloadRepositoryLabelUnarchived `protobuf:"bytes,45,opt,name=repository_label_unarchived,json=repositoryLabelUnarchived,proto3,oneof"` +func (x *Event) SetScimTokenDeleted(v *PayloadSCIMTokenDeleted) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_ScimTokenDeleted{v} } -type Event_CuratedPluginDeleted struct { - CuratedPluginDeleted *PayloadCuratedPluginDeleted `protobuf:"bytes,37,opt,name=curated_plugin_deleted,json=curatedPluginDeleted,proto3,oneof"` +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) SetRepositoryCommitDeleted(v *PayloadRepositoryCommitDeleted) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryCommitDeleted{v} } -type Event_PayloadServerBreakingChangePolicyEnabled struct { - PayloadServerBreakingChangePolicyEnabled *PayloadServerBreakingChangePolicyEnabled `protobuf:"bytes,38,opt,name=payload_server_breaking_change_policy_enabled,json=payloadServerBreakingChangePolicyEnabled,proto3,oneof"` +func (x *Event) SetRepositoryLabelCreated(v *PayloadRepositoryLabelCreated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryLabelCreated{v} } -type Event_PayloadServerBreakingChangePolicyDisabled struct { - PayloadServerBreakingChangePolicyDisabled *PayloadServerBreakingChangePolicyDisabled `protobuf:"bytes,39,opt,name=payload_server_breaking_change_policy_disabled,json=payloadServerBreakingChangePolicyDisabled,proto3,oneof"` +func (x *Event) SetRepositoryLabelMoved(v *PayloadRepositoryLabelMoved) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryLabelMoved{v} } -type Event_RepositoryDefaultBranchChanged struct { - // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. - RepositoryDefaultBranchChanged *PayloadRepositoryDefaultBranchChanged `protobuf:"bytes,40,opt,name=repository_default_branch_changed,json=repositoryDefaultBranchChanged,proto3,oneof"` +func (x *Event) SetRepositoryLabelArchived(v *PayloadRepositoryLabelArchived) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryLabelArchived{v} } -type Event_PayloadServerUniquenessPolicyEnabled struct { - PayloadServerUniquenessPolicyEnabled *PayloadServerUniquenessPolicyEnabled `protobuf:"bytes,41,opt,name=payload_server_uniqueness_policy_enabled,json=payloadServerUniquenessPolicyEnabled,proto3,oneof"` +func (x *Event) SetRepositoryLabelUnarchived(v *PayloadRepositoryLabelUnarchived) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryLabelUnarchived{v} } -type Event_PayloadServerUniquenessPolicyDisabled struct { - PayloadServerUniquenessPolicyDisabled *PayloadServerUniquenessPolicyDisabled `protobuf:"bytes,42,opt,name=payload_server_uniqueness_policy_disabled,json=payloadServerUniquenessPolicyDisabled,proto3,oneof"` +func (x *Event) SetCuratedPluginDeleted(v *PayloadCuratedPluginDeleted) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_CuratedPluginDeleted{v} } -type Event_UserAutoMergedFromNewIdp struct { - UserAutoMergedFromNewIdp *PayloadUserAutoMergedFromNewIdP `protobuf:"bytes,43,opt,name=user_auto_merged_from_new_idp,json=userAutoMergedFromNewIdp,proto3,oneof"` +func (x *Event) SetPayloadServerBreakingChangePolicyEnabled(v *PayloadServerBreakingChangePolicyEnabled) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_PayloadServerBreakingChangePolicyEnabled{v} } -type Event_DeviceAuthorizationGrantApproved struct { - DeviceAuthorizationGrantApproved *PayloadDeviceAuthorizationGrantApproved `protobuf:"bytes,47,opt,name=device_authorization_grant_approved,json=deviceAuthorizationGrantApproved,proto3,oneof"` +func (x *Event) SetPayloadServerBreakingChangePolicyDisabled(v *PayloadServerBreakingChangePolicyDisabled) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_PayloadServerBreakingChangePolicyDisabled{v} } -type Event_DeviceAuthorizationGrantDenied struct { - DeviceAuthorizationGrantDenied *PayloadDeviceAuthorizationGrantDenied `protobuf:"bytes,48,opt,name=device_authorization_grant_denied,json=deviceAuthorizationGrantDenied,proto3,oneof"` +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) SetRepositoryDefaultBranchChanged(v *PayloadRepositoryDefaultBranchChanged) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_RepositoryDefaultBranchChanged{v} } -type Event_PluginLabelCreated struct { - PluginLabelCreated *PayloadPluginLabelCreated `protobuf:"bytes,50,opt,name=plugin_label_created,json=pluginLabelCreated,proto3,oneof"` +func (x *Event) SetPayloadServerUniquenessPolicyEnabled(v *PayloadServerUniquenessPolicyEnabled) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_PayloadServerUniquenessPolicyEnabled{v} } -type Event_PluginLabelMoved struct { - PluginLabelMoved *PayloadPluginLabelMoved `protobuf:"bytes,51,opt,name=plugin_label_moved,json=pluginLabelMoved,proto3,oneof"` +func (x *Event) SetPayloadServerUniquenessPolicyDisabled(v *PayloadServerUniquenessPolicyDisabled) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_PayloadServerUniquenessPolicyDisabled{v} } -type Event_PluginLabelArchived struct { - PluginLabelArchived *PayloadPluginLabelArchived `protobuf:"bytes,52,opt,name=plugin_label_archived,json=pluginLabelArchived,proto3,oneof"` +func (x *Event) SetUserAutoMergedFromNewIdp(v *PayloadUserAutoMergedFromNewIdP) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_UserAutoMergedFromNewIdp{v} } -type Event_PluginLabelUnarchived struct { - PluginLabelUnarchived *PayloadPluginLabelUnarchived `protobuf:"bytes,53,opt,name=plugin_label_unarchived,json=pluginLabelUnarchived,proto3,oneof"` +func (x *Event) SetDeviceAuthorizationGrantApproved(v *PayloadDeviceAuthorizationGrantApproved) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_DeviceAuthorizationGrantApproved{v} } -func (*Event_OrganizationCreated) isEvent_Payload() {} - -func (*Event_OrganizationDeleted) isEvent_Payload() {} +func (x *Event) SetDeviceAuthorizationGrantDenied(v *PayloadDeviceAuthorizationGrantDenied) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_DeviceAuthorizationGrantDenied{v} +} -func (*Event_OrganizationMemberAdded) isEvent_Payload() {} +func (x *Event) SetPluginLabelCreated(v *PayloadPluginLabelCreated) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_PluginLabelCreated{v} +} + +func (x *Event) SetPluginLabelMoved(v *PayloadPluginLabelMoved) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_PluginLabelMoved{v} +} + +func (x *Event) SetPluginLabelArchived(v *PayloadPluginLabelArchived) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_PluginLabelArchived{v} +} + +func (x *Event) SetPluginLabelUnarchived(v *PayloadPluginLabelUnarchived) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &Event_PluginLabelUnarchived{v} +} + +func (x *Event) HasActor() bool { + if x == nil { + return false + } + return x.Actor != nil +} + +func (x *Event) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *Event) HasEventTime() bool { + if x == nil { + return false + } + return x.EventTime != nil +} + +func (x *Event) HasMetadata() bool { + if x == nil { + return false + } + return x.Metadata != nil +} + +func (x *Event) HasPayload() bool { + if x == nil { + return false + } + return x.Payload != nil +} + +func (x *Event) HasOrganizationCreated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_OrganizationCreated) + return ok +} + +func (x *Event) HasOrganizationDeleted() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_OrganizationDeleted) + return ok +} + +func (x *Event) HasOrganizationMemberAdded() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_OrganizationMemberAdded) + return ok +} + +func (x *Event) HasOrganizationMemberRoleChanged() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_OrganizationMemberRoleChanged) + return ok +} + +func (x *Event) HasOrganizationMemberRemoved() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_OrganizationMemberRemoved) + return ok +} + +func (x *Event) HasRepositoryCreated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryCreated) + return ok +} + +func (x *Event) HasRepositoryDeprecated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryDeprecated) + return ok +} + +func (x *Event) HasRepositoryUndeprecated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryUndeprecated) + return ok +} + +func (x *Event) HasRepositoryDeleted() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryDeleted) + return ok +} + +func (x *Event) HasRepositoryCommitPushed() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryCommitPushed) + return ok +} + +func (x *Event) HasRepositoryContributorAdded() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryContributorAdded) + return ok +} + +func (x *Event) HasRepositoryContributorRoleChanged() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryContributorRoleChanged) + return ok +} + +func (x *Event) HasRepositoryContributorRemoved() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryContributorRemoved) + return ok +} + +func (x *Event) HasRepositoryVisibilityChanged() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryVisibilityChanged) + return ok +} + +func (x *Event) HasRepositoryDefaultLabelNameChanged() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryDefaultLabelNameChanged) + return ok +} + +func (x *Event) HasPluginCreated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_PluginCreated) + return ok +} + +func (x *Event) HasPluginDeleted() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_PluginDeleted) + return ok +} + +func (x *Event) HasPluginCommitPushed() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_PluginCommitPushed) + return ok +} + +func (x *Event) HasUserCreated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_UserCreated) + return ok +} + +func (x *Event) HasUserDeactivated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_UserDeactivated) + return ok +} + +func (x *Event) HasUserDeleted() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_UserDeleted) + return ok +} + +func (x *Event) HasUserLoggedIn() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_UserLoggedIn) + return ok +} + +func (x *Event) HasUserLoggedOut() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_UserLoggedOut) + return ok +} + +func (x *Event) HasCuratedPluginCreated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_CuratedPluginCreated) + return ok +} + +func (x *Event) HasIdpGroupAdded() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_IdpGroupAdded) + return ok +} + +func (x *Event) HasIdpGroupRemoved() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_IdpGroupRemoved) + return ok +} + +func (x *Event) HasTokenCreated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_TokenCreated) + return ok +} + +func (x *Event) HasTokenDeleted() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_TokenDeleted) + return ok +} + +func (x *Event) HasUserReactivated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_UserReactivated) + return ok +} + +func (x *Event) HasScimTokenCreated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_ScimTokenCreated) + return ok +} + +func (x *Event) HasScimTokenDeleted() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_ScimTokenDeleted) + return ok +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) HasRepositoryCommitDeleted() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryCommitDeleted) + return ok +} + +func (x *Event) HasRepositoryLabelCreated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryLabelCreated) + return ok +} + +func (x *Event) HasRepositoryLabelMoved() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryLabelMoved) + return ok +} + +func (x *Event) HasRepositoryLabelArchived() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryLabelArchived) + return ok +} + +func (x *Event) HasRepositoryLabelUnarchived() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryLabelUnarchived) + return ok +} + +func (x *Event) HasCuratedPluginDeleted() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_CuratedPluginDeleted) + return ok +} + +func (x *Event) HasPayloadServerBreakingChangePolicyEnabled() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_PayloadServerBreakingChangePolicyEnabled) + return ok +} + +func (x *Event) HasPayloadServerBreakingChangePolicyDisabled() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_PayloadServerBreakingChangePolicyDisabled) + return ok +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) HasRepositoryDefaultBranchChanged() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_RepositoryDefaultBranchChanged) + return ok +} + +func (x *Event) HasPayloadServerUniquenessPolicyEnabled() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_PayloadServerUniquenessPolicyEnabled) + return ok +} + +func (x *Event) HasPayloadServerUniquenessPolicyDisabled() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_PayloadServerUniquenessPolicyDisabled) + return ok +} + +func (x *Event) HasUserAutoMergedFromNewIdp() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_UserAutoMergedFromNewIdp) + return ok +} + +func (x *Event) HasDeviceAuthorizationGrantApproved() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_DeviceAuthorizationGrantApproved) + return ok +} + +func (x *Event) HasDeviceAuthorizationGrantDenied() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_DeviceAuthorizationGrantDenied) + return ok +} + +func (x *Event) HasPluginLabelCreated() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_PluginLabelCreated) + return ok +} + +func (x *Event) HasPluginLabelMoved() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_PluginLabelMoved) + return ok +} + +func (x *Event) HasPluginLabelArchived() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_PluginLabelArchived) + return ok +} + +func (x *Event) HasPluginLabelUnarchived() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*Event_PluginLabelUnarchived) + return ok +} + +func (x *Event) ClearActor() { + x.Actor = nil +} + +func (x *Event) ClearResource() { + x.Resource = nil +} + +func (x *Event) ClearEventTime() { + x.EventTime = nil +} + +func (x *Event) ClearMetadata() { + x.Metadata = nil +} + +func (x *Event) ClearPayload() { + x.Payload = nil +} + +func (x *Event) ClearOrganizationCreated() { + if _, ok := x.Payload.(*Event_OrganizationCreated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearOrganizationDeleted() { + if _, ok := x.Payload.(*Event_OrganizationDeleted); ok { + x.Payload = nil + } +} + +func (x *Event) ClearOrganizationMemberAdded() { + if _, ok := x.Payload.(*Event_OrganizationMemberAdded); ok { + x.Payload = nil + } +} + +func (x *Event) ClearOrganizationMemberRoleChanged() { + if _, ok := x.Payload.(*Event_OrganizationMemberRoleChanged); ok { + x.Payload = nil + } +} + +func (x *Event) ClearOrganizationMemberRemoved() { + if _, ok := x.Payload.(*Event_OrganizationMemberRemoved); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryCreated() { + if _, ok := x.Payload.(*Event_RepositoryCreated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryDeprecated() { + if _, ok := x.Payload.(*Event_RepositoryDeprecated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryUndeprecated() { + if _, ok := x.Payload.(*Event_RepositoryUndeprecated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryDeleted() { + if _, ok := x.Payload.(*Event_RepositoryDeleted); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryCommitPushed() { + if _, ok := x.Payload.(*Event_RepositoryCommitPushed); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryContributorAdded() { + if _, ok := x.Payload.(*Event_RepositoryContributorAdded); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryContributorRoleChanged() { + if _, ok := x.Payload.(*Event_RepositoryContributorRoleChanged); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryContributorRemoved() { + if _, ok := x.Payload.(*Event_RepositoryContributorRemoved); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryVisibilityChanged() { + if _, ok := x.Payload.(*Event_RepositoryVisibilityChanged); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryDefaultLabelNameChanged() { + if _, ok := x.Payload.(*Event_RepositoryDefaultLabelNameChanged); ok { + x.Payload = nil + } +} + +func (x *Event) ClearPluginCreated() { + if _, ok := x.Payload.(*Event_PluginCreated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearPluginDeleted() { + if _, ok := x.Payload.(*Event_PluginDeleted); ok { + x.Payload = nil + } +} + +func (x *Event) ClearPluginCommitPushed() { + if _, ok := x.Payload.(*Event_PluginCommitPushed); ok { + x.Payload = nil + } +} + +func (x *Event) ClearUserCreated() { + if _, ok := x.Payload.(*Event_UserCreated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearUserDeactivated() { + if _, ok := x.Payload.(*Event_UserDeactivated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearUserDeleted() { + if _, ok := x.Payload.(*Event_UserDeleted); ok { + x.Payload = nil + } +} + +func (x *Event) ClearUserLoggedIn() { + if _, ok := x.Payload.(*Event_UserLoggedIn); ok { + x.Payload = nil + } +} + +func (x *Event) ClearUserLoggedOut() { + if _, ok := x.Payload.(*Event_UserLoggedOut); ok { + x.Payload = nil + } +} + +func (x *Event) ClearCuratedPluginCreated() { + if _, ok := x.Payload.(*Event_CuratedPluginCreated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearIdpGroupAdded() { + if _, ok := x.Payload.(*Event_IdpGroupAdded); ok { + x.Payload = nil + } +} + +func (x *Event) ClearIdpGroupRemoved() { + if _, ok := x.Payload.(*Event_IdpGroupRemoved); ok { + x.Payload = nil + } +} + +func (x *Event) ClearTokenCreated() { + if _, ok := x.Payload.(*Event_TokenCreated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearTokenDeleted() { + if _, ok := x.Payload.(*Event_TokenDeleted); ok { + x.Payload = nil + } +} + +func (x *Event) ClearUserReactivated() { + if _, ok := x.Payload.(*Event_UserReactivated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearScimTokenCreated() { + if _, ok := x.Payload.(*Event_ScimTokenCreated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearScimTokenDeleted() { + if _, ok := x.Payload.(*Event_ScimTokenDeleted); ok { + x.Payload = nil + } +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) ClearRepositoryCommitDeleted() { + if _, ok := x.Payload.(*Event_RepositoryCommitDeleted); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryLabelCreated() { + if _, ok := x.Payload.(*Event_RepositoryLabelCreated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryLabelMoved() { + if _, ok := x.Payload.(*Event_RepositoryLabelMoved); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryLabelArchived() { + if _, ok := x.Payload.(*Event_RepositoryLabelArchived); ok { + x.Payload = nil + } +} + +func (x *Event) ClearRepositoryLabelUnarchived() { + if _, ok := x.Payload.(*Event_RepositoryLabelUnarchived); ok { + x.Payload = nil + } +} + +func (x *Event) ClearCuratedPluginDeleted() { + if _, ok := x.Payload.(*Event_CuratedPluginDeleted); ok { + x.Payload = nil + } +} + +func (x *Event) ClearPayloadServerBreakingChangePolicyEnabled() { + if _, ok := x.Payload.(*Event_PayloadServerBreakingChangePolicyEnabled); ok { + x.Payload = nil + } +} + +func (x *Event) ClearPayloadServerBreakingChangePolicyDisabled() { + if _, ok := x.Payload.(*Event_PayloadServerBreakingChangePolicyDisabled); ok { + x.Payload = nil + } +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) ClearRepositoryDefaultBranchChanged() { + if _, ok := x.Payload.(*Event_RepositoryDefaultBranchChanged); ok { + x.Payload = nil + } +} + +func (x *Event) ClearPayloadServerUniquenessPolicyEnabled() { + if _, ok := x.Payload.(*Event_PayloadServerUniquenessPolicyEnabled); ok { + x.Payload = nil + } +} + +func (x *Event) ClearPayloadServerUniquenessPolicyDisabled() { + if _, ok := x.Payload.(*Event_PayloadServerUniquenessPolicyDisabled); ok { + x.Payload = nil + } +} + +func (x *Event) ClearUserAutoMergedFromNewIdp() { + if _, ok := x.Payload.(*Event_UserAutoMergedFromNewIdp); ok { + x.Payload = nil + } +} + +func (x *Event) ClearDeviceAuthorizationGrantApproved() { + if _, ok := x.Payload.(*Event_DeviceAuthorizationGrantApproved); ok { + x.Payload = nil + } +} + +func (x *Event) ClearDeviceAuthorizationGrantDenied() { + if _, ok := x.Payload.(*Event_DeviceAuthorizationGrantDenied); ok { + x.Payload = nil + } +} + +func (x *Event) ClearPluginLabelCreated() { + if _, ok := x.Payload.(*Event_PluginLabelCreated); ok { + x.Payload = nil + } +} + +func (x *Event) ClearPluginLabelMoved() { + if _, ok := x.Payload.(*Event_PluginLabelMoved); ok { + x.Payload = nil + } +} + +func (x *Event) ClearPluginLabelArchived() { + if _, ok := x.Payload.(*Event_PluginLabelArchived); ok { + x.Payload = nil + } +} + +func (x *Event) ClearPluginLabelUnarchived() { + if _, ok := x.Payload.(*Event_PluginLabelUnarchived); ok { + x.Payload = nil + } +} + +const Event_Payload_not_set_case case_Event_Payload = 0 +const Event_OrganizationCreated_case case_Event_Payload = 7 +const Event_OrganizationDeleted_case case_Event_Payload = 8 +const Event_OrganizationMemberAdded_case case_Event_Payload = 9 +const Event_OrganizationMemberRoleChanged_case case_Event_Payload = 10 +const Event_OrganizationMemberRemoved_case case_Event_Payload = 11 +const Event_RepositoryCreated_case case_Event_Payload = 12 +const Event_RepositoryDeprecated_case case_Event_Payload = 54 +const Event_RepositoryUndeprecated_case case_Event_Payload = 55 +const Event_RepositoryDeleted_case case_Event_Payload = 13 +const Event_RepositoryCommitPushed_case case_Event_Payload = 14 +const Event_RepositoryContributorAdded_case case_Event_Payload = 15 +const Event_RepositoryContributorRoleChanged_case case_Event_Payload = 16 +const Event_RepositoryContributorRemoved_case case_Event_Payload = 17 +const Event_RepositoryVisibilityChanged_case case_Event_Payload = 18 +const Event_RepositoryDefaultLabelNameChanged_case case_Event_Payload = 46 +const Event_PluginCreated_case case_Event_Payload = 19 +const Event_PluginDeleted_case case_Event_Payload = 20 +const Event_PluginCommitPushed_case case_Event_Payload = 49 +const Event_UserCreated_case case_Event_Payload = 21 +const Event_UserDeactivated_case case_Event_Payload = 22 +const Event_UserDeleted_case case_Event_Payload = 23 +const Event_UserLoggedIn_case case_Event_Payload = 24 +const Event_UserLoggedOut_case case_Event_Payload = 25 +const Event_CuratedPluginCreated_case case_Event_Payload = 26 +const Event_IdpGroupAdded_case case_Event_Payload = 27 +const Event_IdpGroupRemoved_case case_Event_Payload = 28 +const Event_TokenCreated_case case_Event_Payload = 29 +const Event_TokenDeleted_case case_Event_Payload = 30 +const Event_UserReactivated_case case_Event_Payload = 31 +const Event_ScimTokenCreated_case case_Event_Payload = 32 +const Event_ScimTokenDeleted_case case_Event_Payload = 33 +const Event_RepositoryCommitDeleted_case case_Event_Payload = 34 +const Event_RepositoryLabelCreated_case case_Event_Payload = 35 +const Event_RepositoryLabelMoved_case case_Event_Payload = 36 +const Event_RepositoryLabelArchived_case case_Event_Payload = 44 +const Event_RepositoryLabelUnarchived_case case_Event_Payload = 45 +const Event_CuratedPluginDeleted_case case_Event_Payload = 37 +const Event_PayloadServerBreakingChangePolicyEnabled_case case_Event_Payload = 38 +const Event_PayloadServerBreakingChangePolicyDisabled_case case_Event_Payload = 39 +const Event_RepositoryDefaultBranchChanged_case case_Event_Payload = 40 +const Event_PayloadServerUniquenessPolicyEnabled_case case_Event_Payload = 41 +const Event_PayloadServerUniquenessPolicyDisabled_case case_Event_Payload = 42 +const Event_UserAutoMergedFromNewIdp_case case_Event_Payload = 43 +const Event_DeviceAuthorizationGrantApproved_case case_Event_Payload = 47 +const Event_DeviceAuthorizationGrantDenied_case case_Event_Payload = 48 +const Event_PluginLabelCreated_case case_Event_Payload = 50 +const Event_PluginLabelMoved_case case_Event_Payload = 51 +const Event_PluginLabelArchived_case case_Event_Payload = 52 +const Event_PluginLabelUnarchived_case case_Event_Payload = 53 + +func (x *Event) WhichPayload() case_Event_Payload { + if x == nil { + return Event_Payload_not_set_case + } + switch x.Payload.(type) { + case *Event_OrganizationCreated: + return Event_OrganizationCreated_case + case *Event_OrganizationDeleted: + return Event_OrganizationDeleted_case + case *Event_OrganizationMemberAdded: + return Event_OrganizationMemberAdded_case + case *Event_OrganizationMemberRoleChanged: + return Event_OrganizationMemberRoleChanged_case + case *Event_OrganizationMemberRemoved: + return Event_OrganizationMemberRemoved_case + case *Event_RepositoryCreated: + return Event_RepositoryCreated_case + case *Event_RepositoryDeprecated: + return Event_RepositoryDeprecated_case + case *Event_RepositoryUndeprecated: + return Event_RepositoryUndeprecated_case + case *Event_RepositoryDeleted: + return Event_RepositoryDeleted_case + case *Event_RepositoryCommitPushed: + return Event_RepositoryCommitPushed_case + case *Event_RepositoryContributorAdded: + return Event_RepositoryContributorAdded_case + case *Event_RepositoryContributorRoleChanged: + return Event_RepositoryContributorRoleChanged_case + case *Event_RepositoryContributorRemoved: + return Event_RepositoryContributorRemoved_case + case *Event_RepositoryVisibilityChanged: + return Event_RepositoryVisibilityChanged_case + case *Event_RepositoryDefaultLabelNameChanged: + return Event_RepositoryDefaultLabelNameChanged_case + case *Event_PluginCreated: + return Event_PluginCreated_case + case *Event_PluginDeleted: + return Event_PluginDeleted_case + case *Event_PluginCommitPushed: + return Event_PluginCommitPushed_case + case *Event_UserCreated: + return Event_UserCreated_case + case *Event_UserDeactivated: + return Event_UserDeactivated_case + case *Event_UserDeleted: + return Event_UserDeleted_case + case *Event_UserLoggedIn: + return Event_UserLoggedIn_case + case *Event_UserLoggedOut: + return Event_UserLoggedOut_case + case *Event_CuratedPluginCreated: + return Event_CuratedPluginCreated_case + case *Event_IdpGroupAdded: + return Event_IdpGroupAdded_case + case *Event_IdpGroupRemoved: + return Event_IdpGroupRemoved_case + case *Event_TokenCreated: + return Event_TokenCreated_case + case *Event_TokenDeleted: + return Event_TokenDeleted_case + case *Event_UserReactivated: + return Event_UserReactivated_case + case *Event_ScimTokenCreated: + return Event_ScimTokenCreated_case + case *Event_ScimTokenDeleted: + return Event_ScimTokenDeleted_case + case *Event_RepositoryCommitDeleted: + return Event_RepositoryCommitDeleted_case + case *Event_RepositoryLabelCreated: + return Event_RepositoryLabelCreated_case + case *Event_RepositoryLabelMoved: + return Event_RepositoryLabelMoved_case + case *Event_RepositoryLabelArchived: + return Event_RepositoryLabelArchived_case + case *Event_RepositoryLabelUnarchived: + return Event_RepositoryLabelUnarchived_case + case *Event_CuratedPluginDeleted: + return Event_CuratedPluginDeleted_case + case *Event_PayloadServerBreakingChangePolicyEnabled: + return Event_PayloadServerBreakingChangePolicyEnabled_case + case *Event_PayloadServerBreakingChangePolicyDisabled: + return Event_PayloadServerBreakingChangePolicyDisabled_case + case *Event_RepositoryDefaultBranchChanged: + return Event_RepositoryDefaultBranchChanged_case + case *Event_PayloadServerUniquenessPolicyEnabled: + return Event_PayloadServerUniquenessPolicyEnabled_case + case *Event_PayloadServerUniquenessPolicyDisabled: + return Event_PayloadServerUniquenessPolicyDisabled_case + case *Event_UserAutoMergedFromNewIdp: + return Event_UserAutoMergedFromNewIdp_case + case *Event_DeviceAuthorizationGrantApproved: + return Event_DeviceAuthorizationGrantApproved_case + case *Event_DeviceAuthorizationGrantDenied: + return Event_DeviceAuthorizationGrantDenied_case + case *Event_PluginLabelCreated: + return Event_PluginLabelCreated_case + case *Event_PluginLabelMoved: + return Event_PluginLabelMoved_case + case *Event_PluginLabelArchived: + return Event_PluginLabelArchived_case + case *Event_PluginLabelUnarchived: + return Event_PluginLabelUnarchived_case + default: + return Event_Payload_not_set_case + } +} + +type Event_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Unique id of the audited event. + EventId string + // Type of the audited event. It specifies "what" happened. + Type EventType + // Actor of the audited event. It specifies "who" did it. + Actor *Actor + // Resource of the audited event. It specifies "which resource" was affected. + Resource *Resource + // Time of the audited event. It specifies "when" it happened. + EventTime *timestamppb.Timestamp + // Metadata about the audited event. It specifies any additional details about the audited event. + Metadata *EventMetadata + // Payload of the audited event. It specifies additional context on the event. + + // Fields of oneof Payload: + OrganizationCreated *PayloadOrganizationCreated + OrganizationDeleted *PayloadOrganizationDeleted + OrganizationMemberAdded *PayloadOrganizationMemberAdded + OrganizationMemberRoleChanged *PayloadOrganizationMemberRoleChanged + OrganizationMemberRemoved *PayloadOrganizationMemberRemoved + RepositoryCreated *PayloadRepositoryCreated + RepositoryDeprecated *PayloadRepositoryDeprecated + RepositoryUndeprecated *PayloadRepositoryUndeprecated + RepositoryDeleted *PayloadRepositoryDeleted + RepositoryCommitPushed *PayloadRepositoryCommitPushed + RepositoryContributorAdded *PayloadRepositoryContributorAdded + RepositoryContributorRoleChanged *PayloadRepositoryContributorRoleChanged + RepositoryContributorRemoved *PayloadRepositoryContributorRemoved + RepositoryVisibilityChanged *PayloadRepositoryVisibilityChanged + RepositoryDefaultLabelNameChanged *PayloadRepositoryDefaultLabelNameChanged + PluginCreated *PayloadPluginCreated + PluginDeleted *PayloadPluginDeleted + PluginCommitPushed *PayloadPluginCommitPushed + UserCreated *PayloadUserCreated + UserDeactivated *PayloadUserDeactivated + UserDeleted *PayloadUserDeleted + UserLoggedIn *PayloadUserLoggedIn + UserLoggedOut *PayloadUserLoggedOut + CuratedPluginCreated *PayloadCuratedPluginCreated + IdpGroupAdded *PayloadOrganizationIDPGroupAdded + IdpGroupRemoved *PayloadOrganizationIDPGroupRemoved + TokenCreated *PayloadTokenCreated + TokenDeleted *PayloadTokenDeleted + UserReactivated *PayloadUserReactivated + ScimTokenCreated *PayloadSCIMTokenCreated + ScimTokenDeleted *PayloadSCIMTokenDeleted + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + RepositoryCommitDeleted *PayloadRepositoryCommitDeleted + RepositoryLabelCreated *PayloadRepositoryLabelCreated + RepositoryLabelMoved *PayloadRepositoryLabelMoved + RepositoryLabelArchived *PayloadRepositoryLabelArchived + RepositoryLabelUnarchived *PayloadRepositoryLabelUnarchived + CuratedPluginDeleted *PayloadCuratedPluginDeleted + PayloadServerBreakingChangePolicyEnabled *PayloadServerBreakingChangePolicyEnabled + PayloadServerBreakingChangePolicyDisabled *PayloadServerBreakingChangePolicyDisabled + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + RepositoryDefaultBranchChanged *PayloadRepositoryDefaultBranchChanged + PayloadServerUniquenessPolicyEnabled *PayloadServerUniquenessPolicyEnabled + PayloadServerUniquenessPolicyDisabled *PayloadServerUniquenessPolicyDisabled + UserAutoMergedFromNewIdp *PayloadUserAutoMergedFromNewIdP + DeviceAuthorizationGrantApproved *PayloadDeviceAuthorizationGrantApproved + DeviceAuthorizationGrantDenied *PayloadDeviceAuthorizationGrantDenied + PluginLabelCreated *PayloadPluginLabelCreated + PluginLabelMoved *PayloadPluginLabelMoved + PluginLabelArchived *PayloadPluginLabelArchived + PluginLabelUnarchived *PayloadPluginLabelUnarchived + // -- end of Payload +} + +func (b0 Event_builder) Build() *Event { + m0 := &Event{} + b, x := &b0, m0 + _, _ = b, x + x.EventId = b.EventId + x.Type = b.Type + x.Actor = b.Actor + x.Resource = b.Resource + x.EventTime = b.EventTime + x.Metadata = b.Metadata + if b.OrganizationCreated != nil { + x.Payload = &Event_OrganizationCreated{b.OrganizationCreated} + } + if b.OrganizationDeleted != nil { + x.Payload = &Event_OrganizationDeleted{b.OrganizationDeleted} + } + if b.OrganizationMemberAdded != nil { + x.Payload = &Event_OrganizationMemberAdded{b.OrganizationMemberAdded} + } + if b.OrganizationMemberRoleChanged != nil { + x.Payload = &Event_OrganizationMemberRoleChanged{b.OrganizationMemberRoleChanged} + } + if b.OrganizationMemberRemoved != nil { + x.Payload = &Event_OrganizationMemberRemoved{b.OrganizationMemberRemoved} + } + if b.RepositoryCreated != nil { + x.Payload = &Event_RepositoryCreated{b.RepositoryCreated} + } + if b.RepositoryDeprecated != nil { + x.Payload = &Event_RepositoryDeprecated{b.RepositoryDeprecated} + } + if b.RepositoryUndeprecated != nil { + x.Payload = &Event_RepositoryUndeprecated{b.RepositoryUndeprecated} + } + if b.RepositoryDeleted != nil { + x.Payload = &Event_RepositoryDeleted{b.RepositoryDeleted} + } + if b.RepositoryCommitPushed != nil { + x.Payload = &Event_RepositoryCommitPushed{b.RepositoryCommitPushed} + } + if b.RepositoryContributorAdded != nil { + x.Payload = &Event_RepositoryContributorAdded{b.RepositoryContributorAdded} + } + if b.RepositoryContributorRoleChanged != nil { + x.Payload = &Event_RepositoryContributorRoleChanged{b.RepositoryContributorRoleChanged} + } + if b.RepositoryContributorRemoved != nil { + x.Payload = &Event_RepositoryContributorRemoved{b.RepositoryContributorRemoved} + } + if b.RepositoryVisibilityChanged != nil { + x.Payload = &Event_RepositoryVisibilityChanged{b.RepositoryVisibilityChanged} + } + if b.RepositoryDefaultLabelNameChanged != nil { + x.Payload = &Event_RepositoryDefaultLabelNameChanged{b.RepositoryDefaultLabelNameChanged} + } + if b.PluginCreated != nil { + x.Payload = &Event_PluginCreated{b.PluginCreated} + } + if b.PluginDeleted != nil { + x.Payload = &Event_PluginDeleted{b.PluginDeleted} + } + if b.PluginCommitPushed != nil { + x.Payload = &Event_PluginCommitPushed{b.PluginCommitPushed} + } + if b.UserCreated != nil { + x.Payload = &Event_UserCreated{b.UserCreated} + } + if b.UserDeactivated != nil { + x.Payload = &Event_UserDeactivated{b.UserDeactivated} + } + if b.UserDeleted != nil { + x.Payload = &Event_UserDeleted{b.UserDeleted} + } + if b.UserLoggedIn != nil { + x.Payload = &Event_UserLoggedIn{b.UserLoggedIn} + } + if b.UserLoggedOut != nil { + x.Payload = &Event_UserLoggedOut{b.UserLoggedOut} + } + if b.CuratedPluginCreated != nil { + x.Payload = &Event_CuratedPluginCreated{b.CuratedPluginCreated} + } + if b.IdpGroupAdded != nil { + x.Payload = &Event_IdpGroupAdded{b.IdpGroupAdded} + } + if b.IdpGroupRemoved != nil { + x.Payload = &Event_IdpGroupRemoved{b.IdpGroupRemoved} + } + if b.TokenCreated != nil { + x.Payload = &Event_TokenCreated{b.TokenCreated} + } + if b.TokenDeleted != nil { + x.Payload = &Event_TokenDeleted{b.TokenDeleted} + } + if b.UserReactivated != nil { + x.Payload = &Event_UserReactivated{b.UserReactivated} + } + if b.ScimTokenCreated != nil { + x.Payload = &Event_ScimTokenCreated{b.ScimTokenCreated} + } + if b.ScimTokenDeleted != nil { + x.Payload = &Event_ScimTokenDeleted{b.ScimTokenDeleted} + } + if b.RepositoryCommitDeleted != nil { + x.Payload = &Event_RepositoryCommitDeleted{b.RepositoryCommitDeleted} + } + if b.RepositoryLabelCreated != nil { + x.Payload = &Event_RepositoryLabelCreated{b.RepositoryLabelCreated} + } + if b.RepositoryLabelMoved != nil { + x.Payload = &Event_RepositoryLabelMoved{b.RepositoryLabelMoved} + } + if b.RepositoryLabelArchived != nil { + x.Payload = &Event_RepositoryLabelArchived{b.RepositoryLabelArchived} + } + if b.RepositoryLabelUnarchived != nil { + x.Payload = &Event_RepositoryLabelUnarchived{b.RepositoryLabelUnarchived} + } + if b.CuratedPluginDeleted != nil { + x.Payload = &Event_CuratedPluginDeleted{b.CuratedPluginDeleted} + } + if b.PayloadServerBreakingChangePolicyEnabled != nil { + x.Payload = &Event_PayloadServerBreakingChangePolicyEnabled{b.PayloadServerBreakingChangePolicyEnabled} + } + if b.PayloadServerBreakingChangePolicyDisabled != nil { + x.Payload = &Event_PayloadServerBreakingChangePolicyDisabled{b.PayloadServerBreakingChangePolicyDisabled} + } + if b.RepositoryDefaultBranchChanged != nil { + x.Payload = &Event_RepositoryDefaultBranchChanged{b.RepositoryDefaultBranchChanged} + } + if b.PayloadServerUniquenessPolicyEnabled != nil { + x.Payload = &Event_PayloadServerUniquenessPolicyEnabled{b.PayloadServerUniquenessPolicyEnabled} + } + if b.PayloadServerUniquenessPolicyDisabled != nil { + x.Payload = &Event_PayloadServerUniquenessPolicyDisabled{b.PayloadServerUniquenessPolicyDisabled} + } + if b.UserAutoMergedFromNewIdp != nil { + x.Payload = &Event_UserAutoMergedFromNewIdp{b.UserAutoMergedFromNewIdp} + } + if b.DeviceAuthorizationGrantApproved != nil { + x.Payload = &Event_DeviceAuthorizationGrantApproved{b.DeviceAuthorizationGrantApproved} + } + if b.DeviceAuthorizationGrantDenied != nil { + x.Payload = &Event_DeviceAuthorizationGrantDenied{b.DeviceAuthorizationGrantDenied} + } + if b.PluginLabelCreated != nil { + x.Payload = &Event_PluginLabelCreated{b.PluginLabelCreated} + } + if b.PluginLabelMoved != nil { + x.Payload = &Event_PluginLabelMoved{b.PluginLabelMoved} + } + if b.PluginLabelArchived != nil { + x.Payload = &Event_PluginLabelArchived{b.PluginLabelArchived} + } + if b.PluginLabelUnarchived != nil { + x.Payload = &Event_PluginLabelUnarchived{b.PluginLabelUnarchived} + } + return m0 +} + +type case_Event_Payload protoreflect.FieldNumber + +func (x case_Event_Payload) String() string { + md := file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[3].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isEvent_Payload interface { + isEvent_Payload() +} + +type Event_OrganizationCreated struct { + OrganizationCreated *PayloadOrganizationCreated `protobuf:"bytes,7,opt,name=organization_created,json=organizationCreated,proto3,oneof"` +} + +type Event_OrganizationDeleted struct { + OrganizationDeleted *PayloadOrganizationDeleted `protobuf:"bytes,8,opt,name=organization_deleted,json=organizationDeleted,proto3,oneof"` +} + +type Event_OrganizationMemberAdded struct { + OrganizationMemberAdded *PayloadOrganizationMemberAdded `protobuf:"bytes,9,opt,name=organization_member_added,json=organizationMemberAdded,proto3,oneof"` +} + +type Event_OrganizationMemberRoleChanged struct { + OrganizationMemberRoleChanged *PayloadOrganizationMemberRoleChanged `protobuf:"bytes,10,opt,name=organization_member_role_changed,json=organizationMemberRoleChanged,proto3,oneof"` +} + +type Event_OrganizationMemberRemoved struct { + OrganizationMemberRemoved *PayloadOrganizationMemberRemoved `protobuf:"bytes,11,opt,name=organization_member_removed,json=organizationMemberRemoved,proto3,oneof"` +} + +type Event_RepositoryCreated struct { + RepositoryCreated *PayloadRepositoryCreated `protobuf:"bytes,12,opt,name=repository_created,json=repositoryCreated,proto3,oneof"` +} + +type Event_RepositoryDeprecated struct { + RepositoryDeprecated *PayloadRepositoryDeprecated `protobuf:"bytes,54,opt,name=repository_deprecated,json=repositoryDeprecated,proto3,oneof"` +} + +type Event_RepositoryUndeprecated struct { + RepositoryUndeprecated *PayloadRepositoryUndeprecated `protobuf:"bytes,55,opt,name=repository_undeprecated,json=repositoryUndeprecated,proto3,oneof"` +} + +type Event_RepositoryDeleted struct { + RepositoryDeleted *PayloadRepositoryDeleted `protobuf:"bytes,13,opt,name=repository_deleted,json=repositoryDeleted,proto3,oneof"` +} + +type Event_RepositoryCommitPushed struct { + RepositoryCommitPushed *PayloadRepositoryCommitPushed `protobuf:"bytes,14,opt,name=repository_commit_pushed,json=repositoryCommitPushed,proto3,oneof"` +} + +type Event_RepositoryContributorAdded struct { + RepositoryContributorAdded *PayloadRepositoryContributorAdded `protobuf:"bytes,15,opt,name=repository_contributor_added,json=repositoryContributorAdded,proto3,oneof"` +} + +type Event_RepositoryContributorRoleChanged struct { + RepositoryContributorRoleChanged *PayloadRepositoryContributorRoleChanged `protobuf:"bytes,16,opt,name=repository_contributor_role_changed,json=repositoryContributorRoleChanged,proto3,oneof"` +} + +type Event_RepositoryContributorRemoved struct { + RepositoryContributorRemoved *PayloadRepositoryContributorRemoved `protobuf:"bytes,17,opt,name=repository_contributor_removed,json=repositoryContributorRemoved,proto3,oneof"` +} + +type Event_RepositoryVisibilityChanged struct { + RepositoryVisibilityChanged *PayloadRepositoryVisibilityChanged `protobuf:"bytes,18,opt,name=repository_visibility_changed,json=repositoryVisibilityChanged,proto3,oneof"` +} + +type Event_RepositoryDefaultLabelNameChanged struct { + RepositoryDefaultLabelNameChanged *PayloadRepositoryDefaultLabelNameChanged `protobuf:"bytes,46,opt,name=repository_default_label_name_changed,json=repositoryDefaultLabelNameChanged,proto3,oneof"` +} + +type Event_PluginCreated struct { + PluginCreated *PayloadPluginCreated `protobuf:"bytes,19,opt,name=plugin_created,json=pluginCreated,proto3,oneof"` +} + +type Event_PluginDeleted struct { + PluginDeleted *PayloadPluginDeleted `protobuf:"bytes,20,opt,name=plugin_deleted,json=pluginDeleted,proto3,oneof"` +} + +type Event_PluginCommitPushed struct { + PluginCommitPushed *PayloadPluginCommitPushed `protobuf:"bytes,49,opt,name=plugin_commit_pushed,json=pluginCommitPushed,proto3,oneof"` +} + +type Event_UserCreated struct { + UserCreated *PayloadUserCreated `protobuf:"bytes,21,opt,name=user_created,json=userCreated,proto3,oneof"` +} + +type Event_UserDeactivated struct { + UserDeactivated *PayloadUserDeactivated `protobuf:"bytes,22,opt,name=user_deactivated,json=userDeactivated,proto3,oneof"` +} + +type Event_UserDeleted struct { + UserDeleted *PayloadUserDeleted `protobuf:"bytes,23,opt,name=user_deleted,json=userDeleted,proto3,oneof"` +} + +type Event_UserLoggedIn struct { + UserLoggedIn *PayloadUserLoggedIn `protobuf:"bytes,24,opt,name=user_logged_in,json=userLoggedIn,proto3,oneof"` +} + +type Event_UserLoggedOut struct { + UserLoggedOut *PayloadUserLoggedOut `protobuf:"bytes,25,opt,name=user_logged_out,json=userLoggedOut,proto3,oneof"` +} + +type Event_CuratedPluginCreated struct { + CuratedPluginCreated *PayloadCuratedPluginCreated `protobuf:"bytes,26,opt,name=curated_plugin_created,json=curatedPluginCreated,proto3,oneof"` +} + +type Event_IdpGroupAdded struct { + IdpGroupAdded *PayloadOrganizationIDPGroupAdded `protobuf:"bytes,27,opt,name=idp_group_added,json=idpGroupAdded,proto3,oneof"` +} + +type Event_IdpGroupRemoved struct { + IdpGroupRemoved *PayloadOrganizationIDPGroupRemoved `protobuf:"bytes,28,opt,name=idp_group_removed,json=idpGroupRemoved,proto3,oneof"` +} + +type Event_TokenCreated struct { + TokenCreated *PayloadTokenCreated `protobuf:"bytes,29,opt,name=token_created,json=tokenCreated,proto3,oneof"` +} + +type Event_TokenDeleted struct { + TokenDeleted *PayloadTokenDeleted `protobuf:"bytes,30,opt,name=token_deleted,json=tokenDeleted,proto3,oneof"` +} + +type Event_UserReactivated struct { + UserReactivated *PayloadUserReactivated `protobuf:"bytes,31,opt,name=user_reactivated,json=userReactivated,proto3,oneof"` +} + +type Event_ScimTokenCreated struct { + ScimTokenCreated *PayloadSCIMTokenCreated `protobuf:"bytes,32,opt,name=scim_token_created,json=scimTokenCreated,proto3,oneof"` +} + +type Event_ScimTokenDeleted struct { + ScimTokenDeleted *PayloadSCIMTokenDeleted `protobuf:"bytes,33,opt,name=scim_token_deleted,json=scimTokenDeleted,proto3,oneof"` +} + +type Event_RepositoryCommitDeleted struct { + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + RepositoryCommitDeleted *PayloadRepositoryCommitDeleted `protobuf:"bytes,34,opt,name=repository_commit_deleted,json=repositoryCommitDeleted,proto3,oneof"` +} + +type Event_RepositoryLabelCreated struct { + RepositoryLabelCreated *PayloadRepositoryLabelCreated `protobuf:"bytes,35,opt,name=repository_label_created,json=repositoryLabelCreated,proto3,oneof"` +} + +type Event_RepositoryLabelMoved struct { + RepositoryLabelMoved *PayloadRepositoryLabelMoved `protobuf:"bytes,36,opt,name=repository_label_moved,json=repositoryLabelMoved,proto3,oneof"` +} + +type Event_RepositoryLabelArchived struct { + RepositoryLabelArchived *PayloadRepositoryLabelArchived `protobuf:"bytes,44,opt,name=repository_label_archived,json=repositoryLabelArchived,proto3,oneof"` +} + +type Event_RepositoryLabelUnarchived struct { + RepositoryLabelUnarchived *PayloadRepositoryLabelUnarchived `protobuf:"bytes,45,opt,name=repository_label_unarchived,json=repositoryLabelUnarchived,proto3,oneof"` +} + +type Event_CuratedPluginDeleted struct { + CuratedPluginDeleted *PayloadCuratedPluginDeleted `protobuf:"bytes,37,opt,name=curated_plugin_deleted,json=curatedPluginDeleted,proto3,oneof"` +} + +type Event_PayloadServerBreakingChangePolicyEnabled struct { + PayloadServerBreakingChangePolicyEnabled *PayloadServerBreakingChangePolicyEnabled `protobuf:"bytes,38,opt,name=payload_server_breaking_change_policy_enabled,json=payloadServerBreakingChangePolicyEnabled,proto3,oneof"` +} + +type Event_PayloadServerBreakingChangePolicyDisabled struct { + PayloadServerBreakingChangePolicyDisabled *PayloadServerBreakingChangePolicyDisabled `protobuf:"bytes,39,opt,name=payload_server_breaking_change_policy_disabled,json=payloadServerBreakingChangePolicyDisabled,proto3,oneof"` +} + +type Event_RepositoryDefaultBranchChanged struct { + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + RepositoryDefaultBranchChanged *PayloadRepositoryDefaultBranchChanged `protobuf:"bytes,40,opt,name=repository_default_branch_changed,json=repositoryDefaultBranchChanged,proto3,oneof"` +} + +type Event_PayloadServerUniquenessPolicyEnabled struct { + PayloadServerUniquenessPolicyEnabled *PayloadServerUniquenessPolicyEnabled `protobuf:"bytes,41,opt,name=payload_server_uniqueness_policy_enabled,json=payloadServerUniquenessPolicyEnabled,proto3,oneof"` +} + +type Event_PayloadServerUniquenessPolicyDisabled struct { + PayloadServerUniquenessPolicyDisabled *PayloadServerUniquenessPolicyDisabled `protobuf:"bytes,42,opt,name=payload_server_uniqueness_policy_disabled,json=payloadServerUniquenessPolicyDisabled,proto3,oneof"` +} + +type Event_UserAutoMergedFromNewIdp struct { + UserAutoMergedFromNewIdp *PayloadUserAutoMergedFromNewIdP `protobuf:"bytes,43,opt,name=user_auto_merged_from_new_idp,json=userAutoMergedFromNewIdp,proto3,oneof"` +} + +type Event_DeviceAuthorizationGrantApproved struct { + DeviceAuthorizationGrantApproved *PayloadDeviceAuthorizationGrantApproved `protobuf:"bytes,47,opt,name=device_authorization_grant_approved,json=deviceAuthorizationGrantApproved,proto3,oneof"` +} + +type Event_DeviceAuthorizationGrantDenied struct { + DeviceAuthorizationGrantDenied *PayloadDeviceAuthorizationGrantDenied `protobuf:"bytes,48,opt,name=device_authorization_grant_denied,json=deviceAuthorizationGrantDenied,proto3,oneof"` +} + +type Event_PluginLabelCreated struct { + PluginLabelCreated *PayloadPluginLabelCreated `protobuf:"bytes,50,opt,name=plugin_label_created,json=pluginLabelCreated,proto3,oneof"` +} + +type Event_PluginLabelMoved struct { + PluginLabelMoved *PayloadPluginLabelMoved `protobuf:"bytes,51,opt,name=plugin_label_moved,json=pluginLabelMoved,proto3,oneof"` +} + +type Event_PluginLabelArchived struct { + PluginLabelArchived *PayloadPluginLabelArchived `protobuf:"bytes,52,opt,name=plugin_label_archived,json=pluginLabelArchived,proto3,oneof"` +} + +type Event_PluginLabelUnarchived struct { + PluginLabelUnarchived *PayloadPluginLabelUnarchived `protobuf:"bytes,53,opt,name=plugin_label_unarchived,json=pluginLabelUnarchived,proto3,oneof"` +} + +func (*Event_OrganizationCreated) isEvent_Payload() {} + +func (*Event_OrganizationDeleted) isEvent_Payload() {} + +func (*Event_OrganizationMemberAdded) isEvent_Payload() {} func (*Event_OrganizationMemberRoleChanged) isEvent_Payload() {} @@ -1462,7 +3091,7 @@ func (*Event_PluginLabelArchived) isEvent_Payload() {} func (*Event_PluginLabelUnarchived) isEvent_Payload() {} type PayloadOrganizationCreated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1492,13 +3121,20 @@ func (x *PayloadOrganizationCreated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadOrganizationCreated.ProtoReflect.Descriptor instead. -func (*PayloadOrganizationCreated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{4} +type PayloadOrganizationCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadOrganizationCreated_builder) Build() *PayloadOrganizationCreated { + m0 := &PayloadOrganizationCreated{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PayloadOrganizationDeleted struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1528,13 +3164,20 @@ func (x *PayloadOrganizationDeleted) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadOrganizationDeleted.ProtoReflect.Descriptor instead. -func (*PayloadOrganizationDeleted) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{5} +type PayloadOrganizationDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadOrganizationDeleted_builder) Build() *PayloadOrganizationDeleted { + m0 := &PayloadOrganizationDeleted{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PayloadOrganizationMemberAdded struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // organization_id is the id of the organization with the new member. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // organization_name is the name of the organization with the new member. @@ -1572,11 +3215,6 @@ func (x *PayloadOrganizationMemberAdded) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadOrganizationMemberAdded.ProtoReflect.Descriptor instead. -func (*PayloadOrganizationMemberAdded) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{6} -} - func (x *PayloadOrganizationMemberAdded) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1605,8 +3243,48 @@ func (x *PayloadOrganizationMemberAdded) GetMemberRoleSource() v1alpha1.Organiza return v1alpha1.OrganizationRoleSource(0) } +func (x *PayloadOrganizationMemberAdded) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *PayloadOrganizationMemberAdded) SetOrganizationName(v string) { + x.OrganizationName = v +} + +func (x *PayloadOrganizationMemberAdded) SetMemberRole(v v1alpha1.OrganizationRole) { + x.MemberRole = v +} + +func (x *PayloadOrganizationMemberAdded) SetMemberRoleSource(v v1alpha1.OrganizationRoleSource) { + x.MemberRoleSource = v +} + +type PayloadOrganizationMemberAdded_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // organization_id is the id of the organization with the new member. + OrganizationId string + // organization_name is the name of the organization with the new member. + OrganizationName string + // member_role is the role granted to the member added to the organization. + MemberRole v1alpha1.OrganizationRole + // member_role_source is the source of the role granted to the member. + MemberRoleSource v1alpha1.OrganizationRoleSource +} + +func (b0 PayloadOrganizationMemberAdded_builder) Build() *PayloadOrganizationMemberAdded { + m0 := &PayloadOrganizationMemberAdded{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.OrganizationName = b.OrganizationName + x.MemberRole = b.MemberRole + x.MemberRoleSource = b.MemberRoleSource + return m0 +} + type PayloadOrganizationMemberRoleChanged struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // organization_id is the id of the organization within which the role was changed. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // organization_name is the name of the organization within which the role was changed. @@ -1648,11 +3326,6 @@ func (x *PayloadOrganizationMemberRoleChanged) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use PayloadOrganizationMemberRoleChanged.ProtoReflect.Descriptor instead. -func (*PayloadOrganizationMemberRoleChanged) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{7} -} - func (x *PayloadOrganizationMemberRoleChanged) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1695,8 +3368,62 @@ func (x *PayloadOrganizationMemberRoleChanged) GetNewMemberRoleSource() v1alpha1 return v1alpha1.OrganizationRoleSource(0) } +func (x *PayloadOrganizationMemberRoleChanged) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *PayloadOrganizationMemberRoleChanged) SetOrganizationName(v string) { + x.OrganizationName = v +} + +func (x *PayloadOrganizationMemberRoleChanged) SetOldRole(v v1alpha1.OrganizationRole) { + x.OldRole = v +} + +func (x *PayloadOrganizationMemberRoleChanged) SetNewRole(v v1alpha1.OrganizationRole) { + x.NewRole = v +} + +func (x *PayloadOrganizationMemberRoleChanged) SetOldMemberRoleSource(v v1alpha1.OrganizationRoleSource) { + x.OldMemberRoleSource = v +} + +func (x *PayloadOrganizationMemberRoleChanged) SetNewMemberRoleSource(v v1alpha1.OrganizationRoleSource) { + x.NewMemberRoleSource = v +} + +type PayloadOrganizationMemberRoleChanged_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // organization_id is the id of the organization within which the role was changed. + OrganizationId string + // organization_name is the name of the organization within which the role was changed. + OrganizationName string + // old_role is the old role of the member whose role was changed. + OldRole v1alpha1.OrganizationRole + // new_role is the new role of the member whose role was changed. + NewRole v1alpha1.OrganizationRole + // old_member_role_source is the old source of the role granted to the member. + OldMemberRoleSource v1alpha1.OrganizationRoleSource + // new_member_role_source is the new source of the role granted to the member. + NewMemberRoleSource v1alpha1.OrganizationRoleSource +} + +func (b0 PayloadOrganizationMemberRoleChanged_builder) Build() *PayloadOrganizationMemberRoleChanged { + m0 := &PayloadOrganizationMemberRoleChanged{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.OrganizationName = b.OrganizationName + x.OldRole = b.OldRole + x.NewRole = b.NewRole + x.OldMemberRoleSource = b.OldMemberRoleSource + x.NewMemberRoleSource = b.NewMemberRoleSource + return m0 +} + type PayloadOrganizationMemberRemoved struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // organization_id is the id of the organization that the member was removed from. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // organization_name is the name of the organization that the member was removed from. @@ -1734,11 +3461,6 @@ func (x *PayloadOrganizationMemberRemoved) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadOrganizationMemberRemoved.ProtoReflect.Descriptor instead. -func (*PayloadOrganizationMemberRemoved) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{8} -} - func (x *PayloadOrganizationMemberRemoved) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1767,8 +3489,48 @@ func (x *PayloadOrganizationMemberRemoved) GetMemberRoleSource() v1alpha1.Organi return v1alpha1.OrganizationRoleSource(0) } +func (x *PayloadOrganizationMemberRemoved) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *PayloadOrganizationMemberRemoved) SetOrganizationName(v string) { + x.OrganizationName = v +} + +func (x *PayloadOrganizationMemberRemoved) SetMemberRole(v v1alpha1.OrganizationRole) { + x.MemberRole = v +} + +func (x *PayloadOrganizationMemberRemoved) SetMemberRoleSource(v v1alpha1.OrganizationRoleSource) { + x.MemberRoleSource = v +} + +type PayloadOrganizationMemberRemoved_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // organization_id is the id of the organization that the member was removed from. + OrganizationId string + // organization_name is the name of the organization that the member was removed from. + OrganizationName string + // member_role is the role that the member had when removed from the organization. + MemberRole v1alpha1.OrganizationRole + // member_role_source is the source of the role granted to the member. + MemberRoleSource v1alpha1.OrganizationRoleSource +} + +func (b0 PayloadOrganizationMemberRemoved_builder) Build() *PayloadOrganizationMemberRemoved { + m0 := &PayloadOrganizationMemberRemoved{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.OrganizationName = b.OrganizationName + x.MemberRole = b.MemberRole + x.MemberRoleSource = b.MemberRoleSource + return m0 +} + type PayloadOrganizationIDPGroupAdded struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // organization_id is the id of the organization with the new IDP group. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // organization_name is the name of the organization with the new IDP group. @@ -1802,11 +3564,6 @@ func (x *PayloadOrganizationIDPGroupAdded) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadOrganizationIDPGroupAdded.ProtoReflect.Descriptor instead. -func (*PayloadOrganizationIDPGroupAdded) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{9} -} - func (x *PayloadOrganizationIDPGroupAdded) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1821,8 +3578,34 @@ func (x *PayloadOrganizationIDPGroupAdded) GetOrganizationName() string { return "" } +func (x *PayloadOrganizationIDPGroupAdded) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *PayloadOrganizationIDPGroupAdded) SetOrganizationName(v string) { + x.OrganizationName = v +} + +type PayloadOrganizationIDPGroupAdded_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // organization_id is the id of the organization with the new IDP group. + OrganizationId string + // organization_name is the name of the organization with the new IDP group. + OrganizationName string +} + +func (b0 PayloadOrganizationIDPGroupAdded_builder) Build() *PayloadOrganizationIDPGroupAdded { + m0 := &PayloadOrganizationIDPGroupAdded{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.OrganizationName = b.OrganizationName + return m0 +} + type PayloadOrganizationIDPGroupRemoved struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // organization_id is the id of the organization with the removed IDP group. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // organization_name is the name of the organization with the removed IDP group. @@ -1856,11 +3639,6 @@ func (x *PayloadOrganizationIDPGroupRemoved) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use PayloadOrganizationIDPGroupRemoved.ProtoReflect.Descriptor instead. -func (*PayloadOrganizationIDPGroupRemoved) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{10} -} - func (x *PayloadOrganizationIDPGroupRemoved) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1875,8 +3653,34 @@ func (x *PayloadOrganizationIDPGroupRemoved) GetOrganizationName() string { return "" } +func (x *PayloadOrganizationIDPGroupRemoved) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *PayloadOrganizationIDPGroupRemoved) SetOrganizationName(v string) { + x.OrganizationName = v +} + +type PayloadOrganizationIDPGroupRemoved_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // organization_id is the id of the organization with the removed IDP group. + OrganizationId string + // organization_name is the name of the organization with the removed IDP group. + OrganizationName string +} + +func (b0 PayloadOrganizationIDPGroupRemoved_builder) Build() *PayloadOrganizationIDPGroupRemoved { + m0 := &PayloadOrganizationIDPGroupRemoved{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.OrganizationName = b.OrganizationName + return m0 +} + type PayloadRepositoryCreated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository. @@ -1915,11 +3719,6 @@ func (x *PayloadRepositoryCreated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryCreated.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryCreated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{11} -} - func (x *PayloadRepositoryCreated) GetOwnerId() string { if x != nil { return x.OwnerId @@ -1948,8 +3747,49 @@ func (x *PayloadRepositoryCreated) GetDefaultLabelName() string { return "" } +func (x *PayloadRepositoryCreated) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryCreated) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryCreated) SetVisibility(v v1alpha1.Visibility) { + x.Visibility = v +} + +func (x *PayloadRepositoryCreated) SetDefaultLabelName(v string) { + x.DefaultLabelName = v +} + +type PayloadRepositoryCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // visibility is the visibility of the repository. + Visibility v1alpha1.Visibility + // default_label_name is the name of the default label for the repository. + // If empty, the repository was created with the default label name of 'main'. + DefaultLabelName string +} + +func (b0 PayloadRepositoryCreated_builder) Build() *PayloadRepositoryCreated { + m0 := &PayloadRepositoryCreated{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.Visibility = b.Visibility + x.DefaultLabelName = b.DefaultLabelName + return m0 +} + type PayloadRepositoryDeleted struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository. @@ -1985,11 +3825,6 @@ func (x *PayloadRepositoryDeleted) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryDeleted.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryDeleted) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{12} -} - func (x *PayloadRepositoryDeleted) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2011,8 +3846,41 @@ func (x *PayloadRepositoryDeleted) GetVisibility() v1alpha1.Visibility { return v1alpha1.Visibility(0) } +func (x *PayloadRepositoryDeleted) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryDeleted) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryDeleted) SetVisibility(v v1alpha1.Visibility) { + x.Visibility = v +} + +type PayloadRepositoryDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // visibility is the visibility of the repository. + Visibility v1alpha1.Visibility +} + +func (b0 PayloadRepositoryDeleted_builder) Build() *PayloadRepositoryDeleted { + m0 := &PayloadRepositoryDeleted{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.Visibility = b.Visibility + return m0 +} + type PayloadRepositoryDeprecated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository. @@ -2050,11 +3918,6 @@ func (x *PayloadRepositoryDeprecated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryDeprecated.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryDeprecated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{13} -} - func (x *PayloadRepositoryDeprecated) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2083,8 +3946,48 @@ func (x *PayloadRepositoryDeprecated) GetDeprecationMessage() string { return "" } +func (x *PayloadRepositoryDeprecated) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryDeprecated) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryDeprecated) SetVisibility(v v1alpha1.Visibility) { + x.Visibility = v +} + +func (x *PayloadRepositoryDeprecated) SetDeprecationMessage(v string) { + x.DeprecationMessage = v +} + +type PayloadRepositoryDeprecated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // visibility is the visibility of the repository. + Visibility v1alpha1.Visibility + // deprecation_message is the deprecation message set by the deprecation actor. + DeprecationMessage string +} + +func (b0 PayloadRepositoryDeprecated_builder) Build() *PayloadRepositoryDeprecated { + m0 := &PayloadRepositoryDeprecated{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.Visibility = b.Visibility + x.DeprecationMessage = b.DeprecationMessage + return m0 +} + type PayloadRepositoryUndeprecated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository. @@ -2120,11 +4023,6 @@ func (x *PayloadRepositoryUndeprecated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryUndeprecated.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryUndeprecated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{14} -} - func (x *PayloadRepositoryUndeprecated) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2146,8 +4044,41 @@ func (x *PayloadRepositoryUndeprecated) GetVisibility() v1alpha1.Visibility { return v1alpha1.Visibility(0) } +func (x *PayloadRepositoryUndeprecated) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryUndeprecated) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryUndeprecated) SetVisibility(v v1alpha1.Visibility) { + x.Visibility = v +} + +type PayloadRepositoryUndeprecated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // visibility is the visibility of the repository. + Visibility v1alpha1.Visibility +} + +func (b0 PayloadRepositoryUndeprecated_builder) Build() *PayloadRepositoryUndeprecated { + m0 := &PayloadRepositoryUndeprecated{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.Visibility = b.Visibility + return m0 +} + type PayloadRepositoryCommitPushed struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository. @@ -2193,11 +4124,6 @@ func (x *PayloadRepositoryCommitPushed) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryCommitPushed.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryCommitPushed) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{15} -} - func (x *PayloadRepositoryCommitPushed) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2254,8 +4180,76 @@ func (x *PayloadRepositoryCommitPushed) GetB5Digest() string { return "" } +func (x *PayloadRepositoryCommitPushed) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryCommitPushed) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryCommitPushed) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *PayloadRepositoryCommitPushed) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *PayloadRepositoryCommitPushed) SetTags(v []string) { + x.Tags = v +} + +func (x *PayloadRepositoryCommitPushed) SetDraftName(v string) { + x.DraftName = v +} + +func (x *PayloadRepositoryCommitPushed) SetManifestDigest(v string) { + x.ManifestDigest = v +} + +func (x *PayloadRepositoryCommitPushed) SetB5Digest(v string) { + x.B5Digest = v +} + +type PayloadRepositoryCommitPushed_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // repository_id is the id of the repository within which the commit was created. + RepositoryId string + // repository_name is the name of the repository within which the commit was created. + RepositoryName string + // tags are the tags included in the push. Optional. + Tags []string + // draft_name is the name of the draft. Optional. + DraftName string + // manifest_digest is the module's manifest digest. + ManifestDigest string + // b5_digest is the module's b5 digest. + B5Digest string +} + +func (b0 PayloadRepositoryCommitPushed_builder) Build() *PayloadRepositoryCommitPushed { + m0 := &PayloadRepositoryCommitPushed{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.RepositoryId = b.RepositoryId + x.RepositoryName = b.RepositoryName + x.Tags = b.Tags + x.DraftName = b.DraftName + x.ManifestDigest = b.ManifestDigest + x.B5Digest = b.B5Digest + return m0 +} + type PayloadRepositoryContributorAdded struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository. @@ -2295,11 +4289,6 @@ func (x *PayloadRepositoryContributorAdded) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryContributorAdded.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryContributorAdded) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{16} -} - func (x *PayloadRepositoryContributorAdded) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2335,8 +4324,55 @@ func (x *PayloadRepositoryContributorAdded) GetContributorRole() v1alpha1.Reposi return v1alpha1.RepositoryRole(0) } +func (x *PayloadRepositoryContributorAdded) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryContributorAdded) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryContributorAdded) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *PayloadRepositoryContributorAdded) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *PayloadRepositoryContributorAdded) SetContributorRole(v v1alpha1.RepositoryRole) { + x.ContributorRole = v +} + +type PayloadRepositoryContributorAdded_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // repository_id is the id of the repository with the new contributor. + RepositoryId string + // repository_name is the name of the repository with the new contributor. + RepositoryName string + // contributor_role is the role granted to the contributor added to the repository. + ContributorRole v1alpha1.RepositoryRole +} + +func (b0 PayloadRepositoryContributorAdded_builder) Build() *PayloadRepositoryContributorAdded { + m0 := &PayloadRepositoryContributorAdded{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.RepositoryId = b.RepositoryId + x.RepositoryName = b.RepositoryName + x.ContributorRole = b.ContributorRole + return m0 +} + type PayloadRepositoryContributorRoleChanged struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository. @@ -2378,11 +4414,6 @@ func (x *PayloadRepositoryContributorRoleChanged) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryContributorRoleChanged.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryContributorRoleChanged) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{17} -} - func (x *PayloadRepositoryContributorRoleChanged) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2425,8 +4456,62 @@ func (x *PayloadRepositoryContributorRoleChanged) GetNewRole() v1alpha1.Reposito return v1alpha1.RepositoryRole(0) } +func (x *PayloadRepositoryContributorRoleChanged) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryContributorRoleChanged) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryContributorRoleChanged) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *PayloadRepositoryContributorRoleChanged) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *PayloadRepositoryContributorRoleChanged) SetOldRole(v v1alpha1.RepositoryRole) { + x.OldRole = v +} + +func (x *PayloadRepositoryContributorRoleChanged) SetNewRole(v v1alpha1.RepositoryRole) { + x.NewRole = v +} + +type PayloadRepositoryContributorRoleChanged_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // repository_id is the id of the repository within which the role was changed. + RepositoryId string + // repository_name is the name of the repository within which the role was changed. + RepositoryName string + // old_role is the old role of the contributor whose role was changed. + OldRole v1alpha1.RepositoryRole + // new_role is the new role of the contributor whose role was changed. + NewRole v1alpha1.RepositoryRole +} + +func (b0 PayloadRepositoryContributorRoleChanged_builder) Build() *PayloadRepositoryContributorRoleChanged { + m0 := &PayloadRepositoryContributorRoleChanged{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.RepositoryId = b.RepositoryId + x.RepositoryName = b.RepositoryName + x.OldRole = b.OldRole + x.NewRole = b.NewRole + return m0 +} + type PayloadRepositoryContributorRemoved struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository. @@ -2466,11 +4551,6 @@ func (x *PayloadRepositoryContributorRemoved) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryContributorRemoved.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryContributorRemoved) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{18} -} - func (x *PayloadRepositoryContributorRemoved) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2506,8 +4586,55 @@ func (x *PayloadRepositoryContributorRemoved) GetContributorRole() v1alpha1.Repo return v1alpha1.RepositoryRole(0) } +func (x *PayloadRepositoryContributorRemoved) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryContributorRemoved) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryContributorRemoved) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *PayloadRepositoryContributorRemoved) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *PayloadRepositoryContributorRemoved) SetContributorRole(v v1alpha1.RepositoryRole) { + x.ContributorRole = v +} + +type PayloadRepositoryContributorRemoved_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // repository_id is the id of the repository that the contributor was removed from. + RepositoryId string + // repository_name is the name of the repository that the contributor was removed from. + RepositoryName string + // contributor_role is the role that the contributor had when removed from the repository. + ContributorRole v1alpha1.RepositoryRole +} + +func (b0 PayloadRepositoryContributorRemoved_builder) Build() *PayloadRepositoryContributorRemoved { + m0 := &PayloadRepositoryContributorRemoved{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.RepositoryId = b.RepositoryId + x.RepositoryName = b.RepositoryName + x.ContributorRole = b.ContributorRole + return m0 +} + type PayloadRepositoryVisibilityChanged struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository. @@ -2545,11 +4672,6 @@ func (x *PayloadRepositoryVisibilityChanged) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryVisibilityChanged.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryVisibilityChanged) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{19} -} - func (x *PayloadRepositoryVisibilityChanged) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2578,8 +4700,48 @@ func (x *PayloadRepositoryVisibilityChanged) GetNewVisibility() v1alpha1.Visibil return v1alpha1.Visibility(0) } +func (x *PayloadRepositoryVisibilityChanged) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryVisibilityChanged) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryVisibilityChanged) SetOldVisibility(v v1alpha1.Visibility) { + x.OldVisibility = v +} + +func (x *PayloadRepositoryVisibilityChanged) SetNewVisibility(v v1alpha1.Visibility) { + x.NewVisibility = v +} + +type PayloadRepositoryVisibilityChanged_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // old_visibility is the old visibility of the repository. + OldVisibility v1alpha1.Visibility + // new_visibility is the new visibility of the repository. + NewVisibility v1alpha1.Visibility +} + +func (b0 PayloadRepositoryVisibilityChanged_builder) Build() *PayloadRepositoryVisibilityChanged { + m0 := &PayloadRepositoryVisibilityChanged{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.OldVisibility = b.OldVisibility + x.NewVisibility = b.NewVisibility + return m0 +} + type PayloadRepositoryDefaultLabelNameChanged struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository. @@ -2617,11 +4779,6 @@ func (x *PayloadRepositoryDefaultLabelNameChanged) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryDefaultLabelNameChanged.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryDefaultLabelNameChanged) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{20} -} - func (x *PayloadRepositoryDefaultLabelNameChanged) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2650,13 +4807,53 @@ func (x *PayloadRepositoryDefaultLabelNameChanged) GetNewDefaultLabelName() stri return "" } +func (x *PayloadRepositoryDefaultLabelNameChanged) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) SetOldDefaultLabelName(v string) { + x.OldDefaultLabelName = v +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) SetNewDefaultLabelName(v string) { + x.NewDefaultLabelName = v +} + +type PayloadRepositoryDefaultLabelNameChanged_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // old_default_label_name is the old default label name of the repository. + OldDefaultLabelName string + // new_default_label_name is the new default label name of the repository. + NewDefaultLabelName string +} + +func (b0 PayloadRepositoryDefaultLabelNameChanged_builder) Build() *PayloadRepositoryDefaultLabelNameChanged { + m0 := &PayloadRepositoryDefaultLabelNameChanged{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.OldDefaultLabelName = b.OldDefaultLabelName + x.NewDefaultLabelName = b.NewDefaultLabelName + return m0 +} + // PayloadRepositoryDefaultBranchChanged is deprecated. // // Use PayloadRepositoryDefaultLabelNameChanged instead. // // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. type PayloadRepositoryDefaultBranchChanged struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository. @@ -2694,11 +4891,6 @@ func (x *PayloadRepositoryDefaultBranchChanged) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryDefaultBranchChanged.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryDefaultBranchChanged) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{21} -} - func (x *PayloadRepositoryDefaultBranchChanged) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2727,8 +4919,49 @@ func (x *PayloadRepositoryDefaultBranchChanged) GetNewDefaultBranch() string { return "" } +func (x *PayloadRepositoryDefaultBranchChanged) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryDefaultBranchChanged) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryDefaultBranchChanged) SetOldDefaultBranch(v string) { + x.OldDefaultBranch = v +} + +func (x *PayloadRepositoryDefaultBranchChanged) SetNewDefaultBranch(v string) { + x.NewDefaultBranch = v +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +type PayloadRepositoryDefaultBranchChanged_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // old_default_branch is the old default branch of the repository. + OldDefaultBranch string + // new_default_branch is the new default branch of the repository. + NewDefaultBranch string +} + +func (b0 PayloadRepositoryDefaultBranchChanged_builder) Build() *PayloadRepositoryDefaultBranchChanged { + m0 := &PayloadRepositoryDefaultBranchChanged{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.OldDefaultBranch = b.OldDefaultBranch + x.NewDefaultBranch = b.NewDefaultBranch + return m0 +} + type PayloadPluginCreated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the plugin. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the plugin. @@ -2764,11 +4997,6 @@ func (x *PayloadPluginCreated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadPluginCreated.ProtoReflect.Descriptor instead. -func (*PayloadPluginCreated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{22} -} - func (x *PayloadPluginCreated) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2790,8 +5018,41 @@ func (x *PayloadPluginCreated) GetPluginType() string { return "" } +func (x *PayloadPluginCreated) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadPluginCreated) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadPluginCreated) SetPluginType(v string) { + x.PluginType = v +} + +type PayloadPluginCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin. + OwnerId string + // owner_name is the name of the owner of the plugin. + OwnerName string + // plugin_type is the type of the plugin. + PluginType string +} + +func (b0 PayloadPluginCreated_builder) Build() *PayloadPluginCreated { + m0 := &PayloadPluginCreated{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.PluginType = b.PluginType + return m0 +} + type PayloadPluginDeleted struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the check plugin. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the check plugin. @@ -2827,11 +5088,6 @@ func (x *PayloadPluginDeleted) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadPluginDeleted.ProtoReflect.Descriptor instead. -func (*PayloadPluginDeleted) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{23} -} - func (x *PayloadPluginDeleted) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2853,8 +5109,41 @@ func (x *PayloadPluginDeleted) GetPluginType() string { return "" } +func (x *PayloadPluginDeleted) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadPluginDeleted) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadPluginDeleted) SetPluginType(v string) { + x.PluginType = v +} + +type PayloadPluginDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the check plugin. + OwnerId string + // owner_name is the name of the owner of the check plugin. + OwnerName string + // plugin_type is the type of the plugin. + PluginType string +} + +func (b0 PayloadPluginDeleted_builder) Build() *PayloadPluginDeleted { + m0 := &PayloadPluginDeleted{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.PluginType = b.PluginType + return m0 +} + type PayloadPluginCommitPushed struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the plugin. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the plugin. @@ -2894,11 +5183,6 @@ func (x *PayloadPluginCommitPushed) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadPluginCommitPushed.ProtoReflect.Descriptor instead. -func (*PayloadPluginCommitPushed) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{24} -} - func (x *PayloadPluginCommitPushed) GetOwnerId() string { if x != nil { return x.OwnerId @@ -2934,8 +5218,55 @@ func (x *PayloadPluginCommitPushed) GetP1Digest() string { return "" } +func (x *PayloadPluginCommitPushed) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadPluginCommitPushed) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadPluginCommitPushed) SetPluginId(v string) { + x.PluginId = v +} + +func (x *PayloadPluginCommitPushed) SetPluginName(v string) { + x.PluginName = v +} + +func (x *PayloadPluginCommitPushed) SetP1Digest(v string) { + x.P1Digest = v +} + +type PayloadPluginCommitPushed_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin. + OwnerId string + // owner_name is the name of the owner of the plugin. + OwnerName string + // plugin_id is the id of the plugin. + PluginId string + // plugin_name is the name of the plugin. + PluginName string + // p1_digest is the p1 digest of the pushed plugin commit. + P1Digest string +} + +func (b0 PayloadPluginCommitPushed_builder) Build() *PayloadPluginCommitPushed { + m0 := &PayloadPluginCommitPushed{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.PluginId = b.PluginId + x.PluginName = b.PluginName + x.P1Digest = b.P1Digest + return m0 +} + type PayloadUserCreated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -2965,13 +5296,20 @@ func (x *PayloadUserCreated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadUserCreated.ProtoReflect.Descriptor instead. -func (*PayloadUserCreated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{25} +type PayloadUserCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserCreated_builder) Build() *PayloadUserCreated { + m0 := &PayloadUserCreated{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PayloadUserReactivated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3001,13 +5339,20 @@ func (x *PayloadUserReactivated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadUserReactivated.ProtoReflect.Descriptor instead. -func (*PayloadUserReactivated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{26} +type PayloadUserReactivated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserReactivated_builder) Build() *PayloadUserReactivated { + m0 := &PayloadUserReactivated{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PayloadUserDeactivated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3037,13 +5382,20 @@ func (x *PayloadUserDeactivated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadUserDeactivated.ProtoReflect.Descriptor instead. -func (*PayloadUserDeactivated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{27} +type PayloadUserDeactivated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserDeactivated_builder) Build() *PayloadUserDeactivated { + m0 := &PayloadUserDeactivated{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PayloadUserDeleted struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3073,13 +5425,20 @@ func (x *PayloadUserDeleted) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadUserDeleted.ProtoReflect.Descriptor instead. -func (*PayloadUserDeleted) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{28} +type PayloadUserDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserDeleted_builder) Build() *PayloadUserDeleted { + m0 := &PayloadUserDeleted{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PayloadUserLoggedIn struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3109,13 +5468,20 @@ func (x *PayloadUserLoggedIn) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadUserLoggedIn.ProtoReflect.Descriptor instead. -func (*PayloadUserLoggedIn) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{29} +type PayloadUserLoggedIn_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserLoggedIn_builder) Build() *PayloadUserLoggedIn { + m0 := &PayloadUserLoggedIn{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PayloadUserLoggedOut struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3145,9 +5511,16 @@ func (x *PayloadUserLoggedOut) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadUserLoggedOut.ProtoReflect.Descriptor instead. -func (*PayloadUserLoggedOut) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{30} +type PayloadUserLoggedOut_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserLoggedOut_builder) Build() *PayloadUserLoggedOut { + m0 := &PayloadUserLoggedOut{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // PayloadUserAutoMergedFromNewIdP is the payload for the audit event @@ -3155,7 +5528,7 @@ func (*PayloadUserLoggedOut) Descriptor() ([]byte, []int) { // to be included, since the new user is automatically merged to an existing user // without the new user being created. type PayloadUserAutoMergedFromNewIdP struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3185,13 +5558,20 @@ func (x *PayloadUserAutoMergedFromNewIdP) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadUserAutoMergedFromNewIdP.ProtoReflect.Descriptor instead. -func (*PayloadUserAutoMergedFromNewIdP) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{31} +type PayloadUserAutoMergedFromNewIdP_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserAutoMergedFromNewIdP_builder) Build() *PayloadUserAutoMergedFromNewIdP { + m0 := &PayloadUserAutoMergedFromNewIdP{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PayloadCuratedPluginCreated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the plugin. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the plugin. @@ -3225,11 +5605,6 @@ func (x *PayloadCuratedPluginCreated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadCuratedPluginCreated.ProtoReflect.Descriptor instead. -func (*PayloadCuratedPluginCreated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{32} -} - func (x *PayloadCuratedPluginCreated) GetOwnerId() string { if x != nil { return x.OwnerId @@ -3244,8 +5619,34 @@ func (x *PayloadCuratedPluginCreated) GetOwnerName() string { return "" } +func (x *PayloadCuratedPluginCreated) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadCuratedPluginCreated) SetOwnerName(v string) { + x.OwnerName = v +} + +type PayloadCuratedPluginCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin. + OwnerId string + // owner_name is the name of the owner of the plugin. + OwnerName string +} + +func (b0 PayloadCuratedPluginCreated_builder) Build() *PayloadCuratedPluginCreated { + m0 := &PayloadCuratedPluginCreated{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + return m0 +} + type PayloadCuratedPluginDeleted struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the plugin. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the plugin. @@ -3279,11 +5680,6 @@ func (x *PayloadCuratedPluginDeleted) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadCuratedPluginDeleted.ProtoReflect.Descriptor instead. -func (*PayloadCuratedPluginDeleted) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{33} -} - func (x *PayloadCuratedPluginDeleted) GetOwnerId() string { if x != nil { return x.OwnerId @@ -3298,8 +5694,34 @@ func (x *PayloadCuratedPluginDeleted) GetOwnerName() string { return "" } +func (x *PayloadCuratedPluginDeleted) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadCuratedPluginDeleted) SetOwnerName(v string) { + x.OwnerName = v +} + +type PayloadCuratedPluginDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin. + OwnerId string + // owner_name is the name of the owner of the plugin. + OwnerName string +} + +func (b0 PayloadCuratedPluginDeleted_builder) Build() *PayloadCuratedPluginDeleted { + m0 := &PayloadCuratedPluginDeleted{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + return m0 +} + type PayloadTokenCreated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the token. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // token_expiry_time is the expiry time of the token. @@ -3333,11 +5755,6 @@ func (x *PayloadTokenCreated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadTokenCreated.ProtoReflect.Descriptor instead. -func (*PayloadTokenCreated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{34} -} - func (x *PayloadTokenCreated) GetOwnerId() string { if x != nil { return x.OwnerId @@ -3352,8 +5769,45 @@ func (x *PayloadTokenCreated) GetTokenExpiryTime() *timestamppb.Timestamp { return nil } +func (x *PayloadTokenCreated) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadTokenCreated) SetTokenExpiryTime(v *timestamppb.Timestamp) { + x.TokenExpiryTime = v +} + +func (x *PayloadTokenCreated) HasTokenExpiryTime() bool { + if x == nil { + return false + } + return x.TokenExpiryTime != nil +} + +func (x *PayloadTokenCreated) ClearTokenExpiryTime() { + x.TokenExpiryTime = nil +} + +type PayloadTokenCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the token. + OwnerId string + // token_expiry_time is the expiry time of the token. + TokenExpiryTime *timestamppb.Timestamp +} + +func (b0 PayloadTokenCreated_builder) Build() *PayloadTokenCreated { + m0 := &PayloadTokenCreated{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.TokenExpiryTime = b.TokenExpiryTime + return m0 +} + type PayloadTokenDeleted struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the token. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -3385,11 +5839,6 @@ func (x *PayloadTokenDeleted) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadTokenDeleted.ProtoReflect.Descriptor instead. -func (*PayloadTokenDeleted) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{35} -} - func (x *PayloadTokenDeleted) GetOwnerId() string { if x != nil { return x.OwnerId @@ -3397,8 +5846,27 @@ func (x *PayloadTokenDeleted) GetOwnerId() string { return "" } +func (x *PayloadTokenDeleted) SetOwnerId(v string) { + x.OwnerId = v +} + +type PayloadTokenDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the token. + OwnerId string +} + +func (b0 PayloadTokenDeleted_builder) Build() *PayloadTokenDeleted { + m0 := &PayloadTokenDeleted{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + return m0 +} + type PayloadSCIMTokenCreated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // token_expiry_time is the expiry time of the token. TokenExpiryTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=token_expiry_time,json=tokenExpiryTime,proto3" json:"token_expiry_time,omitempty"` unknownFields protoimpl.UnknownFields @@ -3430,11 +5898,6 @@ func (x *PayloadSCIMTokenCreated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadSCIMTokenCreated.ProtoReflect.Descriptor instead. -func (*PayloadSCIMTokenCreated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{36} -} - func (x *PayloadSCIMTokenCreated) GetTokenExpiryTime() *timestamppb.Timestamp { if x != nil { return x.TokenExpiryTime @@ -3442,8 +5905,38 @@ func (x *PayloadSCIMTokenCreated) GetTokenExpiryTime() *timestamppb.Timestamp { return nil } +func (x *PayloadSCIMTokenCreated) SetTokenExpiryTime(v *timestamppb.Timestamp) { + x.TokenExpiryTime = v +} + +func (x *PayloadSCIMTokenCreated) HasTokenExpiryTime() bool { + if x == nil { + return false + } + return x.TokenExpiryTime != nil +} + +func (x *PayloadSCIMTokenCreated) ClearTokenExpiryTime() { + x.TokenExpiryTime = nil +} + +type PayloadSCIMTokenCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // token_expiry_time is the expiry time of the token. + TokenExpiryTime *timestamppb.Timestamp +} + +func (b0 PayloadSCIMTokenCreated_builder) Build() *PayloadSCIMTokenCreated { + m0 := &PayloadSCIMTokenCreated{} + b, x := &b0, m0 + _, _ = b, x + x.TokenExpiryTime = b.TokenExpiryTime + return m0 +} + type PayloadSCIMTokenDeleted struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3473,9 +5966,16 @@ func (x *PayloadSCIMTokenDeleted) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadSCIMTokenDeleted.ProtoReflect.Descriptor instead. -func (*PayloadSCIMTokenDeleted) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{37} +type PayloadSCIMTokenDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadSCIMTokenDeleted_builder) Build() *PayloadSCIMTokenDeleted { + m0 := &PayloadSCIMTokenDeleted{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // PayloadRepositoryCommitDeleted is deprecated. @@ -3484,7 +5984,7 @@ func (*PayloadSCIMTokenDeleted) Descriptor() ([]byte, []int) { // // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. type PayloadRepositoryCommitDeleted struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository from which the commit will be deleted. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository from which the commit will be deleted. @@ -3521,12 +6021,7 @@ func (x *PayloadRepositoryCommitDeleted) ProtoReflect() protoreflect.Message { } return ms } - return mi.MessageOf(x) -} - -// Deprecated: Use PayloadRepositoryCommitDeleted.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryCommitDeleted) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{38} + return mi.MessageOf(x) } func (x *PayloadRepositoryCommitDeleted) GetOwnerId() string { @@ -3564,8 +6059,56 @@ func (x *PayloadRepositoryCommitDeleted) GetDraftName() string { return "" } +func (x *PayloadRepositoryCommitDeleted) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryCommitDeleted) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryCommitDeleted) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *PayloadRepositoryCommitDeleted) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *PayloadRepositoryCommitDeleted) SetDraftName(v string) { + x.DraftName = v +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +type PayloadRepositoryCommitDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository from which the commit will be deleted. + OwnerId string + // owner_name is the name of the owner of the repository from which the commit will be deleted. + OwnerName string + // repository_id is the id of the repository from which the commit will be deleted. + RepositoryId string + // repository_name is the name of the repository from which the commit will be deleted. + RepositoryName string + // draft_name is the name of the draft. Optional. + DraftName string +} + +func (b0 PayloadRepositoryCommitDeleted_builder) Build() *PayloadRepositoryCommitDeleted { + m0 := &PayloadRepositoryCommitDeleted{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.RepositoryId = b.RepositoryId + x.RepositoryName = b.RepositoryName + x.DraftName = b.DraftName + return m0 +} + type PayloadRepositoryLabelCreated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository on which the label was created. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository on which the label was created. @@ -3609,11 +6152,6 @@ func (x *PayloadRepositoryLabelCreated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryLabelCreated.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryLabelCreated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{39} -} - func (x *PayloadRepositoryLabelCreated) GetOwnerId() string { if x != nil { return x.OwnerId @@ -3657,8 +6195,65 @@ func (x *PayloadRepositoryLabelCreated) GetCommitId() string { return "" } +func (x *PayloadRepositoryLabelCreated) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryLabelCreated) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryLabelCreated) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *PayloadRepositoryLabelCreated) SetRepositoryName(v string) { + x.RepositoryName = v +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *PayloadRepositoryLabelCreated) SetLabelNamespace(v string) { + x.LabelNamespace = v +} + +func (x *PayloadRepositoryLabelCreated) SetCommitId(v string) { + x.CommitId = v +} + +type PayloadRepositoryLabelCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository on which the label was created. + OwnerId string + // owner_name is the name of the owner of the repository on which the label was created. + OwnerName string + // repository_id is the id of the repository on which the label was created. + RepositoryId string + // repository_name is the name of the repository from which the label was created. + RepositoryName string + // label_namespace is the namespace of the label that was created. + // + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + LabelNamespace string + // commit_id is the id of the commit on which the label was created. + CommitId string +} + +func (b0 PayloadRepositoryLabelCreated_builder) Build() *PayloadRepositoryLabelCreated { + m0 := &PayloadRepositoryLabelCreated{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.RepositoryId = b.RepositoryId + x.RepositoryName = b.RepositoryName + x.LabelNamespace = b.LabelNamespace + x.CommitId = b.CommitId + return m0 +} + type PayloadRepositoryLabelMoved struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository on which the label was moved. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository on which the label was moved. @@ -3704,11 +6299,6 @@ func (x *PayloadRepositoryLabelMoved) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryLabelMoved.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryLabelMoved) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{40} -} - func (x *PayloadRepositoryLabelMoved) GetOwnerId() string { if x != nil { return x.OwnerId @@ -3759,8 +6349,72 @@ func (x *PayloadRepositoryLabelMoved) GetFromCommitId() string { return "" } +func (x *PayloadRepositoryLabelMoved) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryLabelMoved) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryLabelMoved) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *PayloadRepositoryLabelMoved) SetRepositoryName(v string) { + x.RepositoryName = v +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *PayloadRepositoryLabelMoved) SetLabelNamespace(v string) { + x.LabelNamespace = v +} + +func (x *PayloadRepositoryLabelMoved) SetToCommitId(v string) { + x.ToCommitId = v +} + +func (x *PayloadRepositoryLabelMoved) SetFromCommitId(v string) { + x.FromCommitId = v +} + +type PayloadRepositoryLabelMoved_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository on which the label was moved. + OwnerId string + // owner_name is the name of the owner of the repository on which the label was moved. + OwnerName string + // repository_id is the id of the repository on which the label was moved. + RepositoryId string + // repository_name is the name of the repository from which the label was moved. + RepositoryName string + // label_namespace is the namespace of the label that was moved. + // + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + LabelNamespace string + // to_commit_id is the id of the commit on which the label was moved to. + ToCommitId string + // from_commit_id is the id of the commit on which the label was moved from. + FromCommitId string +} + +func (b0 PayloadRepositoryLabelMoved_builder) Build() *PayloadRepositoryLabelMoved { + m0 := &PayloadRepositoryLabelMoved{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.RepositoryId = b.RepositoryId + x.RepositoryName = b.RepositoryName + x.LabelNamespace = b.LabelNamespace + x.ToCommitId = b.ToCommitId + x.FromCommitId = b.FromCommitId + return m0 +} + type PayloadRepositoryLabelArchived struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository on which the label was archived. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository on which the label was archived. @@ -3798,11 +6452,6 @@ func (x *PayloadRepositoryLabelArchived) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryLabelArchived.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryLabelArchived) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{41} -} - func (x *PayloadRepositoryLabelArchived) GetOwnerId() string { if x != nil { return x.OwnerId @@ -3831,8 +6480,48 @@ func (x *PayloadRepositoryLabelArchived) GetRepositoryName() string { return "" } +func (x *PayloadRepositoryLabelArchived) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryLabelArchived) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryLabelArchived) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *PayloadRepositoryLabelArchived) SetRepositoryName(v string) { + x.RepositoryName = v +} + +type PayloadRepositoryLabelArchived_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository on which the label was archived. + OwnerId string + // owner_name is the name of the owner of the repository on which the label was archived. + OwnerName string + // repository_id is the id of the repository on which the label was archived. + RepositoryId string + // repository_name is the name of the repository from which the label was archived. + RepositoryName string +} + +func (b0 PayloadRepositoryLabelArchived_builder) Build() *PayloadRepositoryLabelArchived { + m0 := &PayloadRepositoryLabelArchived{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.RepositoryId = b.RepositoryId + x.RepositoryName = b.RepositoryName + return m0 +} + type PayloadRepositoryLabelUnarchived struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the repository on which the label was unarchived. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the repository on which the label was unarchived. @@ -3870,11 +6559,6 @@ func (x *PayloadRepositoryLabelUnarchived) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadRepositoryLabelUnarchived.ProtoReflect.Descriptor instead. -func (*PayloadRepositoryLabelUnarchived) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{42} -} - func (x *PayloadRepositoryLabelUnarchived) GetOwnerId() string { if x != nil { return x.OwnerId @@ -3903,8 +6587,48 @@ func (x *PayloadRepositoryLabelUnarchived) GetRepositoryName() string { return "" } +func (x *PayloadRepositoryLabelUnarchived) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadRepositoryLabelUnarchived) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadRepositoryLabelUnarchived) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *PayloadRepositoryLabelUnarchived) SetRepositoryName(v string) { + x.RepositoryName = v +} + +type PayloadRepositoryLabelUnarchived_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository on which the label was unarchived. + OwnerId string + // owner_name is the name of the owner of the repository on which the label was unarchived. + OwnerName string + // repository_id is the id of the repository on which the label was unarchived. + RepositoryId string + // repository_name is the name of the repository from which the label was unarchived. + RepositoryName string +} + +func (b0 PayloadRepositoryLabelUnarchived_builder) Build() *PayloadRepositoryLabelUnarchived { + m0 := &PayloadRepositoryLabelUnarchived{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.RepositoryId = b.RepositoryId + x.RepositoryName = b.RepositoryName + return m0 +} + type PayloadServerBreakingChangePolicyEnabled struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // category is the category of breaking changes. Category v1alpha1.BreakingChangeCategory `protobuf:"varint,1,opt,name=category,proto3,enum=buf.alpha.registry.v1alpha1.BreakingChangeCategory" json:"category,omitempty"` // ignore_unstable_packages tracks breaking change enforcement for unstable packages. @@ -3938,11 +6662,6 @@ func (x *PayloadServerBreakingChangePolicyEnabled) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use PayloadServerBreakingChangePolicyEnabled.ProtoReflect.Descriptor instead. -func (*PayloadServerBreakingChangePolicyEnabled) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{43} -} - func (x *PayloadServerBreakingChangePolicyEnabled) GetCategory() v1alpha1.BreakingChangeCategory { if x != nil { return x.Category @@ -3957,8 +6676,45 @@ func (x *PayloadServerBreakingChangePolicyEnabled) GetIgnoreUnstablePackages() b return false } +func (x *PayloadServerBreakingChangePolicyEnabled) SetCategory(v v1alpha1.BreakingChangeCategory) { + x.Category = v +} + +func (x *PayloadServerBreakingChangePolicyEnabled) SetIgnoreUnstablePackages(v bool) { + x.IgnoreUnstablePackages = &v +} + +func (x *PayloadServerBreakingChangePolicyEnabled) HasIgnoreUnstablePackages() bool { + if x == nil { + return false + } + return x.IgnoreUnstablePackages != nil +} + +func (x *PayloadServerBreakingChangePolicyEnabled) ClearIgnoreUnstablePackages() { + x.IgnoreUnstablePackages = nil +} + +type PayloadServerBreakingChangePolicyEnabled_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // category is the category of breaking changes. + Category v1alpha1.BreakingChangeCategory + // ignore_unstable_packages tracks breaking change enforcement for unstable packages. + IgnoreUnstablePackages *bool +} + +func (b0 PayloadServerBreakingChangePolicyEnabled_builder) Build() *PayloadServerBreakingChangePolicyEnabled { + m0 := &PayloadServerBreakingChangePolicyEnabled{} + b, x := &b0, m0 + _, _ = b, x + x.Category = b.Category + x.IgnoreUnstablePackages = b.IgnoreUnstablePackages + return m0 +} + type PayloadServerBreakingChangePolicyDisabled struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3988,13 +6744,20 @@ func (x *PayloadServerBreakingChangePolicyDisabled) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use PayloadServerBreakingChangePolicyDisabled.ProtoReflect.Descriptor instead. -func (*PayloadServerBreakingChangePolicyDisabled) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{44} +type PayloadServerBreakingChangePolicyDisabled_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadServerBreakingChangePolicyDisabled_builder) Build() *PayloadServerBreakingChangePolicyDisabled { + m0 := &PayloadServerBreakingChangePolicyDisabled{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PayloadServerUniquenessPolicyEnabled struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -4024,13 +6787,20 @@ func (x *PayloadServerUniquenessPolicyEnabled) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use PayloadServerUniquenessPolicyEnabled.ProtoReflect.Descriptor instead. -func (*PayloadServerUniquenessPolicyEnabled) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{45} +type PayloadServerUniquenessPolicyEnabled_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadServerUniquenessPolicyEnabled_builder) Build() *PayloadServerUniquenessPolicyEnabled { + m0 := &PayloadServerUniquenessPolicyEnabled{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PayloadServerUniquenessPolicyDisabled struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -4060,13 +6830,20 @@ func (x *PayloadServerUniquenessPolicyDisabled) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use PayloadServerUniquenessPolicyDisabled.ProtoReflect.Descriptor instead. -func (*PayloadServerUniquenessPolicyDisabled) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{46} +type PayloadServerUniquenessPolicyDisabled_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadServerUniquenessPolicyDisabled_builder) Build() *PayloadServerUniquenessPolicyDisabled { + m0 := &PayloadServerUniquenessPolicyDisabled{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type PayloadDeviceAuthorizationGrantApproved struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // client_id is the id of the registered oauth2 client of the grant. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -4098,11 +6875,6 @@ func (x *PayloadDeviceAuthorizationGrantApproved) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use PayloadDeviceAuthorizationGrantApproved.ProtoReflect.Descriptor instead. -func (*PayloadDeviceAuthorizationGrantApproved) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{47} -} - func (x *PayloadDeviceAuthorizationGrantApproved) GetClientId() string { if x != nil { return x.ClientId @@ -4110,8 +6882,27 @@ func (x *PayloadDeviceAuthorizationGrantApproved) GetClientId() string { return "" } +func (x *PayloadDeviceAuthorizationGrantApproved) SetClientId(v string) { + x.ClientId = v +} + +type PayloadDeviceAuthorizationGrantApproved_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // client_id is the id of the registered oauth2 client of the grant. + ClientId string +} + +func (b0 PayloadDeviceAuthorizationGrantApproved_builder) Build() *PayloadDeviceAuthorizationGrantApproved { + m0 := &PayloadDeviceAuthorizationGrantApproved{} + b, x := &b0, m0 + _, _ = b, x + x.ClientId = b.ClientId + return m0 +} + type PayloadDeviceAuthorizationGrantDenied struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // client_id is the id of the registered oauth2 client of the grant. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -4143,11 +6934,6 @@ func (x *PayloadDeviceAuthorizationGrantDenied) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use PayloadDeviceAuthorizationGrantDenied.ProtoReflect.Descriptor instead. -func (*PayloadDeviceAuthorizationGrantDenied) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{48} -} - func (x *PayloadDeviceAuthorizationGrantDenied) GetClientId() string { if x != nil { return x.ClientId @@ -4155,8 +6941,27 @@ func (x *PayloadDeviceAuthorizationGrantDenied) GetClientId() string { return "" } +func (x *PayloadDeviceAuthorizationGrantDenied) SetClientId(v string) { + x.ClientId = v +} + +type PayloadDeviceAuthorizationGrantDenied_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // client_id is the id of the registered oauth2 client of the grant. + ClientId string +} + +func (b0 PayloadDeviceAuthorizationGrantDenied_builder) Build() *PayloadDeviceAuthorizationGrantDenied { + m0 := &PayloadDeviceAuthorizationGrantDenied{} + b, x := &b0, m0 + _, _ = b, x + x.ClientId = b.ClientId + return m0 +} + type PayloadPluginLabelCreated struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the plugin on which the label was created. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the plugin on which the label was created. @@ -4196,11 +7001,6 @@ func (x *PayloadPluginLabelCreated) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadPluginLabelCreated.ProtoReflect.Descriptor instead. -func (*PayloadPluginLabelCreated) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{49} -} - func (x *PayloadPluginLabelCreated) GetOwnerId() string { if x != nil { return x.OwnerId @@ -4236,8 +7036,55 @@ func (x *PayloadPluginLabelCreated) GetCommitId() string { return "" } +func (x *PayloadPluginLabelCreated) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadPluginLabelCreated) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadPluginLabelCreated) SetPluginId(v string) { + x.PluginId = v +} + +func (x *PayloadPluginLabelCreated) SetPluginName(v string) { + x.PluginName = v +} + +func (x *PayloadPluginLabelCreated) SetCommitId(v string) { + x.CommitId = v +} + +type PayloadPluginLabelCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin on which the label was created. + OwnerId string + // owner_name is the name of the owner of the plugin on which the label was created. + OwnerName string + // plugin_id is the id of the plugin on which the label was created. + PluginId string + // plugin_name is the name of the plugin from which the label was created. + PluginName string + // commit_id is the id of the commit on which the label was created. + CommitId string +} + +func (b0 PayloadPluginLabelCreated_builder) Build() *PayloadPluginLabelCreated { + m0 := &PayloadPluginLabelCreated{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.PluginId = b.PluginId + x.PluginName = b.PluginName + x.CommitId = b.CommitId + return m0 +} + type PayloadPluginLabelMoved struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the plugin on which the label was moved. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the plugin on which the label was moved. @@ -4279,11 +7126,6 @@ func (x *PayloadPluginLabelMoved) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadPluginLabelMoved.ProtoReflect.Descriptor instead. -func (*PayloadPluginLabelMoved) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{50} -} - func (x *PayloadPluginLabelMoved) GetOwnerId() string { if x != nil { return x.OwnerId @@ -4326,8 +7168,62 @@ func (x *PayloadPluginLabelMoved) GetFromCommitId() string { return "" } +func (x *PayloadPluginLabelMoved) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadPluginLabelMoved) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadPluginLabelMoved) SetPluginId(v string) { + x.PluginId = v +} + +func (x *PayloadPluginLabelMoved) SetPluginName(v string) { + x.PluginName = v +} + +func (x *PayloadPluginLabelMoved) SetToCommitId(v string) { + x.ToCommitId = v +} + +func (x *PayloadPluginLabelMoved) SetFromCommitId(v string) { + x.FromCommitId = v +} + +type PayloadPluginLabelMoved_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin on which the label was moved. + OwnerId string + // owner_name is the name of the owner of the plugin on which the label was moved. + OwnerName string + // plugin_id is the id of the plugin on which the label was moved. + PluginId string + // plugin_name is the name of the plugin from which the label was moved. + PluginName string + // to_commit_id is the id of the commit on which the label was moved to. + ToCommitId string + // from_commit_id is the id of the commit on which the label was moved from. + FromCommitId string +} + +func (b0 PayloadPluginLabelMoved_builder) Build() *PayloadPluginLabelMoved { + m0 := &PayloadPluginLabelMoved{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.PluginId = b.PluginId + x.PluginName = b.PluginName + x.ToCommitId = b.ToCommitId + x.FromCommitId = b.FromCommitId + return m0 +} + type PayloadPluginLabelArchived struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the plugin on which the label was archived. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the plugin on which the label was archived. @@ -4365,11 +7261,6 @@ func (x *PayloadPluginLabelArchived) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadPluginLabelArchived.ProtoReflect.Descriptor instead. -func (*PayloadPluginLabelArchived) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{51} -} - func (x *PayloadPluginLabelArchived) GetOwnerId() string { if x != nil { return x.OwnerId @@ -4398,8 +7289,48 @@ func (x *PayloadPluginLabelArchived) GetPluginName() string { return "" } +func (x *PayloadPluginLabelArchived) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadPluginLabelArchived) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadPluginLabelArchived) SetPluginId(v string) { + x.PluginId = v +} + +func (x *PayloadPluginLabelArchived) SetPluginName(v string) { + x.PluginName = v +} + +type PayloadPluginLabelArchived_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin on which the label was archived. + OwnerId string + // owner_name is the name of the owner of the plugin on which the label was archived. + OwnerName string + // plugin_id is the id of the plugin on which the label was archived. + PluginId string + // plugin_name is the name of the plugin from which the label was archived. + PluginName string +} + +func (b0 PayloadPluginLabelArchived_builder) Build() *PayloadPluginLabelArchived { + m0 := &PayloadPluginLabelArchived{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.PluginId = b.PluginId + x.PluginName = b.PluginName + return m0 +} + type PayloadPluginLabelUnarchived struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // owner_id is the id of the owner of the plugin on which the label was unarchived. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // owner_name is the name of the owner of the plugin on which the label was unarchived. @@ -4437,11 +7368,6 @@ func (x *PayloadPluginLabelUnarchived) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PayloadPluginLabelUnarchived.ProtoReflect.Descriptor instead. -func (*PayloadPluginLabelUnarchived) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP(), []int{52} -} - func (x *PayloadPluginLabelUnarchived) GetOwnerId() string { if x != nil { return x.OwnerId @@ -4470,6 +7396,46 @@ func (x *PayloadPluginLabelUnarchived) GetPluginName() string { return "" } +func (x *PayloadPluginLabelUnarchived) SetOwnerId(v string) { + x.OwnerId = v +} + +func (x *PayloadPluginLabelUnarchived) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *PayloadPluginLabelUnarchived) SetPluginId(v string) { + x.PluginId = v +} + +func (x *PayloadPluginLabelUnarchived) SetPluginName(v string) { + x.PluginName = v +} + +type PayloadPluginLabelUnarchived_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin on which the label was unarchived. + OwnerId string + // owner_name is the name of the owner of the plugin on which the label was unarchived. + OwnerName string + // plugin_id is the id of the plugin on which the label was unarchived. + PluginId string + // plugin_name is the name of the plugin from which the label was unarchived. + PluginName string +} + +func (b0 PayloadPluginLabelUnarchived_builder) Build() *PayloadPluginLabelUnarchived { + m0 := &PayloadPluginLabelUnarchived{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerId = b.OwnerId + x.OwnerName = b.OwnerName + x.PluginId = b.PluginId + x.PluginName = b.PluginName + return m0 +} + var File_buf_alpha_audit_v1alpha1_event_proto protoreflect.FileDescriptor var file_buf_alpha_audit_v1alpha1_event_proto_rawDesc = []byte{ @@ -5527,18 +8493,6 @@ var file_buf_alpha_audit_v1alpha1_event_proto_rawDesc = []byte{ 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_audit_v1alpha1_event_proto_rawDescOnce sync.Once - file_buf_alpha_audit_v1alpha1_event_proto_rawDescData = file_buf_alpha_audit_v1alpha1_event_proto_rawDesc -) - -func file_buf_alpha_audit_v1alpha1_event_proto_rawDescGZIP() []byte { - file_buf_alpha_audit_v1alpha1_event_proto_rawDescOnce.Do(func() { - file_buf_alpha_audit_v1alpha1_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_audit_v1alpha1_event_proto_rawDescData) - }) - return file_buf_alpha_audit_v1alpha1_event_proto_rawDescData -} - var file_buf_alpha_audit_v1alpha1_event_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_buf_alpha_audit_v1alpha1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 53) var file_buf_alpha_audit_v1alpha1_event_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/audit/v1alpha1/event_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/audit/v1alpha1/event_protoopaque.pb.go new file mode 100644 index 0000000000..10304ba6fc --- /dev/null +++ b/private/gen/proto/go/buf/alpha/audit/v1alpha1/event_protoopaque.pb.go @@ -0,0 +1,8514 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/audit/v1alpha1/event.proto + +//go:build protoopaque + +package auditv1alpha1 + +import ( + v1alpha1 "github.com/bufbuild/buf/private/gen/proto/go/buf/alpha/registry/v1alpha1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// ActorType is the type of actor that caused the audited event. +type ActorType int32 + +const ( + ActorType_ACTOR_TYPE_UNSPECIFIED ActorType = 0 + ActorType_ACTOR_TYPE_USER ActorType = 1 + ActorType_ACTOR_TYPE_SYSTEM ActorType = 2 +) + +// Enum value maps for ActorType. +var ( + ActorType_name = map[int32]string{ + 0: "ACTOR_TYPE_UNSPECIFIED", + 1: "ACTOR_TYPE_USER", + 2: "ACTOR_TYPE_SYSTEM", + } + ActorType_value = map[string]int32{ + "ACTOR_TYPE_UNSPECIFIED": 0, + "ACTOR_TYPE_USER": 1, + "ACTOR_TYPE_SYSTEM": 2, + } +) + +func (x ActorType) Enum() *ActorType { + p := new(ActorType) + *p = x + return p +} + +func (x ActorType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ActorType) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_audit_v1alpha1_event_proto_enumTypes[0].Descriptor() +} + +func (ActorType) Type() protoreflect.EnumType { + return &file_buf_alpha_audit_v1alpha1_event_proto_enumTypes[0] +} + +func (x ActorType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// ResourceType is the type of the resource that was affected by the audited +// event. +type ResourceType int32 + +const ( + ResourceType_RESOURCE_TYPE_UNSPECIFIED ResourceType = 0 + ResourceType_RESOURCE_TYPE_USER ResourceType = 1 + ResourceType_RESOURCE_TYPE_ORGANIZATION ResourceType = 2 + ResourceType_RESOURCE_TYPE_ORGANIZATION_MEMBER ResourceType = 3 + ResourceType_RESOURCE_TYPE_ORGANIZATION_IDP_GROUP ResourceType = 9 + ResourceType_RESOURCE_TYPE_REPOSITORY ResourceType = 4 + ResourceType_RESOURCE_TYPE_REPOSITORY_CONTRIBUTOR ResourceType = 5 + ResourceType_RESOURCE_TYPE_REPOSITORY_COMMIT ResourceType = 6 + ResourceType_RESOURCE_TYPE_PLUGIN ResourceType = 7 + ResourceType_RESOURCE_TYPE_PLUGIN_COMMIT ResourceType = 15 + ResourceType_RESOURCE_TYPE_CURATED_PLUGIN ResourceType = 8 + ResourceType_RESOURCE_TYPE_TOKEN ResourceType = 10 + ResourceType_RESOURCE_TYPE_SCIM_TOKEN ResourceType = 11 + ResourceType_RESOURCE_TYPE_REPOSITORY_LABEL ResourceType = 12 + ResourceType_RESOURCE_TYPE_SERVER ResourceType = 13 + ResourceType_RESOURCE_TYPE_DEVICE_AUTHORIZATION_GRANT ResourceType = 14 + ResourceType_RESOURCE_TYPE_PLUGIN_LABEL ResourceType = 16 +) + +// Enum value maps for ResourceType. +var ( + ResourceType_name = map[int32]string{ + 0: "RESOURCE_TYPE_UNSPECIFIED", + 1: "RESOURCE_TYPE_USER", + 2: "RESOURCE_TYPE_ORGANIZATION", + 3: "RESOURCE_TYPE_ORGANIZATION_MEMBER", + 9: "RESOURCE_TYPE_ORGANIZATION_IDP_GROUP", + 4: "RESOURCE_TYPE_REPOSITORY", + 5: "RESOURCE_TYPE_REPOSITORY_CONTRIBUTOR", + 6: "RESOURCE_TYPE_REPOSITORY_COMMIT", + 7: "RESOURCE_TYPE_PLUGIN", + 15: "RESOURCE_TYPE_PLUGIN_COMMIT", + 8: "RESOURCE_TYPE_CURATED_PLUGIN", + 10: "RESOURCE_TYPE_TOKEN", + 11: "RESOURCE_TYPE_SCIM_TOKEN", + 12: "RESOURCE_TYPE_REPOSITORY_LABEL", + 13: "RESOURCE_TYPE_SERVER", + 14: "RESOURCE_TYPE_DEVICE_AUTHORIZATION_GRANT", + 16: "RESOURCE_TYPE_PLUGIN_LABEL", + } + ResourceType_value = map[string]int32{ + "RESOURCE_TYPE_UNSPECIFIED": 0, + "RESOURCE_TYPE_USER": 1, + "RESOURCE_TYPE_ORGANIZATION": 2, + "RESOURCE_TYPE_ORGANIZATION_MEMBER": 3, + "RESOURCE_TYPE_ORGANIZATION_IDP_GROUP": 9, + "RESOURCE_TYPE_REPOSITORY": 4, + "RESOURCE_TYPE_REPOSITORY_CONTRIBUTOR": 5, + "RESOURCE_TYPE_REPOSITORY_COMMIT": 6, + "RESOURCE_TYPE_PLUGIN": 7, + "RESOURCE_TYPE_PLUGIN_COMMIT": 15, + "RESOURCE_TYPE_CURATED_PLUGIN": 8, + "RESOURCE_TYPE_TOKEN": 10, + "RESOURCE_TYPE_SCIM_TOKEN": 11, + "RESOURCE_TYPE_REPOSITORY_LABEL": 12, + "RESOURCE_TYPE_SERVER": 13, + "RESOURCE_TYPE_DEVICE_AUTHORIZATION_GRANT": 14, + "RESOURCE_TYPE_PLUGIN_LABEL": 16, + } +) + +func (x ResourceType) Enum() *ResourceType { + p := new(ResourceType) + *p = x + return p +} + +func (x ResourceType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResourceType) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_audit_v1alpha1_event_proto_enumTypes[1].Descriptor() +} + +func (ResourceType) Type() protoreflect.EnumType { + return &file_buf_alpha_audit_v1alpha1_event_proto_enumTypes[1] +} + +func (x ResourceType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// EventType is the type of audited event. +type EventType int32 + +const ( + EventType_EVENT_TYPE_UNSPECIFIED EventType = 0 + EventType_EVENT_TYPE_ORGANIZATION_CREATED EventType = 1 + EventType_EVENT_TYPE_ORGANIZATION_DELETED EventType = 2 + EventType_EVENT_TYPE_ORGANIZATION_MEMBER_ADDED EventType = 3 + EventType_EVENT_TYPE_ORGANIZATION_MEMBER_ROLE_CHANGED EventType = 4 + EventType_EVENT_TYPE_ORGANIZATION_MEMBER_REMOVED EventType = 5 + EventType_EVENT_TYPE_ORGANIZATION_IDP_GROUP_ADDED EventType = 21 + EventType_EVENT_TYPE_ORGANIZATION_IDP_GROUP_REMOVED EventType = 22 + EventType_EVENT_TYPE_REPOSITORY_CREATED EventType = 6 + EventType_EVENT_TYPE_REPOSITORY_DEPRECATED EventType = 48 + EventType_EVENT_TYPE_REPOSITORY_UNDEPRECATED EventType = 49 + EventType_EVENT_TYPE_REPOSITORY_DELETED EventType = 7 + EventType_EVENT_TYPE_REPOSITORY_COMMIT_PUSHED EventType = 8 + EventType_EVENT_TYPE_REPOSITORY_CONTRIBUTOR_ADDED EventType = 9 + EventType_EVENT_TYPE_REPOSITORY_CONTRIBUTOR_ROLE_CHANGED EventType = 10 + EventType_EVENT_TYPE_REPOSITORY_CONTRIBUTOR_REMOVED EventType = 11 + EventType_EVENT_TYPE_REPOSITORY_VISIBILITY_CHANGED EventType = 12 + EventType_EVENT_TYPE_REPOSITORY_DEFAULT_LABEL_NAME_CHANGED EventType = 40 + EventType_EVENT_TYPE_PLUGIN_CREATED EventType = 13 + EventType_EVENT_TYPE_PLUGIN_DELETED EventType = 14 + EventType_EVENT_TYPE_PLUGIN_COMMIT_PUSHED EventType = 43 + EventType_EVENT_TYPE_CURATED_PLUGIN_CREATED EventType = 20 + EventType_EVENT_TYPE_CURATED_PLUGIN_DELETED EventType = 31 + EventType_EVENT_TYPE_USER_CREATED EventType = 15 + EventType_EVENT_TYPE_USER_DELETED EventType = 16 + EventType_EVENT_TYPE_USER_DEACTIVATED EventType = 17 + EventType_EVENT_TYPE_USER_LOGGED_IN EventType = 18 + EventType_EVENT_TYPE_USER_LOGGED_OUT EventType = 19 + EventType_EVENT_TYPE_TOKEN_CREATED EventType = 23 + EventType_EVENT_TYPE_TOKEN_DELETED EventType = 24 + EventType_EVENT_TYPE_USER_REACTIVATED EventType = 25 + EventType_EVENT_TYPE_SCIM_TOKEN_CREATED EventType = 26 + EventType_EVENT_TYPE_SCIM_TOKEN_DELETED EventType = 27 + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + EventType_EVENT_TYPE_REPOSITORY_COMMIT_DELETED EventType = 28 + EventType_EVENT_TYPE_REPOSITORY_LABEL_CREATED EventType = 29 + EventType_EVENT_TYPE_REPOSITORY_LABEL_MOVED EventType = 30 + EventType_EVENT_TYPE_REPOSITORY_LABEL_ARCHIVED EventType = 38 + EventType_EVENT_TYPE_REPOSITORY_LABEL_UNARCHIVED EventType = 39 + EventType_EVENT_TYPE_SERVER_BREAKING_CHANGE_POLICY_ENABLED EventType = 32 + EventType_EVENT_TYPE_SERVER_BREAKING_CHANGE_POLICY_DISABLED EventType = 33 + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + EventType_EVENT_TYPE_REPOSITORY_DEFAULT_BRANCH_CHANGED EventType = 34 + EventType_EVENT_TYPE_SERVER_UNIQUENESS_POLICY_ENABLED EventType = 35 + EventType_EVENT_TYPE_SERVER_UNIQUENESS_POLICY_DISABLED EventType = 36 + EventType_EVENT_TYPE_USER_AUTO_MERGED_FROM_NEW_IDP EventType = 37 + EventType_EVENT_TYPE_DEVICE_AUTHORIZATION_GRANT_APPROVED EventType = 41 + EventType_EVENT_TYPE_DEVICE_AUTHORIZATION_GRANT_DENIED EventType = 42 + EventType_EVENT_TYPE_PLUGIN_LABEL_CREATED EventType = 44 + EventType_EVENT_TYPE_PLUGIN_LABEL_MOVED EventType = 45 + EventType_EVENT_TYPE_PLUGIN_LABEL_ARCHIVED EventType = 46 + EventType_EVENT_TYPE_PLUGIN_LABEL_UNARCHIVED EventType = 47 +) + +// Enum value maps for EventType. +var ( + EventType_name = map[int32]string{ + 0: "EVENT_TYPE_UNSPECIFIED", + 1: "EVENT_TYPE_ORGANIZATION_CREATED", + 2: "EVENT_TYPE_ORGANIZATION_DELETED", + 3: "EVENT_TYPE_ORGANIZATION_MEMBER_ADDED", + 4: "EVENT_TYPE_ORGANIZATION_MEMBER_ROLE_CHANGED", + 5: "EVENT_TYPE_ORGANIZATION_MEMBER_REMOVED", + 21: "EVENT_TYPE_ORGANIZATION_IDP_GROUP_ADDED", + 22: "EVENT_TYPE_ORGANIZATION_IDP_GROUP_REMOVED", + 6: "EVENT_TYPE_REPOSITORY_CREATED", + 48: "EVENT_TYPE_REPOSITORY_DEPRECATED", + 49: "EVENT_TYPE_REPOSITORY_UNDEPRECATED", + 7: "EVENT_TYPE_REPOSITORY_DELETED", + 8: "EVENT_TYPE_REPOSITORY_COMMIT_PUSHED", + 9: "EVENT_TYPE_REPOSITORY_CONTRIBUTOR_ADDED", + 10: "EVENT_TYPE_REPOSITORY_CONTRIBUTOR_ROLE_CHANGED", + 11: "EVENT_TYPE_REPOSITORY_CONTRIBUTOR_REMOVED", + 12: "EVENT_TYPE_REPOSITORY_VISIBILITY_CHANGED", + 40: "EVENT_TYPE_REPOSITORY_DEFAULT_LABEL_NAME_CHANGED", + 13: "EVENT_TYPE_PLUGIN_CREATED", + 14: "EVENT_TYPE_PLUGIN_DELETED", + 43: "EVENT_TYPE_PLUGIN_COMMIT_PUSHED", + 20: "EVENT_TYPE_CURATED_PLUGIN_CREATED", + 31: "EVENT_TYPE_CURATED_PLUGIN_DELETED", + 15: "EVENT_TYPE_USER_CREATED", + 16: "EVENT_TYPE_USER_DELETED", + 17: "EVENT_TYPE_USER_DEACTIVATED", + 18: "EVENT_TYPE_USER_LOGGED_IN", + 19: "EVENT_TYPE_USER_LOGGED_OUT", + 23: "EVENT_TYPE_TOKEN_CREATED", + 24: "EVENT_TYPE_TOKEN_DELETED", + 25: "EVENT_TYPE_USER_REACTIVATED", + 26: "EVENT_TYPE_SCIM_TOKEN_CREATED", + 27: "EVENT_TYPE_SCIM_TOKEN_DELETED", + 28: "EVENT_TYPE_REPOSITORY_COMMIT_DELETED", + 29: "EVENT_TYPE_REPOSITORY_LABEL_CREATED", + 30: "EVENT_TYPE_REPOSITORY_LABEL_MOVED", + 38: "EVENT_TYPE_REPOSITORY_LABEL_ARCHIVED", + 39: "EVENT_TYPE_REPOSITORY_LABEL_UNARCHIVED", + 32: "EVENT_TYPE_SERVER_BREAKING_CHANGE_POLICY_ENABLED", + 33: "EVENT_TYPE_SERVER_BREAKING_CHANGE_POLICY_DISABLED", + 34: "EVENT_TYPE_REPOSITORY_DEFAULT_BRANCH_CHANGED", + 35: "EVENT_TYPE_SERVER_UNIQUENESS_POLICY_ENABLED", + 36: "EVENT_TYPE_SERVER_UNIQUENESS_POLICY_DISABLED", + 37: "EVENT_TYPE_USER_AUTO_MERGED_FROM_NEW_IDP", + 41: "EVENT_TYPE_DEVICE_AUTHORIZATION_GRANT_APPROVED", + 42: "EVENT_TYPE_DEVICE_AUTHORIZATION_GRANT_DENIED", + 44: "EVENT_TYPE_PLUGIN_LABEL_CREATED", + 45: "EVENT_TYPE_PLUGIN_LABEL_MOVED", + 46: "EVENT_TYPE_PLUGIN_LABEL_ARCHIVED", + 47: "EVENT_TYPE_PLUGIN_LABEL_UNARCHIVED", + } + EventType_value = map[string]int32{ + "EVENT_TYPE_UNSPECIFIED": 0, + "EVENT_TYPE_ORGANIZATION_CREATED": 1, + "EVENT_TYPE_ORGANIZATION_DELETED": 2, + "EVENT_TYPE_ORGANIZATION_MEMBER_ADDED": 3, + "EVENT_TYPE_ORGANIZATION_MEMBER_ROLE_CHANGED": 4, + "EVENT_TYPE_ORGANIZATION_MEMBER_REMOVED": 5, + "EVENT_TYPE_ORGANIZATION_IDP_GROUP_ADDED": 21, + "EVENT_TYPE_ORGANIZATION_IDP_GROUP_REMOVED": 22, + "EVENT_TYPE_REPOSITORY_CREATED": 6, + "EVENT_TYPE_REPOSITORY_DEPRECATED": 48, + "EVENT_TYPE_REPOSITORY_UNDEPRECATED": 49, + "EVENT_TYPE_REPOSITORY_DELETED": 7, + "EVENT_TYPE_REPOSITORY_COMMIT_PUSHED": 8, + "EVENT_TYPE_REPOSITORY_CONTRIBUTOR_ADDED": 9, + "EVENT_TYPE_REPOSITORY_CONTRIBUTOR_ROLE_CHANGED": 10, + "EVENT_TYPE_REPOSITORY_CONTRIBUTOR_REMOVED": 11, + "EVENT_TYPE_REPOSITORY_VISIBILITY_CHANGED": 12, + "EVENT_TYPE_REPOSITORY_DEFAULT_LABEL_NAME_CHANGED": 40, + "EVENT_TYPE_PLUGIN_CREATED": 13, + "EVENT_TYPE_PLUGIN_DELETED": 14, + "EVENT_TYPE_PLUGIN_COMMIT_PUSHED": 43, + "EVENT_TYPE_CURATED_PLUGIN_CREATED": 20, + "EVENT_TYPE_CURATED_PLUGIN_DELETED": 31, + "EVENT_TYPE_USER_CREATED": 15, + "EVENT_TYPE_USER_DELETED": 16, + "EVENT_TYPE_USER_DEACTIVATED": 17, + "EVENT_TYPE_USER_LOGGED_IN": 18, + "EVENT_TYPE_USER_LOGGED_OUT": 19, + "EVENT_TYPE_TOKEN_CREATED": 23, + "EVENT_TYPE_TOKEN_DELETED": 24, + "EVENT_TYPE_USER_REACTIVATED": 25, + "EVENT_TYPE_SCIM_TOKEN_CREATED": 26, + "EVENT_TYPE_SCIM_TOKEN_DELETED": 27, + "EVENT_TYPE_REPOSITORY_COMMIT_DELETED": 28, + "EVENT_TYPE_REPOSITORY_LABEL_CREATED": 29, + "EVENT_TYPE_REPOSITORY_LABEL_MOVED": 30, + "EVENT_TYPE_REPOSITORY_LABEL_ARCHIVED": 38, + "EVENT_TYPE_REPOSITORY_LABEL_UNARCHIVED": 39, + "EVENT_TYPE_SERVER_BREAKING_CHANGE_POLICY_ENABLED": 32, + "EVENT_TYPE_SERVER_BREAKING_CHANGE_POLICY_DISABLED": 33, + "EVENT_TYPE_REPOSITORY_DEFAULT_BRANCH_CHANGED": 34, + "EVENT_TYPE_SERVER_UNIQUENESS_POLICY_ENABLED": 35, + "EVENT_TYPE_SERVER_UNIQUENESS_POLICY_DISABLED": 36, + "EVENT_TYPE_USER_AUTO_MERGED_FROM_NEW_IDP": 37, + "EVENT_TYPE_DEVICE_AUTHORIZATION_GRANT_APPROVED": 41, + "EVENT_TYPE_DEVICE_AUTHORIZATION_GRANT_DENIED": 42, + "EVENT_TYPE_PLUGIN_LABEL_CREATED": 44, + "EVENT_TYPE_PLUGIN_LABEL_MOVED": 45, + "EVENT_TYPE_PLUGIN_LABEL_ARCHIVED": 46, + "EVENT_TYPE_PLUGIN_LABEL_UNARCHIVED": 47, + } +) + +func (x EventType) Enum() *EventType { + p := new(EventType) + *p = x + return p +} + +func (x EventType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EventType) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_audit_v1alpha1_event_proto_enumTypes[2].Descriptor() +} + +func (EventType) Type() protoreflect.EnumType { + return &file_buf_alpha_audit_v1alpha1_event_proto_enumTypes[2] +} + +func (x EventType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Actor is the actor who caused the audited event. +type Actor struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Type ActorType `protobuf:"varint,1,opt,name=type,proto3,enum=buf.alpha.audit.v1alpha1.ActorType" json:"type,omitempty"` + xxx_hidden_Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Actor) Reset() { + *x = Actor{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Actor) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Actor) ProtoMessage() {} + +func (x *Actor) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Actor) GetType() ActorType { + if x != nil { + return x.xxx_hidden_Type + } + return ActorType_ACTOR_TYPE_UNSPECIFIED +} + +func (x *Actor) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *Actor) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Actor) SetType(v ActorType) { + x.xxx_hidden_Type = v +} + +func (x *Actor) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *Actor) SetName(v string) { + x.xxx_hidden_Name = v +} + +type Actor_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Type of actor who caused the audited event. + Type ActorType + // Id of the actor who caused the audited event. + Id string + // Name of the actor who caused the audited event. + Name string +} + +func (b0 Actor_builder) Build() *Actor { + m0 := &Actor{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Type = b.Type + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Name = b.Name + return m0 +} + +// Resource is the affected resource by the audited event. +type Resource struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Type ResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=buf.alpha.audit.v1alpha1.ResourceType" json:"type,omitempty"` + xxx_hidden_Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Resource) Reset() { + *x = Resource{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Resource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Resource) ProtoMessage() {} + +func (x *Resource) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Resource) GetType() ResourceType { + if x != nil { + return x.xxx_hidden_Type + } + return ResourceType_RESOURCE_TYPE_UNSPECIFIED +} + +func (x *Resource) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *Resource) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Resource) SetType(v ResourceType) { + x.xxx_hidden_Type = v +} + +func (x *Resource) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *Resource) SetName(v string) { + x.xxx_hidden_Name = v +} + +type Resource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Type of resource that was affected by the audited event. + Type ResourceType + // Id of the affected resource by the audited event. + Id string + // Name of the affected resource by the audited event. + Name string +} + +func (b0 Resource_builder) Build() *Resource { + m0 := &Resource{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Type = b.Type + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Name = b.Name + return m0 +} + +// EventMetadata provides additional details about the audited event. +type EventMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UserAgent string `protobuf:"bytes,1,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` + xxx_hidden_Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` + xxx_hidden_TraceId string `protobuf:"bytes,3,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EventMetadata) Reset() { + *x = EventMetadata{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EventMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventMetadata) ProtoMessage() {} + +func (x *EventMetadata) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *EventMetadata) GetUserAgent() string { + if x != nil { + return x.xxx_hidden_UserAgent + } + return "" +} + +func (x *EventMetadata) GetIp() string { + if x != nil { + return x.xxx_hidden_Ip + } + return "" +} + +func (x *EventMetadata) GetTraceId() string { + if x != nil { + return x.xxx_hidden_TraceId + } + return "" +} + +func (x *EventMetadata) SetUserAgent(v string) { + x.xxx_hidden_UserAgent = v +} + +func (x *EventMetadata) SetIp(v string) { + x.xxx_hidden_Ip = v +} + +func (x *EventMetadata) SetTraceId(v string) { + x.xxx_hidden_TraceId = v +} + +type EventMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // UserAgent is the User-Agent header associated with the request that triggered the audited event, if any. + UserAgent string + // IP is the IP address associated with the request that triggered the audited event, if any. + Ip string + // TraceID is the ID of the trace associated with the audited event, if any. + TraceId string +} + +func (b0 EventMetadata_builder) Build() *EventMetadata { + m0 := &EventMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UserAgent = b.UserAgent + x.xxx_hidden_Ip = b.Ip + x.xxx_hidden_TraceId = b.TraceId + return m0 +} + +// Event is an audited action that happened in the BSR, with the information of +// what happened, when it happened, who did it, which resource was affected, and +// more contextual information on the event. +type Event struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EventId string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` + xxx_hidden_Type EventType `protobuf:"varint,2,opt,name=type,proto3,enum=buf.alpha.audit.v1alpha1.EventType" json:"type,omitempty"` + xxx_hidden_Actor *Actor `protobuf:"bytes,3,opt,name=actor,proto3" json:"actor,omitempty"` + xxx_hidden_Resource *Resource `protobuf:"bytes,4,opt,name=resource,proto3" json:"resource,omitempty"` + xxx_hidden_EventTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` + xxx_hidden_Metadata *EventMetadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + xxx_hidden_Payload isEvent_Payload `protobuf_oneof:"payload"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Event) Reset() { + *x = Event{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Event) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Event) ProtoMessage() {} + +func (x *Event) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Event) GetEventId() string { + if x != nil { + return x.xxx_hidden_EventId + } + return "" +} + +func (x *Event) GetType() EventType { + if x != nil { + return x.xxx_hidden_Type + } + return EventType_EVENT_TYPE_UNSPECIFIED +} + +func (x *Event) GetActor() *Actor { + if x != nil { + return x.xxx_hidden_Actor + } + return nil +} + +func (x *Event) GetResource() *Resource { + if x != nil { + return x.xxx_hidden_Resource + } + return nil +} + +func (x *Event) GetEventTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_EventTime + } + return nil +} + +func (x *Event) GetMetadata() *EventMetadata { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +func (x *Event) GetOrganizationCreated() *PayloadOrganizationCreated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_OrganizationCreated); ok { + return x.OrganizationCreated + } + } + return nil +} + +func (x *Event) GetOrganizationDeleted() *PayloadOrganizationDeleted { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_OrganizationDeleted); ok { + return x.OrganizationDeleted + } + } + return nil +} + +func (x *Event) GetOrganizationMemberAdded() *PayloadOrganizationMemberAdded { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_OrganizationMemberAdded); ok { + return x.OrganizationMemberAdded + } + } + return nil +} + +func (x *Event) GetOrganizationMemberRoleChanged() *PayloadOrganizationMemberRoleChanged { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_OrganizationMemberRoleChanged); ok { + return x.OrganizationMemberRoleChanged + } + } + return nil +} + +func (x *Event) GetOrganizationMemberRemoved() *PayloadOrganizationMemberRemoved { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_OrganizationMemberRemoved); ok { + return x.OrganizationMemberRemoved + } + } + return nil +} + +func (x *Event) GetRepositoryCreated() *PayloadRepositoryCreated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryCreated); ok { + return x.RepositoryCreated + } + } + return nil +} + +func (x *Event) GetRepositoryDeprecated() *PayloadRepositoryDeprecated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryDeprecated); ok { + return x.RepositoryDeprecated + } + } + return nil +} + +func (x *Event) GetRepositoryUndeprecated() *PayloadRepositoryUndeprecated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryUndeprecated); ok { + return x.RepositoryUndeprecated + } + } + return nil +} + +func (x *Event) GetRepositoryDeleted() *PayloadRepositoryDeleted { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryDeleted); ok { + return x.RepositoryDeleted + } + } + return nil +} + +func (x *Event) GetRepositoryCommitPushed() *PayloadRepositoryCommitPushed { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryCommitPushed); ok { + return x.RepositoryCommitPushed + } + } + return nil +} + +func (x *Event) GetRepositoryContributorAdded() *PayloadRepositoryContributorAdded { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryContributorAdded); ok { + return x.RepositoryContributorAdded + } + } + return nil +} + +func (x *Event) GetRepositoryContributorRoleChanged() *PayloadRepositoryContributorRoleChanged { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryContributorRoleChanged); ok { + return x.RepositoryContributorRoleChanged + } + } + return nil +} + +func (x *Event) GetRepositoryContributorRemoved() *PayloadRepositoryContributorRemoved { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryContributorRemoved); ok { + return x.RepositoryContributorRemoved + } + } + return nil +} + +func (x *Event) GetRepositoryVisibilityChanged() *PayloadRepositoryVisibilityChanged { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryVisibilityChanged); ok { + return x.RepositoryVisibilityChanged + } + } + return nil +} + +func (x *Event) GetRepositoryDefaultLabelNameChanged() *PayloadRepositoryDefaultLabelNameChanged { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryDefaultLabelNameChanged); ok { + return x.RepositoryDefaultLabelNameChanged + } + } + return nil +} + +func (x *Event) GetPluginCreated() *PayloadPluginCreated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_PluginCreated); ok { + return x.PluginCreated + } + } + return nil +} + +func (x *Event) GetPluginDeleted() *PayloadPluginDeleted { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_PluginDeleted); ok { + return x.PluginDeleted + } + } + return nil +} + +func (x *Event) GetPluginCommitPushed() *PayloadPluginCommitPushed { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_PluginCommitPushed); ok { + return x.PluginCommitPushed + } + } + return nil +} + +func (x *Event) GetUserCreated() *PayloadUserCreated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_UserCreated); ok { + return x.UserCreated + } + } + return nil +} + +func (x *Event) GetUserDeactivated() *PayloadUserDeactivated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_UserDeactivated); ok { + return x.UserDeactivated + } + } + return nil +} + +func (x *Event) GetUserDeleted() *PayloadUserDeleted { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_UserDeleted); ok { + return x.UserDeleted + } + } + return nil +} + +func (x *Event) GetUserLoggedIn() *PayloadUserLoggedIn { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_UserLoggedIn); ok { + return x.UserLoggedIn + } + } + return nil +} + +func (x *Event) GetUserLoggedOut() *PayloadUserLoggedOut { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_UserLoggedOut); ok { + return x.UserLoggedOut + } + } + return nil +} + +func (x *Event) GetCuratedPluginCreated() *PayloadCuratedPluginCreated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_CuratedPluginCreated); ok { + return x.CuratedPluginCreated + } + } + return nil +} + +func (x *Event) GetIdpGroupAdded() *PayloadOrganizationIDPGroupAdded { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_IdpGroupAdded); ok { + return x.IdpGroupAdded + } + } + return nil +} + +func (x *Event) GetIdpGroupRemoved() *PayloadOrganizationIDPGroupRemoved { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_IdpGroupRemoved); ok { + return x.IdpGroupRemoved + } + } + return nil +} + +func (x *Event) GetTokenCreated() *PayloadTokenCreated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_TokenCreated); ok { + return x.TokenCreated + } + } + return nil +} + +func (x *Event) GetTokenDeleted() *PayloadTokenDeleted { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_TokenDeleted); ok { + return x.TokenDeleted + } + } + return nil +} + +func (x *Event) GetUserReactivated() *PayloadUserReactivated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_UserReactivated); ok { + return x.UserReactivated + } + } + return nil +} + +func (x *Event) GetScimTokenCreated() *PayloadSCIMTokenCreated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_ScimTokenCreated); ok { + return x.ScimTokenCreated + } + } + return nil +} + +func (x *Event) GetScimTokenDeleted() *PayloadSCIMTokenDeleted { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_ScimTokenDeleted); ok { + return x.ScimTokenDeleted + } + } + return nil +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) GetRepositoryCommitDeleted() *PayloadRepositoryCommitDeleted { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryCommitDeleted); ok { + return x.RepositoryCommitDeleted + } + } + return nil +} + +func (x *Event) GetRepositoryLabelCreated() *PayloadRepositoryLabelCreated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryLabelCreated); ok { + return x.RepositoryLabelCreated + } + } + return nil +} + +func (x *Event) GetRepositoryLabelMoved() *PayloadRepositoryLabelMoved { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryLabelMoved); ok { + return x.RepositoryLabelMoved + } + } + return nil +} + +func (x *Event) GetRepositoryLabelArchived() *PayloadRepositoryLabelArchived { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryLabelArchived); ok { + return x.RepositoryLabelArchived + } + } + return nil +} + +func (x *Event) GetRepositoryLabelUnarchived() *PayloadRepositoryLabelUnarchived { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryLabelUnarchived); ok { + return x.RepositoryLabelUnarchived + } + } + return nil +} + +func (x *Event) GetCuratedPluginDeleted() *PayloadCuratedPluginDeleted { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_CuratedPluginDeleted); ok { + return x.CuratedPluginDeleted + } + } + return nil +} + +func (x *Event) GetPayloadServerBreakingChangePolicyEnabled() *PayloadServerBreakingChangePolicyEnabled { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_PayloadServerBreakingChangePolicyEnabled); ok { + return x.PayloadServerBreakingChangePolicyEnabled + } + } + return nil +} + +func (x *Event) GetPayloadServerBreakingChangePolicyDisabled() *PayloadServerBreakingChangePolicyDisabled { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_PayloadServerBreakingChangePolicyDisabled); ok { + return x.PayloadServerBreakingChangePolicyDisabled + } + } + return nil +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) GetRepositoryDefaultBranchChanged() *PayloadRepositoryDefaultBranchChanged { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_RepositoryDefaultBranchChanged); ok { + return x.RepositoryDefaultBranchChanged + } + } + return nil +} + +func (x *Event) GetPayloadServerUniquenessPolicyEnabled() *PayloadServerUniquenessPolicyEnabled { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_PayloadServerUniquenessPolicyEnabled); ok { + return x.PayloadServerUniquenessPolicyEnabled + } + } + return nil +} + +func (x *Event) GetPayloadServerUniquenessPolicyDisabled() *PayloadServerUniquenessPolicyDisabled { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_PayloadServerUniquenessPolicyDisabled); ok { + return x.PayloadServerUniquenessPolicyDisabled + } + } + return nil +} + +func (x *Event) GetUserAutoMergedFromNewIdp() *PayloadUserAutoMergedFromNewIdP { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_UserAutoMergedFromNewIdp); ok { + return x.UserAutoMergedFromNewIdp + } + } + return nil +} + +func (x *Event) GetDeviceAuthorizationGrantApproved() *PayloadDeviceAuthorizationGrantApproved { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_DeviceAuthorizationGrantApproved); ok { + return x.DeviceAuthorizationGrantApproved + } + } + return nil +} + +func (x *Event) GetDeviceAuthorizationGrantDenied() *PayloadDeviceAuthorizationGrantDenied { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_DeviceAuthorizationGrantDenied); ok { + return x.DeviceAuthorizationGrantDenied + } + } + return nil +} + +func (x *Event) GetPluginLabelCreated() *PayloadPluginLabelCreated { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_PluginLabelCreated); ok { + return x.PluginLabelCreated + } + } + return nil +} + +func (x *Event) GetPluginLabelMoved() *PayloadPluginLabelMoved { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_PluginLabelMoved); ok { + return x.PluginLabelMoved + } + } + return nil +} + +func (x *Event) GetPluginLabelArchived() *PayloadPluginLabelArchived { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_PluginLabelArchived); ok { + return x.PluginLabelArchived + } + } + return nil +} + +func (x *Event) GetPluginLabelUnarchived() *PayloadPluginLabelUnarchived { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*event_PluginLabelUnarchived); ok { + return x.PluginLabelUnarchived + } + } + return nil +} + +func (x *Event) SetEventId(v string) { + x.xxx_hidden_EventId = v +} + +func (x *Event) SetType(v EventType) { + x.xxx_hidden_Type = v +} + +func (x *Event) SetActor(v *Actor) { + x.xxx_hidden_Actor = v +} + +func (x *Event) SetResource(v *Resource) { + x.xxx_hidden_Resource = v +} + +func (x *Event) SetEventTime(v *timestamppb.Timestamp) { + x.xxx_hidden_EventTime = v +} + +func (x *Event) SetMetadata(v *EventMetadata) { + x.xxx_hidden_Metadata = v +} + +func (x *Event) SetOrganizationCreated(v *PayloadOrganizationCreated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_OrganizationCreated{v} +} + +func (x *Event) SetOrganizationDeleted(v *PayloadOrganizationDeleted) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_OrganizationDeleted{v} +} + +func (x *Event) SetOrganizationMemberAdded(v *PayloadOrganizationMemberAdded) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_OrganizationMemberAdded{v} +} + +func (x *Event) SetOrganizationMemberRoleChanged(v *PayloadOrganizationMemberRoleChanged) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_OrganizationMemberRoleChanged{v} +} + +func (x *Event) SetOrganizationMemberRemoved(v *PayloadOrganizationMemberRemoved) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_OrganizationMemberRemoved{v} +} + +func (x *Event) SetRepositoryCreated(v *PayloadRepositoryCreated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryCreated{v} +} + +func (x *Event) SetRepositoryDeprecated(v *PayloadRepositoryDeprecated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryDeprecated{v} +} + +func (x *Event) SetRepositoryUndeprecated(v *PayloadRepositoryUndeprecated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryUndeprecated{v} +} + +func (x *Event) SetRepositoryDeleted(v *PayloadRepositoryDeleted) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryDeleted{v} +} + +func (x *Event) SetRepositoryCommitPushed(v *PayloadRepositoryCommitPushed) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryCommitPushed{v} +} + +func (x *Event) SetRepositoryContributorAdded(v *PayloadRepositoryContributorAdded) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryContributorAdded{v} +} + +func (x *Event) SetRepositoryContributorRoleChanged(v *PayloadRepositoryContributorRoleChanged) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryContributorRoleChanged{v} +} + +func (x *Event) SetRepositoryContributorRemoved(v *PayloadRepositoryContributorRemoved) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryContributorRemoved{v} +} + +func (x *Event) SetRepositoryVisibilityChanged(v *PayloadRepositoryVisibilityChanged) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryVisibilityChanged{v} +} + +func (x *Event) SetRepositoryDefaultLabelNameChanged(v *PayloadRepositoryDefaultLabelNameChanged) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryDefaultLabelNameChanged{v} +} + +func (x *Event) SetPluginCreated(v *PayloadPluginCreated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_PluginCreated{v} +} + +func (x *Event) SetPluginDeleted(v *PayloadPluginDeleted) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_PluginDeleted{v} +} + +func (x *Event) SetPluginCommitPushed(v *PayloadPluginCommitPushed) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_PluginCommitPushed{v} +} + +func (x *Event) SetUserCreated(v *PayloadUserCreated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_UserCreated{v} +} + +func (x *Event) SetUserDeactivated(v *PayloadUserDeactivated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_UserDeactivated{v} +} + +func (x *Event) SetUserDeleted(v *PayloadUserDeleted) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_UserDeleted{v} +} + +func (x *Event) SetUserLoggedIn(v *PayloadUserLoggedIn) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_UserLoggedIn{v} +} + +func (x *Event) SetUserLoggedOut(v *PayloadUserLoggedOut) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_UserLoggedOut{v} +} + +func (x *Event) SetCuratedPluginCreated(v *PayloadCuratedPluginCreated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_CuratedPluginCreated{v} +} + +func (x *Event) SetIdpGroupAdded(v *PayloadOrganizationIDPGroupAdded) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_IdpGroupAdded{v} +} + +func (x *Event) SetIdpGroupRemoved(v *PayloadOrganizationIDPGroupRemoved) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_IdpGroupRemoved{v} +} + +func (x *Event) SetTokenCreated(v *PayloadTokenCreated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_TokenCreated{v} +} + +func (x *Event) SetTokenDeleted(v *PayloadTokenDeleted) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_TokenDeleted{v} +} + +func (x *Event) SetUserReactivated(v *PayloadUserReactivated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_UserReactivated{v} +} + +func (x *Event) SetScimTokenCreated(v *PayloadSCIMTokenCreated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_ScimTokenCreated{v} +} + +func (x *Event) SetScimTokenDeleted(v *PayloadSCIMTokenDeleted) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_ScimTokenDeleted{v} +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) SetRepositoryCommitDeleted(v *PayloadRepositoryCommitDeleted) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryCommitDeleted{v} +} + +func (x *Event) SetRepositoryLabelCreated(v *PayloadRepositoryLabelCreated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryLabelCreated{v} +} + +func (x *Event) SetRepositoryLabelMoved(v *PayloadRepositoryLabelMoved) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryLabelMoved{v} +} + +func (x *Event) SetRepositoryLabelArchived(v *PayloadRepositoryLabelArchived) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryLabelArchived{v} +} + +func (x *Event) SetRepositoryLabelUnarchived(v *PayloadRepositoryLabelUnarchived) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryLabelUnarchived{v} +} + +func (x *Event) SetCuratedPluginDeleted(v *PayloadCuratedPluginDeleted) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_CuratedPluginDeleted{v} +} + +func (x *Event) SetPayloadServerBreakingChangePolicyEnabled(v *PayloadServerBreakingChangePolicyEnabled) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_PayloadServerBreakingChangePolicyEnabled{v} +} + +func (x *Event) SetPayloadServerBreakingChangePolicyDisabled(v *PayloadServerBreakingChangePolicyDisabled) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_PayloadServerBreakingChangePolicyDisabled{v} +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) SetRepositoryDefaultBranchChanged(v *PayloadRepositoryDefaultBranchChanged) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_RepositoryDefaultBranchChanged{v} +} + +func (x *Event) SetPayloadServerUniquenessPolicyEnabled(v *PayloadServerUniquenessPolicyEnabled) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_PayloadServerUniquenessPolicyEnabled{v} +} + +func (x *Event) SetPayloadServerUniquenessPolicyDisabled(v *PayloadServerUniquenessPolicyDisabled) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_PayloadServerUniquenessPolicyDisabled{v} +} + +func (x *Event) SetUserAutoMergedFromNewIdp(v *PayloadUserAutoMergedFromNewIdP) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_UserAutoMergedFromNewIdp{v} +} + +func (x *Event) SetDeviceAuthorizationGrantApproved(v *PayloadDeviceAuthorizationGrantApproved) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_DeviceAuthorizationGrantApproved{v} +} + +func (x *Event) SetDeviceAuthorizationGrantDenied(v *PayloadDeviceAuthorizationGrantDenied) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_DeviceAuthorizationGrantDenied{v} +} + +func (x *Event) SetPluginLabelCreated(v *PayloadPluginLabelCreated) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_PluginLabelCreated{v} +} + +func (x *Event) SetPluginLabelMoved(v *PayloadPluginLabelMoved) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_PluginLabelMoved{v} +} + +func (x *Event) SetPluginLabelArchived(v *PayloadPluginLabelArchived) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_PluginLabelArchived{v} +} + +func (x *Event) SetPluginLabelUnarchived(v *PayloadPluginLabelUnarchived) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &event_PluginLabelUnarchived{v} +} + +func (x *Event) HasActor() bool { + if x == nil { + return false + } + return x.xxx_hidden_Actor != nil +} + +func (x *Event) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *Event) HasEventTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_EventTime != nil +} + +func (x *Event) HasMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_Metadata != nil +} + +func (x *Event) HasPayload() bool { + if x == nil { + return false + } + return x.xxx_hidden_Payload != nil +} + +func (x *Event) HasOrganizationCreated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_OrganizationCreated) + return ok +} + +func (x *Event) HasOrganizationDeleted() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_OrganizationDeleted) + return ok +} + +func (x *Event) HasOrganizationMemberAdded() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_OrganizationMemberAdded) + return ok +} + +func (x *Event) HasOrganizationMemberRoleChanged() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_OrganizationMemberRoleChanged) + return ok +} + +func (x *Event) HasOrganizationMemberRemoved() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_OrganizationMemberRemoved) + return ok +} + +func (x *Event) HasRepositoryCreated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryCreated) + return ok +} + +func (x *Event) HasRepositoryDeprecated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryDeprecated) + return ok +} + +func (x *Event) HasRepositoryUndeprecated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryUndeprecated) + return ok +} + +func (x *Event) HasRepositoryDeleted() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryDeleted) + return ok +} + +func (x *Event) HasRepositoryCommitPushed() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryCommitPushed) + return ok +} + +func (x *Event) HasRepositoryContributorAdded() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryContributorAdded) + return ok +} + +func (x *Event) HasRepositoryContributorRoleChanged() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryContributorRoleChanged) + return ok +} + +func (x *Event) HasRepositoryContributorRemoved() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryContributorRemoved) + return ok +} + +func (x *Event) HasRepositoryVisibilityChanged() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryVisibilityChanged) + return ok +} + +func (x *Event) HasRepositoryDefaultLabelNameChanged() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryDefaultLabelNameChanged) + return ok +} + +func (x *Event) HasPluginCreated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_PluginCreated) + return ok +} + +func (x *Event) HasPluginDeleted() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_PluginDeleted) + return ok +} + +func (x *Event) HasPluginCommitPushed() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_PluginCommitPushed) + return ok +} + +func (x *Event) HasUserCreated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_UserCreated) + return ok +} + +func (x *Event) HasUserDeactivated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_UserDeactivated) + return ok +} + +func (x *Event) HasUserDeleted() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_UserDeleted) + return ok +} + +func (x *Event) HasUserLoggedIn() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_UserLoggedIn) + return ok +} + +func (x *Event) HasUserLoggedOut() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_UserLoggedOut) + return ok +} + +func (x *Event) HasCuratedPluginCreated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_CuratedPluginCreated) + return ok +} + +func (x *Event) HasIdpGroupAdded() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_IdpGroupAdded) + return ok +} + +func (x *Event) HasIdpGroupRemoved() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_IdpGroupRemoved) + return ok +} + +func (x *Event) HasTokenCreated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_TokenCreated) + return ok +} + +func (x *Event) HasTokenDeleted() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_TokenDeleted) + return ok +} + +func (x *Event) HasUserReactivated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_UserReactivated) + return ok +} + +func (x *Event) HasScimTokenCreated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_ScimTokenCreated) + return ok +} + +func (x *Event) HasScimTokenDeleted() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_ScimTokenDeleted) + return ok +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) HasRepositoryCommitDeleted() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryCommitDeleted) + return ok +} + +func (x *Event) HasRepositoryLabelCreated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryLabelCreated) + return ok +} + +func (x *Event) HasRepositoryLabelMoved() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryLabelMoved) + return ok +} + +func (x *Event) HasRepositoryLabelArchived() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryLabelArchived) + return ok +} + +func (x *Event) HasRepositoryLabelUnarchived() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryLabelUnarchived) + return ok +} + +func (x *Event) HasCuratedPluginDeleted() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_CuratedPluginDeleted) + return ok +} + +func (x *Event) HasPayloadServerBreakingChangePolicyEnabled() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_PayloadServerBreakingChangePolicyEnabled) + return ok +} + +func (x *Event) HasPayloadServerBreakingChangePolicyDisabled() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_PayloadServerBreakingChangePolicyDisabled) + return ok +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) HasRepositoryDefaultBranchChanged() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_RepositoryDefaultBranchChanged) + return ok +} + +func (x *Event) HasPayloadServerUniquenessPolicyEnabled() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_PayloadServerUniquenessPolicyEnabled) + return ok +} + +func (x *Event) HasPayloadServerUniquenessPolicyDisabled() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_PayloadServerUniquenessPolicyDisabled) + return ok +} + +func (x *Event) HasUserAutoMergedFromNewIdp() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_UserAutoMergedFromNewIdp) + return ok +} + +func (x *Event) HasDeviceAuthorizationGrantApproved() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_DeviceAuthorizationGrantApproved) + return ok +} + +func (x *Event) HasDeviceAuthorizationGrantDenied() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_DeviceAuthorizationGrantDenied) + return ok +} + +func (x *Event) HasPluginLabelCreated() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_PluginLabelCreated) + return ok +} + +func (x *Event) HasPluginLabelMoved() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_PluginLabelMoved) + return ok +} + +func (x *Event) HasPluginLabelArchived() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_PluginLabelArchived) + return ok +} + +func (x *Event) HasPluginLabelUnarchived() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*event_PluginLabelUnarchived) + return ok +} + +func (x *Event) ClearActor() { + x.xxx_hidden_Actor = nil +} + +func (x *Event) ClearResource() { + x.xxx_hidden_Resource = nil +} + +func (x *Event) ClearEventTime() { + x.xxx_hidden_EventTime = nil +} + +func (x *Event) ClearMetadata() { + x.xxx_hidden_Metadata = nil +} + +func (x *Event) ClearPayload() { + x.xxx_hidden_Payload = nil +} + +func (x *Event) ClearOrganizationCreated() { + if _, ok := x.xxx_hidden_Payload.(*event_OrganizationCreated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearOrganizationDeleted() { + if _, ok := x.xxx_hidden_Payload.(*event_OrganizationDeleted); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearOrganizationMemberAdded() { + if _, ok := x.xxx_hidden_Payload.(*event_OrganizationMemberAdded); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearOrganizationMemberRoleChanged() { + if _, ok := x.xxx_hidden_Payload.(*event_OrganizationMemberRoleChanged); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearOrganizationMemberRemoved() { + if _, ok := x.xxx_hidden_Payload.(*event_OrganizationMemberRemoved); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryCreated() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryCreated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryDeprecated() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryDeprecated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryUndeprecated() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryUndeprecated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryDeleted() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryDeleted); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryCommitPushed() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryCommitPushed); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryContributorAdded() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryContributorAdded); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryContributorRoleChanged() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryContributorRoleChanged); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryContributorRemoved() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryContributorRemoved); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryVisibilityChanged() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryVisibilityChanged); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryDefaultLabelNameChanged() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryDefaultLabelNameChanged); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearPluginCreated() { + if _, ok := x.xxx_hidden_Payload.(*event_PluginCreated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearPluginDeleted() { + if _, ok := x.xxx_hidden_Payload.(*event_PluginDeleted); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearPluginCommitPushed() { + if _, ok := x.xxx_hidden_Payload.(*event_PluginCommitPushed); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearUserCreated() { + if _, ok := x.xxx_hidden_Payload.(*event_UserCreated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearUserDeactivated() { + if _, ok := x.xxx_hidden_Payload.(*event_UserDeactivated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearUserDeleted() { + if _, ok := x.xxx_hidden_Payload.(*event_UserDeleted); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearUserLoggedIn() { + if _, ok := x.xxx_hidden_Payload.(*event_UserLoggedIn); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearUserLoggedOut() { + if _, ok := x.xxx_hidden_Payload.(*event_UserLoggedOut); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearCuratedPluginCreated() { + if _, ok := x.xxx_hidden_Payload.(*event_CuratedPluginCreated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearIdpGroupAdded() { + if _, ok := x.xxx_hidden_Payload.(*event_IdpGroupAdded); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearIdpGroupRemoved() { + if _, ok := x.xxx_hidden_Payload.(*event_IdpGroupRemoved); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearTokenCreated() { + if _, ok := x.xxx_hidden_Payload.(*event_TokenCreated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearTokenDeleted() { + if _, ok := x.xxx_hidden_Payload.(*event_TokenDeleted); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearUserReactivated() { + if _, ok := x.xxx_hidden_Payload.(*event_UserReactivated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearScimTokenCreated() { + if _, ok := x.xxx_hidden_Payload.(*event_ScimTokenCreated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearScimTokenDeleted() { + if _, ok := x.xxx_hidden_Payload.(*event_ScimTokenDeleted); ok { + x.xxx_hidden_Payload = nil + } +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) ClearRepositoryCommitDeleted() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryCommitDeleted); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryLabelCreated() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryLabelCreated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryLabelMoved() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryLabelMoved); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryLabelArchived() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryLabelArchived); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearRepositoryLabelUnarchived() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryLabelUnarchived); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearCuratedPluginDeleted() { + if _, ok := x.xxx_hidden_Payload.(*event_CuratedPluginDeleted); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearPayloadServerBreakingChangePolicyEnabled() { + if _, ok := x.xxx_hidden_Payload.(*event_PayloadServerBreakingChangePolicyEnabled); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearPayloadServerBreakingChangePolicyDisabled() { + if _, ok := x.xxx_hidden_Payload.(*event_PayloadServerBreakingChangePolicyDisabled); ok { + x.xxx_hidden_Payload = nil + } +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *Event) ClearRepositoryDefaultBranchChanged() { + if _, ok := x.xxx_hidden_Payload.(*event_RepositoryDefaultBranchChanged); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearPayloadServerUniquenessPolicyEnabled() { + if _, ok := x.xxx_hidden_Payload.(*event_PayloadServerUniquenessPolicyEnabled); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearPayloadServerUniquenessPolicyDisabled() { + if _, ok := x.xxx_hidden_Payload.(*event_PayloadServerUniquenessPolicyDisabled); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearUserAutoMergedFromNewIdp() { + if _, ok := x.xxx_hidden_Payload.(*event_UserAutoMergedFromNewIdp); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearDeviceAuthorizationGrantApproved() { + if _, ok := x.xxx_hidden_Payload.(*event_DeviceAuthorizationGrantApproved); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearDeviceAuthorizationGrantDenied() { + if _, ok := x.xxx_hidden_Payload.(*event_DeviceAuthorizationGrantDenied); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearPluginLabelCreated() { + if _, ok := x.xxx_hidden_Payload.(*event_PluginLabelCreated); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearPluginLabelMoved() { + if _, ok := x.xxx_hidden_Payload.(*event_PluginLabelMoved); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearPluginLabelArchived() { + if _, ok := x.xxx_hidden_Payload.(*event_PluginLabelArchived); ok { + x.xxx_hidden_Payload = nil + } +} + +func (x *Event) ClearPluginLabelUnarchived() { + if _, ok := x.xxx_hidden_Payload.(*event_PluginLabelUnarchived); ok { + x.xxx_hidden_Payload = nil + } +} + +const Event_Payload_not_set_case case_Event_Payload = 0 +const Event_OrganizationCreated_case case_Event_Payload = 7 +const Event_OrganizationDeleted_case case_Event_Payload = 8 +const Event_OrganizationMemberAdded_case case_Event_Payload = 9 +const Event_OrganizationMemberRoleChanged_case case_Event_Payload = 10 +const Event_OrganizationMemberRemoved_case case_Event_Payload = 11 +const Event_RepositoryCreated_case case_Event_Payload = 12 +const Event_RepositoryDeprecated_case case_Event_Payload = 54 +const Event_RepositoryUndeprecated_case case_Event_Payload = 55 +const Event_RepositoryDeleted_case case_Event_Payload = 13 +const Event_RepositoryCommitPushed_case case_Event_Payload = 14 +const Event_RepositoryContributorAdded_case case_Event_Payload = 15 +const Event_RepositoryContributorRoleChanged_case case_Event_Payload = 16 +const Event_RepositoryContributorRemoved_case case_Event_Payload = 17 +const Event_RepositoryVisibilityChanged_case case_Event_Payload = 18 +const Event_RepositoryDefaultLabelNameChanged_case case_Event_Payload = 46 +const Event_PluginCreated_case case_Event_Payload = 19 +const Event_PluginDeleted_case case_Event_Payload = 20 +const Event_PluginCommitPushed_case case_Event_Payload = 49 +const Event_UserCreated_case case_Event_Payload = 21 +const Event_UserDeactivated_case case_Event_Payload = 22 +const Event_UserDeleted_case case_Event_Payload = 23 +const Event_UserLoggedIn_case case_Event_Payload = 24 +const Event_UserLoggedOut_case case_Event_Payload = 25 +const Event_CuratedPluginCreated_case case_Event_Payload = 26 +const Event_IdpGroupAdded_case case_Event_Payload = 27 +const Event_IdpGroupRemoved_case case_Event_Payload = 28 +const Event_TokenCreated_case case_Event_Payload = 29 +const Event_TokenDeleted_case case_Event_Payload = 30 +const Event_UserReactivated_case case_Event_Payload = 31 +const Event_ScimTokenCreated_case case_Event_Payload = 32 +const Event_ScimTokenDeleted_case case_Event_Payload = 33 +const Event_RepositoryCommitDeleted_case case_Event_Payload = 34 +const Event_RepositoryLabelCreated_case case_Event_Payload = 35 +const Event_RepositoryLabelMoved_case case_Event_Payload = 36 +const Event_RepositoryLabelArchived_case case_Event_Payload = 44 +const Event_RepositoryLabelUnarchived_case case_Event_Payload = 45 +const Event_CuratedPluginDeleted_case case_Event_Payload = 37 +const Event_PayloadServerBreakingChangePolicyEnabled_case case_Event_Payload = 38 +const Event_PayloadServerBreakingChangePolicyDisabled_case case_Event_Payload = 39 +const Event_RepositoryDefaultBranchChanged_case case_Event_Payload = 40 +const Event_PayloadServerUniquenessPolicyEnabled_case case_Event_Payload = 41 +const Event_PayloadServerUniquenessPolicyDisabled_case case_Event_Payload = 42 +const Event_UserAutoMergedFromNewIdp_case case_Event_Payload = 43 +const Event_DeviceAuthorizationGrantApproved_case case_Event_Payload = 47 +const Event_DeviceAuthorizationGrantDenied_case case_Event_Payload = 48 +const Event_PluginLabelCreated_case case_Event_Payload = 50 +const Event_PluginLabelMoved_case case_Event_Payload = 51 +const Event_PluginLabelArchived_case case_Event_Payload = 52 +const Event_PluginLabelUnarchived_case case_Event_Payload = 53 + +func (x *Event) WhichPayload() case_Event_Payload { + if x == nil { + return Event_Payload_not_set_case + } + switch x.xxx_hidden_Payload.(type) { + case *event_OrganizationCreated: + return Event_OrganizationCreated_case + case *event_OrganizationDeleted: + return Event_OrganizationDeleted_case + case *event_OrganizationMemberAdded: + return Event_OrganizationMemberAdded_case + case *event_OrganizationMemberRoleChanged: + return Event_OrganizationMemberRoleChanged_case + case *event_OrganizationMemberRemoved: + return Event_OrganizationMemberRemoved_case + case *event_RepositoryCreated: + return Event_RepositoryCreated_case + case *event_RepositoryDeprecated: + return Event_RepositoryDeprecated_case + case *event_RepositoryUndeprecated: + return Event_RepositoryUndeprecated_case + case *event_RepositoryDeleted: + return Event_RepositoryDeleted_case + case *event_RepositoryCommitPushed: + return Event_RepositoryCommitPushed_case + case *event_RepositoryContributorAdded: + return Event_RepositoryContributorAdded_case + case *event_RepositoryContributorRoleChanged: + return Event_RepositoryContributorRoleChanged_case + case *event_RepositoryContributorRemoved: + return Event_RepositoryContributorRemoved_case + case *event_RepositoryVisibilityChanged: + return Event_RepositoryVisibilityChanged_case + case *event_RepositoryDefaultLabelNameChanged: + return Event_RepositoryDefaultLabelNameChanged_case + case *event_PluginCreated: + return Event_PluginCreated_case + case *event_PluginDeleted: + return Event_PluginDeleted_case + case *event_PluginCommitPushed: + return Event_PluginCommitPushed_case + case *event_UserCreated: + return Event_UserCreated_case + case *event_UserDeactivated: + return Event_UserDeactivated_case + case *event_UserDeleted: + return Event_UserDeleted_case + case *event_UserLoggedIn: + return Event_UserLoggedIn_case + case *event_UserLoggedOut: + return Event_UserLoggedOut_case + case *event_CuratedPluginCreated: + return Event_CuratedPluginCreated_case + case *event_IdpGroupAdded: + return Event_IdpGroupAdded_case + case *event_IdpGroupRemoved: + return Event_IdpGroupRemoved_case + case *event_TokenCreated: + return Event_TokenCreated_case + case *event_TokenDeleted: + return Event_TokenDeleted_case + case *event_UserReactivated: + return Event_UserReactivated_case + case *event_ScimTokenCreated: + return Event_ScimTokenCreated_case + case *event_ScimTokenDeleted: + return Event_ScimTokenDeleted_case + case *event_RepositoryCommitDeleted: + return Event_RepositoryCommitDeleted_case + case *event_RepositoryLabelCreated: + return Event_RepositoryLabelCreated_case + case *event_RepositoryLabelMoved: + return Event_RepositoryLabelMoved_case + case *event_RepositoryLabelArchived: + return Event_RepositoryLabelArchived_case + case *event_RepositoryLabelUnarchived: + return Event_RepositoryLabelUnarchived_case + case *event_CuratedPluginDeleted: + return Event_CuratedPluginDeleted_case + case *event_PayloadServerBreakingChangePolicyEnabled: + return Event_PayloadServerBreakingChangePolicyEnabled_case + case *event_PayloadServerBreakingChangePolicyDisabled: + return Event_PayloadServerBreakingChangePolicyDisabled_case + case *event_RepositoryDefaultBranchChanged: + return Event_RepositoryDefaultBranchChanged_case + case *event_PayloadServerUniquenessPolicyEnabled: + return Event_PayloadServerUniquenessPolicyEnabled_case + case *event_PayloadServerUniquenessPolicyDisabled: + return Event_PayloadServerUniquenessPolicyDisabled_case + case *event_UserAutoMergedFromNewIdp: + return Event_UserAutoMergedFromNewIdp_case + case *event_DeviceAuthorizationGrantApproved: + return Event_DeviceAuthorizationGrantApproved_case + case *event_DeviceAuthorizationGrantDenied: + return Event_DeviceAuthorizationGrantDenied_case + case *event_PluginLabelCreated: + return Event_PluginLabelCreated_case + case *event_PluginLabelMoved: + return Event_PluginLabelMoved_case + case *event_PluginLabelArchived: + return Event_PluginLabelArchived_case + case *event_PluginLabelUnarchived: + return Event_PluginLabelUnarchived_case + default: + return Event_Payload_not_set_case + } +} + +type Event_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Unique id of the audited event. + EventId string + // Type of the audited event. It specifies "what" happened. + Type EventType + // Actor of the audited event. It specifies "who" did it. + Actor *Actor + // Resource of the audited event. It specifies "which resource" was affected. + Resource *Resource + // Time of the audited event. It specifies "when" it happened. + EventTime *timestamppb.Timestamp + // Metadata about the audited event. It specifies any additional details about the audited event. + Metadata *EventMetadata + // Payload of the audited event. It specifies additional context on the event. + + // Fields of oneof xxx_hidden_Payload: + OrganizationCreated *PayloadOrganizationCreated + OrganizationDeleted *PayloadOrganizationDeleted + OrganizationMemberAdded *PayloadOrganizationMemberAdded + OrganizationMemberRoleChanged *PayloadOrganizationMemberRoleChanged + OrganizationMemberRemoved *PayloadOrganizationMemberRemoved + RepositoryCreated *PayloadRepositoryCreated + RepositoryDeprecated *PayloadRepositoryDeprecated + RepositoryUndeprecated *PayloadRepositoryUndeprecated + RepositoryDeleted *PayloadRepositoryDeleted + RepositoryCommitPushed *PayloadRepositoryCommitPushed + RepositoryContributorAdded *PayloadRepositoryContributorAdded + RepositoryContributorRoleChanged *PayloadRepositoryContributorRoleChanged + RepositoryContributorRemoved *PayloadRepositoryContributorRemoved + RepositoryVisibilityChanged *PayloadRepositoryVisibilityChanged + RepositoryDefaultLabelNameChanged *PayloadRepositoryDefaultLabelNameChanged + PluginCreated *PayloadPluginCreated + PluginDeleted *PayloadPluginDeleted + PluginCommitPushed *PayloadPluginCommitPushed + UserCreated *PayloadUserCreated + UserDeactivated *PayloadUserDeactivated + UserDeleted *PayloadUserDeleted + UserLoggedIn *PayloadUserLoggedIn + UserLoggedOut *PayloadUserLoggedOut + CuratedPluginCreated *PayloadCuratedPluginCreated + IdpGroupAdded *PayloadOrganizationIDPGroupAdded + IdpGroupRemoved *PayloadOrganizationIDPGroupRemoved + TokenCreated *PayloadTokenCreated + TokenDeleted *PayloadTokenDeleted + UserReactivated *PayloadUserReactivated + ScimTokenCreated *PayloadSCIMTokenCreated + ScimTokenDeleted *PayloadSCIMTokenDeleted + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + RepositoryCommitDeleted *PayloadRepositoryCommitDeleted + RepositoryLabelCreated *PayloadRepositoryLabelCreated + RepositoryLabelMoved *PayloadRepositoryLabelMoved + RepositoryLabelArchived *PayloadRepositoryLabelArchived + RepositoryLabelUnarchived *PayloadRepositoryLabelUnarchived + CuratedPluginDeleted *PayloadCuratedPluginDeleted + PayloadServerBreakingChangePolicyEnabled *PayloadServerBreakingChangePolicyEnabled + PayloadServerBreakingChangePolicyDisabled *PayloadServerBreakingChangePolicyDisabled + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + RepositoryDefaultBranchChanged *PayloadRepositoryDefaultBranchChanged + PayloadServerUniquenessPolicyEnabled *PayloadServerUniquenessPolicyEnabled + PayloadServerUniquenessPolicyDisabled *PayloadServerUniquenessPolicyDisabled + UserAutoMergedFromNewIdp *PayloadUserAutoMergedFromNewIdP + DeviceAuthorizationGrantApproved *PayloadDeviceAuthorizationGrantApproved + DeviceAuthorizationGrantDenied *PayloadDeviceAuthorizationGrantDenied + PluginLabelCreated *PayloadPluginLabelCreated + PluginLabelMoved *PayloadPluginLabelMoved + PluginLabelArchived *PayloadPluginLabelArchived + PluginLabelUnarchived *PayloadPluginLabelUnarchived + // -- end of xxx_hidden_Payload +} + +func (b0 Event_builder) Build() *Event { + m0 := &Event{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EventId = b.EventId + x.xxx_hidden_Type = b.Type + x.xxx_hidden_Actor = b.Actor + x.xxx_hidden_Resource = b.Resource + x.xxx_hidden_EventTime = b.EventTime + x.xxx_hidden_Metadata = b.Metadata + if b.OrganizationCreated != nil { + x.xxx_hidden_Payload = &event_OrganizationCreated{b.OrganizationCreated} + } + if b.OrganizationDeleted != nil { + x.xxx_hidden_Payload = &event_OrganizationDeleted{b.OrganizationDeleted} + } + if b.OrganizationMemberAdded != nil { + x.xxx_hidden_Payload = &event_OrganizationMemberAdded{b.OrganizationMemberAdded} + } + if b.OrganizationMemberRoleChanged != nil { + x.xxx_hidden_Payload = &event_OrganizationMemberRoleChanged{b.OrganizationMemberRoleChanged} + } + if b.OrganizationMemberRemoved != nil { + x.xxx_hidden_Payload = &event_OrganizationMemberRemoved{b.OrganizationMemberRemoved} + } + if b.RepositoryCreated != nil { + x.xxx_hidden_Payload = &event_RepositoryCreated{b.RepositoryCreated} + } + if b.RepositoryDeprecated != nil { + x.xxx_hidden_Payload = &event_RepositoryDeprecated{b.RepositoryDeprecated} + } + if b.RepositoryUndeprecated != nil { + x.xxx_hidden_Payload = &event_RepositoryUndeprecated{b.RepositoryUndeprecated} + } + if b.RepositoryDeleted != nil { + x.xxx_hidden_Payload = &event_RepositoryDeleted{b.RepositoryDeleted} + } + if b.RepositoryCommitPushed != nil { + x.xxx_hidden_Payload = &event_RepositoryCommitPushed{b.RepositoryCommitPushed} + } + if b.RepositoryContributorAdded != nil { + x.xxx_hidden_Payload = &event_RepositoryContributorAdded{b.RepositoryContributorAdded} + } + if b.RepositoryContributorRoleChanged != nil { + x.xxx_hidden_Payload = &event_RepositoryContributorRoleChanged{b.RepositoryContributorRoleChanged} + } + if b.RepositoryContributorRemoved != nil { + x.xxx_hidden_Payload = &event_RepositoryContributorRemoved{b.RepositoryContributorRemoved} + } + if b.RepositoryVisibilityChanged != nil { + x.xxx_hidden_Payload = &event_RepositoryVisibilityChanged{b.RepositoryVisibilityChanged} + } + if b.RepositoryDefaultLabelNameChanged != nil { + x.xxx_hidden_Payload = &event_RepositoryDefaultLabelNameChanged{b.RepositoryDefaultLabelNameChanged} + } + if b.PluginCreated != nil { + x.xxx_hidden_Payload = &event_PluginCreated{b.PluginCreated} + } + if b.PluginDeleted != nil { + x.xxx_hidden_Payload = &event_PluginDeleted{b.PluginDeleted} + } + if b.PluginCommitPushed != nil { + x.xxx_hidden_Payload = &event_PluginCommitPushed{b.PluginCommitPushed} + } + if b.UserCreated != nil { + x.xxx_hidden_Payload = &event_UserCreated{b.UserCreated} + } + if b.UserDeactivated != nil { + x.xxx_hidden_Payload = &event_UserDeactivated{b.UserDeactivated} + } + if b.UserDeleted != nil { + x.xxx_hidden_Payload = &event_UserDeleted{b.UserDeleted} + } + if b.UserLoggedIn != nil { + x.xxx_hidden_Payload = &event_UserLoggedIn{b.UserLoggedIn} + } + if b.UserLoggedOut != nil { + x.xxx_hidden_Payload = &event_UserLoggedOut{b.UserLoggedOut} + } + if b.CuratedPluginCreated != nil { + x.xxx_hidden_Payload = &event_CuratedPluginCreated{b.CuratedPluginCreated} + } + if b.IdpGroupAdded != nil { + x.xxx_hidden_Payload = &event_IdpGroupAdded{b.IdpGroupAdded} + } + if b.IdpGroupRemoved != nil { + x.xxx_hidden_Payload = &event_IdpGroupRemoved{b.IdpGroupRemoved} + } + if b.TokenCreated != nil { + x.xxx_hidden_Payload = &event_TokenCreated{b.TokenCreated} + } + if b.TokenDeleted != nil { + x.xxx_hidden_Payload = &event_TokenDeleted{b.TokenDeleted} + } + if b.UserReactivated != nil { + x.xxx_hidden_Payload = &event_UserReactivated{b.UserReactivated} + } + if b.ScimTokenCreated != nil { + x.xxx_hidden_Payload = &event_ScimTokenCreated{b.ScimTokenCreated} + } + if b.ScimTokenDeleted != nil { + x.xxx_hidden_Payload = &event_ScimTokenDeleted{b.ScimTokenDeleted} + } + if b.RepositoryCommitDeleted != nil { + x.xxx_hidden_Payload = &event_RepositoryCommitDeleted{b.RepositoryCommitDeleted} + } + if b.RepositoryLabelCreated != nil { + x.xxx_hidden_Payload = &event_RepositoryLabelCreated{b.RepositoryLabelCreated} + } + if b.RepositoryLabelMoved != nil { + x.xxx_hidden_Payload = &event_RepositoryLabelMoved{b.RepositoryLabelMoved} + } + if b.RepositoryLabelArchived != nil { + x.xxx_hidden_Payload = &event_RepositoryLabelArchived{b.RepositoryLabelArchived} + } + if b.RepositoryLabelUnarchived != nil { + x.xxx_hidden_Payload = &event_RepositoryLabelUnarchived{b.RepositoryLabelUnarchived} + } + if b.CuratedPluginDeleted != nil { + x.xxx_hidden_Payload = &event_CuratedPluginDeleted{b.CuratedPluginDeleted} + } + if b.PayloadServerBreakingChangePolicyEnabled != nil { + x.xxx_hidden_Payload = &event_PayloadServerBreakingChangePolicyEnabled{b.PayloadServerBreakingChangePolicyEnabled} + } + if b.PayloadServerBreakingChangePolicyDisabled != nil { + x.xxx_hidden_Payload = &event_PayloadServerBreakingChangePolicyDisabled{b.PayloadServerBreakingChangePolicyDisabled} + } + if b.RepositoryDefaultBranchChanged != nil { + x.xxx_hidden_Payload = &event_RepositoryDefaultBranchChanged{b.RepositoryDefaultBranchChanged} + } + if b.PayloadServerUniquenessPolicyEnabled != nil { + x.xxx_hidden_Payload = &event_PayloadServerUniquenessPolicyEnabled{b.PayloadServerUniquenessPolicyEnabled} + } + if b.PayloadServerUniquenessPolicyDisabled != nil { + x.xxx_hidden_Payload = &event_PayloadServerUniquenessPolicyDisabled{b.PayloadServerUniquenessPolicyDisabled} + } + if b.UserAutoMergedFromNewIdp != nil { + x.xxx_hidden_Payload = &event_UserAutoMergedFromNewIdp{b.UserAutoMergedFromNewIdp} + } + if b.DeviceAuthorizationGrantApproved != nil { + x.xxx_hidden_Payload = &event_DeviceAuthorizationGrantApproved{b.DeviceAuthorizationGrantApproved} + } + if b.DeviceAuthorizationGrantDenied != nil { + x.xxx_hidden_Payload = &event_DeviceAuthorizationGrantDenied{b.DeviceAuthorizationGrantDenied} + } + if b.PluginLabelCreated != nil { + x.xxx_hidden_Payload = &event_PluginLabelCreated{b.PluginLabelCreated} + } + if b.PluginLabelMoved != nil { + x.xxx_hidden_Payload = &event_PluginLabelMoved{b.PluginLabelMoved} + } + if b.PluginLabelArchived != nil { + x.xxx_hidden_Payload = &event_PluginLabelArchived{b.PluginLabelArchived} + } + if b.PluginLabelUnarchived != nil { + x.xxx_hidden_Payload = &event_PluginLabelUnarchived{b.PluginLabelUnarchived} + } + return m0 +} + +type case_Event_Payload protoreflect.FieldNumber + +func (x case_Event_Payload) String() string { + md := file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[3].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isEvent_Payload interface { + isEvent_Payload() +} + +type event_OrganizationCreated struct { + OrganizationCreated *PayloadOrganizationCreated `protobuf:"bytes,7,opt,name=organization_created,json=organizationCreated,proto3,oneof"` +} + +type event_OrganizationDeleted struct { + OrganizationDeleted *PayloadOrganizationDeleted `protobuf:"bytes,8,opt,name=organization_deleted,json=organizationDeleted,proto3,oneof"` +} + +type event_OrganizationMemberAdded struct { + OrganizationMemberAdded *PayloadOrganizationMemberAdded `protobuf:"bytes,9,opt,name=organization_member_added,json=organizationMemberAdded,proto3,oneof"` +} + +type event_OrganizationMemberRoleChanged struct { + OrganizationMemberRoleChanged *PayloadOrganizationMemberRoleChanged `protobuf:"bytes,10,opt,name=organization_member_role_changed,json=organizationMemberRoleChanged,proto3,oneof"` +} + +type event_OrganizationMemberRemoved struct { + OrganizationMemberRemoved *PayloadOrganizationMemberRemoved `protobuf:"bytes,11,opt,name=organization_member_removed,json=organizationMemberRemoved,proto3,oneof"` +} + +type event_RepositoryCreated struct { + RepositoryCreated *PayloadRepositoryCreated `protobuf:"bytes,12,opt,name=repository_created,json=repositoryCreated,proto3,oneof"` +} + +type event_RepositoryDeprecated struct { + RepositoryDeprecated *PayloadRepositoryDeprecated `protobuf:"bytes,54,opt,name=repository_deprecated,json=repositoryDeprecated,proto3,oneof"` +} + +type event_RepositoryUndeprecated struct { + RepositoryUndeprecated *PayloadRepositoryUndeprecated `protobuf:"bytes,55,opt,name=repository_undeprecated,json=repositoryUndeprecated,proto3,oneof"` +} + +type event_RepositoryDeleted struct { + RepositoryDeleted *PayloadRepositoryDeleted `protobuf:"bytes,13,opt,name=repository_deleted,json=repositoryDeleted,proto3,oneof"` +} + +type event_RepositoryCommitPushed struct { + RepositoryCommitPushed *PayloadRepositoryCommitPushed `protobuf:"bytes,14,opt,name=repository_commit_pushed,json=repositoryCommitPushed,proto3,oneof"` +} + +type event_RepositoryContributorAdded struct { + RepositoryContributorAdded *PayloadRepositoryContributorAdded `protobuf:"bytes,15,opt,name=repository_contributor_added,json=repositoryContributorAdded,proto3,oneof"` +} + +type event_RepositoryContributorRoleChanged struct { + RepositoryContributorRoleChanged *PayloadRepositoryContributorRoleChanged `protobuf:"bytes,16,opt,name=repository_contributor_role_changed,json=repositoryContributorRoleChanged,proto3,oneof"` +} + +type event_RepositoryContributorRemoved struct { + RepositoryContributorRemoved *PayloadRepositoryContributorRemoved `protobuf:"bytes,17,opt,name=repository_contributor_removed,json=repositoryContributorRemoved,proto3,oneof"` +} + +type event_RepositoryVisibilityChanged struct { + RepositoryVisibilityChanged *PayloadRepositoryVisibilityChanged `protobuf:"bytes,18,opt,name=repository_visibility_changed,json=repositoryVisibilityChanged,proto3,oneof"` +} + +type event_RepositoryDefaultLabelNameChanged struct { + RepositoryDefaultLabelNameChanged *PayloadRepositoryDefaultLabelNameChanged `protobuf:"bytes,46,opt,name=repository_default_label_name_changed,json=repositoryDefaultLabelNameChanged,proto3,oneof"` +} + +type event_PluginCreated struct { + PluginCreated *PayloadPluginCreated `protobuf:"bytes,19,opt,name=plugin_created,json=pluginCreated,proto3,oneof"` +} + +type event_PluginDeleted struct { + PluginDeleted *PayloadPluginDeleted `protobuf:"bytes,20,opt,name=plugin_deleted,json=pluginDeleted,proto3,oneof"` +} + +type event_PluginCommitPushed struct { + PluginCommitPushed *PayloadPluginCommitPushed `protobuf:"bytes,49,opt,name=plugin_commit_pushed,json=pluginCommitPushed,proto3,oneof"` +} + +type event_UserCreated struct { + UserCreated *PayloadUserCreated `protobuf:"bytes,21,opt,name=user_created,json=userCreated,proto3,oneof"` +} + +type event_UserDeactivated struct { + UserDeactivated *PayloadUserDeactivated `protobuf:"bytes,22,opt,name=user_deactivated,json=userDeactivated,proto3,oneof"` +} + +type event_UserDeleted struct { + UserDeleted *PayloadUserDeleted `protobuf:"bytes,23,opt,name=user_deleted,json=userDeleted,proto3,oneof"` +} + +type event_UserLoggedIn struct { + UserLoggedIn *PayloadUserLoggedIn `protobuf:"bytes,24,opt,name=user_logged_in,json=userLoggedIn,proto3,oneof"` +} + +type event_UserLoggedOut struct { + UserLoggedOut *PayloadUserLoggedOut `protobuf:"bytes,25,opt,name=user_logged_out,json=userLoggedOut,proto3,oneof"` +} + +type event_CuratedPluginCreated struct { + CuratedPluginCreated *PayloadCuratedPluginCreated `protobuf:"bytes,26,opt,name=curated_plugin_created,json=curatedPluginCreated,proto3,oneof"` +} + +type event_IdpGroupAdded struct { + IdpGroupAdded *PayloadOrganizationIDPGroupAdded `protobuf:"bytes,27,opt,name=idp_group_added,json=idpGroupAdded,proto3,oneof"` +} + +type event_IdpGroupRemoved struct { + IdpGroupRemoved *PayloadOrganizationIDPGroupRemoved `protobuf:"bytes,28,opt,name=idp_group_removed,json=idpGroupRemoved,proto3,oneof"` +} + +type event_TokenCreated struct { + TokenCreated *PayloadTokenCreated `protobuf:"bytes,29,opt,name=token_created,json=tokenCreated,proto3,oneof"` +} + +type event_TokenDeleted struct { + TokenDeleted *PayloadTokenDeleted `protobuf:"bytes,30,opt,name=token_deleted,json=tokenDeleted,proto3,oneof"` +} + +type event_UserReactivated struct { + UserReactivated *PayloadUserReactivated `protobuf:"bytes,31,opt,name=user_reactivated,json=userReactivated,proto3,oneof"` +} + +type event_ScimTokenCreated struct { + ScimTokenCreated *PayloadSCIMTokenCreated `protobuf:"bytes,32,opt,name=scim_token_created,json=scimTokenCreated,proto3,oneof"` +} + +type event_ScimTokenDeleted struct { + ScimTokenDeleted *PayloadSCIMTokenDeleted `protobuf:"bytes,33,opt,name=scim_token_deleted,json=scimTokenDeleted,proto3,oneof"` +} + +type event_RepositoryCommitDeleted struct { + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + RepositoryCommitDeleted *PayloadRepositoryCommitDeleted `protobuf:"bytes,34,opt,name=repository_commit_deleted,json=repositoryCommitDeleted,proto3,oneof"` +} + +type event_RepositoryLabelCreated struct { + RepositoryLabelCreated *PayloadRepositoryLabelCreated `protobuf:"bytes,35,opt,name=repository_label_created,json=repositoryLabelCreated,proto3,oneof"` +} + +type event_RepositoryLabelMoved struct { + RepositoryLabelMoved *PayloadRepositoryLabelMoved `protobuf:"bytes,36,opt,name=repository_label_moved,json=repositoryLabelMoved,proto3,oneof"` +} + +type event_RepositoryLabelArchived struct { + RepositoryLabelArchived *PayloadRepositoryLabelArchived `protobuf:"bytes,44,opt,name=repository_label_archived,json=repositoryLabelArchived,proto3,oneof"` +} + +type event_RepositoryLabelUnarchived struct { + RepositoryLabelUnarchived *PayloadRepositoryLabelUnarchived `protobuf:"bytes,45,opt,name=repository_label_unarchived,json=repositoryLabelUnarchived,proto3,oneof"` +} + +type event_CuratedPluginDeleted struct { + CuratedPluginDeleted *PayloadCuratedPluginDeleted `protobuf:"bytes,37,opt,name=curated_plugin_deleted,json=curatedPluginDeleted,proto3,oneof"` +} + +type event_PayloadServerBreakingChangePolicyEnabled struct { + PayloadServerBreakingChangePolicyEnabled *PayloadServerBreakingChangePolicyEnabled `protobuf:"bytes,38,opt,name=payload_server_breaking_change_policy_enabled,json=payloadServerBreakingChangePolicyEnabled,proto3,oneof"` +} + +type event_PayloadServerBreakingChangePolicyDisabled struct { + PayloadServerBreakingChangePolicyDisabled *PayloadServerBreakingChangePolicyDisabled `protobuf:"bytes,39,opt,name=payload_server_breaking_change_policy_disabled,json=payloadServerBreakingChangePolicyDisabled,proto3,oneof"` +} + +type event_RepositoryDefaultBranchChanged struct { + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + RepositoryDefaultBranchChanged *PayloadRepositoryDefaultBranchChanged `protobuf:"bytes,40,opt,name=repository_default_branch_changed,json=repositoryDefaultBranchChanged,proto3,oneof"` +} + +type event_PayloadServerUniquenessPolicyEnabled struct { + PayloadServerUniquenessPolicyEnabled *PayloadServerUniquenessPolicyEnabled `protobuf:"bytes,41,opt,name=payload_server_uniqueness_policy_enabled,json=payloadServerUniquenessPolicyEnabled,proto3,oneof"` +} + +type event_PayloadServerUniquenessPolicyDisabled struct { + PayloadServerUniquenessPolicyDisabled *PayloadServerUniquenessPolicyDisabled `protobuf:"bytes,42,opt,name=payload_server_uniqueness_policy_disabled,json=payloadServerUniquenessPolicyDisabled,proto3,oneof"` +} + +type event_UserAutoMergedFromNewIdp struct { + UserAutoMergedFromNewIdp *PayloadUserAutoMergedFromNewIdP `protobuf:"bytes,43,opt,name=user_auto_merged_from_new_idp,json=userAutoMergedFromNewIdp,proto3,oneof"` +} + +type event_DeviceAuthorizationGrantApproved struct { + DeviceAuthorizationGrantApproved *PayloadDeviceAuthorizationGrantApproved `protobuf:"bytes,47,opt,name=device_authorization_grant_approved,json=deviceAuthorizationGrantApproved,proto3,oneof"` +} + +type event_DeviceAuthorizationGrantDenied struct { + DeviceAuthorizationGrantDenied *PayloadDeviceAuthorizationGrantDenied `protobuf:"bytes,48,opt,name=device_authorization_grant_denied,json=deviceAuthorizationGrantDenied,proto3,oneof"` +} + +type event_PluginLabelCreated struct { + PluginLabelCreated *PayloadPluginLabelCreated `protobuf:"bytes,50,opt,name=plugin_label_created,json=pluginLabelCreated,proto3,oneof"` +} + +type event_PluginLabelMoved struct { + PluginLabelMoved *PayloadPluginLabelMoved `protobuf:"bytes,51,opt,name=plugin_label_moved,json=pluginLabelMoved,proto3,oneof"` +} + +type event_PluginLabelArchived struct { + PluginLabelArchived *PayloadPluginLabelArchived `protobuf:"bytes,52,opt,name=plugin_label_archived,json=pluginLabelArchived,proto3,oneof"` +} + +type event_PluginLabelUnarchived struct { + PluginLabelUnarchived *PayloadPluginLabelUnarchived `protobuf:"bytes,53,opt,name=plugin_label_unarchived,json=pluginLabelUnarchived,proto3,oneof"` +} + +func (*event_OrganizationCreated) isEvent_Payload() {} + +func (*event_OrganizationDeleted) isEvent_Payload() {} + +func (*event_OrganizationMemberAdded) isEvent_Payload() {} + +func (*event_OrganizationMemberRoleChanged) isEvent_Payload() {} + +func (*event_OrganizationMemberRemoved) isEvent_Payload() {} + +func (*event_RepositoryCreated) isEvent_Payload() {} + +func (*event_RepositoryDeprecated) isEvent_Payload() {} + +func (*event_RepositoryUndeprecated) isEvent_Payload() {} + +func (*event_RepositoryDeleted) isEvent_Payload() {} + +func (*event_RepositoryCommitPushed) isEvent_Payload() {} + +func (*event_RepositoryContributorAdded) isEvent_Payload() {} + +func (*event_RepositoryContributorRoleChanged) isEvent_Payload() {} + +func (*event_RepositoryContributorRemoved) isEvent_Payload() {} + +func (*event_RepositoryVisibilityChanged) isEvent_Payload() {} + +func (*event_RepositoryDefaultLabelNameChanged) isEvent_Payload() {} + +func (*event_PluginCreated) isEvent_Payload() {} + +func (*event_PluginDeleted) isEvent_Payload() {} + +func (*event_PluginCommitPushed) isEvent_Payload() {} + +func (*event_UserCreated) isEvent_Payload() {} + +func (*event_UserDeactivated) isEvent_Payload() {} + +func (*event_UserDeleted) isEvent_Payload() {} + +func (*event_UserLoggedIn) isEvent_Payload() {} + +func (*event_UserLoggedOut) isEvent_Payload() {} + +func (*event_CuratedPluginCreated) isEvent_Payload() {} + +func (*event_IdpGroupAdded) isEvent_Payload() {} + +func (*event_IdpGroupRemoved) isEvent_Payload() {} + +func (*event_TokenCreated) isEvent_Payload() {} + +func (*event_TokenDeleted) isEvent_Payload() {} + +func (*event_UserReactivated) isEvent_Payload() {} + +func (*event_ScimTokenCreated) isEvent_Payload() {} + +func (*event_ScimTokenDeleted) isEvent_Payload() {} + +func (*event_RepositoryCommitDeleted) isEvent_Payload() {} + +func (*event_RepositoryLabelCreated) isEvent_Payload() {} + +func (*event_RepositoryLabelMoved) isEvent_Payload() {} + +func (*event_RepositoryLabelArchived) isEvent_Payload() {} + +func (*event_RepositoryLabelUnarchived) isEvent_Payload() {} + +func (*event_CuratedPluginDeleted) isEvent_Payload() {} + +func (*event_PayloadServerBreakingChangePolicyEnabled) isEvent_Payload() {} + +func (*event_PayloadServerBreakingChangePolicyDisabled) isEvent_Payload() {} + +func (*event_RepositoryDefaultBranchChanged) isEvent_Payload() {} + +func (*event_PayloadServerUniquenessPolicyEnabled) isEvent_Payload() {} + +func (*event_PayloadServerUniquenessPolicyDisabled) isEvent_Payload() {} + +func (*event_UserAutoMergedFromNewIdp) isEvent_Payload() {} + +func (*event_DeviceAuthorizationGrantApproved) isEvent_Payload() {} + +func (*event_DeviceAuthorizationGrantDenied) isEvent_Payload() {} + +func (*event_PluginLabelCreated) isEvent_Payload() {} + +func (*event_PluginLabelMoved) isEvent_Payload() {} + +func (*event_PluginLabelArchived) isEvent_Payload() {} + +func (*event_PluginLabelUnarchived) isEvent_Payload() {} + +type PayloadOrganizationCreated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadOrganizationCreated) Reset() { + *x = PayloadOrganizationCreated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadOrganizationCreated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadOrganizationCreated) ProtoMessage() {} + +func (x *PayloadOrganizationCreated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadOrganizationCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadOrganizationCreated_builder) Build() *PayloadOrganizationCreated { + m0 := &PayloadOrganizationCreated{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PayloadOrganizationDeleted struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadOrganizationDeleted) Reset() { + *x = PayloadOrganizationDeleted{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadOrganizationDeleted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadOrganizationDeleted) ProtoMessage() {} + +func (x *PayloadOrganizationDeleted) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadOrganizationDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadOrganizationDeleted_builder) Build() *PayloadOrganizationDeleted { + m0 := &PayloadOrganizationDeleted{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PayloadOrganizationMemberAdded struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_OrganizationName string `protobuf:"bytes,2,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"` + xxx_hidden_MemberRole v1alpha1.OrganizationRole `protobuf:"varint,3,opt,name=member_role,json=memberRole,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"member_role,omitempty"` + xxx_hidden_MemberRoleSource v1alpha1.OrganizationRoleSource `protobuf:"varint,4,opt,name=member_role_source,json=memberRoleSource,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRoleSource" json:"member_role_source,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadOrganizationMemberAdded) Reset() { + *x = PayloadOrganizationMemberAdded{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadOrganizationMemberAdded) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadOrganizationMemberAdded) ProtoMessage() {} + +func (x *PayloadOrganizationMemberAdded) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadOrganizationMemberAdded) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *PayloadOrganizationMemberAdded) GetOrganizationName() string { + if x != nil { + return x.xxx_hidden_OrganizationName + } + return "" +} + +func (x *PayloadOrganizationMemberAdded) GetMemberRole() v1alpha1.OrganizationRole { + if x != nil { + return x.xxx_hidden_MemberRole + } + return v1alpha1.OrganizationRole(0) +} + +func (x *PayloadOrganizationMemberAdded) GetMemberRoleSource() v1alpha1.OrganizationRoleSource { + if x != nil { + return x.xxx_hidden_MemberRoleSource + } + return v1alpha1.OrganizationRoleSource(0) +} + +func (x *PayloadOrganizationMemberAdded) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *PayloadOrganizationMemberAdded) SetOrganizationName(v string) { + x.xxx_hidden_OrganizationName = v +} + +func (x *PayloadOrganizationMemberAdded) SetMemberRole(v v1alpha1.OrganizationRole) { + x.xxx_hidden_MemberRole = v +} + +func (x *PayloadOrganizationMemberAdded) SetMemberRoleSource(v v1alpha1.OrganizationRoleSource) { + x.xxx_hidden_MemberRoleSource = v +} + +type PayloadOrganizationMemberAdded_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // organization_id is the id of the organization with the new member. + OrganizationId string + // organization_name is the name of the organization with the new member. + OrganizationName string + // member_role is the role granted to the member added to the organization. + MemberRole v1alpha1.OrganizationRole + // member_role_source is the source of the role granted to the member. + MemberRoleSource v1alpha1.OrganizationRoleSource +} + +func (b0 PayloadOrganizationMemberAdded_builder) Build() *PayloadOrganizationMemberAdded { + m0 := &PayloadOrganizationMemberAdded{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_OrganizationName = b.OrganizationName + x.xxx_hidden_MemberRole = b.MemberRole + x.xxx_hidden_MemberRoleSource = b.MemberRoleSource + return m0 +} + +type PayloadOrganizationMemberRoleChanged struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_OrganizationName string `protobuf:"bytes,2,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"` + xxx_hidden_OldRole v1alpha1.OrganizationRole `protobuf:"varint,3,opt,name=old_role,json=oldRole,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"old_role,omitempty"` + xxx_hidden_NewRole v1alpha1.OrganizationRole `protobuf:"varint,4,opt,name=new_role,json=newRole,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"new_role,omitempty"` + xxx_hidden_OldMemberRoleSource v1alpha1.OrganizationRoleSource `protobuf:"varint,5,opt,name=old_member_role_source,json=oldMemberRoleSource,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRoleSource" json:"old_member_role_source,omitempty"` + xxx_hidden_NewMemberRoleSource v1alpha1.OrganizationRoleSource `protobuf:"varint,6,opt,name=new_member_role_source,json=newMemberRoleSource,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRoleSource" json:"new_member_role_source,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadOrganizationMemberRoleChanged) Reset() { + *x = PayloadOrganizationMemberRoleChanged{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadOrganizationMemberRoleChanged) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadOrganizationMemberRoleChanged) ProtoMessage() {} + +func (x *PayloadOrganizationMemberRoleChanged) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadOrganizationMemberRoleChanged) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *PayloadOrganizationMemberRoleChanged) GetOrganizationName() string { + if x != nil { + return x.xxx_hidden_OrganizationName + } + return "" +} + +func (x *PayloadOrganizationMemberRoleChanged) GetOldRole() v1alpha1.OrganizationRole { + if x != nil { + return x.xxx_hidden_OldRole + } + return v1alpha1.OrganizationRole(0) +} + +func (x *PayloadOrganizationMemberRoleChanged) GetNewRole() v1alpha1.OrganizationRole { + if x != nil { + return x.xxx_hidden_NewRole + } + return v1alpha1.OrganizationRole(0) +} + +func (x *PayloadOrganizationMemberRoleChanged) GetOldMemberRoleSource() v1alpha1.OrganizationRoleSource { + if x != nil { + return x.xxx_hidden_OldMemberRoleSource + } + return v1alpha1.OrganizationRoleSource(0) +} + +func (x *PayloadOrganizationMemberRoleChanged) GetNewMemberRoleSource() v1alpha1.OrganizationRoleSource { + if x != nil { + return x.xxx_hidden_NewMemberRoleSource + } + return v1alpha1.OrganizationRoleSource(0) +} + +func (x *PayloadOrganizationMemberRoleChanged) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *PayloadOrganizationMemberRoleChanged) SetOrganizationName(v string) { + x.xxx_hidden_OrganizationName = v +} + +func (x *PayloadOrganizationMemberRoleChanged) SetOldRole(v v1alpha1.OrganizationRole) { + x.xxx_hidden_OldRole = v +} + +func (x *PayloadOrganizationMemberRoleChanged) SetNewRole(v v1alpha1.OrganizationRole) { + x.xxx_hidden_NewRole = v +} + +func (x *PayloadOrganizationMemberRoleChanged) SetOldMemberRoleSource(v v1alpha1.OrganizationRoleSource) { + x.xxx_hidden_OldMemberRoleSource = v +} + +func (x *PayloadOrganizationMemberRoleChanged) SetNewMemberRoleSource(v v1alpha1.OrganizationRoleSource) { + x.xxx_hidden_NewMemberRoleSource = v +} + +type PayloadOrganizationMemberRoleChanged_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // organization_id is the id of the organization within which the role was changed. + OrganizationId string + // organization_name is the name of the organization within which the role was changed. + OrganizationName string + // old_role is the old role of the member whose role was changed. + OldRole v1alpha1.OrganizationRole + // new_role is the new role of the member whose role was changed. + NewRole v1alpha1.OrganizationRole + // old_member_role_source is the old source of the role granted to the member. + OldMemberRoleSource v1alpha1.OrganizationRoleSource + // new_member_role_source is the new source of the role granted to the member. + NewMemberRoleSource v1alpha1.OrganizationRoleSource +} + +func (b0 PayloadOrganizationMemberRoleChanged_builder) Build() *PayloadOrganizationMemberRoleChanged { + m0 := &PayloadOrganizationMemberRoleChanged{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_OrganizationName = b.OrganizationName + x.xxx_hidden_OldRole = b.OldRole + x.xxx_hidden_NewRole = b.NewRole + x.xxx_hidden_OldMemberRoleSource = b.OldMemberRoleSource + x.xxx_hidden_NewMemberRoleSource = b.NewMemberRoleSource + return m0 +} + +type PayloadOrganizationMemberRemoved struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_OrganizationName string `protobuf:"bytes,2,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"` + xxx_hidden_MemberRole v1alpha1.OrganizationRole `protobuf:"varint,3,opt,name=member_role,json=memberRole,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"member_role,omitempty"` + xxx_hidden_MemberRoleSource v1alpha1.OrganizationRoleSource `protobuf:"varint,4,opt,name=member_role_source,json=memberRoleSource,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRoleSource" json:"member_role_source,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadOrganizationMemberRemoved) Reset() { + *x = PayloadOrganizationMemberRemoved{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadOrganizationMemberRemoved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadOrganizationMemberRemoved) ProtoMessage() {} + +func (x *PayloadOrganizationMemberRemoved) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadOrganizationMemberRemoved) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *PayloadOrganizationMemberRemoved) GetOrganizationName() string { + if x != nil { + return x.xxx_hidden_OrganizationName + } + return "" +} + +func (x *PayloadOrganizationMemberRemoved) GetMemberRole() v1alpha1.OrganizationRole { + if x != nil { + return x.xxx_hidden_MemberRole + } + return v1alpha1.OrganizationRole(0) +} + +func (x *PayloadOrganizationMemberRemoved) GetMemberRoleSource() v1alpha1.OrganizationRoleSource { + if x != nil { + return x.xxx_hidden_MemberRoleSource + } + return v1alpha1.OrganizationRoleSource(0) +} + +func (x *PayloadOrganizationMemberRemoved) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *PayloadOrganizationMemberRemoved) SetOrganizationName(v string) { + x.xxx_hidden_OrganizationName = v +} + +func (x *PayloadOrganizationMemberRemoved) SetMemberRole(v v1alpha1.OrganizationRole) { + x.xxx_hidden_MemberRole = v +} + +func (x *PayloadOrganizationMemberRemoved) SetMemberRoleSource(v v1alpha1.OrganizationRoleSource) { + x.xxx_hidden_MemberRoleSource = v +} + +type PayloadOrganizationMemberRemoved_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // organization_id is the id of the organization that the member was removed from. + OrganizationId string + // organization_name is the name of the organization that the member was removed from. + OrganizationName string + // member_role is the role that the member had when removed from the organization. + MemberRole v1alpha1.OrganizationRole + // member_role_source is the source of the role granted to the member. + MemberRoleSource v1alpha1.OrganizationRoleSource +} + +func (b0 PayloadOrganizationMemberRemoved_builder) Build() *PayloadOrganizationMemberRemoved { + m0 := &PayloadOrganizationMemberRemoved{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_OrganizationName = b.OrganizationName + x.xxx_hidden_MemberRole = b.MemberRole + x.xxx_hidden_MemberRoleSource = b.MemberRoleSource + return m0 +} + +type PayloadOrganizationIDPGroupAdded struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_OrganizationName string `protobuf:"bytes,2,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadOrganizationIDPGroupAdded) Reset() { + *x = PayloadOrganizationIDPGroupAdded{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadOrganizationIDPGroupAdded) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadOrganizationIDPGroupAdded) ProtoMessage() {} + +func (x *PayloadOrganizationIDPGroupAdded) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadOrganizationIDPGroupAdded) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *PayloadOrganizationIDPGroupAdded) GetOrganizationName() string { + if x != nil { + return x.xxx_hidden_OrganizationName + } + return "" +} + +func (x *PayloadOrganizationIDPGroupAdded) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *PayloadOrganizationIDPGroupAdded) SetOrganizationName(v string) { + x.xxx_hidden_OrganizationName = v +} + +type PayloadOrganizationIDPGroupAdded_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // organization_id is the id of the organization with the new IDP group. + OrganizationId string + // organization_name is the name of the organization with the new IDP group. + OrganizationName string +} + +func (b0 PayloadOrganizationIDPGroupAdded_builder) Build() *PayloadOrganizationIDPGroupAdded { + m0 := &PayloadOrganizationIDPGroupAdded{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_OrganizationName = b.OrganizationName + return m0 +} + +type PayloadOrganizationIDPGroupRemoved struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_OrganizationName string `protobuf:"bytes,2,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadOrganizationIDPGroupRemoved) Reset() { + *x = PayloadOrganizationIDPGroupRemoved{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadOrganizationIDPGroupRemoved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadOrganizationIDPGroupRemoved) ProtoMessage() {} + +func (x *PayloadOrganizationIDPGroupRemoved) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadOrganizationIDPGroupRemoved) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *PayloadOrganizationIDPGroupRemoved) GetOrganizationName() string { + if x != nil { + return x.xxx_hidden_OrganizationName + } + return "" +} + +func (x *PayloadOrganizationIDPGroupRemoved) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *PayloadOrganizationIDPGroupRemoved) SetOrganizationName(v string) { + x.xxx_hidden_OrganizationName = v +} + +type PayloadOrganizationIDPGroupRemoved_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // organization_id is the id of the organization with the removed IDP group. + OrganizationId string + // organization_name is the name of the organization with the removed IDP group. + OrganizationName string +} + +func (b0 PayloadOrganizationIDPGroupRemoved_builder) Build() *PayloadOrganizationIDPGroupRemoved { + m0 := &PayloadOrganizationIDPGroupRemoved{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_OrganizationName = b.OrganizationName + return m0 +} + +type PayloadRepositoryCreated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_Visibility v1alpha1.Visibility `protobuf:"varint,3,opt,name=visibility,proto3,enum=buf.alpha.registry.v1alpha1.Visibility" json:"visibility,omitempty"` + xxx_hidden_DefaultLabelName string `protobuf:"bytes,4,opt,name=default_label_name,json=defaultLabelName,proto3" json:"default_label_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryCreated) Reset() { + *x = PayloadRepositoryCreated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryCreated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryCreated) ProtoMessage() {} + +func (x *PayloadRepositoryCreated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryCreated) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryCreated) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryCreated) GetVisibility() v1alpha1.Visibility { + if x != nil { + return x.xxx_hidden_Visibility + } + return v1alpha1.Visibility(0) +} + +func (x *PayloadRepositoryCreated) GetDefaultLabelName() string { + if x != nil { + return x.xxx_hidden_DefaultLabelName + } + return "" +} + +func (x *PayloadRepositoryCreated) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryCreated) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryCreated) SetVisibility(v v1alpha1.Visibility) { + x.xxx_hidden_Visibility = v +} + +func (x *PayloadRepositoryCreated) SetDefaultLabelName(v string) { + x.xxx_hidden_DefaultLabelName = v +} + +type PayloadRepositoryCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // visibility is the visibility of the repository. + Visibility v1alpha1.Visibility + // default_label_name is the name of the default label for the repository. + // If empty, the repository was created with the default label name of 'main'. + DefaultLabelName string +} + +func (b0 PayloadRepositoryCreated_builder) Build() *PayloadRepositoryCreated { + m0 := &PayloadRepositoryCreated{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_Visibility = b.Visibility + x.xxx_hidden_DefaultLabelName = b.DefaultLabelName + return m0 +} + +type PayloadRepositoryDeleted struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_Visibility v1alpha1.Visibility `protobuf:"varint,3,opt,name=visibility,proto3,enum=buf.alpha.registry.v1alpha1.Visibility" json:"visibility,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryDeleted) Reset() { + *x = PayloadRepositoryDeleted{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryDeleted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryDeleted) ProtoMessage() {} + +func (x *PayloadRepositoryDeleted) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryDeleted) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryDeleted) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryDeleted) GetVisibility() v1alpha1.Visibility { + if x != nil { + return x.xxx_hidden_Visibility + } + return v1alpha1.Visibility(0) +} + +func (x *PayloadRepositoryDeleted) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryDeleted) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryDeleted) SetVisibility(v v1alpha1.Visibility) { + x.xxx_hidden_Visibility = v +} + +type PayloadRepositoryDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // visibility is the visibility of the repository. + Visibility v1alpha1.Visibility +} + +func (b0 PayloadRepositoryDeleted_builder) Build() *PayloadRepositoryDeleted { + m0 := &PayloadRepositoryDeleted{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_Visibility = b.Visibility + return m0 +} + +type PayloadRepositoryDeprecated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_Visibility v1alpha1.Visibility `protobuf:"varint,3,opt,name=visibility,proto3,enum=buf.alpha.registry.v1alpha1.Visibility" json:"visibility,omitempty"` + xxx_hidden_DeprecationMessage string `protobuf:"bytes,4,opt,name=deprecation_message,json=deprecationMessage,proto3" json:"deprecation_message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryDeprecated) Reset() { + *x = PayloadRepositoryDeprecated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryDeprecated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryDeprecated) ProtoMessage() {} + +func (x *PayloadRepositoryDeprecated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryDeprecated) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryDeprecated) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryDeprecated) GetVisibility() v1alpha1.Visibility { + if x != nil { + return x.xxx_hidden_Visibility + } + return v1alpha1.Visibility(0) +} + +func (x *PayloadRepositoryDeprecated) GetDeprecationMessage() string { + if x != nil { + return x.xxx_hidden_DeprecationMessage + } + return "" +} + +func (x *PayloadRepositoryDeprecated) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryDeprecated) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryDeprecated) SetVisibility(v v1alpha1.Visibility) { + x.xxx_hidden_Visibility = v +} + +func (x *PayloadRepositoryDeprecated) SetDeprecationMessage(v string) { + x.xxx_hidden_DeprecationMessage = v +} + +type PayloadRepositoryDeprecated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // visibility is the visibility of the repository. + Visibility v1alpha1.Visibility + // deprecation_message is the deprecation message set by the deprecation actor. + DeprecationMessage string +} + +func (b0 PayloadRepositoryDeprecated_builder) Build() *PayloadRepositoryDeprecated { + m0 := &PayloadRepositoryDeprecated{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_Visibility = b.Visibility + x.xxx_hidden_DeprecationMessage = b.DeprecationMessage + return m0 +} + +type PayloadRepositoryUndeprecated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_Visibility v1alpha1.Visibility `protobuf:"varint,3,opt,name=visibility,proto3,enum=buf.alpha.registry.v1alpha1.Visibility" json:"visibility,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryUndeprecated) Reset() { + *x = PayloadRepositoryUndeprecated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryUndeprecated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryUndeprecated) ProtoMessage() {} + +func (x *PayloadRepositoryUndeprecated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryUndeprecated) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryUndeprecated) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryUndeprecated) GetVisibility() v1alpha1.Visibility { + if x != nil { + return x.xxx_hidden_Visibility + } + return v1alpha1.Visibility(0) +} + +func (x *PayloadRepositoryUndeprecated) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryUndeprecated) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryUndeprecated) SetVisibility(v v1alpha1.Visibility) { + x.xxx_hidden_Visibility = v +} + +type PayloadRepositoryUndeprecated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // visibility is the visibility of the repository. + Visibility v1alpha1.Visibility +} + +func (b0 PayloadRepositoryUndeprecated_builder) Build() *PayloadRepositoryUndeprecated { + m0 := &PayloadRepositoryUndeprecated{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_Visibility = b.Visibility + return m0 +} + +type PayloadRepositoryCommitPushed struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,4,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` + xxx_hidden_DraftName string `protobuf:"bytes,6,opt,name=draft_name,json=draftName,proto3" json:"draft_name,omitempty"` + xxx_hidden_ManifestDigest string `protobuf:"bytes,7,opt,name=manifest_digest,json=manifestDigest,proto3" json:"manifest_digest,omitempty"` + xxx_hidden_B5Digest string `protobuf:"bytes,8,opt,name=b5_digest,json=b5Digest,proto3" json:"b5_digest,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryCommitPushed) Reset() { + *x = PayloadRepositoryCommitPushed{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryCommitPushed) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryCommitPushed) ProtoMessage() {} + +func (x *PayloadRepositoryCommitPushed) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryCommitPushed) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryCommitPushed) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryCommitPushed) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *PayloadRepositoryCommitPushed) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *PayloadRepositoryCommitPushed) GetTags() []string { + if x != nil { + return x.xxx_hidden_Tags + } + return nil +} + +func (x *PayloadRepositoryCommitPushed) GetDraftName() string { + if x != nil { + return x.xxx_hidden_DraftName + } + return "" +} + +func (x *PayloadRepositoryCommitPushed) GetManifestDigest() string { + if x != nil { + return x.xxx_hidden_ManifestDigest + } + return "" +} + +func (x *PayloadRepositoryCommitPushed) GetB5Digest() string { + if x != nil { + return x.xxx_hidden_B5Digest + } + return "" +} + +func (x *PayloadRepositoryCommitPushed) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryCommitPushed) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryCommitPushed) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *PayloadRepositoryCommitPushed) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *PayloadRepositoryCommitPushed) SetTags(v []string) { + x.xxx_hidden_Tags = v +} + +func (x *PayloadRepositoryCommitPushed) SetDraftName(v string) { + x.xxx_hidden_DraftName = v +} + +func (x *PayloadRepositoryCommitPushed) SetManifestDigest(v string) { + x.xxx_hidden_ManifestDigest = v +} + +func (x *PayloadRepositoryCommitPushed) SetB5Digest(v string) { + x.xxx_hidden_B5Digest = v +} + +type PayloadRepositoryCommitPushed_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // repository_id is the id of the repository within which the commit was created. + RepositoryId string + // repository_name is the name of the repository within which the commit was created. + RepositoryName string + // tags are the tags included in the push. Optional. + Tags []string + // draft_name is the name of the draft. Optional. + DraftName string + // manifest_digest is the module's manifest digest. + ManifestDigest string + // b5_digest is the module's b5 digest. + B5Digest string +} + +func (b0 PayloadRepositoryCommitPushed_builder) Build() *PayloadRepositoryCommitPushed { + m0 := &PayloadRepositoryCommitPushed{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_Tags = b.Tags + x.xxx_hidden_DraftName = b.DraftName + x.xxx_hidden_ManifestDigest = b.ManifestDigest + x.xxx_hidden_B5Digest = b.B5Digest + return m0 +} + +type PayloadRepositoryContributorAdded struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,4,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_ContributorRole v1alpha1.RepositoryRole `protobuf:"varint,5,opt,name=contributor_role,json=contributorRole,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"contributor_role,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryContributorAdded) Reset() { + *x = PayloadRepositoryContributorAdded{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryContributorAdded) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryContributorAdded) ProtoMessage() {} + +func (x *PayloadRepositoryContributorAdded) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryContributorAdded) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryContributorAdded) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryContributorAdded) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *PayloadRepositoryContributorAdded) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *PayloadRepositoryContributorAdded) GetContributorRole() v1alpha1.RepositoryRole { + if x != nil { + return x.xxx_hidden_ContributorRole + } + return v1alpha1.RepositoryRole(0) +} + +func (x *PayloadRepositoryContributorAdded) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryContributorAdded) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryContributorAdded) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *PayloadRepositoryContributorAdded) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *PayloadRepositoryContributorAdded) SetContributorRole(v v1alpha1.RepositoryRole) { + x.xxx_hidden_ContributorRole = v +} + +type PayloadRepositoryContributorAdded_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // repository_id is the id of the repository with the new contributor. + RepositoryId string + // repository_name is the name of the repository with the new contributor. + RepositoryName string + // contributor_role is the role granted to the contributor added to the repository. + ContributorRole v1alpha1.RepositoryRole +} + +func (b0 PayloadRepositoryContributorAdded_builder) Build() *PayloadRepositoryContributorAdded { + m0 := &PayloadRepositoryContributorAdded{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_ContributorRole = b.ContributorRole + return m0 +} + +type PayloadRepositoryContributorRoleChanged struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,4,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_OldRole v1alpha1.RepositoryRole `protobuf:"varint,5,opt,name=old_role,json=oldRole,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"old_role,omitempty"` + xxx_hidden_NewRole v1alpha1.RepositoryRole `protobuf:"varint,6,opt,name=new_role,json=newRole,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"new_role,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryContributorRoleChanged) Reset() { + *x = PayloadRepositoryContributorRoleChanged{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryContributorRoleChanged) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryContributorRoleChanged) ProtoMessage() {} + +func (x *PayloadRepositoryContributorRoleChanged) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryContributorRoleChanged) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryContributorRoleChanged) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryContributorRoleChanged) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *PayloadRepositoryContributorRoleChanged) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *PayloadRepositoryContributorRoleChanged) GetOldRole() v1alpha1.RepositoryRole { + if x != nil { + return x.xxx_hidden_OldRole + } + return v1alpha1.RepositoryRole(0) +} + +func (x *PayloadRepositoryContributorRoleChanged) GetNewRole() v1alpha1.RepositoryRole { + if x != nil { + return x.xxx_hidden_NewRole + } + return v1alpha1.RepositoryRole(0) +} + +func (x *PayloadRepositoryContributorRoleChanged) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryContributorRoleChanged) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryContributorRoleChanged) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *PayloadRepositoryContributorRoleChanged) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *PayloadRepositoryContributorRoleChanged) SetOldRole(v v1alpha1.RepositoryRole) { + x.xxx_hidden_OldRole = v +} + +func (x *PayloadRepositoryContributorRoleChanged) SetNewRole(v v1alpha1.RepositoryRole) { + x.xxx_hidden_NewRole = v +} + +type PayloadRepositoryContributorRoleChanged_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // repository_id is the id of the repository within which the role was changed. + RepositoryId string + // repository_name is the name of the repository within which the role was changed. + RepositoryName string + // old_role is the old role of the contributor whose role was changed. + OldRole v1alpha1.RepositoryRole + // new_role is the new role of the contributor whose role was changed. + NewRole v1alpha1.RepositoryRole +} + +func (b0 PayloadRepositoryContributorRoleChanged_builder) Build() *PayloadRepositoryContributorRoleChanged { + m0 := &PayloadRepositoryContributorRoleChanged{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_OldRole = b.OldRole + x.xxx_hidden_NewRole = b.NewRole + return m0 +} + +type PayloadRepositoryContributorRemoved struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,4,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_ContributorRole v1alpha1.RepositoryRole `protobuf:"varint,5,opt,name=contributor_role,json=contributorRole,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"contributor_role,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryContributorRemoved) Reset() { + *x = PayloadRepositoryContributorRemoved{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryContributorRemoved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryContributorRemoved) ProtoMessage() {} + +func (x *PayloadRepositoryContributorRemoved) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryContributorRemoved) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryContributorRemoved) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryContributorRemoved) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *PayloadRepositoryContributorRemoved) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *PayloadRepositoryContributorRemoved) GetContributorRole() v1alpha1.RepositoryRole { + if x != nil { + return x.xxx_hidden_ContributorRole + } + return v1alpha1.RepositoryRole(0) +} + +func (x *PayloadRepositoryContributorRemoved) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryContributorRemoved) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryContributorRemoved) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *PayloadRepositoryContributorRemoved) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *PayloadRepositoryContributorRemoved) SetContributorRole(v v1alpha1.RepositoryRole) { + x.xxx_hidden_ContributorRole = v +} + +type PayloadRepositoryContributorRemoved_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // repository_id is the id of the repository that the contributor was removed from. + RepositoryId string + // repository_name is the name of the repository that the contributor was removed from. + RepositoryName string + // contributor_role is the role that the contributor had when removed from the repository. + ContributorRole v1alpha1.RepositoryRole +} + +func (b0 PayloadRepositoryContributorRemoved_builder) Build() *PayloadRepositoryContributorRemoved { + m0 := &PayloadRepositoryContributorRemoved{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_ContributorRole = b.ContributorRole + return m0 +} + +type PayloadRepositoryVisibilityChanged struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_OldVisibility v1alpha1.Visibility `protobuf:"varint,3,opt,name=old_visibility,json=oldVisibility,proto3,enum=buf.alpha.registry.v1alpha1.Visibility" json:"old_visibility,omitempty"` + xxx_hidden_NewVisibility v1alpha1.Visibility `protobuf:"varint,4,opt,name=new_visibility,json=newVisibility,proto3,enum=buf.alpha.registry.v1alpha1.Visibility" json:"new_visibility,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryVisibilityChanged) Reset() { + *x = PayloadRepositoryVisibilityChanged{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryVisibilityChanged) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryVisibilityChanged) ProtoMessage() {} + +func (x *PayloadRepositoryVisibilityChanged) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryVisibilityChanged) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryVisibilityChanged) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryVisibilityChanged) GetOldVisibility() v1alpha1.Visibility { + if x != nil { + return x.xxx_hidden_OldVisibility + } + return v1alpha1.Visibility(0) +} + +func (x *PayloadRepositoryVisibilityChanged) GetNewVisibility() v1alpha1.Visibility { + if x != nil { + return x.xxx_hidden_NewVisibility + } + return v1alpha1.Visibility(0) +} + +func (x *PayloadRepositoryVisibilityChanged) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryVisibilityChanged) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryVisibilityChanged) SetOldVisibility(v v1alpha1.Visibility) { + x.xxx_hidden_OldVisibility = v +} + +func (x *PayloadRepositoryVisibilityChanged) SetNewVisibility(v v1alpha1.Visibility) { + x.xxx_hidden_NewVisibility = v +} + +type PayloadRepositoryVisibilityChanged_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // old_visibility is the old visibility of the repository. + OldVisibility v1alpha1.Visibility + // new_visibility is the new visibility of the repository. + NewVisibility v1alpha1.Visibility +} + +func (b0 PayloadRepositoryVisibilityChanged_builder) Build() *PayloadRepositoryVisibilityChanged { + m0 := &PayloadRepositoryVisibilityChanged{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_OldVisibility = b.OldVisibility + x.xxx_hidden_NewVisibility = b.NewVisibility + return m0 +} + +type PayloadRepositoryDefaultLabelNameChanged struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_OldDefaultLabelName string `protobuf:"bytes,3,opt,name=old_default_label_name,json=oldDefaultLabelName,proto3" json:"old_default_label_name,omitempty"` + xxx_hidden_NewDefaultLabelName string `protobuf:"bytes,4,opt,name=new_default_label_name,json=newDefaultLabelName,proto3" json:"new_default_label_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) Reset() { + *x = PayloadRepositoryDefaultLabelNameChanged{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryDefaultLabelNameChanged) ProtoMessage() {} + +func (x *PayloadRepositoryDefaultLabelNameChanged) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) GetOldDefaultLabelName() string { + if x != nil { + return x.xxx_hidden_OldDefaultLabelName + } + return "" +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) GetNewDefaultLabelName() string { + if x != nil { + return x.xxx_hidden_NewDefaultLabelName + } + return "" +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) SetOldDefaultLabelName(v string) { + x.xxx_hidden_OldDefaultLabelName = v +} + +func (x *PayloadRepositoryDefaultLabelNameChanged) SetNewDefaultLabelName(v string) { + x.xxx_hidden_NewDefaultLabelName = v +} + +type PayloadRepositoryDefaultLabelNameChanged_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // old_default_label_name is the old default label name of the repository. + OldDefaultLabelName string + // new_default_label_name is the new default label name of the repository. + NewDefaultLabelName string +} + +func (b0 PayloadRepositoryDefaultLabelNameChanged_builder) Build() *PayloadRepositoryDefaultLabelNameChanged { + m0 := &PayloadRepositoryDefaultLabelNameChanged{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_OldDefaultLabelName = b.OldDefaultLabelName + x.xxx_hidden_NewDefaultLabelName = b.NewDefaultLabelName + return m0 +} + +// PayloadRepositoryDefaultBranchChanged is deprecated. +// +// Use PayloadRepositoryDefaultLabelNameChanged instead. +// +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +type PayloadRepositoryDefaultBranchChanged struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_OldDefaultBranch string `protobuf:"bytes,3,opt,name=old_default_branch,json=oldDefaultBranch,proto3" json:"old_default_branch,omitempty"` + xxx_hidden_NewDefaultBranch string `protobuf:"bytes,4,opt,name=new_default_branch,json=newDefaultBranch,proto3" json:"new_default_branch,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryDefaultBranchChanged) Reset() { + *x = PayloadRepositoryDefaultBranchChanged{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryDefaultBranchChanged) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryDefaultBranchChanged) ProtoMessage() {} + +func (x *PayloadRepositoryDefaultBranchChanged) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryDefaultBranchChanged) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryDefaultBranchChanged) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryDefaultBranchChanged) GetOldDefaultBranch() string { + if x != nil { + return x.xxx_hidden_OldDefaultBranch + } + return "" +} + +func (x *PayloadRepositoryDefaultBranchChanged) GetNewDefaultBranch() string { + if x != nil { + return x.xxx_hidden_NewDefaultBranch + } + return "" +} + +func (x *PayloadRepositoryDefaultBranchChanged) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryDefaultBranchChanged) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryDefaultBranchChanged) SetOldDefaultBranch(v string) { + x.xxx_hidden_OldDefaultBranch = v +} + +func (x *PayloadRepositoryDefaultBranchChanged) SetNewDefaultBranch(v string) { + x.xxx_hidden_NewDefaultBranch = v +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +type PayloadRepositoryDefaultBranchChanged_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository. + OwnerId string + // owner_name is the name of the owner of the repository. + OwnerName string + // old_default_branch is the old default branch of the repository. + OldDefaultBranch string + // new_default_branch is the new default branch of the repository. + NewDefaultBranch string +} + +func (b0 PayloadRepositoryDefaultBranchChanged_builder) Build() *PayloadRepositoryDefaultBranchChanged { + m0 := &PayloadRepositoryDefaultBranchChanged{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_OldDefaultBranch = b.OldDefaultBranch + x.xxx_hidden_NewDefaultBranch = b.NewDefaultBranch + return m0 +} + +type PayloadPluginCreated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_PluginType string `protobuf:"bytes,3,opt,name=plugin_type,json=pluginType,proto3" json:"plugin_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadPluginCreated) Reset() { + *x = PayloadPluginCreated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadPluginCreated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadPluginCreated) ProtoMessage() {} + +func (x *PayloadPluginCreated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadPluginCreated) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadPluginCreated) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadPluginCreated) GetPluginType() string { + if x != nil { + return x.xxx_hidden_PluginType + } + return "" +} + +func (x *PayloadPluginCreated) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadPluginCreated) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadPluginCreated) SetPluginType(v string) { + x.xxx_hidden_PluginType = v +} + +type PayloadPluginCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin. + OwnerId string + // owner_name is the name of the owner of the plugin. + OwnerName string + // plugin_type is the type of the plugin. + PluginType string +} + +func (b0 PayloadPluginCreated_builder) Build() *PayloadPluginCreated { + m0 := &PayloadPluginCreated{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_PluginType = b.PluginType + return m0 +} + +type PayloadPluginDeleted struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_PluginType string `protobuf:"bytes,3,opt,name=plugin_type,json=pluginType,proto3" json:"plugin_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadPluginDeleted) Reset() { + *x = PayloadPluginDeleted{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadPluginDeleted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadPluginDeleted) ProtoMessage() {} + +func (x *PayloadPluginDeleted) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadPluginDeleted) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadPluginDeleted) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadPluginDeleted) GetPluginType() string { + if x != nil { + return x.xxx_hidden_PluginType + } + return "" +} + +func (x *PayloadPluginDeleted) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadPluginDeleted) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadPluginDeleted) SetPluginType(v string) { + x.xxx_hidden_PluginType = v +} + +type PayloadPluginDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the check plugin. + OwnerId string + // owner_name is the name of the owner of the check plugin. + OwnerName string + // plugin_type is the type of the plugin. + PluginType string +} + +func (b0 PayloadPluginDeleted_builder) Build() *PayloadPluginDeleted { + m0 := &PayloadPluginDeleted{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_PluginType = b.PluginType + return m0 +} + +type PayloadPluginCommitPushed struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_PluginId string `protobuf:"bytes,3,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` + xxx_hidden_PluginName string `protobuf:"bytes,4,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"` + xxx_hidden_P1Digest string `protobuf:"bytes,5,opt,name=p1_digest,json=p1Digest,proto3" json:"p1_digest,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadPluginCommitPushed) Reset() { + *x = PayloadPluginCommitPushed{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadPluginCommitPushed) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadPluginCommitPushed) ProtoMessage() {} + +func (x *PayloadPluginCommitPushed) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadPluginCommitPushed) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadPluginCommitPushed) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadPluginCommitPushed) GetPluginId() string { + if x != nil { + return x.xxx_hidden_PluginId + } + return "" +} + +func (x *PayloadPluginCommitPushed) GetPluginName() string { + if x != nil { + return x.xxx_hidden_PluginName + } + return "" +} + +func (x *PayloadPluginCommitPushed) GetP1Digest() string { + if x != nil { + return x.xxx_hidden_P1Digest + } + return "" +} + +func (x *PayloadPluginCommitPushed) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadPluginCommitPushed) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadPluginCommitPushed) SetPluginId(v string) { + x.xxx_hidden_PluginId = v +} + +func (x *PayloadPluginCommitPushed) SetPluginName(v string) { + x.xxx_hidden_PluginName = v +} + +func (x *PayloadPluginCommitPushed) SetP1Digest(v string) { + x.xxx_hidden_P1Digest = v +} + +type PayloadPluginCommitPushed_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin. + OwnerId string + // owner_name is the name of the owner of the plugin. + OwnerName string + // plugin_id is the id of the plugin. + PluginId string + // plugin_name is the name of the plugin. + PluginName string + // p1_digest is the p1 digest of the pushed plugin commit. + P1Digest string +} + +func (b0 PayloadPluginCommitPushed_builder) Build() *PayloadPluginCommitPushed { + m0 := &PayloadPluginCommitPushed{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_PluginId = b.PluginId + x.xxx_hidden_PluginName = b.PluginName + x.xxx_hidden_P1Digest = b.P1Digest + return m0 +} + +type PayloadUserCreated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadUserCreated) Reset() { + *x = PayloadUserCreated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadUserCreated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadUserCreated) ProtoMessage() {} + +func (x *PayloadUserCreated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadUserCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserCreated_builder) Build() *PayloadUserCreated { + m0 := &PayloadUserCreated{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PayloadUserReactivated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadUserReactivated) Reset() { + *x = PayloadUserReactivated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadUserReactivated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadUserReactivated) ProtoMessage() {} + +func (x *PayloadUserReactivated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadUserReactivated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserReactivated_builder) Build() *PayloadUserReactivated { + m0 := &PayloadUserReactivated{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PayloadUserDeactivated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadUserDeactivated) Reset() { + *x = PayloadUserDeactivated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadUserDeactivated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadUserDeactivated) ProtoMessage() {} + +func (x *PayloadUserDeactivated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadUserDeactivated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserDeactivated_builder) Build() *PayloadUserDeactivated { + m0 := &PayloadUserDeactivated{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PayloadUserDeleted struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadUserDeleted) Reset() { + *x = PayloadUserDeleted{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadUserDeleted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadUserDeleted) ProtoMessage() {} + +func (x *PayloadUserDeleted) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadUserDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserDeleted_builder) Build() *PayloadUserDeleted { + m0 := &PayloadUserDeleted{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PayloadUserLoggedIn struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadUserLoggedIn) Reset() { + *x = PayloadUserLoggedIn{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadUserLoggedIn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadUserLoggedIn) ProtoMessage() {} + +func (x *PayloadUserLoggedIn) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadUserLoggedIn_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserLoggedIn_builder) Build() *PayloadUserLoggedIn { + m0 := &PayloadUserLoggedIn{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PayloadUserLoggedOut struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadUserLoggedOut) Reset() { + *x = PayloadUserLoggedOut{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadUserLoggedOut) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadUserLoggedOut) ProtoMessage() {} + +func (x *PayloadUserLoggedOut) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadUserLoggedOut_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserLoggedOut_builder) Build() *PayloadUserLoggedOut { + m0 := &PayloadUserLoggedOut{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// PayloadUserAutoMergedFromNewIdP is the payload for the audit event +// EVENT_TYPE_USER_AUTO_MERGED_FROM_NEW_IDP. It has no additional information +// to be included, since the new user is automatically merged to an existing user +// without the new user being created. +type PayloadUserAutoMergedFromNewIdP struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadUserAutoMergedFromNewIdP) Reset() { + *x = PayloadUserAutoMergedFromNewIdP{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadUserAutoMergedFromNewIdP) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadUserAutoMergedFromNewIdP) ProtoMessage() {} + +func (x *PayloadUserAutoMergedFromNewIdP) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadUserAutoMergedFromNewIdP_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadUserAutoMergedFromNewIdP_builder) Build() *PayloadUserAutoMergedFromNewIdP { + m0 := &PayloadUserAutoMergedFromNewIdP{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PayloadCuratedPluginCreated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadCuratedPluginCreated) Reset() { + *x = PayloadCuratedPluginCreated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadCuratedPluginCreated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadCuratedPluginCreated) ProtoMessage() {} + +func (x *PayloadCuratedPluginCreated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadCuratedPluginCreated) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadCuratedPluginCreated) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadCuratedPluginCreated) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadCuratedPluginCreated) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +type PayloadCuratedPluginCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin. + OwnerId string + // owner_name is the name of the owner of the plugin. + OwnerName string +} + +func (b0 PayloadCuratedPluginCreated_builder) Build() *PayloadCuratedPluginCreated { + m0 := &PayloadCuratedPluginCreated{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + return m0 +} + +type PayloadCuratedPluginDeleted struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadCuratedPluginDeleted) Reset() { + *x = PayloadCuratedPluginDeleted{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadCuratedPluginDeleted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadCuratedPluginDeleted) ProtoMessage() {} + +func (x *PayloadCuratedPluginDeleted) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadCuratedPluginDeleted) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadCuratedPluginDeleted) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadCuratedPluginDeleted) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadCuratedPluginDeleted) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +type PayloadCuratedPluginDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin. + OwnerId string + // owner_name is the name of the owner of the plugin. + OwnerName string +} + +func (b0 PayloadCuratedPluginDeleted_builder) Build() *PayloadCuratedPluginDeleted { + m0 := &PayloadCuratedPluginDeleted{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + return m0 +} + +type PayloadTokenCreated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_TokenExpiryTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=token_expiry_time,json=tokenExpiryTime,proto3" json:"token_expiry_time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadTokenCreated) Reset() { + *x = PayloadTokenCreated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadTokenCreated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadTokenCreated) ProtoMessage() {} + +func (x *PayloadTokenCreated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[34] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadTokenCreated) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadTokenCreated) GetTokenExpiryTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_TokenExpiryTime + } + return nil +} + +func (x *PayloadTokenCreated) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadTokenCreated) SetTokenExpiryTime(v *timestamppb.Timestamp) { + x.xxx_hidden_TokenExpiryTime = v +} + +func (x *PayloadTokenCreated) HasTokenExpiryTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_TokenExpiryTime != nil +} + +func (x *PayloadTokenCreated) ClearTokenExpiryTime() { + x.xxx_hidden_TokenExpiryTime = nil +} + +type PayloadTokenCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the token. + OwnerId string + // token_expiry_time is the expiry time of the token. + TokenExpiryTime *timestamppb.Timestamp +} + +func (b0 PayloadTokenCreated_builder) Build() *PayloadTokenCreated { + m0 := &PayloadTokenCreated{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_TokenExpiryTime = b.TokenExpiryTime + return m0 +} + +type PayloadTokenDeleted struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadTokenDeleted) Reset() { + *x = PayloadTokenDeleted{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadTokenDeleted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadTokenDeleted) ProtoMessage() {} + +func (x *PayloadTokenDeleted) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[35] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadTokenDeleted) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadTokenDeleted) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +type PayloadTokenDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the token. + OwnerId string +} + +func (b0 PayloadTokenDeleted_builder) Build() *PayloadTokenDeleted { + m0 := &PayloadTokenDeleted{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + return m0 +} + +type PayloadSCIMTokenCreated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TokenExpiryTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=token_expiry_time,json=tokenExpiryTime,proto3" json:"token_expiry_time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadSCIMTokenCreated) Reset() { + *x = PayloadSCIMTokenCreated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadSCIMTokenCreated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadSCIMTokenCreated) ProtoMessage() {} + +func (x *PayloadSCIMTokenCreated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[36] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadSCIMTokenCreated) GetTokenExpiryTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_TokenExpiryTime + } + return nil +} + +func (x *PayloadSCIMTokenCreated) SetTokenExpiryTime(v *timestamppb.Timestamp) { + x.xxx_hidden_TokenExpiryTime = v +} + +func (x *PayloadSCIMTokenCreated) HasTokenExpiryTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_TokenExpiryTime != nil +} + +func (x *PayloadSCIMTokenCreated) ClearTokenExpiryTime() { + x.xxx_hidden_TokenExpiryTime = nil +} + +type PayloadSCIMTokenCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // token_expiry_time is the expiry time of the token. + TokenExpiryTime *timestamppb.Timestamp +} + +func (b0 PayloadSCIMTokenCreated_builder) Build() *PayloadSCIMTokenCreated { + m0 := &PayloadSCIMTokenCreated{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TokenExpiryTime = b.TokenExpiryTime + return m0 +} + +type PayloadSCIMTokenDeleted struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadSCIMTokenDeleted) Reset() { + *x = PayloadSCIMTokenDeleted{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadSCIMTokenDeleted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadSCIMTokenDeleted) ProtoMessage() {} + +func (x *PayloadSCIMTokenDeleted) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[37] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadSCIMTokenDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadSCIMTokenDeleted_builder) Build() *PayloadSCIMTokenDeleted { + m0 := &PayloadSCIMTokenDeleted{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// PayloadRepositoryCommitDeleted is deprecated. +// +// Individual repository commits cannot be deleted. +// +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +type PayloadRepositoryCommitDeleted struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,4,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_DraftName string `protobuf:"bytes,5,opt,name=draft_name,json=draftName,proto3" json:"draft_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryCommitDeleted) Reset() { + *x = PayloadRepositoryCommitDeleted{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryCommitDeleted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryCommitDeleted) ProtoMessage() {} + +func (x *PayloadRepositoryCommitDeleted) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[38] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryCommitDeleted) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryCommitDeleted) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryCommitDeleted) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *PayloadRepositoryCommitDeleted) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *PayloadRepositoryCommitDeleted) GetDraftName() string { + if x != nil { + return x.xxx_hidden_DraftName + } + return "" +} + +func (x *PayloadRepositoryCommitDeleted) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryCommitDeleted) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryCommitDeleted) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *PayloadRepositoryCommitDeleted) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *PayloadRepositoryCommitDeleted) SetDraftName(v string) { + x.xxx_hidden_DraftName = v +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +type PayloadRepositoryCommitDeleted_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository from which the commit will be deleted. + OwnerId string + // owner_name is the name of the owner of the repository from which the commit will be deleted. + OwnerName string + // repository_id is the id of the repository from which the commit will be deleted. + RepositoryId string + // repository_name is the name of the repository from which the commit will be deleted. + RepositoryName string + // draft_name is the name of the draft. Optional. + DraftName string +} + +func (b0 PayloadRepositoryCommitDeleted_builder) Build() *PayloadRepositoryCommitDeleted { + m0 := &PayloadRepositoryCommitDeleted{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_DraftName = b.DraftName + return m0 +} + +type PayloadRepositoryLabelCreated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,4,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_LabelNamespace string `protobuf:"bytes,5,opt,name=label_namespace,json=labelNamespace,proto3" json:"label_namespace,omitempty"` + xxx_hidden_CommitId string `protobuf:"bytes,6,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryLabelCreated) Reset() { + *x = PayloadRepositoryLabelCreated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryLabelCreated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryLabelCreated) ProtoMessage() {} + +func (x *PayloadRepositoryLabelCreated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[39] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryLabelCreated) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryLabelCreated) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryLabelCreated) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *PayloadRepositoryLabelCreated) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *PayloadRepositoryLabelCreated) GetLabelNamespace() string { + if x != nil { + return x.xxx_hidden_LabelNamespace + } + return "" +} + +func (x *PayloadRepositoryLabelCreated) GetCommitId() string { + if x != nil { + return x.xxx_hidden_CommitId + } + return "" +} + +func (x *PayloadRepositoryLabelCreated) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryLabelCreated) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryLabelCreated) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *PayloadRepositoryLabelCreated) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *PayloadRepositoryLabelCreated) SetLabelNamespace(v string) { + x.xxx_hidden_LabelNamespace = v +} + +func (x *PayloadRepositoryLabelCreated) SetCommitId(v string) { + x.xxx_hidden_CommitId = v +} + +type PayloadRepositoryLabelCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository on which the label was created. + OwnerId string + // owner_name is the name of the owner of the repository on which the label was created. + OwnerName string + // repository_id is the id of the repository on which the label was created. + RepositoryId string + // repository_name is the name of the repository from which the label was created. + RepositoryName string + // label_namespace is the namespace of the label that was created. + // + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + LabelNamespace string + // commit_id is the id of the commit on which the label was created. + CommitId string +} + +func (b0 PayloadRepositoryLabelCreated_builder) Build() *PayloadRepositoryLabelCreated { + m0 := &PayloadRepositoryLabelCreated{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_LabelNamespace = b.LabelNamespace + x.xxx_hidden_CommitId = b.CommitId + return m0 +} + +type PayloadRepositoryLabelMoved struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,4,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_LabelNamespace string `protobuf:"bytes,5,opt,name=label_namespace,json=labelNamespace,proto3" json:"label_namespace,omitempty"` + xxx_hidden_ToCommitId string `protobuf:"bytes,6,opt,name=to_commit_id,json=toCommitId,proto3" json:"to_commit_id,omitempty"` + xxx_hidden_FromCommitId string `protobuf:"bytes,7,opt,name=from_commit_id,json=fromCommitId,proto3" json:"from_commit_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryLabelMoved) Reset() { + *x = PayloadRepositoryLabelMoved{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryLabelMoved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryLabelMoved) ProtoMessage() {} + +func (x *PayloadRepositoryLabelMoved) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[40] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryLabelMoved) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryLabelMoved) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryLabelMoved) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *PayloadRepositoryLabelMoved) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *PayloadRepositoryLabelMoved) GetLabelNamespace() string { + if x != nil { + return x.xxx_hidden_LabelNamespace + } + return "" +} + +func (x *PayloadRepositoryLabelMoved) GetToCommitId() string { + if x != nil { + return x.xxx_hidden_ToCommitId + } + return "" +} + +func (x *PayloadRepositoryLabelMoved) GetFromCommitId() string { + if x != nil { + return x.xxx_hidden_FromCommitId + } + return "" +} + +func (x *PayloadRepositoryLabelMoved) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryLabelMoved) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryLabelMoved) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *PayloadRepositoryLabelMoved) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +// Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. +func (x *PayloadRepositoryLabelMoved) SetLabelNamespace(v string) { + x.xxx_hidden_LabelNamespace = v +} + +func (x *PayloadRepositoryLabelMoved) SetToCommitId(v string) { + x.xxx_hidden_ToCommitId = v +} + +func (x *PayloadRepositoryLabelMoved) SetFromCommitId(v string) { + x.xxx_hidden_FromCommitId = v +} + +type PayloadRepositoryLabelMoved_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository on which the label was moved. + OwnerId string + // owner_name is the name of the owner of the repository on which the label was moved. + OwnerName string + // repository_id is the id of the repository on which the label was moved. + RepositoryId string + // repository_name is the name of the repository from which the label was moved. + RepositoryName string + // label_namespace is the namespace of the label that was moved. + // + // Deprecated: Marked as deprecated in buf/alpha/audit/v1alpha1/event.proto. + LabelNamespace string + // to_commit_id is the id of the commit on which the label was moved to. + ToCommitId string + // from_commit_id is the id of the commit on which the label was moved from. + FromCommitId string +} + +func (b0 PayloadRepositoryLabelMoved_builder) Build() *PayloadRepositoryLabelMoved { + m0 := &PayloadRepositoryLabelMoved{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_LabelNamespace = b.LabelNamespace + x.xxx_hidden_ToCommitId = b.ToCommitId + x.xxx_hidden_FromCommitId = b.FromCommitId + return m0 +} + +type PayloadRepositoryLabelArchived struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,4,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryLabelArchived) Reset() { + *x = PayloadRepositoryLabelArchived{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryLabelArchived) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryLabelArchived) ProtoMessage() {} + +func (x *PayloadRepositoryLabelArchived) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[41] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryLabelArchived) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryLabelArchived) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryLabelArchived) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *PayloadRepositoryLabelArchived) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *PayloadRepositoryLabelArchived) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryLabelArchived) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryLabelArchived) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *PayloadRepositoryLabelArchived) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +type PayloadRepositoryLabelArchived_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository on which the label was archived. + OwnerId string + // owner_name is the name of the owner of the repository on which the label was archived. + OwnerName string + // repository_id is the id of the repository on which the label was archived. + RepositoryId string + // repository_name is the name of the repository from which the label was archived. + RepositoryName string +} + +func (b0 PayloadRepositoryLabelArchived_builder) Build() *PayloadRepositoryLabelArchived { + m0 := &PayloadRepositoryLabelArchived{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryName = b.RepositoryName + return m0 +} + +type PayloadRepositoryLabelUnarchived struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryId string `protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,4,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadRepositoryLabelUnarchived) Reset() { + *x = PayloadRepositoryLabelUnarchived{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadRepositoryLabelUnarchived) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadRepositoryLabelUnarchived) ProtoMessage() {} + +func (x *PayloadRepositoryLabelUnarchived) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[42] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadRepositoryLabelUnarchived) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadRepositoryLabelUnarchived) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadRepositoryLabelUnarchived) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *PayloadRepositoryLabelUnarchived) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *PayloadRepositoryLabelUnarchived) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadRepositoryLabelUnarchived) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadRepositoryLabelUnarchived) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *PayloadRepositoryLabelUnarchived) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +type PayloadRepositoryLabelUnarchived_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the repository on which the label was unarchived. + OwnerId string + // owner_name is the name of the owner of the repository on which the label was unarchived. + OwnerName string + // repository_id is the id of the repository on which the label was unarchived. + RepositoryId string + // repository_name is the name of the repository from which the label was unarchived. + RepositoryName string +} + +func (b0 PayloadRepositoryLabelUnarchived_builder) Build() *PayloadRepositoryLabelUnarchived { + m0 := &PayloadRepositoryLabelUnarchived{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryName = b.RepositoryName + return m0 +} + +type PayloadServerBreakingChangePolicyEnabled struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Category v1alpha1.BreakingChangeCategory `protobuf:"varint,1,opt,name=category,proto3,enum=buf.alpha.registry.v1alpha1.BreakingChangeCategory" json:"category,omitempty"` + xxx_hidden_IgnoreUnstablePackages bool `protobuf:"varint,2,opt,name=ignore_unstable_packages,json=ignoreUnstablePackages,proto3,oneof" json:"ignore_unstable_packages,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadServerBreakingChangePolicyEnabled) Reset() { + *x = PayloadServerBreakingChangePolicyEnabled{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadServerBreakingChangePolicyEnabled) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadServerBreakingChangePolicyEnabled) ProtoMessage() {} + +func (x *PayloadServerBreakingChangePolicyEnabled) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[43] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadServerBreakingChangePolicyEnabled) GetCategory() v1alpha1.BreakingChangeCategory { + if x != nil { + return x.xxx_hidden_Category + } + return v1alpha1.BreakingChangeCategory(0) +} + +func (x *PayloadServerBreakingChangePolicyEnabled) GetIgnoreUnstablePackages() bool { + if x != nil { + return x.xxx_hidden_IgnoreUnstablePackages + } + return false +} + +func (x *PayloadServerBreakingChangePolicyEnabled) SetCategory(v v1alpha1.BreakingChangeCategory) { + x.xxx_hidden_Category = v +} + +func (x *PayloadServerBreakingChangePolicyEnabled) SetIgnoreUnstablePackages(v bool) { + x.xxx_hidden_IgnoreUnstablePackages = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 2) +} + +func (x *PayloadServerBreakingChangePolicyEnabled) HasIgnoreUnstablePackages() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *PayloadServerBreakingChangePolicyEnabled) ClearIgnoreUnstablePackages() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_IgnoreUnstablePackages = false +} + +type PayloadServerBreakingChangePolicyEnabled_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // category is the category of breaking changes. + Category v1alpha1.BreakingChangeCategory + // ignore_unstable_packages tracks breaking change enforcement for unstable packages. + IgnoreUnstablePackages *bool +} + +func (b0 PayloadServerBreakingChangePolicyEnabled_builder) Build() *PayloadServerBreakingChangePolicyEnabled { + m0 := &PayloadServerBreakingChangePolicyEnabled{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Category = b.Category + if b.IgnoreUnstablePackages != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 2) + x.xxx_hidden_IgnoreUnstablePackages = *b.IgnoreUnstablePackages + } + return m0 +} + +type PayloadServerBreakingChangePolicyDisabled struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadServerBreakingChangePolicyDisabled) Reset() { + *x = PayloadServerBreakingChangePolicyDisabled{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadServerBreakingChangePolicyDisabled) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadServerBreakingChangePolicyDisabled) ProtoMessage() {} + +func (x *PayloadServerBreakingChangePolicyDisabled) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[44] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadServerBreakingChangePolicyDisabled_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadServerBreakingChangePolicyDisabled_builder) Build() *PayloadServerBreakingChangePolicyDisabled { + m0 := &PayloadServerBreakingChangePolicyDisabled{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PayloadServerUniquenessPolicyEnabled struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadServerUniquenessPolicyEnabled) Reset() { + *x = PayloadServerUniquenessPolicyEnabled{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadServerUniquenessPolicyEnabled) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadServerUniquenessPolicyEnabled) ProtoMessage() {} + +func (x *PayloadServerUniquenessPolicyEnabled) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[45] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadServerUniquenessPolicyEnabled_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadServerUniquenessPolicyEnabled_builder) Build() *PayloadServerUniquenessPolicyEnabled { + m0 := &PayloadServerUniquenessPolicyEnabled{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PayloadServerUniquenessPolicyDisabled struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadServerUniquenessPolicyDisabled) Reset() { + *x = PayloadServerUniquenessPolicyDisabled{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadServerUniquenessPolicyDisabled) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadServerUniquenessPolicyDisabled) ProtoMessage() {} + +func (x *PayloadServerUniquenessPolicyDisabled) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[46] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PayloadServerUniquenessPolicyDisabled_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PayloadServerUniquenessPolicyDisabled_builder) Build() *PayloadServerUniquenessPolicyDisabled { + m0 := &PayloadServerUniquenessPolicyDisabled{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PayloadDeviceAuthorizationGrantApproved struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadDeviceAuthorizationGrantApproved) Reset() { + *x = PayloadDeviceAuthorizationGrantApproved{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadDeviceAuthorizationGrantApproved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadDeviceAuthorizationGrantApproved) ProtoMessage() {} + +func (x *PayloadDeviceAuthorizationGrantApproved) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[47] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadDeviceAuthorizationGrantApproved) GetClientId() string { + if x != nil { + return x.xxx_hidden_ClientId + } + return "" +} + +func (x *PayloadDeviceAuthorizationGrantApproved) SetClientId(v string) { + x.xxx_hidden_ClientId = v +} + +type PayloadDeviceAuthorizationGrantApproved_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // client_id is the id of the registered oauth2 client of the grant. + ClientId string +} + +func (b0 PayloadDeviceAuthorizationGrantApproved_builder) Build() *PayloadDeviceAuthorizationGrantApproved { + m0 := &PayloadDeviceAuthorizationGrantApproved{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ClientId = b.ClientId + return m0 +} + +type PayloadDeviceAuthorizationGrantDenied struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadDeviceAuthorizationGrantDenied) Reset() { + *x = PayloadDeviceAuthorizationGrantDenied{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadDeviceAuthorizationGrantDenied) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadDeviceAuthorizationGrantDenied) ProtoMessage() {} + +func (x *PayloadDeviceAuthorizationGrantDenied) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[48] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadDeviceAuthorizationGrantDenied) GetClientId() string { + if x != nil { + return x.xxx_hidden_ClientId + } + return "" +} + +func (x *PayloadDeviceAuthorizationGrantDenied) SetClientId(v string) { + x.xxx_hidden_ClientId = v +} + +type PayloadDeviceAuthorizationGrantDenied_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // client_id is the id of the registered oauth2 client of the grant. + ClientId string +} + +func (b0 PayloadDeviceAuthorizationGrantDenied_builder) Build() *PayloadDeviceAuthorizationGrantDenied { + m0 := &PayloadDeviceAuthorizationGrantDenied{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ClientId = b.ClientId + return m0 +} + +type PayloadPluginLabelCreated struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_PluginId string `protobuf:"bytes,3,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` + xxx_hidden_PluginName string `protobuf:"bytes,4,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"` + xxx_hidden_CommitId string `protobuf:"bytes,6,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadPluginLabelCreated) Reset() { + *x = PayloadPluginLabelCreated{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadPluginLabelCreated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadPluginLabelCreated) ProtoMessage() {} + +func (x *PayloadPluginLabelCreated) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[49] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadPluginLabelCreated) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadPluginLabelCreated) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadPluginLabelCreated) GetPluginId() string { + if x != nil { + return x.xxx_hidden_PluginId + } + return "" +} + +func (x *PayloadPluginLabelCreated) GetPluginName() string { + if x != nil { + return x.xxx_hidden_PluginName + } + return "" +} + +func (x *PayloadPluginLabelCreated) GetCommitId() string { + if x != nil { + return x.xxx_hidden_CommitId + } + return "" +} + +func (x *PayloadPluginLabelCreated) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadPluginLabelCreated) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadPluginLabelCreated) SetPluginId(v string) { + x.xxx_hidden_PluginId = v +} + +func (x *PayloadPluginLabelCreated) SetPluginName(v string) { + x.xxx_hidden_PluginName = v +} + +func (x *PayloadPluginLabelCreated) SetCommitId(v string) { + x.xxx_hidden_CommitId = v +} + +type PayloadPluginLabelCreated_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin on which the label was created. + OwnerId string + // owner_name is the name of the owner of the plugin on which the label was created. + OwnerName string + // plugin_id is the id of the plugin on which the label was created. + PluginId string + // plugin_name is the name of the plugin from which the label was created. + PluginName string + // commit_id is the id of the commit on which the label was created. + CommitId string +} + +func (b0 PayloadPluginLabelCreated_builder) Build() *PayloadPluginLabelCreated { + m0 := &PayloadPluginLabelCreated{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_PluginId = b.PluginId + x.xxx_hidden_PluginName = b.PluginName + x.xxx_hidden_CommitId = b.CommitId + return m0 +} + +type PayloadPluginLabelMoved struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_PluginId string `protobuf:"bytes,3,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` + xxx_hidden_PluginName string `protobuf:"bytes,4,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"` + xxx_hidden_ToCommitId string `protobuf:"bytes,6,opt,name=to_commit_id,json=toCommitId,proto3" json:"to_commit_id,omitempty"` + xxx_hidden_FromCommitId string `protobuf:"bytes,7,opt,name=from_commit_id,json=fromCommitId,proto3" json:"from_commit_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadPluginLabelMoved) Reset() { + *x = PayloadPluginLabelMoved{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadPluginLabelMoved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadPluginLabelMoved) ProtoMessage() {} + +func (x *PayloadPluginLabelMoved) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[50] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadPluginLabelMoved) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadPluginLabelMoved) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadPluginLabelMoved) GetPluginId() string { + if x != nil { + return x.xxx_hidden_PluginId + } + return "" +} + +func (x *PayloadPluginLabelMoved) GetPluginName() string { + if x != nil { + return x.xxx_hidden_PluginName + } + return "" +} + +func (x *PayloadPluginLabelMoved) GetToCommitId() string { + if x != nil { + return x.xxx_hidden_ToCommitId + } + return "" +} + +func (x *PayloadPluginLabelMoved) GetFromCommitId() string { + if x != nil { + return x.xxx_hidden_FromCommitId + } + return "" +} + +func (x *PayloadPluginLabelMoved) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadPluginLabelMoved) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadPluginLabelMoved) SetPluginId(v string) { + x.xxx_hidden_PluginId = v +} + +func (x *PayloadPluginLabelMoved) SetPluginName(v string) { + x.xxx_hidden_PluginName = v +} + +func (x *PayloadPluginLabelMoved) SetToCommitId(v string) { + x.xxx_hidden_ToCommitId = v +} + +func (x *PayloadPluginLabelMoved) SetFromCommitId(v string) { + x.xxx_hidden_FromCommitId = v +} + +type PayloadPluginLabelMoved_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin on which the label was moved. + OwnerId string + // owner_name is the name of the owner of the plugin on which the label was moved. + OwnerName string + // plugin_id is the id of the plugin on which the label was moved. + PluginId string + // plugin_name is the name of the plugin from which the label was moved. + PluginName string + // to_commit_id is the id of the commit on which the label was moved to. + ToCommitId string + // from_commit_id is the id of the commit on which the label was moved from. + FromCommitId string +} + +func (b0 PayloadPluginLabelMoved_builder) Build() *PayloadPluginLabelMoved { + m0 := &PayloadPluginLabelMoved{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_PluginId = b.PluginId + x.xxx_hidden_PluginName = b.PluginName + x.xxx_hidden_ToCommitId = b.ToCommitId + x.xxx_hidden_FromCommitId = b.FromCommitId + return m0 +} + +type PayloadPluginLabelArchived struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_PluginId string `protobuf:"bytes,3,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` + xxx_hidden_PluginName string `protobuf:"bytes,4,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadPluginLabelArchived) Reset() { + *x = PayloadPluginLabelArchived{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadPluginLabelArchived) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadPluginLabelArchived) ProtoMessage() {} + +func (x *PayloadPluginLabelArchived) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[51] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadPluginLabelArchived) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadPluginLabelArchived) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadPluginLabelArchived) GetPluginId() string { + if x != nil { + return x.xxx_hidden_PluginId + } + return "" +} + +func (x *PayloadPluginLabelArchived) GetPluginName() string { + if x != nil { + return x.xxx_hidden_PluginName + } + return "" +} + +func (x *PayloadPluginLabelArchived) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadPluginLabelArchived) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadPluginLabelArchived) SetPluginId(v string) { + x.xxx_hidden_PluginId = v +} + +func (x *PayloadPluginLabelArchived) SetPluginName(v string) { + x.xxx_hidden_PluginName = v +} + +type PayloadPluginLabelArchived_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin on which the label was archived. + OwnerId string + // owner_name is the name of the owner of the plugin on which the label was archived. + OwnerName string + // plugin_id is the id of the plugin on which the label was archived. + PluginId string + // plugin_name is the name of the plugin from which the label was archived. + PluginName string +} + +func (b0 PayloadPluginLabelArchived_builder) Build() *PayloadPluginLabelArchived { + m0 := &PayloadPluginLabelArchived{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_PluginId = b.PluginId + x.xxx_hidden_PluginName = b.PluginName + return m0 +} + +type PayloadPluginLabelUnarchived struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_PluginId string `protobuf:"bytes,3,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` + xxx_hidden_PluginName string `protobuf:"bytes,4,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PayloadPluginLabelUnarchived) Reset() { + *x = PayloadPluginLabelUnarchived{} + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PayloadPluginLabelUnarchived) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayloadPluginLabelUnarchived) ProtoMessage() {} + +func (x *PayloadPluginLabelUnarchived) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[52] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PayloadPluginLabelUnarchived) GetOwnerId() string { + if x != nil { + return x.xxx_hidden_OwnerId + } + return "" +} + +func (x *PayloadPluginLabelUnarchived) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *PayloadPluginLabelUnarchived) GetPluginId() string { + if x != nil { + return x.xxx_hidden_PluginId + } + return "" +} + +func (x *PayloadPluginLabelUnarchived) GetPluginName() string { + if x != nil { + return x.xxx_hidden_PluginName + } + return "" +} + +func (x *PayloadPluginLabelUnarchived) SetOwnerId(v string) { + x.xxx_hidden_OwnerId = v +} + +func (x *PayloadPluginLabelUnarchived) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *PayloadPluginLabelUnarchived) SetPluginId(v string) { + x.xxx_hidden_PluginId = v +} + +func (x *PayloadPluginLabelUnarchived) SetPluginName(v string) { + x.xxx_hidden_PluginName = v +} + +type PayloadPluginLabelUnarchived_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // owner_id is the id of the owner of the plugin on which the label was unarchived. + OwnerId string + // owner_name is the name of the owner of the plugin on which the label was unarchived. + OwnerName string + // plugin_id is the id of the plugin on which the label was unarchived. + PluginId string + // plugin_name is the name of the plugin from which the label was unarchived. + PluginName string +} + +func (b0 PayloadPluginLabelUnarchived_builder) Build() *PayloadPluginLabelUnarchived { + m0 := &PayloadPluginLabelUnarchived{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerId = b.OwnerId + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_PluginId = b.PluginId + x.xxx_hidden_PluginName = b.PluginName + return m0 +} + +var File_buf_alpha_audit_v1alpha1_event_proto protoreflect.FileDescriptor + +var file_buf_alpha_audit_v1alpha1_event_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x61, 0x75, 0x64, 0x69, + 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x1a, 0x27, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x62, 0x75, 0x66, 0x2f, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x64, 0x0a, 0x05, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x37, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x26, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x59, 0x0a, 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x22, 0xa5, 0x2f, + 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x37, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x23, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x61, + 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x05, 0x61, 0x63, 0x74, + 0x6f, 0x72, 0x12, 0x3e, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x43, 0x0a, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x69, 0x0a, 0x14, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x13, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x69, 0x0a, + 0x14, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x64, 0x48, 0x00, 0x52, 0x13, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x76, 0x0a, 0x19, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, + 0x61, 0x64, 0x64, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x41, 0x64, 0x64, 0x65, 0x64, 0x48, 0x00, 0x52, 0x17, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x64, 0x64, 0x65, 0x64, + 0x12, 0x89, 0x01, 0x0a, 0x20, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x63, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x48, 0x00, 0x52, 0x1d, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x7c, 0x0a, 0x1b, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x48, 0x00, 0x52, + 0x19, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x63, 0x0a, 0x12, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x11, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, + 0x6c, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x36, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x65, 0x70, 0x72, 0x65, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x14, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x72, 0x0a, + 0x17, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x75, 0x6e, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x37, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x55, 0x6e, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x16, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x55, 0x6e, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x63, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, + 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x64, 0x48, 0x00, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x73, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x70, 0x75, 0x73, 0x68, + 0x65, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x50, 0x75, 0x73, 0x68, 0x65, + 0x64, 0x48, 0x00, 0x52, 0x16, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x50, 0x75, 0x73, 0x68, 0x65, 0x64, 0x12, 0x7f, 0x0a, 0x1c, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x65, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x3b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x65, 0x64, 0x48, 0x00, + 0x52, 0x1a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x92, 0x01, 0x0a, + 0x23, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x63, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x6f, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x48, 0x00, 0x52, + 0x20, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x64, 0x12, 0x85, 0x01, 0x0a, 0x1e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x6f, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x48, 0x00, 0x52, 0x1c, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x6f, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x82, 0x01, 0x0a, 0x1d, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, + 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x48, + 0x00, 0x52, 0x1b, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x73, + 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x96, + 0x01, 0x0a, 0x25, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x2e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x64, 0x48, 0x00, 0x52, 0x21, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x57, 0x0a, 0x0e, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x48, + 0x00, 0x52, 0x0d, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x57, 0x0a, 0x0e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x67, 0x0a, 0x14, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x70, 0x75, 0x73, 0x68, 0x65, + 0x64, 0x18, 0x31, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x50, 0x75, 0x73, 0x68, 0x65, 0x64, 0x48, 0x00, 0x52, 0x12, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x50, 0x75, 0x73, 0x68, + 0x65, 0x64, 0x12, 0x51, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x5d, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x65, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x30, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x64, 0x12, 0x51, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x65, + 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x55, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x49, 0x6e, 0x48, 0x00, + 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x49, 0x6e, 0x12, 0x58, + 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x5f, 0x6f, 0x75, + 0x74, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, + 0x67, 0x67, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x4c, + 0x6f, 0x67, 0x67, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x12, 0x6d, 0x0a, 0x16, 0x63, 0x75, 0x72, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x75, 0x72, 0x61, 0x74, + 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x48, + 0x00, 0x52, 0x14, 0x63, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x64, 0x0a, 0x0f, 0x69, 0x64, 0x70, 0x5f, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x65, 0x64, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x44, 0x50, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x64, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0d, + 0x69, 0x64, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x6a, 0x0a, + 0x11, 0x69, 0x64, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x64, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x50, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x69, 0x64, 0x70, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x54, 0x0a, 0x0d, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x48, + 0x00, 0x52, 0x0c, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, + 0x54, 0x0a, 0x0d, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, + 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0c, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x5d, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x72, 0x65, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x30, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x64, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x64, 0x12, 0x61, 0x0a, 0x12, 0x73, 0x63, 0x69, 0x6d, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x20, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x10, 0x73, 0x63, 0x69, 0x6d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x61, 0x0a, 0x12, 0x73, 0x63, 0x69, 0x6d, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x21, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x10, 0x73, 0x63, 0x69, 0x6d, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x7a, 0x0a, 0x19, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, + 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x17, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x73, 0x0a, 0x18, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x23, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x48, 0x00, 0x52, 0x16, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x6d, 0x0a, 0x16, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, + 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x24, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x6f, 0x76, + 0x65, 0x64, 0x48, 0x00, 0x52, 0x14, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x76, 0x0a, 0x19, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x61, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x2c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x48, 0x00, 0x52, 0x17, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x65, 0x64, 0x12, 0x7c, 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x75, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x64, 0x18, 0x2d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x64, 0x48, 0x00, 0x52, 0x19, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, + 0x12, 0x6d, 0x0a, 0x16, 0x63, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x25, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x35, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x14, 0x63, 0x75, 0x72, 0x61, 0x74, + 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, + 0xa5, 0x01, 0x0a, 0x2d, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x5f, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x18, 0x26, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x00, 0x52, 0x28, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x72, 0x65, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0xa8, 0x01, 0x0a, 0x2e, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x62, 0x72, 0x65, 0x61, 0x6b, + 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x27, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x43, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, + 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, + 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x69, 0x73, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x00, 0x52, 0x29, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x12, 0x90, 0x01, 0x0a, 0x21, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x28, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x42, + 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x1e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x98, 0x01, 0x0a, 0x28, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, + 0x65, 0x73, 0x73, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x18, 0x29, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x00, 0x52, 0x24, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, + 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x12, 0x9b, 0x01, 0x0a, 0x29, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x5f, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x70, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x2a, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, 0x69, + 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x69, 0x73, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x00, 0x52, 0x25, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x7c, + 0x0a, 0x1d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x6d, 0x65, 0x72, 0x67, + 0x65, 0x64, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x69, 0x64, 0x70, 0x18, + 0x2b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x41, 0x75, 0x74, 0x6f, + 0x4d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x4e, 0x65, 0x77, 0x49, 0x64, 0x50, + 0x48, 0x00, 0x52, 0x18, 0x75, 0x73, 0x65, 0x72, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x65, 0x72, 0x67, + 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x4e, 0x65, 0x77, 0x49, 0x64, 0x70, 0x12, 0x92, 0x01, 0x0a, + 0x23, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x61, 0x70, 0x70, 0x72, + 0x6f, 0x76, 0x65, 0x64, 0x18, 0x2f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x44, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x47, 0x72, 0x61, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x64, 0x48, 0x00, 0x52, + 0x20, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, + 0x64, 0x12, 0x8c, 0x01, 0x0a, 0x21, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, + 0x5f, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x18, 0x30, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x44, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x48, 0x00, + 0x52, 0x1e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x44, 0x65, 0x6e, 0x69, 0x65, 0x64, + 0x12, 0x67, 0x0a, 0x14, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x32, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x12, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x61, 0x0a, 0x12, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, + 0x33, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x4d, 0x6f, 0x76, 0x65, 0x64, 0x48, 0x00, 0x52, 0x10, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x6a, 0x0a, 0x15, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x61, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x34, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x64, 0x48, 0x00, 0x52, 0x13, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x12, 0x70, 0x0a, 0x17, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x75, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x64, 0x18, 0x35, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, + 0x64, 0x48, 0x00, 0x52, 0x15, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x1c, 0x0a, 0x1a, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x22, 0x1c, 0x0a, 0x1a, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x64, 0x22, 0xa9, 0x02, 0x0a, 0x1e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x41, + 0x64, 0x64, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2b, 0x0a, + 0x11, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x0b, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x0a, + 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x61, 0x0a, 0x12, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x10, 0x6d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xe4, 0x03, + 0x0a, 0x24, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, + 0x2b, 0x0a, 0x11, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x08, + 0x6f, 0x6c, 0x64, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x07, 0x6f, + 0x6c, 0x64, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x48, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x72, 0x6f, + 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x65, + 0x12, 0x68, 0x0a, 0x16, 0x6f, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x72, + 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x13, 0x6f, 0x6c, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x68, 0x0a, 0x16, 0x6e, 0x65, + 0x77, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, + 0x13, 0x6e, 0x65, 0x77, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x22, 0xab, 0x02, 0x0a, 0x20, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x4e, 0x0a, 0x0b, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x6f, 0x6c, 0x65, 0x52, 0x0a, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x12, + 0x61, 0x0a, 0x12, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x52, 0x10, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x22, 0x78, 0x0a, 0x20, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x50, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, + 0x2b, 0x0a, 0x11, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7a, 0x0a, 0x22, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x50, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xcb, 0x01, 0x0a, 0x18, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x47, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x76, 0x69, + 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x2c, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x18, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, + 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x47, 0x0a, + 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x76, 0x69, 0x73, 0x69, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x22, 0xd1, 0x01, 0x0a, 0x1b, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x65, 0x70, 0x72, + 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x47, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x76, + 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x1d, 0x50, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x55, 0x6e, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x52, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x22, + 0xa0, 0x02, 0x0a, 0x1d, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x50, 0x75, 0x73, 0x68, 0x65, + 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, + 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1d, 0x0a, + 0x0a, 0x64, 0x72, 0x61, 0x66, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x64, 0x72, 0x61, 0x66, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, + 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x44, + 0x69, 0x67, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x35, 0x5f, 0x64, 0x69, 0x67, 0x65, + 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x35, 0x44, 0x69, 0x67, 0x65, + 0x73, 0x74, 0x22, 0x83, 0x02, 0x0a, 0x21, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x56, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x5f, + 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x6f, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0xc1, 0x02, 0x0a, 0x27, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, + 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x08, + 0x6f, 0x6c, 0x64, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x07, 0x6f, 0x6c, 0x64, + 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x72, 0x6f, 0x6c, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, + 0x6f, 0x6c, 0x65, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x85, 0x02, 0x0a, + 0x23, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, + 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x56, 0x0a, 0x10, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x5f, 0x72, 0x6f, 0x6c, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, + 0x6f, 0x6c, 0x65, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, + 0x52, 0x6f, 0x6c, 0x65, 0x22, 0xfe, 0x01, 0x0a, 0x22, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x0e, 0x6f, 0x6c, 0x64, 0x5f, 0x76, 0x69, 0x73, + 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x69, 0x73, 0x69, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x6f, 0x6c, 0x64, 0x56, 0x69, 0x73, 0x69, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x4e, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x76, 0x69, 0x73, + 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x69, 0x73, 0x69, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x6e, 0x65, 0x77, 0x56, 0x69, 0x73, 0x69, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x22, 0xce, 0x01, 0x0a, 0x28, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x16, + 0x6f, 0x6c, 0x64, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6f, 0x6c, + 0x64, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x33, 0x0a, 0x16, 0x6e, 0x65, 0x77, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x13, 0x6e, 0x65, 0x77, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xc1, 0x01, 0x0a, 0x25, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, + 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x6f, 0x6c, + 0x64, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x6c, 0x64, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x2c, 0x0a, 0x12, 0x6e, 0x65, 0x77, 0x5f, + 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6e, 0x65, 0x77, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x71, 0x0a, 0x14, 0x50, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x71, 0x0a, + 0x14, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, + 0x22, 0xb0, 0x01, 0x0a, 0x19, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x50, 0x75, 0x73, 0x68, 0x65, 0x64, 0x12, 0x19, + 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x31, 0x5f, 0x64, 0x69, 0x67, + 0x65, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x31, 0x44, 0x69, 0x67, + 0x65, 0x73, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, + 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x22, 0x18, 0x0a, 0x16, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x64, 0x22, 0x18, 0x0a, 0x16, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, + 0x65, 0x72, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x22, 0x14, 0x0a, + 0x12, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, + 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x49, 0x6e, 0x22, 0x16, 0x0a, 0x14, 0x50, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x4f, + 0x75, 0x74, 0x22, 0x21, 0x0a, 0x1f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x73, 0x65, + 0x72, 0x41, 0x75, 0x74, 0x6f, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x4e, + 0x65, 0x77, 0x49, 0x64, 0x50, 0x22, 0x57, 0x0a, 0x1b, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x57, + 0x0a, 0x1b, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, + 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, + 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x78, 0x0a, 0x13, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x19, + 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x11, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 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, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x0f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x79, 0x54, 0x69, 0x6d, + 0x65, 0x22, 0x30, 0x0a, 0x13, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x49, 0x64, 0x22, 0x61, 0x0a, 0x17, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x43, + 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x46, + 0x0a, 0x11, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x45, 0x78, 0x70, 0x69, + 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x17, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x64, 0x22, 0xcb, 0x01, 0x0a, 0x1e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, + 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x64, 0x72, 0x61, 0x66, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x64, 0x72, 0x61, 0x66, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x3a, 0x02, 0x18, 0x01, 0x22, + 0xf1, 0x01, 0x0a, 0x1d, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, + 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x0f, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, + 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x49, 0x64, 0x22, 0x9a, 0x02, 0x0a, 0x1b, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x6f, + 0x76, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, + 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, + 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x0f, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x74, 0x6f, 0x5f, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x74, 0x6f, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x66, 0x72, + 0x6f, 0x6d, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, + 0x22, 0xa8, 0x01, 0x0a, 0x1e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, + 0x76, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, + 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, + 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x20, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x55, 0x6e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, + 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, + 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xd7, 0x01, 0x0a, 0x28, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x45, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x4f, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x08, 0x63, 0x61, + 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x3d, 0x0a, 0x18, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, + 0x5f, 0x75, 0x6e, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x16, 0x69, 0x67, 0x6e, 0x6f, + 0x72, 0x65, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, + 0x5f, 0x75, 0x6e, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x73, 0x22, 0x2b, 0x0a, 0x29, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, + 0x26, 0x0a, 0x24, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x27, 0x0a, 0x25, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, + 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x22, 0x46, 0x0a, 0x27, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x44, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, + 0x61, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x44, 0x0a, 0x25, 0x50, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x44, 0x65, 0x6e, 0x69, 0x65, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0xb0, + 0x01, 0x0a, 0x19, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, + 0x64, 0x22, 0xd9, 0x01, 0x0a, 0x17, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x19, 0x0a, + 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x74, 0x6f, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x6f, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x66, 0x72, 0x6f, 0x6d, 0x5f, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x64, 0x22, 0x94, 0x01, + 0x0a, 0x1a, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x1c, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x55, 0x6e, 0x61, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1b, 0x0a, 0x09, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x2a, 0x53, 0x0a, + 0x09, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x43, + 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, + 0x43, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, + 0x10, 0x02, 0x2a, 0xc3, 0x04, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, + 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x47, 0x41, + 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x25, 0x0a, 0x21, 0x52, 0x45, + 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x47, 0x41, + 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, + 0x03, 0x12, 0x28, 0x0a, 0x24, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x49, 0x44, 0x50, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x09, 0x12, 0x1c, 0x0a, 0x18, 0x52, + 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, + 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x10, 0x04, 0x12, 0x28, 0x0a, 0x24, 0x52, 0x45, 0x53, + 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, + 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x4f, + 0x52, 0x10, 0x05, 0x12, 0x23, 0x0a, 0x1f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, + 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x06, 0x12, 0x18, 0x0a, 0x14, 0x52, 0x45, 0x53, 0x4f, + 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, + 0x10, 0x07, 0x12, 0x1f, 0x0a, 0x1b, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, + 0x54, 0x10, 0x0f, 0x12, 0x20, 0x0a, 0x1c, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x55, 0x52, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x50, 0x4c, 0x55, + 0x47, 0x49, 0x4e, 0x10, 0x08, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, + 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x0a, 0x12, 0x1c, + 0x0a, 0x18, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x53, 0x43, 0x49, 0x4d, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x0b, 0x12, 0x22, 0x0a, 0x1e, + 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, + 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x10, 0x0c, + 0x12, 0x18, 0x0a, 0x14, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x10, 0x0d, 0x12, 0x2c, 0x0a, 0x28, 0x52, 0x45, + 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x56, 0x49, + 0x43, 0x45, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x10, 0x0e, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x53, 0x4f, + 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, + 0x5f, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x10, 0x10, 0x2a, 0xf7, 0x0f, 0x0a, 0x09, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x23, 0x0a, 0x1f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x52, + 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x45, 0x56, 0x45, 0x4e, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x28, 0x0a, 0x24, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x47, 0x41, 0x4e, + 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x41, + 0x44, 0x44, 0x45, 0x44, 0x10, 0x03, 0x12, 0x2f, 0x0a, 0x2b, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x43, 0x48, + 0x41, 0x4e, 0x47, 0x45, 0x44, 0x10, 0x04, 0x12, 0x2a, 0x0a, 0x26, 0x45, 0x56, 0x45, 0x4e, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, + 0x44, 0x10, 0x05, 0x12, 0x2b, 0x0a, 0x27, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, + 0x44, 0x50, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10, 0x15, + 0x12, 0x2d, 0x0a, 0x29, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, + 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x44, 0x50, 0x5f, + 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x16, 0x12, + 0x21, 0x0a, 0x1d, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, + 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, + 0x10, 0x06, 0x12, 0x24, 0x0a, 0x20, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x44, 0x45, 0x50, 0x52, + 0x45, 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x30, 0x12, 0x26, 0x0a, 0x22, 0x45, 0x56, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, + 0x59, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x50, 0x52, 0x45, 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x31, + 0x12, 0x21, 0x0a, 0x1d, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, + 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, + 0x44, 0x10, 0x07, 0x12, 0x27, 0x0a, 0x23, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x43, 0x4f, 0x4d, + 0x4d, 0x49, 0x54, 0x5f, 0x50, 0x55, 0x53, 0x48, 0x45, 0x44, 0x10, 0x08, 0x12, 0x2b, 0x0a, 0x27, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, + 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x4f, + 0x52, 0x5f, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10, 0x09, 0x12, 0x32, 0x0a, 0x2e, 0x45, 0x56, 0x45, + 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, + 0x52, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x4f, 0x52, 0x5f, 0x52, + 0x4f, 0x4c, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x2d, 0x0a, + 0x29, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, + 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, + 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x0b, 0x12, 0x2c, 0x0a, 0x28, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, + 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, + 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x44, 0x10, 0x0c, 0x12, 0x34, 0x0a, 0x30, 0x45, 0x56, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, + 0x4f, 0x52, 0x59, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x5f, 0x4c, 0x41, 0x42, 0x45, + 0x4c, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x44, 0x10, 0x28, + 0x12, 0x1d, 0x0a, 0x19, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, + 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x0d, 0x12, + 0x1d, 0x0a, 0x19, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4c, + 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x0e, 0x12, 0x23, + 0x0a, 0x1f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4c, 0x55, + 0x47, 0x49, 0x4e, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x5f, 0x50, 0x55, 0x53, 0x48, 0x45, + 0x44, 0x10, 0x2b, 0x12, 0x25, 0x0a, 0x21, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x43, 0x55, 0x52, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, + 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x14, 0x12, 0x25, 0x0a, 0x21, 0x45, 0x56, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x55, 0x52, 0x41, 0x54, 0x45, 0x44, + 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, + 0x1f, 0x12, 0x1b, 0x0a, 0x17, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x55, 0x53, 0x45, 0x52, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x0f, 0x12, 0x1b, + 0x0a, 0x17, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x53, 0x45, + 0x52, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x10, 0x12, 0x1f, 0x0a, 0x1b, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x44, + 0x45, 0x41, 0x43, 0x54, 0x49, 0x56, 0x41, 0x54, 0x45, 0x44, 0x10, 0x11, 0x12, 0x1d, 0x0a, 0x19, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, + 0x4c, 0x4f, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x49, 0x4e, 0x10, 0x12, 0x12, 0x1e, 0x0a, 0x1a, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x4c, + 0x4f, 0x47, 0x47, 0x45, 0x44, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x13, 0x12, 0x1c, 0x0a, 0x18, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, + 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x17, 0x12, 0x1c, 0x0a, 0x18, 0x45, 0x56, 0x45, + 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x44, 0x45, + 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x18, 0x12, 0x1f, 0x0a, 0x1b, 0x45, 0x56, 0x45, 0x4e, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x41, 0x43, 0x54, + 0x49, 0x56, 0x41, 0x54, 0x45, 0x44, 0x10, 0x19, 0x12, 0x21, 0x0a, 0x1d, 0x45, 0x56, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x43, 0x49, 0x4d, 0x5f, 0x54, 0x4f, 0x4b, 0x45, + 0x4e, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x1a, 0x12, 0x21, 0x0a, 0x1d, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x43, 0x49, 0x4d, 0x5f, 0x54, + 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x1b, 0x12, 0x2c, + 0x0a, 0x24, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, + 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x5f, 0x44, + 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x1c, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x27, 0x0a, 0x23, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, + 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x43, 0x52, 0x45, 0x41, + 0x54, 0x45, 0x44, 0x10, 0x1d, 0x12, 0x25, 0x0a, 0x21, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x4c, + 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x1e, 0x12, 0x28, 0x0a, 0x24, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, + 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, + 0x49, 0x56, 0x45, 0x44, 0x10, 0x26, 0x12, 0x2a, 0x0a, 0x26, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, + 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x45, 0x44, + 0x10, 0x27, 0x12, 0x34, 0x0a, 0x30, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x42, 0x52, 0x45, 0x41, 0x4b, 0x49, 0x4e, 0x47, + 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x45, + 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x20, 0x12, 0x35, 0x0a, 0x31, 0x45, 0x56, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x42, 0x52, + 0x45, 0x41, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x50, 0x4f, + 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x21, 0x12, + 0x34, 0x0a, 0x2c, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, + 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, + 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x44, 0x10, + 0x22, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x2f, 0x0a, 0x2b, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x49, 0x51, 0x55, + 0x45, 0x4e, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x45, 0x4e, 0x41, + 0x42, 0x4c, 0x45, 0x44, 0x10, 0x23, 0x12, 0x30, 0x0a, 0x2c, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x49, 0x51, + 0x55, 0x45, 0x4e, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x44, 0x49, + 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x24, 0x12, 0x2c, 0x0a, 0x28, 0x45, 0x56, 0x45, 0x4e, + 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x41, 0x55, 0x54, 0x4f, + 0x5f, 0x4d, 0x45, 0x52, 0x47, 0x45, 0x44, 0x5f, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x4e, 0x45, 0x57, + 0x5f, 0x49, 0x44, 0x50, 0x10, 0x25, 0x12, 0x32, 0x0a, 0x2e, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x41, 0x55, 0x54, 0x48, + 0x4f, 0x52, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x5f, + 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x29, 0x12, 0x30, 0x0a, 0x2c, 0x45, 0x56, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x56, 0x49, 0x43, 0x45, 0x5f, + 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x47, 0x52, + 0x41, 0x4e, 0x54, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x2a, 0x12, 0x23, 0x0a, 0x1f, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, + 0x4e, 0x5f, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, + 0x2c, 0x12, 0x21, 0x0a, 0x1d, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x4d, 0x4f, 0x56, + 0x45, 0x44, 0x10, 0x2d, 0x12, 0x24, 0x0a, 0x20, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, + 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x45, 0x44, 0x10, 0x2e, 0x12, 0x26, 0x0a, 0x22, 0x45, 0x56, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, + 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x45, 0x44, + 0x10, 0x2f, 0x42, 0x82, 0x02, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x42, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x53, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, + 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, + 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x61, 0x75, 0x64, 0x69, 0x74, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x41, 0xaa, 0x02, 0x18, 0x42, + 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x18, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, + 0x70, 0x68, 0x61, 0x5c, 0x41, 0x75, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0xe2, 0x02, 0x24, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x41, + 0x75, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x3a, + 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x41, 0x75, 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_audit_v1alpha1_event_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_buf_alpha_audit_v1alpha1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 53) +var file_buf_alpha_audit_v1alpha1_event_proto_goTypes = []any{ + (ActorType)(0), // 0: buf.alpha.audit.v1alpha1.ActorType + (ResourceType)(0), // 1: buf.alpha.audit.v1alpha1.ResourceType + (EventType)(0), // 2: buf.alpha.audit.v1alpha1.EventType + (*Actor)(nil), // 3: buf.alpha.audit.v1alpha1.Actor + (*Resource)(nil), // 4: buf.alpha.audit.v1alpha1.Resource + (*EventMetadata)(nil), // 5: buf.alpha.audit.v1alpha1.EventMetadata + (*Event)(nil), // 6: buf.alpha.audit.v1alpha1.Event + (*PayloadOrganizationCreated)(nil), // 7: buf.alpha.audit.v1alpha1.PayloadOrganizationCreated + (*PayloadOrganizationDeleted)(nil), // 8: buf.alpha.audit.v1alpha1.PayloadOrganizationDeleted + (*PayloadOrganizationMemberAdded)(nil), // 9: buf.alpha.audit.v1alpha1.PayloadOrganizationMemberAdded + (*PayloadOrganizationMemberRoleChanged)(nil), // 10: buf.alpha.audit.v1alpha1.PayloadOrganizationMemberRoleChanged + (*PayloadOrganizationMemberRemoved)(nil), // 11: buf.alpha.audit.v1alpha1.PayloadOrganizationMemberRemoved + (*PayloadOrganizationIDPGroupAdded)(nil), // 12: buf.alpha.audit.v1alpha1.PayloadOrganizationIDPGroupAdded + (*PayloadOrganizationIDPGroupRemoved)(nil), // 13: buf.alpha.audit.v1alpha1.PayloadOrganizationIDPGroupRemoved + (*PayloadRepositoryCreated)(nil), // 14: buf.alpha.audit.v1alpha1.PayloadRepositoryCreated + (*PayloadRepositoryDeleted)(nil), // 15: buf.alpha.audit.v1alpha1.PayloadRepositoryDeleted + (*PayloadRepositoryDeprecated)(nil), // 16: buf.alpha.audit.v1alpha1.PayloadRepositoryDeprecated + (*PayloadRepositoryUndeprecated)(nil), // 17: buf.alpha.audit.v1alpha1.PayloadRepositoryUndeprecated + (*PayloadRepositoryCommitPushed)(nil), // 18: buf.alpha.audit.v1alpha1.PayloadRepositoryCommitPushed + (*PayloadRepositoryContributorAdded)(nil), // 19: buf.alpha.audit.v1alpha1.PayloadRepositoryContributorAdded + (*PayloadRepositoryContributorRoleChanged)(nil), // 20: buf.alpha.audit.v1alpha1.PayloadRepositoryContributorRoleChanged + (*PayloadRepositoryContributorRemoved)(nil), // 21: buf.alpha.audit.v1alpha1.PayloadRepositoryContributorRemoved + (*PayloadRepositoryVisibilityChanged)(nil), // 22: buf.alpha.audit.v1alpha1.PayloadRepositoryVisibilityChanged + (*PayloadRepositoryDefaultLabelNameChanged)(nil), // 23: buf.alpha.audit.v1alpha1.PayloadRepositoryDefaultLabelNameChanged + (*PayloadRepositoryDefaultBranchChanged)(nil), // 24: buf.alpha.audit.v1alpha1.PayloadRepositoryDefaultBranchChanged + (*PayloadPluginCreated)(nil), // 25: buf.alpha.audit.v1alpha1.PayloadPluginCreated + (*PayloadPluginDeleted)(nil), // 26: buf.alpha.audit.v1alpha1.PayloadPluginDeleted + (*PayloadPluginCommitPushed)(nil), // 27: buf.alpha.audit.v1alpha1.PayloadPluginCommitPushed + (*PayloadUserCreated)(nil), // 28: buf.alpha.audit.v1alpha1.PayloadUserCreated + (*PayloadUserReactivated)(nil), // 29: buf.alpha.audit.v1alpha1.PayloadUserReactivated + (*PayloadUserDeactivated)(nil), // 30: buf.alpha.audit.v1alpha1.PayloadUserDeactivated + (*PayloadUserDeleted)(nil), // 31: buf.alpha.audit.v1alpha1.PayloadUserDeleted + (*PayloadUserLoggedIn)(nil), // 32: buf.alpha.audit.v1alpha1.PayloadUserLoggedIn + (*PayloadUserLoggedOut)(nil), // 33: buf.alpha.audit.v1alpha1.PayloadUserLoggedOut + (*PayloadUserAutoMergedFromNewIdP)(nil), // 34: buf.alpha.audit.v1alpha1.PayloadUserAutoMergedFromNewIdP + (*PayloadCuratedPluginCreated)(nil), // 35: buf.alpha.audit.v1alpha1.PayloadCuratedPluginCreated + (*PayloadCuratedPluginDeleted)(nil), // 36: buf.alpha.audit.v1alpha1.PayloadCuratedPluginDeleted + (*PayloadTokenCreated)(nil), // 37: buf.alpha.audit.v1alpha1.PayloadTokenCreated + (*PayloadTokenDeleted)(nil), // 38: buf.alpha.audit.v1alpha1.PayloadTokenDeleted + (*PayloadSCIMTokenCreated)(nil), // 39: buf.alpha.audit.v1alpha1.PayloadSCIMTokenCreated + (*PayloadSCIMTokenDeleted)(nil), // 40: buf.alpha.audit.v1alpha1.PayloadSCIMTokenDeleted + (*PayloadRepositoryCommitDeleted)(nil), // 41: buf.alpha.audit.v1alpha1.PayloadRepositoryCommitDeleted + (*PayloadRepositoryLabelCreated)(nil), // 42: buf.alpha.audit.v1alpha1.PayloadRepositoryLabelCreated + (*PayloadRepositoryLabelMoved)(nil), // 43: buf.alpha.audit.v1alpha1.PayloadRepositoryLabelMoved + (*PayloadRepositoryLabelArchived)(nil), // 44: buf.alpha.audit.v1alpha1.PayloadRepositoryLabelArchived + (*PayloadRepositoryLabelUnarchived)(nil), // 45: buf.alpha.audit.v1alpha1.PayloadRepositoryLabelUnarchived + (*PayloadServerBreakingChangePolicyEnabled)(nil), // 46: buf.alpha.audit.v1alpha1.PayloadServerBreakingChangePolicyEnabled + (*PayloadServerBreakingChangePolicyDisabled)(nil), // 47: buf.alpha.audit.v1alpha1.PayloadServerBreakingChangePolicyDisabled + (*PayloadServerUniquenessPolicyEnabled)(nil), // 48: buf.alpha.audit.v1alpha1.PayloadServerUniquenessPolicyEnabled + (*PayloadServerUniquenessPolicyDisabled)(nil), // 49: buf.alpha.audit.v1alpha1.PayloadServerUniquenessPolicyDisabled + (*PayloadDeviceAuthorizationGrantApproved)(nil), // 50: buf.alpha.audit.v1alpha1.PayloadDeviceAuthorizationGrantApproved + (*PayloadDeviceAuthorizationGrantDenied)(nil), // 51: buf.alpha.audit.v1alpha1.PayloadDeviceAuthorizationGrantDenied + (*PayloadPluginLabelCreated)(nil), // 52: buf.alpha.audit.v1alpha1.PayloadPluginLabelCreated + (*PayloadPluginLabelMoved)(nil), // 53: buf.alpha.audit.v1alpha1.PayloadPluginLabelMoved + (*PayloadPluginLabelArchived)(nil), // 54: buf.alpha.audit.v1alpha1.PayloadPluginLabelArchived + (*PayloadPluginLabelUnarchived)(nil), // 55: buf.alpha.audit.v1alpha1.PayloadPluginLabelUnarchived + (*timestamppb.Timestamp)(nil), // 56: google.protobuf.Timestamp + (v1alpha1.OrganizationRole)(0), // 57: buf.alpha.registry.v1alpha1.OrganizationRole + (v1alpha1.OrganizationRoleSource)(0), // 58: buf.alpha.registry.v1alpha1.OrganizationRoleSource + (v1alpha1.Visibility)(0), // 59: buf.alpha.registry.v1alpha1.Visibility + (v1alpha1.RepositoryRole)(0), // 60: buf.alpha.registry.v1alpha1.RepositoryRole + (v1alpha1.BreakingChangeCategory)(0), // 61: buf.alpha.registry.v1alpha1.BreakingChangeCategory +} +var file_buf_alpha_audit_v1alpha1_event_proto_depIdxs = []int32{ + 0, // 0: buf.alpha.audit.v1alpha1.Actor.type:type_name -> buf.alpha.audit.v1alpha1.ActorType + 1, // 1: buf.alpha.audit.v1alpha1.Resource.type:type_name -> buf.alpha.audit.v1alpha1.ResourceType + 2, // 2: buf.alpha.audit.v1alpha1.Event.type:type_name -> buf.alpha.audit.v1alpha1.EventType + 3, // 3: buf.alpha.audit.v1alpha1.Event.actor:type_name -> buf.alpha.audit.v1alpha1.Actor + 4, // 4: buf.alpha.audit.v1alpha1.Event.resource:type_name -> buf.alpha.audit.v1alpha1.Resource + 56, // 5: buf.alpha.audit.v1alpha1.Event.event_time:type_name -> google.protobuf.Timestamp + 5, // 6: buf.alpha.audit.v1alpha1.Event.metadata:type_name -> buf.alpha.audit.v1alpha1.EventMetadata + 7, // 7: buf.alpha.audit.v1alpha1.Event.organization_created:type_name -> buf.alpha.audit.v1alpha1.PayloadOrganizationCreated + 8, // 8: buf.alpha.audit.v1alpha1.Event.organization_deleted:type_name -> buf.alpha.audit.v1alpha1.PayloadOrganizationDeleted + 9, // 9: buf.alpha.audit.v1alpha1.Event.organization_member_added:type_name -> buf.alpha.audit.v1alpha1.PayloadOrganizationMemberAdded + 10, // 10: buf.alpha.audit.v1alpha1.Event.organization_member_role_changed:type_name -> buf.alpha.audit.v1alpha1.PayloadOrganizationMemberRoleChanged + 11, // 11: buf.alpha.audit.v1alpha1.Event.organization_member_removed:type_name -> buf.alpha.audit.v1alpha1.PayloadOrganizationMemberRemoved + 14, // 12: buf.alpha.audit.v1alpha1.Event.repository_created:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryCreated + 16, // 13: buf.alpha.audit.v1alpha1.Event.repository_deprecated:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryDeprecated + 17, // 14: buf.alpha.audit.v1alpha1.Event.repository_undeprecated:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryUndeprecated + 15, // 15: buf.alpha.audit.v1alpha1.Event.repository_deleted:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryDeleted + 18, // 16: buf.alpha.audit.v1alpha1.Event.repository_commit_pushed:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryCommitPushed + 19, // 17: buf.alpha.audit.v1alpha1.Event.repository_contributor_added:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryContributorAdded + 20, // 18: buf.alpha.audit.v1alpha1.Event.repository_contributor_role_changed:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryContributorRoleChanged + 21, // 19: buf.alpha.audit.v1alpha1.Event.repository_contributor_removed:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryContributorRemoved + 22, // 20: buf.alpha.audit.v1alpha1.Event.repository_visibility_changed:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryVisibilityChanged + 23, // 21: buf.alpha.audit.v1alpha1.Event.repository_default_label_name_changed:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryDefaultLabelNameChanged + 25, // 22: buf.alpha.audit.v1alpha1.Event.plugin_created:type_name -> buf.alpha.audit.v1alpha1.PayloadPluginCreated + 26, // 23: buf.alpha.audit.v1alpha1.Event.plugin_deleted:type_name -> buf.alpha.audit.v1alpha1.PayloadPluginDeleted + 27, // 24: buf.alpha.audit.v1alpha1.Event.plugin_commit_pushed:type_name -> buf.alpha.audit.v1alpha1.PayloadPluginCommitPushed + 28, // 25: buf.alpha.audit.v1alpha1.Event.user_created:type_name -> buf.alpha.audit.v1alpha1.PayloadUserCreated + 30, // 26: buf.alpha.audit.v1alpha1.Event.user_deactivated:type_name -> buf.alpha.audit.v1alpha1.PayloadUserDeactivated + 31, // 27: buf.alpha.audit.v1alpha1.Event.user_deleted:type_name -> buf.alpha.audit.v1alpha1.PayloadUserDeleted + 32, // 28: buf.alpha.audit.v1alpha1.Event.user_logged_in:type_name -> buf.alpha.audit.v1alpha1.PayloadUserLoggedIn + 33, // 29: buf.alpha.audit.v1alpha1.Event.user_logged_out:type_name -> buf.alpha.audit.v1alpha1.PayloadUserLoggedOut + 35, // 30: buf.alpha.audit.v1alpha1.Event.curated_plugin_created:type_name -> buf.alpha.audit.v1alpha1.PayloadCuratedPluginCreated + 12, // 31: buf.alpha.audit.v1alpha1.Event.idp_group_added:type_name -> buf.alpha.audit.v1alpha1.PayloadOrganizationIDPGroupAdded + 13, // 32: buf.alpha.audit.v1alpha1.Event.idp_group_removed:type_name -> buf.alpha.audit.v1alpha1.PayloadOrganizationIDPGroupRemoved + 37, // 33: buf.alpha.audit.v1alpha1.Event.token_created:type_name -> buf.alpha.audit.v1alpha1.PayloadTokenCreated + 38, // 34: buf.alpha.audit.v1alpha1.Event.token_deleted:type_name -> buf.alpha.audit.v1alpha1.PayloadTokenDeleted + 29, // 35: buf.alpha.audit.v1alpha1.Event.user_reactivated:type_name -> buf.alpha.audit.v1alpha1.PayloadUserReactivated + 39, // 36: buf.alpha.audit.v1alpha1.Event.scim_token_created:type_name -> buf.alpha.audit.v1alpha1.PayloadSCIMTokenCreated + 40, // 37: buf.alpha.audit.v1alpha1.Event.scim_token_deleted:type_name -> buf.alpha.audit.v1alpha1.PayloadSCIMTokenDeleted + 41, // 38: buf.alpha.audit.v1alpha1.Event.repository_commit_deleted:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryCommitDeleted + 42, // 39: buf.alpha.audit.v1alpha1.Event.repository_label_created:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryLabelCreated + 43, // 40: buf.alpha.audit.v1alpha1.Event.repository_label_moved:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryLabelMoved + 44, // 41: buf.alpha.audit.v1alpha1.Event.repository_label_archived:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryLabelArchived + 45, // 42: buf.alpha.audit.v1alpha1.Event.repository_label_unarchived:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryLabelUnarchived + 36, // 43: buf.alpha.audit.v1alpha1.Event.curated_plugin_deleted:type_name -> buf.alpha.audit.v1alpha1.PayloadCuratedPluginDeleted + 46, // 44: buf.alpha.audit.v1alpha1.Event.payload_server_breaking_change_policy_enabled:type_name -> buf.alpha.audit.v1alpha1.PayloadServerBreakingChangePolicyEnabled + 47, // 45: buf.alpha.audit.v1alpha1.Event.payload_server_breaking_change_policy_disabled:type_name -> buf.alpha.audit.v1alpha1.PayloadServerBreakingChangePolicyDisabled + 24, // 46: buf.alpha.audit.v1alpha1.Event.repository_default_branch_changed:type_name -> buf.alpha.audit.v1alpha1.PayloadRepositoryDefaultBranchChanged + 48, // 47: buf.alpha.audit.v1alpha1.Event.payload_server_uniqueness_policy_enabled:type_name -> buf.alpha.audit.v1alpha1.PayloadServerUniquenessPolicyEnabled + 49, // 48: buf.alpha.audit.v1alpha1.Event.payload_server_uniqueness_policy_disabled:type_name -> buf.alpha.audit.v1alpha1.PayloadServerUniquenessPolicyDisabled + 34, // 49: buf.alpha.audit.v1alpha1.Event.user_auto_merged_from_new_idp:type_name -> buf.alpha.audit.v1alpha1.PayloadUserAutoMergedFromNewIdP + 50, // 50: buf.alpha.audit.v1alpha1.Event.device_authorization_grant_approved:type_name -> buf.alpha.audit.v1alpha1.PayloadDeviceAuthorizationGrantApproved + 51, // 51: buf.alpha.audit.v1alpha1.Event.device_authorization_grant_denied:type_name -> buf.alpha.audit.v1alpha1.PayloadDeviceAuthorizationGrantDenied + 52, // 52: buf.alpha.audit.v1alpha1.Event.plugin_label_created:type_name -> buf.alpha.audit.v1alpha1.PayloadPluginLabelCreated + 53, // 53: buf.alpha.audit.v1alpha1.Event.plugin_label_moved:type_name -> buf.alpha.audit.v1alpha1.PayloadPluginLabelMoved + 54, // 54: buf.alpha.audit.v1alpha1.Event.plugin_label_archived:type_name -> buf.alpha.audit.v1alpha1.PayloadPluginLabelArchived + 55, // 55: buf.alpha.audit.v1alpha1.Event.plugin_label_unarchived:type_name -> buf.alpha.audit.v1alpha1.PayloadPluginLabelUnarchived + 57, // 56: buf.alpha.audit.v1alpha1.PayloadOrganizationMemberAdded.member_role:type_name -> buf.alpha.registry.v1alpha1.OrganizationRole + 58, // 57: buf.alpha.audit.v1alpha1.PayloadOrganizationMemberAdded.member_role_source:type_name -> buf.alpha.registry.v1alpha1.OrganizationRoleSource + 57, // 58: buf.alpha.audit.v1alpha1.PayloadOrganizationMemberRoleChanged.old_role:type_name -> buf.alpha.registry.v1alpha1.OrganizationRole + 57, // 59: buf.alpha.audit.v1alpha1.PayloadOrganizationMemberRoleChanged.new_role:type_name -> buf.alpha.registry.v1alpha1.OrganizationRole + 58, // 60: buf.alpha.audit.v1alpha1.PayloadOrganizationMemberRoleChanged.old_member_role_source:type_name -> buf.alpha.registry.v1alpha1.OrganizationRoleSource + 58, // 61: buf.alpha.audit.v1alpha1.PayloadOrganizationMemberRoleChanged.new_member_role_source:type_name -> buf.alpha.registry.v1alpha1.OrganizationRoleSource + 57, // 62: buf.alpha.audit.v1alpha1.PayloadOrganizationMemberRemoved.member_role:type_name -> buf.alpha.registry.v1alpha1.OrganizationRole + 58, // 63: buf.alpha.audit.v1alpha1.PayloadOrganizationMemberRemoved.member_role_source:type_name -> buf.alpha.registry.v1alpha1.OrganizationRoleSource + 59, // 64: buf.alpha.audit.v1alpha1.PayloadRepositoryCreated.visibility:type_name -> buf.alpha.registry.v1alpha1.Visibility + 59, // 65: buf.alpha.audit.v1alpha1.PayloadRepositoryDeleted.visibility:type_name -> buf.alpha.registry.v1alpha1.Visibility + 59, // 66: buf.alpha.audit.v1alpha1.PayloadRepositoryDeprecated.visibility:type_name -> buf.alpha.registry.v1alpha1.Visibility + 59, // 67: buf.alpha.audit.v1alpha1.PayloadRepositoryUndeprecated.visibility:type_name -> buf.alpha.registry.v1alpha1.Visibility + 60, // 68: buf.alpha.audit.v1alpha1.PayloadRepositoryContributorAdded.contributor_role:type_name -> buf.alpha.registry.v1alpha1.RepositoryRole + 60, // 69: buf.alpha.audit.v1alpha1.PayloadRepositoryContributorRoleChanged.old_role:type_name -> buf.alpha.registry.v1alpha1.RepositoryRole + 60, // 70: buf.alpha.audit.v1alpha1.PayloadRepositoryContributorRoleChanged.new_role:type_name -> buf.alpha.registry.v1alpha1.RepositoryRole + 60, // 71: buf.alpha.audit.v1alpha1.PayloadRepositoryContributorRemoved.contributor_role:type_name -> buf.alpha.registry.v1alpha1.RepositoryRole + 59, // 72: buf.alpha.audit.v1alpha1.PayloadRepositoryVisibilityChanged.old_visibility:type_name -> buf.alpha.registry.v1alpha1.Visibility + 59, // 73: buf.alpha.audit.v1alpha1.PayloadRepositoryVisibilityChanged.new_visibility:type_name -> buf.alpha.registry.v1alpha1.Visibility + 56, // 74: buf.alpha.audit.v1alpha1.PayloadTokenCreated.token_expiry_time:type_name -> google.protobuf.Timestamp + 56, // 75: buf.alpha.audit.v1alpha1.PayloadSCIMTokenCreated.token_expiry_time:type_name -> google.protobuf.Timestamp + 61, // 76: buf.alpha.audit.v1alpha1.PayloadServerBreakingChangePolicyEnabled.category:type_name -> buf.alpha.registry.v1alpha1.BreakingChangeCategory + 77, // [77:77] is the sub-list for method output_type + 77, // [77:77] is the sub-list for method input_type + 77, // [77:77] is the sub-list for extension type_name + 77, // [77:77] is the sub-list for extension extendee + 0, // [0:77] is the sub-list for field type_name +} + +func init() { file_buf_alpha_audit_v1alpha1_event_proto_init() } +func file_buf_alpha_audit_v1alpha1_event_proto_init() { + if File_buf_alpha_audit_v1alpha1_event_proto != nil { + return + } + file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[3].OneofWrappers = []any{ + (*event_OrganizationCreated)(nil), + (*event_OrganizationDeleted)(nil), + (*event_OrganizationMemberAdded)(nil), + (*event_OrganizationMemberRoleChanged)(nil), + (*event_OrganizationMemberRemoved)(nil), + (*event_RepositoryCreated)(nil), + (*event_RepositoryDeprecated)(nil), + (*event_RepositoryUndeprecated)(nil), + (*event_RepositoryDeleted)(nil), + (*event_RepositoryCommitPushed)(nil), + (*event_RepositoryContributorAdded)(nil), + (*event_RepositoryContributorRoleChanged)(nil), + (*event_RepositoryContributorRemoved)(nil), + (*event_RepositoryVisibilityChanged)(nil), + (*event_RepositoryDefaultLabelNameChanged)(nil), + (*event_PluginCreated)(nil), + (*event_PluginDeleted)(nil), + (*event_PluginCommitPushed)(nil), + (*event_UserCreated)(nil), + (*event_UserDeactivated)(nil), + (*event_UserDeleted)(nil), + (*event_UserLoggedIn)(nil), + (*event_UserLoggedOut)(nil), + (*event_CuratedPluginCreated)(nil), + (*event_IdpGroupAdded)(nil), + (*event_IdpGroupRemoved)(nil), + (*event_TokenCreated)(nil), + (*event_TokenDeleted)(nil), + (*event_UserReactivated)(nil), + (*event_ScimTokenCreated)(nil), + (*event_ScimTokenDeleted)(nil), + (*event_RepositoryCommitDeleted)(nil), + (*event_RepositoryLabelCreated)(nil), + (*event_RepositoryLabelMoved)(nil), + (*event_RepositoryLabelArchived)(nil), + (*event_RepositoryLabelUnarchived)(nil), + (*event_CuratedPluginDeleted)(nil), + (*event_PayloadServerBreakingChangePolicyEnabled)(nil), + (*event_PayloadServerBreakingChangePolicyDisabled)(nil), + (*event_RepositoryDefaultBranchChanged)(nil), + (*event_PayloadServerUniquenessPolicyEnabled)(nil), + (*event_PayloadServerUniquenessPolicyDisabled)(nil), + (*event_UserAutoMergedFromNewIdp)(nil), + (*event_DeviceAuthorizationGrantApproved)(nil), + (*event_DeviceAuthorizationGrantDenied)(nil), + (*event_PluginLabelCreated)(nil), + (*event_PluginLabelMoved)(nil), + (*event_PluginLabelArchived)(nil), + (*event_PluginLabelUnarchived)(nil), + } + file_buf_alpha_audit_v1alpha1_event_proto_msgTypes[43].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_audit_v1alpha1_event_proto_rawDesc, + NumEnums: 3, + NumMessages: 53, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_buf_alpha_audit_v1alpha1_event_proto_goTypes, + DependencyIndexes: file_buf_alpha_audit_v1alpha1_event_proto_depIdxs, + EnumInfos: file_buf_alpha_audit_v1alpha1_event_proto_enumTypes, + MessageInfos: file_buf_alpha_audit_v1alpha1_event_proto_msgTypes, + }.Build() + File_buf_alpha_audit_v1alpha1_event_proto = out.File + file_buf_alpha_audit_v1alpha1_event_proto_rawDesc = nil + file_buf_alpha_audit_v1alpha1_event_proto_goTypes = nil + file_buf_alpha_audit_v1alpha1_event_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/audit/v1alpha1/service.pb.go b/private/gen/proto/go/buf/alpha/audit/v1alpha1/service.pb.go index 580a994869..9bdae02e4d 100644 --- a/private/gen/proto/go/buf/alpha/audit/v1alpha1/service.pb.go +++ b/private/gen/proto/go/buf/alpha/audit/v1alpha1/service.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/audit/v1alpha1/service.proto +//go:build !protoopaque + package auditv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -36,7 +37,7 @@ const ( ) type ListAuditedEventsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The page size for listing audited events, values between 1-250. PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The page token for paginating. The first page is returned if this is empty. @@ -74,11 +75,6 @@ func (x *ListAuditedEventsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListAuditedEventsRequest.ProtoReflect.Descriptor instead. -func (*ListAuditedEventsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_service_proto_rawDescGZIP(), []int{0} -} - func (x *ListAuditedEventsRequest) GetPageSize() uint32 { if x != nil { return x.PageSize @@ -107,8 +103,70 @@ func (x *ListAuditedEventsRequest) GetEnd() *timestamppb.Timestamp { return nil } +func (x *ListAuditedEventsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListAuditedEventsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListAuditedEventsRequest) SetStart(v *timestamppb.Timestamp) { + x.Start = v +} + +func (x *ListAuditedEventsRequest) SetEnd(v *timestamppb.Timestamp) { + x.End = v +} + +func (x *ListAuditedEventsRequest) HasStart() bool { + if x == nil { + return false + } + return x.Start != nil +} + +func (x *ListAuditedEventsRequest) HasEnd() bool { + if x == nil { + return false + } + return x.End != nil +} + +func (x *ListAuditedEventsRequest) ClearStart() { + x.Start = nil +} + +func (x *ListAuditedEventsRequest) ClearEnd() { + x.End = nil +} + +type ListAuditedEventsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The page size for listing audited events, values between 1-250. + PageSize uint32 + // The page token for paginating. The first page is returned if this is empty. + PageToken string + // The start timestamp to filter events from. + Start *timestamppb.Timestamp + // The end timestamp to filter events to. + End *timestamppb.Timestamp +} + +func (b0 ListAuditedEventsRequest_builder) Build() *ListAuditedEventsRequest { + m0 := &ListAuditedEventsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Start = b.Start + x.End = b.End + return m0 +} + type ListAuditedEventsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The list of audited events in the current page. Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // The token for the next page of audited events. There are no more pages if @@ -143,11 +201,6 @@ func (x *ListAuditedEventsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListAuditedEventsResponse.ProtoReflect.Descriptor instead. -func (*ListAuditedEventsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_audit_v1alpha1_service_proto_rawDescGZIP(), []int{1} -} - func (x *ListAuditedEventsResponse) GetEvents() []*Event { if x != nil { return x.Events @@ -162,6 +215,33 @@ func (x *ListAuditedEventsResponse) GetNextPageToken() string { return "" } +func (x *ListAuditedEventsResponse) SetEvents(v []*Event) { + x.Events = v +} + +func (x *ListAuditedEventsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListAuditedEventsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of audited events in the current page. + Events []*Event + // The token for the next page of audited events. There are no more pages if + // this is empty. + NextPageToken string +} + +func (b0 ListAuditedEventsResponse_builder) Build() *ListAuditedEventsResponse { + m0 := &ListAuditedEventsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Events = b.Events + x.NextPageToken = b.NextPageToken + return m0 +} + var File_buf_alpha_audit_v1alpha1_service_proto protoreflect.FileDescriptor var file_buf_alpha_audit_v1alpha1_service_proto_rawDesc = []byte{ @@ -222,18 +302,6 @@ var file_buf_alpha_audit_v1alpha1_service_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_audit_v1alpha1_service_proto_rawDescOnce sync.Once - file_buf_alpha_audit_v1alpha1_service_proto_rawDescData = file_buf_alpha_audit_v1alpha1_service_proto_rawDesc -) - -func file_buf_alpha_audit_v1alpha1_service_proto_rawDescGZIP() []byte { - file_buf_alpha_audit_v1alpha1_service_proto_rawDescOnce.Do(func() { - file_buf_alpha_audit_v1alpha1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_audit_v1alpha1_service_proto_rawDescData) - }) - return file_buf_alpha_audit_v1alpha1_service_proto_rawDescData -} - var file_buf_alpha_audit_v1alpha1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_buf_alpha_audit_v1alpha1_service_proto_goTypes = []any{ (*ListAuditedEventsRequest)(nil), // 0: buf.alpha.audit.v1alpha1.ListAuditedEventsRequest diff --git a/private/gen/proto/go/buf/alpha/audit/v1alpha1/service_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/audit/v1alpha1/service_protoopaque.pb.go new file mode 100644 index 0000000000..d298653584 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/audit/v1alpha1/service_protoopaque.pb.go @@ -0,0 +1,344 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/audit/v1alpha1/service.proto + +//go:build protoopaque + +package auditv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ListAuditedEventsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Start *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"` + xxx_hidden_End *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end,proto3" json:"end,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListAuditedEventsRequest) Reset() { + *x = ListAuditedEventsRequest{} + mi := &file_buf_alpha_audit_v1alpha1_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListAuditedEventsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAuditedEventsRequest) ProtoMessage() {} + +func (x *ListAuditedEventsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_service_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListAuditedEventsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListAuditedEventsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListAuditedEventsRequest) GetStart() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_Start + } + return nil +} + +func (x *ListAuditedEventsRequest) GetEnd() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_End + } + return nil +} + +func (x *ListAuditedEventsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListAuditedEventsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListAuditedEventsRequest) SetStart(v *timestamppb.Timestamp) { + x.xxx_hidden_Start = v +} + +func (x *ListAuditedEventsRequest) SetEnd(v *timestamppb.Timestamp) { + x.xxx_hidden_End = v +} + +func (x *ListAuditedEventsRequest) HasStart() bool { + if x == nil { + return false + } + return x.xxx_hidden_Start != nil +} + +func (x *ListAuditedEventsRequest) HasEnd() bool { + if x == nil { + return false + } + return x.xxx_hidden_End != nil +} + +func (x *ListAuditedEventsRequest) ClearStart() { + x.xxx_hidden_Start = nil +} + +func (x *ListAuditedEventsRequest) ClearEnd() { + x.xxx_hidden_End = nil +} + +type ListAuditedEventsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The page size for listing audited events, values between 1-250. + PageSize uint32 + // The page token for paginating. The first page is returned if this is empty. + PageToken string + // The start timestamp to filter events from. + Start *timestamppb.Timestamp + // The end timestamp to filter events to. + End *timestamppb.Timestamp +} + +func (b0 ListAuditedEventsRequest_builder) Build() *ListAuditedEventsRequest { + m0 := &ListAuditedEventsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Start = b.Start + x.xxx_hidden_End = b.End + return m0 +} + +type ListAuditedEventsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Events *[]*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListAuditedEventsResponse) Reset() { + *x = ListAuditedEventsResponse{} + mi := &file_buf_alpha_audit_v1alpha1_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListAuditedEventsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAuditedEventsResponse) ProtoMessage() {} + +func (x *ListAuditedEventsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_audit_v1alpha1_service_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListAuditedEventsResponse) GetEvents() []*Event { + if x != nil { + if x.xxx_hidden_Events != nil { + return *x.xxx_hidden_Events + } + } + return nil +} + +func (x *ListAuditedEventsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListAuditedEventsResponse) SetEvents(v []*Event) { + x.xxx_hidden_Events = &v +} + +func (x *ListAuditedEventsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListAuditedEventsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of audited events in the current page. + Events []*Event + // The token for the next page of audited events. There are no more pages if + // this is empty. + NextPageToken string +} + +func (b0 ListAuditedEventsResponse_builder) Build() *ListAuditedEventsResponse { + m0 := &ListAuditedEventsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Events = &b.Events + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +var File_buf_alpha_audit_v1alpha1_service_proto protoreflect.FileDescriptor + +var file_buf_alpha_audit_v1alpha1_service_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x61, 0x75, 0x64, 0x69, + 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x1a, 0x24, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x61, 0x75, + 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x01, 0x0a, 0x18, 0x4c, 0x69, + 0x73, 0x74, 0x41, 0x75, 0x64, 0x69, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x30, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x12, 0x2c, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x03, 0x65, + 0x6e, 0x64, 0x22, 0x7c, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x64, 0x69, 0x74, 0x65, + 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x37, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, + 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x32, 0x92, 0x01, 0x0a, 0x0c, 0x41, 0x75, 0x64, 0x69, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x81, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x64, 0x69, 0x74, 0x65, + 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x64, 0x69, 0x74, 0x65, 0x64, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x64, 0x69, 0x74, + 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x84, 0x02, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x53, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x61, + 0x75, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x61, 0x75, + 0x64, 0x69, 0x74, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, + 0x41, 0xaa, 0x02, 0x18, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x41, 0x75, + 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x18, 0x42, + 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x41, 0x75, 0x64, 0x69, 0x74, 0x5c, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x24, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, + 0x70, 0x68, 0x61, 0x5c, 0x41, 0x75, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x1b, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x41, 0x75, 0x64, + 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_audit_v1alpha1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_buf_alpha_audit_v1alpha1_service_proto_goTypes = []any{ + (*ListAuditedEventsRequest)(nil), // 0: buf.alpha.audit.v1alpha1.ListAuditedEventsRequest + (*ListAuditedEventsResponse)(nil), // 1: buf.alpha.audit.v1alpha1.ListAuditedEventsResponse + (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp + (*Event)(nil), // 3: buf.alpha.audit.v1alpha1.Event +} +var file_buf_alpha_audit_v1alpha1_service_proto_depIdxs = []int32{ + 2, // 0: buf.alpha.audit.v1alpha1.ListAuditedEventsRequest.start:type_name -> google.protobuf.Timestamp + 2, // 1: buf.alpha.audit.v1alpha1.ListAuditedEventsRequest.end:type_name -> google.protobuf.Timestamp + 3, // 2: buf.alpha.audit.v1alpha1.ListAuditedEventsResponse.events:type_name -> buf.alpha.audit.v1alpha1.Event + 0, // 3: buf.alpha.audit.v1alpha1.AuditService.ListAuditedEvents:input_type -> buf.alpha.audit.v1alpha1.ListAuditedEventsRequest + 1, // 4: buf.alpha.audit.v1alpha1.AuditService.ListAuditedEvents:output_type -> buf.alpha.audit.v1alpha1.ListAuditedEventsResponse + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_buf_alpha_audit_v1alpha1_service_proto_init() } +func file_buf_alpha_audit_v1alpha1_service_proto_init() { + if File_buf_alpha_audit_v1alpha1_service_proto != nil { + return + } + file_buf_alpha_audit_v1alpha1_event_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_audit_v1alpha1_service_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_audit_v1alpha1_service_proto_goTypes, + DependencyIndexes: file_buf_alpha_audit_v1alpha1_service_proto_depIdxs, + MessageInfos: file_buf_alpha_audit_v1alpha1_service_proto_msgTypes, + }.Build() + File_buf_alpha_audit_v1alpha1_service_proto = out.File + file_buf_alpha_audit_v1alpha1_service_proto_rawDesc = nil + file_buf_alpha_audit_v1alpha1_service_proto_goTypes = nil + file_buf_alpha_audit_v1alpha1_service_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/breaking/v1/config.pb.go b/private/gen/proto/go/buf/alpha/breaking/v1/config.pb.go index ce1c4e38fe..db0d2cccfc 100644 --- a/private/gen/proto/go/buf/alpha/breaking/v1/config.pb.go +++ b/private/gen/proto/go/buf/alpha/breaking/v1/config.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/breaking/v1/config.proto +//go:build !protoopaque + package breakingv1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -42,7 +43,7 @@ const ( // The rule and category IDs are not encoded as enums in this package because we may want to support custom rule // and category IDs in the future. Callers will need to resolve the rule and category ID strings. type Config struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // version represents the version of the breaking change rule and category IDs that should be used with this config. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // use_ids lists the rule and/or category IDs that are included in the breaking change check. @@ -91,11 +92,6 @@ func (x *Config) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Config.ProtoReflect.Descriptor instead. -func (*Config) Descriptor() ([]byte, []int) { - return file_buf_alpha_breaking_v1_config_proto_rawDescGZIP(), []int{0} -} - func (x *Config) GetVersion() string { if x != nil { return x.Version @@ -138,9 +134,70 @@ func (x *Config) GetIgnoreUnstablePackages() bool { return false } +func (x *Config) SetVersion(v string) { + x.Version = v +} + +func (x *Config) SetUseIds(v []string) { + x.UseIds = v +} + +func (x *Config) SetExceptIds(v []string) { + x.ExceptIds = v +} + +func (x *Config) SetIgnorePaths(v []string) { + x.IgnorePaths = v +} + +func (x *Config) SetIgnoreIdPaths(v []*IDPaths) { + x.IgnoreIdPaths = v +} + +func (x *Config) SetIgnoreUnstablePackages(v bool) { + x.IgnoreUnstablePackages = v +} + +type Config_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version represents the version of the breaking change rule and category IDs that should be used with this config. + Version string + // use_ids lists the rule and/or category IDs that are included in the breaking change check. + UseIds []string + // except_ids lists the rule and/or category IDs that are excluded from the breaking change check. + ExceptIds []string + // ignore_paths lists the paths of directories and/or files that should be ignored by the breaking change check. + // All paths are relative to the root of the module. + IgnorePaths []string + // ignore_id_paths is a map of rule and/or category IDs to directory and/or file paths to exclude from the + // breaking change check. This corresponds with the ignore_only configuration key. + IgnoreIdPaths []*IDPaths + // ignore_unstable_packages ignores packages with a last component that is one of the unstable forms recognised + // by the PACKAGE_VERSION_SUFFIX: + // + // v\d+test.* + // v\d+(alpha|beta)\d+ + // v\d+p\d+(alpha|beta)\d+ + IgnoreUnstablePackages bool +} + +func (b0 Config_builder) Build() *Config { + m0 := &Config{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + x.UseIds = b.UseIds + x.ExceptIds = b.ExceptIds + x.IgnorePaths = b.IgnorePaths + x.IgnoreIdPaths = b.IgnoreIdPaths + x.IgnoreUnstablePackages = b.IgnoreUnstablePackages + return m0 +} + // IDPaths represents a rule or category ID and the file and/or directory paths that are ignored for the rule. type IDPaths struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"` unknownFields protoimpl.UnknownFields @@ -172,11 +229,6 @@ func (x *IDPaths) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDPaths.ProtoReflect.Descriptor instead. -func (*IDPaths) Descriptor() ([]byte, []int) { - return file_buf_alpha_breaking_v1_config_proto_rawDescGZIP(), []int{1} -} - func (x *IDPaths) GetId() string { if x != nil { return x.Id @@ -191,6 +243,30 @@ func (x *IDPaths) GetPaths() []string { return nil } +func (x *IDPaths) SetId(v string) { + x.Id = v +} + +func (x *IDPaths) SetPaths(v []string) { + x.Paths = v +} + +type IDPaths_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Paths []string +} + +func (b0 IDPaths_builder) Build() *IDPaths { + m0 := &IDPaths{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Paths = b.Paths + return m0 +} + var File_buf_alpha_breaking_v1_config_proto protoreflect.FileDescriptor var file_buf_alpha_breaking_v1_config_proto_rawDesc = []byte{ @@ -235,18 +311,6 @@ var file_buf_alpha_breaking_v1_config_proto_rawDesc = []byte{ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_breaking_v1_config_proto_rawDescOnce sync.Once - file_buf_alpha_breaking_v1_config_proto_rawDescData = file_buf_alpha_breaking_v1_config_proto_rawDesc -) - -func file_buf_alpha_breaking_v1_config_proto_rawDescGZIP() []byte { - file_buf_alpha_breaking_v1_config_proto_rawDescOnce.Do(func() { - file_buf_alpha_breaking_v1_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_breaking_v1_config_proto_rawDescData) - }) - return file_buf_alpha_breaking_v1_config_proto_rawDescData -} - var file_buf_alpha_breaking_v1_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_buf_alpha_breaking_v1_config_proto_goTypes = []any{ (*Config)(nil), // 0: buf.alpha.breaking.v1.Config diff --git a/private/gen/proto/go/buf/alpha/breaking/v1/config_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/breaking/v1/config_protoopaque.pb.go new file mode 100644 index 0000000000..4ac87bd66e --- /dev/null +++ b/private/gen/proto/go/buf/alpha/breaking/v1/config_protoopaque.pb.go @@ -0,0 +1,340 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/breaking/v1/config.proto + +//go:build protoopaque + +package breakingv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Config represents the breaking change configuration for a module. The rule and category IDs are defined +// by the version and apply across the config. The version is independent of the version of +// the package. The package version refers to the config shape, the version encoded in the Config message +// indicates which rule and category IDs should be used. +// +// The rule and category IDs are not encoded as enums in this package because we may want to support custom rule +// and category IDs in the future. Callers will need to resolve the rule and category ID strings. +type Config struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_UseIds []string `protobuf:"bytes,2,rep,name=use_ids,json=useIds,proto3" json:"use_ids,omitempty"` + xxx_hidden_ExceptIds []string `protobuf:"bytes,3,rep,name=except_ids,json=exceptIds,proto3" json:"except_ids,omitempty"` + xxx_hidden_IgnorePaths []string `protobuf:"bytes,4,rep,name=ignore_paths,json=ignorePaths,proto3" json:"ignore_paths,omitempty"` + xxx_hidden_IgnoreIdPaths *[]*IDPaths `protobuf:"bytes,5,rep,name=ignore_id_paths,json=ignoreIdPaths,proto3" json:"ignore_id_paths,omitempty"` + xxx_hidden_IgnoreUnstablePackages bool `protobuf:"varint,6,opt,name=ignore_unstable_packages,json=ignoreUnstablePackages,proto3" json:"ignore_unstable_packages,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Config) Reset() { + *x = Config{} + mi := &file_buf_alpha_breaking_v1_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Config) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Config) ProtoMessage() {} + +func (x *Config) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_breaking_v1_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Config) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *Config) GetUseIds() []string { + if x != nil { + return x.xxx_hidden_UseIds + } + return nil +} + +func (x *Config) GetExceptIds() []string { + if x != nil { + return x.xxx_hidden_ExceptIds + } + return nil +} + +func (x *Config) GetIgnorePaths() []string { + if x != nil { + return x.xxx_hidden_IgnorePaths + } + return nil +} + +func (x *Config) GetIgnoreIdPaths() []*IDPaths { + if x != nil { + if x.xxx_hidden_IgnoreIdPaths != nil { + return *x.xxx_hidden_IgnoreIdPaths + } + } + return nil +} + +func (x *Config) GetIgnoreUnstablePackages() bool { + if x != nil { + return x.xxx_hidden_IgnoreUnstablePackages + } + return false +} + +func (x *Config) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *Config) SetUseIds(v []string) { + x.xxx_hidden_UseIds = v +} + +func (x *Config) SetExceptIds(v []string) { + x.xxx_hidden_ExceptIds = v +} + +func (x *Config) SetIgnorePaths(v []string) { + x.xxx_hidden_IgnorePaths = v +} + +func (x *Config) SetIgnoreIdPaths(v []*IDPaths) { + x.xxx_hidden_IgnoreIdPaths = &v +} + +func (x *Config) SetIgnoreUnstablePackages(v bool) { + x.xxx_hidden_IgnoreUnstablePackages = v +} + +type Config_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version represents the version of the breaking change rule and category IDs that should be used with this config. + Version string + // use_ids lists the rule and/or category IDs that are included in the breaking change check. + UseIds []string + // except_ids lists the rule and/or category IDs that are excluded from the breaking change check. + ExceptIds []string + // ignore_paths lists the paths of directories and/or files that should be ignored by the breaking change check. + // All paths are relative to the root of the module. + IgnorePaths []string + // ignore_id_paths is a map of rule and/or category IDs to directory and/or file paths to exclude from the + // breaking change check. This corresponds with the ignore_only configuration key. + IgnoreIdPaths []*IDPaths + // ignore_unstable_packages ignores packages with a last component that is one of the unstable forms recognised + // by the PACKAGE_VERSION_SUFFIX: + // + // v\d+test.* + // v\d+(alpha|beta)\d+ + // v\d+p\d+(alpha|beta)\d+ + IgnoreUnstablePackages bool +} + +func (b0 Config_builder) Build() *Config { + m0 := &Config{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + x.xxx_hidden_UseIds = b.UseIds + x.xxx_hidden_ExceptIds = b.ExceptIds + x.xxx_hidden_IgnorePaths = b.IgnorePaths + x.xxx_hidden_IgnoreIdPaths = &b.IgnoreIdPaths + x.xxx_hidden_IgnoreUnstablePackages = b.IgnoreUnstablePackages + return m0 +} + +// IDPaths represents a rule or category ID and the file and/or directory paths that are ignored for the rule. +type IDPaths struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *IDPaths) Reset() { + *x = IDPaths{} + mi := &file_buf_alpha_breaking_v1_config_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IDPaths) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IDPaths) ProtoMessage() {} + +func (x *IDPaths) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_breaking_v1_config_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *IDPaths) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *IDPaths) GetPaths() []string { + if x != nil { + return x.xxx_hidden_Paths + } + return nil +} + +func (x *IDPaths) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *IDPaths) SetPaths(v []string) { + x.xxx_hidden_Paths = v +} + +type IDPaths_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Paths []string +} + +func (b0 IDPaths_builder) Build() *IDPaths { + m0 := &IDPaths{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Paths = b.Paths + return m0 +} + +var File_buf_alpha_breaking_v1_config_proto protoreflect.FileDescriptor + +var file_buf_alpha_breaking_v1_config_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x62, 0x72, 0x65, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x62, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xff, 0x01, 0x0a, 0x06, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x49, 0x64, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x63, + 0x65, 0x70, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x65, + 0x78, 0x63, 0x65, 0x70, 0x74, 0x49, 0x64, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x67, 0x6e, 0x6f, + 0x72, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, + 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x50, 0x61, 0x74, 0x68, 0x73, 0x12, 0x46, 0x0a, 0x0f, 0x69, + 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44, 0x50, + 0x61, 0x74, 0x68, 0x73, 0x52, 0x0d, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x49, 0x64, 0x50, 0x61, + 0x74, 0x68, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x75, 0x6e, + 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x55, 0x6e, 0x73, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x22, 0x2f, 0x0a, + 0x07, 0x49, 0x44, 0x50, 0x61, 0x74, 0x68, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x42, 0xee, + 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, + 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2f, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, + 0x62, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x42, + 0xaa, 0x02, 0x15, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x42, 0x72, 0x65, + 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x42, 0x75, 0x66, 0x5c, 0x41, + 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x21, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x42, 0x72, 0x65, + 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x18, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x3a, 0x3a, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_breaking_v1_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_buf_alpha_breaking_v1_config_proto_goTypes = []any{ + (*Config)(nil), // 0: buf.alpha.breaking.v1.Config + (*IDPaths)(nil), // 1: buf.alpha.breaking.v1.IDPaths +} +var file_buf_alpha_breaking_v1_config_proto_depIdxs = []int32{ + 1, // 0: buf.alpha.breaking.v1.Config.ignore_id_paths:type_name -> buf.alpha.breaking.v1.IDPaths + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_buf_alpha_breaking_v1_config_proto_init() } +func file_buf_alpha_breaking_v1_config_proto_init() { + if File_buf_alpha_breaking_v1_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_breaking_v1_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_buf_alpha_breaking_v1_config_proto_goTypes, + DependencyIndexes: file_buf_alpha_breaking_v1_config_proto_depIdxs, + MessageInfos: file_buf_alpha_breaking_v1_config_proto_msgTypes, + }.Build() + File_buf_alpha_breaking_v1_config_proto = out.File + file_buf_alpha_breaking_v1_config_proto_rawDesc = nil + file_buf_alpha_breaking_v1_config_proto_goTypes = nil + file_buf_alpha_breaking_v1_config_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/image/v1/image.pb.go b/private/gen/proto/go/buf/alpha/image/v1/image.pb.go index a1b96dd52e..4881fc931d 100644 --- a/private/gen/proto/go/buf/alpha/image/v1/image.pb.go +++ b/private/gen/proto/go/buf/alpha/image/v1/image.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/image/v1/image.proto +//go:build !protoopaque + package imagev1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" - sync "sync" ) const ( @@ -39,7 +40,7 @@ const ( // // See https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto type Image struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` File []*ImageFile `protobuf:"bytes,1,rep,name=file" json:"file,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -70,11 +71,6 @@ func (x *Image) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Image.ProtoReflect.Descriptor instead. -func (*Image) Descriptor() ([]byte, []int) { - return file_buf_alpha_image_v1_image_proto_rawDescGZIP(), []int{0} -} - func (x *Image) GetFile() []*ImageFile { if x != nil { return x.File @@ -82,6 +78,24 @@ func (x *Image) GetFile() []*ImageFile { return nil } +func (x *Image) SetFile(v []*ImageFile) { + x.File = v +} + +type Image_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + File []*ImageFile +} + +func (b0 Image_builder) Build() *Image { + m0 := &Image{} + b, x := &b0, m0 + _, _ = b, x + x.File = b.File + return m0 +} + // ImageFile is an extended FileDescriptorProto. // // Since FileDescriptorProto does not have extensions, we copy the fields from @@ -90,7 +104,7 @@ func (x *Image) GetFile() []*ImageFile { // // See https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto type ImageFile struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Package *string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"` Dependency []string `protobuf:"bytes,3,rep,name=dependency" json:"dependency,omitempty"` @@ -140,11 +154,6 @@ func (x *ImageFile) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ImageFile.ProtoReflect.Descriptor instead. -func (*ImageFile) Descriptor() ([]byte, []int) { - return file_buf_alpha_image_v1_image_proto_rawDescGZIP(), []int{1} -} - func (x *ImageFile) GetName() string { if x != nil && x.Name != nil { return *x.Name @@ -243,6 +252,185 @@ func (x *ImageFile) GetBufExtension() *ImageFileExtension { return nil } +func (x *ImageFile) SetName(v string) { + x.Name = &v +} + +func (x *ImageFile) SetPackage(v string) { + x.Package = &v +} + +func (x *ImageFile) SetDependency(v []string) { + x.Dependency = v +} + +func (x *ImageFile) SetPublicDependency(v []int32) { + x.PublicDependency = v +} + +func (x *ImageFile) SetWeakDependency(v []int32) { + x.WeakDependency = v +} + +func (x *ImageFile) SetMessageType(v []*descriptorpb.DescriptorProto) { + x.MessageType = v +} + +func (x *ImageFile) SetEnumType(v []*descriptorpb.EnumDescriptorProto) { + x.EnumType = v +} + +func (x *ImageFile) SetService(v []*descriptorpb.ServiceDescriptorProto) { + x.Service = v +} + +func (x *ImageFile) SetExtension(v []*descriptorpb.FieldDescriptorProto) { + x.Extension = v +} + +func (x *ImageFile) SetOptions(v *descriptorpb.FileOptions) { + x.Options = v +} + +func (x *ImageFile) SetSourceCodeInfo(v *descriptorpb.SourceCodeInfo) { + x.SourceCodeInfo = v +} + +func (x *ImageFile) SetSyntax(v string) { + x.Syntax = &v +} + +func (x *ImageFile) SetEdition(v descriptorpb.Edition) { + x.Edition = &v +} + +func (x *ImageFile) SetBufExtension(v *ImageFileExtension) { + x.BufExtension = v +} + +func (x *ImageFile) HasName() bool { + if x == nil { + return false + } + return x.Name != nil +} + +func (x *ImageFile) HasPackage() bool { + if x == nil { + return false + } + return x.Package != nil +} + +func (x *ImageFile) HasOptions() bool { + if x == nil { + return false + } + return x.Options != nil +} + +func (x *ImageFile) HasSourceCodeInfo() bool { + if x == nil { + return false + } + return x.SourceCodeInfo != nil +} + +func (x *ImageFile) HasSyntax() bool { + if x == nil { + return false + } + return x.Syntax != nil +} + +func (x *ImageFile) HasEdition() bool { + if x == nil { + return false + } + return x.Edition != nil +} + +func (x *ImageFile) HasBufExtension() bool { + if x == nil { + return false + } + return x.BufExtension != nil +} + +func (x *ImageFile) ClearName() { + x.Name = nil +} + +func (x *ImageFile) ClearPackage() { + x.Package = nil +} + +func (x *ImageFile) ClearOptions() { + x.Options = nil +} + +func (x *ImageFile) ClearSourceCodeInfo() { + x.SourceCodeInfo = nil +} + +func (x *ImageFile) ClearSyntax() { + x.Syntax = nil +} + +func (x *ImageFile) ClearEdition() { + x.Edition = nil +} + +func (x *ImageFile) ClearBufExtension() { + x.BufExtension = nil +} + +type ImageFile_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name *string + Package *string + Dependency []string + PublicDependency []int32 + WeakDependency []int32 + MessageType []*descriptorpb.DescriptorProto + EnumType []*descriptorpb.EnumDescriptorProto + Service []*descriptorpb.ServiceDescriptorProto + Extension []*descriptorpb.FieldDescriptorProto + Options *descriptorpb.FileOptions + SourceCodeInfo *descriptorpb.SourceCodeInfo + Syntax *string + Edition *descriptorpb.Edition + // buf_extension contains buf-specific extensions to FileDescriptorProtos. + // + // The prefixed name and high tag value is used to all but guarantee there + // will never be any conflict with Google's FileDescriptorProto definition. + // The definition of a FileDescriptorProto has not changed in years, so + // we're not too worried about a conflict here. + BufExtension *ImageFileExtension +} + +func (b0 ImageFile_builder) Build() *ImageFile { + m0 := &ImageFile{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Package = b.Package + x.Dependency = b.Dependency + x.PublicDependency = b.PublicDependency + x.WeakDependency = b.WeakDependency + x.MessageType = b.MessageType + x.EnumType = b.EnumType + x.Service = b.Service + x.Extension = b.Extension + x.Options = b.Options + x.SourceCodeInfo = b.SourceCodeInfo + x.Syntax = b.Syntax + x.Edition = b.Edition + x.BufExtension = b.BufExtension + return m0 +} + // ImageFileExtension contains extensions to ImageFiles. // // The fields are not included directly on the ImageFile so that we can both @@ -250,7 +438,7 @@ func (x *ImageFile) GetBufExtension() *ImageFileExtension { // by protoc, and so that we can add fields in a freeform manner without // worrying about conflicts with FileDescriptorProto. type ImageFileExtension struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // is_import denotes whether this file is considered an "import". // // An import is a file which was not derived from the local source files. @@ -316,11 +504,6 @@ func (x *ImageFileExtension) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ImageFileExtension.ProtoReflect.Descriptor instead. -func (*ImageFileExtension) Descriptor() ([]byte, []int) { - return file_buf_alpha_image_v1_image_proto_rawDescGZIP(), []int{2} -} - func (x *ImageFileExtension) GetIsImport() bool { if x != nil && x.IsImport != nil { return *x.IsImport @@ -349,10 +532,111 @@ func (x *ImageFileExtension) GetUnusedDependency() []int32 { return nil } +func (x *ImageFileExtension) SetIsImport(v bool) { + x.IsImport = &v +} + +func (x *ImageFileExtension) SetModuleInfo(v *ModuleInfo) { + x.ModuleInfo = v +} + +func (x *ImageFileExtension) SetIsSyntaxUnspecified(v bool) { + x.IsSyntaxUnspecified = &v +} + +func (x *ImageFileExtension) SetUnusedDependency(v []int32) { + x.UnusedDependency = v +} + +func (x *ImageFileExtension) HasIsImport() bool { + if x == nil { + return false + } + return x.IsImport != nil +} + +func (x *ImageFileExtension) HasModuleInfo() bool { + if x == nil { + return false + } + return x.ModuleInfo != nil +} + +func (x *ImageFileExtension) HasIsSyntaxUnspecified() bool { + if x == nil { + return false + } + return x.IsSyntaxUnspecified != nil +} + +func (x *ImageFileExtension) ClearIsImport() { + x.IsImport = nil +} + +func (x *ImageFileExtension) ClearModuleInfo() { + x.ModuleInfo = nil +} + +func (x *ImageFileExtension) ClearIsSyntaxUnspecified() { + x.IsSyntaxUnspecified = nil +} + +type ImageFileExtension_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // is_import denotes whether this file is considered an "import". + // + // An import is a file which was not derived from the local source files. + // There are two cases where this could be true: + // + // 1. A Well-Known Type included from the compiler. + // 2. A file that was included from a Buf module dependency. + // + // We use "import" as this matches with the protoc concept of + // --include_imports, however import is a bit of an overloaded term. + // + // This will always be set. + IsImport *bool + // ModuleInfo contains information about the Buf module this file belongs to. + // + // This field is optional and will not be set if the module is not known. + ModuleInfo *ModuleInfo + // is_syntax_unspecified denotes whether the file did not have a syntax + // explicitly specified. + // + // Per the FileDescriptorProto spec, it would be fine in this case to just + // leave the syntax field unset to denote this and to set the syntax field + // to "proto2" if it is specified. However, protoc does not set the syntax + // field if it was "proto2", and plugins may (incorrectly) depend on this. + // We also want to maintain consistency with protoc as much as possible. + // So instead, we have this field which will denote whether syntax was not + // specified. + // + // This will always be set. + IsSyntaxUnspecified *bool + // unused_dependency are the indexes within the dependency field on + // FileDescriptorProto for those dependencies that are not used. + // + // This matches the shape of the public_dependency and weak_dependency + // fields. + UnusedDependency []int32 +} + +func (b0 ImageFileExtension_builder) Build() *ImageFileExtension { + m0 := &ImageFileExtension{} + b, x := &b0, m0 + _, _ = b, x + x.IsImport = b.IsImport + x.ModuleInfo = b.ModuleInfo + x.IsSyntaxUnspecified = b.IsSyntaxUnspecified + x.UnusedDependency = b.UnusedDependency + return m0 +} + // ModuleInfo contains information about a Buf module that an ImageFile // belongs to. type ModuleInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // name is the name of the Buf module. // // This will always be set. @@ -390,11 +674,6 @@ func (x *ModuleInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ModuleInfo.ProtoReflect.Descriptor instead. -func (*ModuleInfo) Descriptor() ([]byte, []int) { - return file_buf_alpha_image_v1_image_proto_rawDescGZIP(), []int{3} -} - func (x *ModuleInfo) GetName() *ModuleName { if x != nil { return x.Name @@ -409,11 +688,63 @@ func (x *ModuleInfo) GetCommit() string { return "" } +func (x *ModuleInfo) SetName(v *ModuleName) { + x.Name = v +} + +func (x *ModuleInfo) SetCommit(v string) { + x.Commit = &v +} + +func (x *ModuleInfo) HasName() bool { + if x == nil { + return false + } + return x.Name != nil +} + +func (x *ModuleInfo) HasCommit() bool { + if x == nil { + return false + } + return x.Commit != nil +} + +func (x *ModuleInfo) ClearName() { + x.Name = nil +} + +func (x *ModuleInfo) ClearCommit() { + x.Commit = nil +} + +type ModuleInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // name is the name of the Buf module. + // + // This will always be set. + Name *ModuleName + // commit is the repository commit. + // + // This field is optional and will not be set if the commit is not known. + Commit *string +} + +func (b0 ModuleInfo_builder) Build() *ModuleInfo { + m0 := &ModuleInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Commit = b.Commit + return m0 +} + // ModuleName is a module name. // // All fields will always be set. type ModuleName struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Remote *string `protobuf:"bytes,1,opt,name=remote" json:"remote,omitempty"` Owner *string `protobuf:"bytes,2,opt,name=owner" json:"owner,omitempty"` Repository *string `protobuf:"bytes,3,opt,name=repository" json:"repository,omitempty"` @@ -446,11 +777,6 @@ func (x *ModuleName) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ModuleName.ProtoReflect.Descriptor instead. -func (*ModuleName) Descriptor() ([]byte, []int) { - return file_buf_alpha_image_v1_image_proto_rawDescGZIP(), []int{4} -} - func (x *ModuleName) GetRemote() string { if x != nil && x.Remote != nil { return *x.Remote @@ -472,6 +798,69 @@ func (x *ModuleName) GetRepository() string { return "" } +func (x *ModuleName) SetRemote(v string) { + x.Remote = &v +} + +func (x *ModuleName) SetOwner(v string) { + x.Owner = &v +} + +func (x *ModuleName) SetRepository(v string) { + x.Repository = &v +} + +func (x *ModuleName) HasRemote() bool { + if x == nil { + return false + } + return x.Remote != nil +} + +func (x *ModuleName) HasOwner() bool { + if x == nil { + return false + } + return x.Owner != nil +} + +func (x *ModuleName) HasRepository() bool { + if x == nil { + return false + } + return x.Repository != nil +} + +func (x *ModuleName) ClearRemote() { + x.Remote = nil +} + +func (x *ModuleName) ClearOwner() { + x.Owner = nil +} + +func (x *ModuleName) ClearRepository() { + x.Repository = nil +} + +type ModuleName_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Remote *string + Owner *string + Repository *string +} + +func (b0 ModuleName_builder) Build() *ModuleName { + m0 := &ModuleName{} + b, x := &b0, m0 + _, _ = b, x + x.Remote = b.Remote + x.Owner = b.Owner + x.Repository = b.Repository + return m0 +} + var File_buf_alpha_image_v1_image_proto protoreflect.FileDescriptor var file_buf_alpha_image_v1_image_proto_rawDesc = []byte{ @@ -571,18 +960,6 @@ var file_buf_alpha_image_v1_image_proto_rawDesc = []byte{ 0x68, 0x61, 0x3a, 0x3a, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x3a, 0x3a, 0x56, 0x31, } -var ( - file_buf_alpha_image_v1_image_proto_rawDescOnce sync.Once - file_buf_alpha_image_v1_image_proto_rawDescData = file_buf_alpha_image_v1_image_proto_rawDesc -) - -func file_buf_alpha_image_v1_image_proto_rawDescGZIP() []byte { - file_buf_alpha_image_v1_image_proto_rawDescOnce.Do(func() { - file_buf_alpha_image_v1_image_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_image_v1_image_proto_rawDescData) - }) - return file_buf_alpha_image_v1_image_proto_rawDescData -} - var file_buf_alpha_image_v1_image_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_buf_alpha_image_v1_image_proto_goTypes = []any{ (*Image)(nil), // 0: buf.alpha.image.v1.Image diff --git a/private/gen/proto/go/buf/alpha/image/v1/image_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/image/v1/image_protoopaque.pb.go new file mode 100644 index 0000000000..c2d606a8df --- /dev/null +++ b/private/gen/proto/go/buf/alpha/image/v1/image_protoopaque.pb.go @@ -0,0 +1,1067 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/image/v1/image.proto + +//go:build protoopaque + +package imagev1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Image is an ext FileDescriptorSet. +// +// See https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto +type Image struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_File *[]*ImageFile `protobuf:"bytes,1,rep,name=file" json:"file,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Image) Reset() { + *x = Image{} + mi := &file_buf_alpha_image_v1_image_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Image) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Image) ProtoMessage() {} + +func (x *Image) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_image_v1_image_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Image) GetFile() []*ImageFile { + if x != nil { + if x.xxx_hidden_File != nil { + return *x.xxx_hidden_File + } + } + return nil +} + +func (x *Image) SetFile(v []*ImageFile) { + x.xxx_hidden_File = &v +} + +type Image_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + File []*ImageFile +} + +func (b0 Image_builder) Build() *Image { + m0 := &Image{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_File = &b.File + return m0 +} + +// ImageFile is an extended FileDescriptorProto. +// +// Since FileDescriptorProto does not have extensions, we copy the fields from +// FileDescriptorProto, and then add our own extensions via the buf_extension +// field. This is compatible with a FileDescriptorProto. +// +// See https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto +type ImageFile struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + xxx_hidden_Package *string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"` + xxx_hidden_Dependency []string `protobuf:"bytes,3,rep,name=dependency" json:"dependency,omitempty"` + xxx_hidden_PublicDependency []int32 `protobuf:"varint,10,rep,name=public_dependency,json=publicDependency" json:"public_dependency,omitempty"` + xxx_hidden_WeakDependency []int32 `protobuf:"varint,11,rep,name=weak_dependency,json=weakDependency" json:"weak_dependency,omitempty"` + xxx_hidden_MessageType *[]*descriptorpb.DescriptorProto `protobuf:"bytes,4,rep,name=message_type,json=messageType" json:"message_type,omitempty"` + xxx_hidden_EnumType *[]*descriptorpb.EnumDescriptorProto `protobuf:"bytes,5,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"` + xxx_hidden_Service *[]*descriptorpb.ServiceDescriptorProto `protobuf:"bytes,6,rep,name=service" json:"service,omitempty"` + xxx_hidden_Extension *[]*descriptorpb.FieldDescriptorProto `protobuf:"bytes,7,rep,name=extension" json:"extension,omitempty"` + xxx_hidden_Options *descriptorpb.FileOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"` + xxx_hidden_SourceCodeInfo *descriptorpb.SourceCodeInfo `protobuf:"bytes,9,opt,name=source_code_info,json=sourceCodeInfo" json:"source_code_info,omitempty"` + xxx_hidden_Syntax *string `protobuf:"bytes,12,opt,name=syntax" json:"syntax,omitempty"` + xxx_hidden_Edition descriptorpb.Edition `protobuf:"varint,14,opt,name=edition,enum=google.protobuf.Edition" json:"edition,omitempty"` + xxx_hidden_BufExtension *ImageFileExtension `protobuf:"bytes,8042,opt,name=buf_extension,json=bufExtension" json:"buf_extension,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ImageFile) Reset() { + *x = ImageFile{} + mi := &file_buf_alpha_image_v1_image_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ImageFile) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ImageFile) ProtoMessage() {} + +func (x *ImageFile) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_image_v1_image_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ImageFile) GetName() string { + if x != nil { + if x.xxx_hidden_Name != nil { + return *x.xxx_hidden_Name + } + return "" + } + return "" +} + +func (x *ImageFile) GetPackage() string { + if x != nil { + if x.xxx_hidden_Package != nil { + return *x.xxx_hidden_Package + } + return "" + } + return "" +} + +func (x *ImageFile) GetDependency() []string { + if x != nil { + return x.xxx_hidden_Dependency + } + return nil +} + +func (x *ImageFile) GetPublicDependency() []int32 { + if x != nil { + return x.xxx_hidden_PublicDependency + } + return nil +} + +func (x *ImageFile) GetWeakDependency() []int32 { + if x != nil { + return x.xxx_hidden_WeakDependency + } + return nil +} + +func (x *ImageFile) GetMessageType() []*descriptorpb.DescriptorProto { + if x != nil { + if x.xxx_hidden_MessageType != nil { + return *x.xxx_hidden_MessageType + } + } + return nil +} + +func (x *ImageFile) GetEnumType() []*descriptorpb.EnumDescriptorProto { + if x != nil { + if x.xxx_hidden_EnumType != nil { + return *x.xxx_hidden_EnumType + } + } + return nil +} + +func (x *ImageFile) GetService() []*descriptorpb.ServiceDescriptorProto { + if x != nil { + if x.xxx_hidden_Service != nil { + return *x.xxx_hidden_Service + } + } + return nil +} + +func (x *ImageFile) GetExtension() []*descriptorpb.FieldDescriptorProto { + if x != nil { + if x.xxx_hidden_Extension != nil { + return *x.xxx_hidden_Extension + } + } + return nil +} + +func (x *ImageFile) GetOptions() *descriptorpb.FileOptions { + if x != nil { + return x.xxx_hidden_Options + } + return nil +} + +func (x *ImageFile) GetSourceCodeInfo() *descriptorpb.SourceCodeInfo { + if x != nil { + return x.xxx_hidden_SourceCodeInfo + } + return nil +} + +func (x *ImageFile) GetSyntax() string { + if x != nil { + if x.xxx_hidden_Syntax != nil { + return *x.xxx_hidden_Syntax + } + return "" + } + return "" +} + +func (x *ImageFile) GetEdition() descriptorpb.Edition { + if x != nil { + if protoimpl.X.Present(&(x.XXX_presence[0]), 12) { + return x.xxx_hidden_Edition + } + } + return descriptorpb.Edition(0) +} + +func (x *ImageFile) GetBufExtension() *ImageFileExtension { + if x != nil { + return x.xxx_hidden_BufExtension + } + return nil +} + +func (x *ImageFile) SetName(v string) { + x.xxx_hidden_Name = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 14) +} + +func (x *ImageFile) SetPackage(v string) { + x.xxx_hidden_Package = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 14) +} + +func (x *ImageFile) SetDependency(v []string) { + x.xxx_hidden_Dependency = v +} + +func (x *ImageFile) SetPublicDependency(v []int32) { + x.xxx_hidden_PublicDependency = v +} + +func (x *ImageFile) SetWeakDependency(v []int32) { + x.xxx_hidden_WeakDependency = v +} + +func (x *ImageFile) SetMessageType(v []*descriptorpb.DescriptorProto) { + x.xxx_hidden_MessageType = &v +} + +func (x *ImageFile) SetEnumType(v []*descriptorpb.EnumDescriptorProto) { + x.xxx_hidden_EnumType = &v +} + +func (x *ImageFile) SetService(v []*descriptorpb.ServiceDescriptorProto) { + x.xxx_hidden_Service = &v +} + +func (x *ImageFile) SetExtension(v []*descriptorpb.FieldDescriptorProto) { + x.xxx_hidden_Extension = &v +} + +func (x *ImageFile) SetOptions(v *descriptorpb.FileOptions) { + x.xxx_hidden_Options = v +} + +func (x *ImageFile) SetSourceCodeInfo(v *descriptorpb.SourceCodeInfo) { + x.xxx_hidden_SourceCodeInfo = v +} + +func (x *ImageFile) SetSyntax(v string) { + x.xxx_hidden_Syntax = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 11, 14) +} + +func (x *ImageFile) SetEdition(v descriptorpb.Edition) { + x.xxx_hidden_Edition = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 12, 14) +} + +func (x *ImageFile) SetBufExtension(v *ImageFileExtension) { + x.xxx_hidden_BufExtension = v +} + +func (x *ImageFile) HasName() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *ImageFile) HasPackage() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *ImageFile) HasOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_Options != nil +} + +func (x *ImageFile) HasSourceCodeInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_SourceCodeInfo != nil +} + +func (x *ImageFile) HasSyntax() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 11) +} + +func (x *ImageFile) HasEdition() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 12) +} + +func (x *ImageFile) HasBufExtension() bool { + if x == nil { + return false + } + return x.xxx_hidden_BufExtension != nil +} + +func (x *ImageFile) ClearName() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_Name = nil +} + +func (x *ImageFile) ClearPackage() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_Package = nil +} + +func (x *ImageFile) ClearOptions() { + x.xxx_hidden_Options = nil +} + +func (x *ImageFile) ClearSourceCodeInfo() { + x.xxx_hidden_SourceCodeInfo = nil +} + +func (x *ImageFile) ClearSyntax() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 11) + x.xxx_hidden_Syntax = nil +} + +func (x *ImageFile) ClearEdition() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 12) + x.xxx_hidden_Edition = descriptorpb.Edition_EDITION_UNKNOWN +} + +func (x *ImageFile) ClearBufExtension() { + x.xxx_hidden_BufExtension = nil +} + +type ImageFile_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name *string + Package *string + Dependency []string + PublicDependency []int32 + WeakDependency []int32 + MessageType []*descriptorpb.DescriptorProto + EnumType []*descriptorpb.EnumDescriptorProto + Service []*descriptorpb.ServiceDescriptorProto + Extension []*descriptorpb.FieldDescriptorProto + Options *descriptorpb.FileOptions + SourceCodeInfo *descriptorpb.SourceCodeInfo + Syntax *string + Edition *descriptorpb.Edition + // buf_extension contains buf-specific extensions to FileDescriptorProtos. + // + // The prefixed name and high tag value is used to all but guarantee there + // will never be any conflict with Google's FileDescriptorProto definition. + // The definition of a FileDescriptorProto has not changed in years, so + // we're not too worried about a conflict here. + BufExtension *ImageFileExtension +} + +func (b0 ImageFile_builder) Build() *ImageFile { + m0 := &ImageFile{} + b, x := &b0, m0 + _, _ = b, x + if b.Name != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 14) + x.xxx_hidden_Name = b.Name + } + if b.Package != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 14) + x.xxx_hidden_Package = b.Package + } + x.xxx_hidden_Dependency = b.Dependency + x.xxx_hidden_PublicDependency = b.PublicDependency + x.xxx_hidden_WeakDependency = b.WeakDependency + x.xxx_hidden_MessageType = &b.MessageType + x.xxx_hidden_EnumType = &b.EnumType + x.xxx_hidden_Service = &b.Service + x.xxx_hidden_Extension = &b.Extension + x.xxx_hidden_Options = b.Options + x.xxx_hidden_SourceCodeInfo = b.SourceCodeInfo + if b.Syntax != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 11, 14) + x.xxx_hidden_Syntax = b.Syntax + } + if b.Edition != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 12, 14) + x.xxx_hidden_Edition = *b.Edition + } + x.xxx_hidden_BufExtension = b.BufExtension + return m0 +} + +// ImageFileExtension contains extensions to ImageFiles. +// +// The fields are not included directly on the ImageFile so that we can both +// detect if extensions exist, which signifies this was created by buf and not +// by protoc, and so that we can add fields in a freeform manner without +// worrying about conflicts with FileDescriptorProto. +type ImageFileExtension struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_IsImport bool `protobuf:"varint,1,opt,name=is_import,json=isImport" json:"is_import,omitempty"` + xxx_hidden_ModuleInfo *ModuleInfo `protobuf:"bytes,2,opt,name=module_info,json=moduleInfo" json:"module_info,omitempty"` + xxx_hidden_IsSyntaxUnspecified bool `protobuf:"varint,3,opt,name=is_syntax_unspecified,json=isSyntaxUnspecified" json:"is_syntax_unspecified,omitempty"` + xxx_hidden_UnusedDependency []int32 `protobuf:"varint,4,rep,name=unused_dependency,json=unusedDependency" json:"unused_dependency,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ImageFileExtension) Reset() { + *x = ImageFileExtension{} + mi := &file_buf_alpha_image_v1_image_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ImageFileExtension) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ImageFileExtension) ProtoMessage() {} + +func (x *ImageFileExtension) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_image_v1_image_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ImageFileExtension) GetIsImport() bool { + if x != nil { + return x.xxx_hidden_IsImport + } + return false +} + +func (x *ImageFileExtension) GetModuleInfo() *ModuleInfo { + if x != nil { + return x.xxx_hidden_ModuleInfo + } + return nil +} + +func (x *ImageFileExtension) GetIsSyntaxUnspecified() bool { + if x != nil { + return x.xxx_hidden_IsSyntaxUnspecified + } + return false +} + +func (x *ImageFileExtension) GetUnusedDependency() []int32 { + if x != nil { + return x.xxx_hidden_UnusedDependency + } + return nil +} + +func (x *ImageFileExtension) SetIsImport(v bool) { + x.xxx_hidden_IsImport = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 4) +} + +func (x *ImageFileExtension) SetModuleInfo(v *ModuleInfo) { + x.xxx_hidden_ModuleInfo = v +} + +func (x *ImageFileExtension) SetIsSyntaxUnspecified(v bool) { + x.xxx_hidden_IsSyntaxUnspecified = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 4) +} + +func (x *ImageFileExtension) SetUnusedDependency(v []int32) { + x.xxx_hidden_UnusedDependency = v +} + +func (x *ImageFileExtension) HasIsImport() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *ImageFileExtension) HasModuleInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_ModuleInfo != nil +} + +func (x *ImageFileExtension) HasIsSyntaxUnspecified() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 2) +} + +func (x *ImageFileExtension) ClearIsImport() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_IsImport = false +} + +func (x *ImageFileExtension) ClearModuleInfo() { + x.xxx_hidden_ModuleInfo = nil +} + +func (x *ImageFileExtension) ClearIsSyntaxUnspecified() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2) + x.xxx_hidden_IsSyntaxUnspecified = false +} + +type ImageFileExtension_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // is_import denotes whether this file is considered an "import". + // + // An import is a file which was not derived from the local source files. + // There are two cases where this could be true: + // + // 1. A Well-Known Type included from the compiler. + // 2. A file that was included from a Buf module dependency. + // + // We use "import" as this matches with the protoc concept of + // --include_imports, however import is a bit of an overloaded term. + // + // This will always be set. + IsImport *bool + // ModuleInfo contains information about the Buf module this file belongs to. + // + // This field is optional and will not be set if the module is not known. + ModuleInfo *ModuleInfo + // is_syntax_unspecified denotes whether the file did not have a syntax + // explicitly specified. + // + // Per the FileDescriptorProto spec, it would be fine in this case to just + // leave the syntax field unset to denote this and to set the syntax field + // to "proto2" if it is specified. However, protoc does not set the syntax + // field if it was "proto2", and plugins may (incorrectly) depend on this. + // We also want to maintain consistency with protoc as much as possible. + // So instead, we have this field which will denote whether syntax was not + // specified. + // + // This will always be set. + IsSyntaxUnspecified *bool + // unused_dependency are the indexes within the dependency field on + // FileDescriptorProto for those dependencies that are not used. + // + // This matches the shape of the public_dependency and weak_dependency + // fields. + UnusedDependency []int32 +} + +func (b0 ImageFileExtension_builder) Build() *ImageFileExtension { + m0 := &ImageFileExtension{} + b, x := &b0, m0 + _, _ = b, x + if b.IsImport != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 4) + x.xxx_hidden_IsImport = *b.IsImport + } + x.xxx_hidden_ModuleInfo = b.ModuleInfo + if b.IsSyntaxUnspecified != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 4) + x.xxx_hidden_IsSyntaxUnspecified = *b.IsSyntaxUnspecified + } + x.xxx_hidden_UnusedDependency = b.UnusedDependency + return m0 +} + +// ModuleInfo contains information about a Buf module that an ImageFile +// belongs to. +type ModuleInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name *ModuleName `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + xxx_hidden_Commit *string `protobuf:"bytes,2,opt,name=commit" json:"commit,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ModuleInfo) Reset() { + *x = ModuleInfo{} + mi := &file_buf_alpha_image_v1_image_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ModuleInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModuleInfo) ProtoMessage() {} + +func (x *ModuleInfo) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_image_v1_image_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ModuleInfo) GetName() *ModuleName { + if x != nil { + return x.xxx_hidden_Name + } + return nil +} + +func (x *ModuleInfo) GetCommit() string { + if x != nil { + if x.xxx_hidden_Commit != nil { + return *x.xxx_hidden_Commit + } + return "" + } + return "" +} + +func (x *ModuleInfo) SetName(v *ModuleName) { + x.xxx_hidden_Name = v +} + +func (x *ModuleInfo) SetCommit(v string) { + x.xxx_hidden_Commit = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 2) +} + +func (x *ModuleInfo) HasName() bool { + if x == nil { + return false + } + return x.xxx_hidden_Name != nil +} + +func (x *ModuleInfo) HasCommit() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *ModuleInfo) ClearName() { + x.xxx_hidden_Name = nil +} + +func (x *ModuleInfo) ClearCommit() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_Commit = nil +} + +type ModuleInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // name is the name of the Buf module. + // + // This will always be set. + Name *ModuleName + // commit is the repository commit. + // + // This field is optional and will not be set if the commit is not known. + Commit *string +} + +func (b0 ModuleInfo_builder) Build() *ModuleInfo { + m0 := &ModuleInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + if b.Commit != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 2) + x.xxx_hidden_Commit = b.Commit + } + return m0 +} + +// ModuleName is a module name. +// +// All fields will always be set. +type ModuleName struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Remote *string `protobuf:"bytes,1,opt,name=remote" json:"remote,omitempty"` + xxx_hidden_Owner *string `protobuf:"bytes,2,opt,name=owner" json:"owner,omitempty"` + xxx_hidden_Repository *string `protobuf:"bytes,3,opt,name=repository" json:"repository,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ModuleName) Reset() { + *x = ModuleName{} + mi := &file_buf_alpha_image_v1_image_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ModuleName) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModuleName) ProtoMessage() {} + +func (x *ModuleName) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_image_v1_image_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ModuleName) GetRemote() string { + if x != nil { + if x.xxx_hidden_Remote != nil { + return *x.xxx_hidden_Remote + } + return "" + } + return "" +} + +func (x *ModuleName) GetOwner() string { + if x != nil { + if x.xxx_hidden_Owner != nil { + return *x.xxx_hidden_Owner + } + return "" + } + return "" +} + +func (x *ModuleName) GetRepository() string { + if x != nil { + if x.xxx_hidden_Repository != nil { + return *x.xxx_hidden_Repository + } + return "" + } + return "" +} + +func (x *ModuleName) SetRemote(v string) { + x.xxx_hidden_Remote = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 3) +} + +func (x *ModuleName) SetOwner(v string) { + x.xxx_hidden_Owner = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 3) +} + +func (x *ModuleName) SetRepository(v string) { + x.xxx_hidden_Repository = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 3) +} + +func (x *ModuleName) HasRemote() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *ModuleName) HasOwner() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *ModuleName) HasRepository() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 2) +} + +func (x *ModuleName) ClearRemote() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_Remote = nil +} + +func (x *ModuleName) ClearOwner() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_Owner = nil +} + +func (x *ModuleName) ClearRepository() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2) + x.xxx_hidden_Repository = nil +} + +type ModuleName_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Remote *string + Owner *string + Repository *string +} + +func (b0 ModuleName_builder) Build() *ModuleName { + m0 := &ModuleName{} + b, x := &b0, m0 + _, _ = b, x + if b.Remote != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 3) + x.xxx_hidden_Remote = b.Remote + } + if b.Owner != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 3) + x.xxx_hidden_Owner = b.Owner + } + if b.Repository != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 3) + x.xxx_hidden_Repository = b.Repository + } + return m0 +} + +var File_buf_alpha_image_v1_image_proto protoreflect.FileDescriptor + +var file_buf_alpha_image_v1_image_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x12, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3a, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, + 0x31, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x04, 0x66, 0x69, + 0x6c, 0x65, 0x22, 0xdc, 0x05, 0x0a, 0x09, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, + 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x2b, + 0x0a, 0x11, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, + 0x6e, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x05, 0x52, 0x10, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x77, + 0x65, 0x61, 0x6b, 0x5f, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x0b, + 0x20, 0x03, 0x28, 0x05, 0x52, 0x0e, 0x77, 0x65, 0x61, 0x6b, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, + 0x65, 0x6e, 0x63, 0x79, 0x12, 0x43, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x0b, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x65, 0x6e, 0x75, + 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x52, 0x08, 0x65, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x07, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, + 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x43, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x49, 0x0a, 0x10, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, + 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, + 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, + 0x78, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x12, + 0x32, 0x0a, 0x07, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x65, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x4c, 0x0a, 0x0d, 0x62, 0x75, 0x66, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0xea, 0x3e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x62, 0x75, 0x66, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x22, 0xd3, 0x01, 0x0a, 0x12, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x45, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x69, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x49, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3f, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x69, 0x73, 0x5f, 0x73, 0x79, 0x6e, + 0x74, 0x61, 0x78, 0x5f, 0x75, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x69, 0x73, 0x53, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x55, + 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x75, 0x6e, + 0x75, 0x73, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x10, 0x75, 0x6e, 0x75, 0x73, 0x65, 0x64, 0x44, 0x65, 0x70, + 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x58, 0x0a, 0x0a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x22, 0x5a, 0x0a, 0x0a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0xdd, 0x01, + 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x48, 0x01, 0x50, 0x01, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, + 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x76, + 0x31, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x49, 0xaa, 0x02, 0x12, 0x42, 0x75, 0x66, + 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x12, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x49, 0x6d, 0x61, 0x67, + 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, + 0x5c, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, + 0x68, 0x61, 0x3a, 0x3a, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x3a, 0x3a, 0x56, 0x31, +} + +var file_buf_alpha_image_v1_image_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_buf_alpha_image_v1_image_proto_goTypes = []any{ + (*Image)(nil), // 0: buf.alpha.image.v1.Image + (*ImageFile)(nil), // 1: buf.alpha.image.v1.ImageFile + (*ImageFileExtension)(nil), // 2: buf.alpha.image.v1.ImageFileExtension + (*ModuleInfo)(nil), // 3: buf.alpha.image.v1.ModuleInfo + (*ModuleName)(nil), // 4: buf.alpha.image.v1.ModuleName + (*descriptorpb.DescriptorProto)(nil), // 5: google.protobuf.DescriptorProto + (*descriptorpb.EnumDescriptorProto)(nil), // 6: google.protobuf.EnumDescriptorProto + (*descriptorpb.ServiceDescriptorProto)(nil), // 7: google.protobuf.ServiceDescriptorProto + (*descriptorpb.FieldDescriptorProto)(nil), // 8: google.protobuf.FieldDescriptorProto + (*descriptorpb.FileOptions)(nil), // 9: google.protobuf.FileOptions + (*descriptorpb.SourceCodeInfo)(nil), // 10: google.protobuf.SourceCodeInfo + (descriptorpb.Edition)(0), // 11: google.protobuf.Edition +} +var file_buf_alpha_image_v1_image_proto_depIdxs = []int32{ + 1, // 0: buf.alpha.image.v1.Image.file:type_name -> buf.alpha.image.v1.ImageFile + 5, // 1: buf.alpha.image.v1.ImageFile.message_type:type_name -> google.protobuf.DescriptorProto + 6, // 2: buf.alpha.image.v1.ImageFile.enum_type:type_name -> google.protobuf.EnumDescriptorProto + 7, // 3: buf.alpha.image.v1.ImageFile.service:type_name -> google.protobuf.ServiceDescriptorProto + 8, // 4: buf.alpha.image.v1.ImageFile.extension:type_name -> google.protobuf.FieldDescriptorProto + 9, // 5: buf.alpha.image.v1.ImageFile.options:type_name -> google.protobuf.FileOptions + 10, // 6: buf.alpha.image.v1.ImageFile.source_code_info:type_name -> google.protobuf.SourceCodeInfo + 11, // 7: buf.alpha.image.v1.ImageFile.edition:type_name -> google.protobuf.Edition + 2, // 8: buf.alpha.image.v1.ImageFile.buf_extension:type_name -> buf.alpha.image.v1.ImageFileExtension + 3, // 9: buf.alpha.image.v1.ImageFileExtension.module_info:type_name -> buf.alpha.image.v1.ModuleInfo + 4, // 10: buf.alpha.image.v1.ModuleInfo.name:type_name -> buf.alpha.image.v1.ModuleName + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_buf_alpha_image_v1_image_proto_init() } +func file_buf_alpha_image_v1_image_proto_init() { + if File_buf_alpha_image_v1_image_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_image_v1_image_proto_rawDesc, + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_buf_alpha_image_v1_image_proto_goTypes, + DependencyIndexes: file_buf_alpha_image_v1_image_proto_depIdxs, + MessageInfos: file_buf_alpha_image_v1_image_proto_msgTypes, + }.Build() + File_buf_alpha_image_v1_image_proto = out.File + file_buf_alpha_image_v1_image_proto_rawDesc = nil + file_buf_alpha_image_v1_image_proto_goTypes = nil + file_buf_alpha_image_v1_image_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/lint/v1/config.pb.go b/private/gen/proto/go/buf/alpha/lint/v1/config.pb.go index 9186b1440c..6b3615511e 100644 --- a/private/gen/proto/go/buf/alpha/lint/v1/config.pb.go +++ b/private/gen/proto/go/buf/alpha/lint/v1/config.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/lint/v1/config.proto +//go:build !protoopaque + package lintv1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -42,7 +43,7 @@ const ( // The rule and category IDs are not encoded as enums in this package because we may want to support custom rule // and category IDs in the future. Callers will need to resolve the rule and category ID strings. type Config struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // version represents the version of the lint rule and category IDs that should be used with this config. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // use_ids lists the rule and/or category IDs that are included in the lint check. @@ -99,11 +100,6 @@ func (x *Config) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Config.ProtoReflect.Descriptor instead. -func (*Config) Descriptor() ([]byte, []int) { - return file_buf_alpha_lint_v1_config_proto_rawDescGZIP(), []int{0} -} - func (x *Config) GetVersion() string { if x != nil { return x.Version @@ -181,9 +177,103 @@ func (x *Config) GetAllowCommentIgnores() bool { return false } +func (x *Config) SetVersion(v string) { + x.Version = v +} + +func (x *Config) SetUseIds(v []string) { + x.UseIds = v +} + +func (x *Config) SetExceptIds(v []string) { + x.ExceptIds = v +} + +func (x *Config) SetIgnorePaths(v []string) { + x.IgnorePaths = v +} + +func (x *Config) SetIgnoreIdPaths(v []*IDPaths) { + x.IgnoreIdPaths = v +} + +func (x *Config) SetEnumZeroValueSuffix(v string) { + x.EnumZeroValueSuffix = v +} + +func (x *Config) SetRpcAllowSameRequestResponse(v bool) { + x.RpcAllowSameRequestResponse = v +} + +func (x *Config) SetRpcAllowGoogleProtobufEmptyRequests(v bool) { + x.RpcAllowGoogleProtobufEmptyRequests = v +} + +func (x *Config) SetRpcAllowGoogleProtobufEmptyResponses(v bool) { + x.RpcAllowGoogleProtobufEmptyResponses = v +} + +func (x *Config) SetServiceSuffix(v string) { + x.ServiceSuffix = v +} + +func (x *Config) SetAllowCommentIgnores(v bool) { + x.AllowCommentIgnores = v +} + +type Config_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version represents the version of the lint rule and category IDs that should be used with this config. + Version string + // use_ids lists the rule and/or category IDs that are included in the lint check. + UseIds []string + // except_ids lists the rule and/or category IDs that are excluded from the lint check. + ExceptIds []string + // ignore_paths lists the paths of directories and/or files that should be ignored by the lint check. + // All paths are relative to the root of the module. + IgnorePaths []string + // ignore_id_paths is a map of rule and/or category IDs to directory and/or file paths to exclude from the + // lint check. This corresponds with the ignore_only configuration key. + IgnoreIdPaths []*IDPaths + // enum_zero_value_suffix controls the behavior of the ENUM_ZERO_VALUE lint rule ID. By default, this rule + // verifies that the zero value of all enums ends in _UNSPECIFIED. This config allows the user to override + // this value with the given string. + EnumZeroValueSuffix string + // rpc_allow_same_request_response allows the same message type for both the request and response of an RPC. + RpcAllowSameRequestResponse bool + // rpc_allow_google_protobuf_empty_requests allows the RPC requests to use the google.protobuf.Empty message. + RpcAllowGoogleProtobufEmptyRequests bool + // rpc_allow_google_protobuf_empty_responses allows the RPC responses to use the google.protobuf.Empty message. + RpcAllowGoogleProtobufEmptyResponses bool + // service_suffix applies to the SERVICE_SUFFIX rule ID. By default, the rule verifies that all service names + // end with the suffix Service. This allows users to override the value with the given string. + ServiceSuffix string + // allow_comment_ignores turns on comment-driven ignores. + AllowCommentIgnores bool +} + +func (b0 Config_builder) Build() *Config { + m0 := &Config{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + x.UseIds = b.UseIds + x.ExceptIds = b.ExceptIds + x.IgnorePaths = b.IgnorePaths + x.IgnoreIdPaths = b.IgnoreIdPaths + x.EnumZeroValueSuffix = b.EnumZeroValueSuffix + x.RpcAllowSameRequestResponse = b.RpcAllowSameRequestResponse + x.RpcAllowGoogleProtobufEmptyRequests = b.RpcAllowGoogleProtobufEmptyRequests + x.RpcAllowGoogleProtobufEmptyResponses = b.RpcAllowGoogleProtobufEmptyResponses + x.ServiceSuffix = b.ServiceSuffix + x.AllowCommentIgnores = b.AllowCommentIgnores + return m0 +} + // IDPaths represents a rule or category ID and the file and/or directory paths that are ignored for the rule. type IDPaths struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"` unknownFields protoimpl.UnknownFields @@ -215,11 +305,6 @@ func (x *IDPaths) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use IDPaths.ProtoReflect.Descriptor instead. -func (*IDPaths) Descriptor() ([]byte, []int) { - return file_buf_alpha_lint_v1_config_proto_rawDescGZIP(), []int{1} -} - func (x *IDPaths) GetId() string { if x != nil { return x.Id @@ -234,6 +319,30 @@ func (x *IDPaths) GetPaths() []string { return nil } +func (x *IDPaths) SetId(v string) { + x.Id = v +} + +func (x *IDPaths) SetPaths(v []string) { + x.Paths = v +} + +type IDPaths_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Paths []string +} + +func (b0 IDPaths_builder) Build() *IDPaths { + m0 := &IDPaths{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Paths = b.Paths + return m0 +} + var File_buf_alpha_lint_v1_config_proto protoreflect.FileDescriptor var file_buf_alpha_lint_v1_config_proto_rawDesc = []byte{ @@ -296,18 +405,6 @@ var file_buf_alpha_lint_v1_config_proto_rawDesc = []byte{ 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_lint_v1_config_proto_rawDescOnce sync.Once - file_buf_alpha_lint_v1_config_proto_rawDescData = file_buf_alpha_lint_v1_config_proto_rawDesc -) - -func file_buf_alpha_lint_v1_config_proto_rawDescGZIP() []byte { - file_buf_alpha_lint_v1_config_proto_rawDescOnce.Do(func() { - file_buf_alpha_lint_v1_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_lint_v1_config_proto_rawDescData) - }) - return file_buf_alpha_lint_v1_config_proto_rawDescData -} - var file_buf_alpha_lint_v1_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_buf_alpha_lint_v1_config_proto_goTypes = []any{ (*Config)(nil), // 0: buf.alpha.lint.v1.Config diff --git a/private/gen/proto/go/buf/alpha/lint/v1/config_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/lint/v1/config_protoopaque.pb.go new file mode 100644 index 0000000000..0a2b7c0484 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/lint/v1/config_protoopaque.pb.go @@ -0,0 +1,431 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/lint/v1/config.proto + +//go:build protoopaque + +package lintv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Config represents the lint configuration for a module. The rule and category IDs are defined +// by the version and apply across the config. The version is independent of the version of +// the package. The package version refers to the config shape, the version encoded in the Config message +// indicates which rule and category IDs should be used. +// +// The rule and category IDs are not encoded as enums in this package because we may want to support custom rule +// and category IDs in the future. Callers will need to resolve the rule and category ID strings. +type Config struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_UseIds []string `protobuf:"bytes,2,rep,name=use_ids,json=useIds,proto3" json:"use_ids,omitempty"` + xxx_hidden_ExceptIds []string `protobuf:"bytes,3,rep,name=except_ids,json=exceptIds,proto3" json:"except_ids,omitempty"` + xxx_hidden_IgnorePaths []string `protobuf:"bytes,4,rep,name=ignore_paths,json=ignorePaths,proto3" json:"ignore_paths,omitempty"` + xxx_hidden_IgnoreIdPaths *[]*IDPaths `protobuf:"bytes,5,rep,name=ignore_id_paths,json=ignoreIdPaths,proto3" json:"ignore_id_paths,omitempty"` + xxx_hidden_EnumZeroValueSuffix string `protobuf:"bytes,6,opt,name=enum_zero_value_suffix,json=enumZeroValueSuffix,proto3" json:"enum_zero_value_suffix,omitempty"` + xxx_hidden_RpcAllowSameRequestResponse bool `protobuf:"varint,7,opt,name=rpc_allow_same_request_response,json=rpcAllowSameRequestResponse,proto3" json:"rpc_allow_same_request_response,omitempty"` + xxx_hidden_RpcAllowGoogleProtobufEmptyRequests bool `protobuf:"varint,8,opt,name=rpc_allow_google_protobuf_empty_requests,json=rpcAllowGoogleProtobufEmptyRequests,proto3" json:"rpc_allow_google_protobuf_empty_requests,omitempty"` + xxx_hidden_RpcAllowGoogleProtobufEmptyResponses bool `protobuf:"varint,9,opt,name=rpc_allow_google_protobuf_empty_responses,json=rpcAllowGoogleProtobufEmptyResponses,proto3" json:"rpc_allow_google_protobuf_empty_responses,omitempty"` + xxx_hidden_ServiceSuffix string `protobuf:"bytes,10,opt,name=service_suffix,json=serviceSuffix,proto3" json:"service_suffix,omitempty"` + xxx_hidden_AllowCommentIgnores bool `protobuf:"varint,11,opt,name=allow_comment_ignores,json=allowCommentIgnores,proto3" json:"allow_comment_ignores,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Config) Reset() { + *x = Config{} + mi := &file_buf_alpha_lint_v1_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Config) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Config) ProtoMessage() {} + +func (x *Config) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_lint_v1_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Config) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *Config) GetUseIds() []string { + if x != nil { + return x.xxx_hidden_UseIds + } + return nil +} + +func (x *Config) GetExceptIds() []string { + if x != nil { + return x.xxx_hidden_ExceptIds + } + return nil +} + +func (x *Config) GetIgnorePaths() []string { + if x != nil { + return x.xxx_hidden_IgnorePaths + } + return nil +} + +func (x *Config) GetIgnoreIdPaths() []*IDPaths { + if x != nil { + if x.xxx_hidden_IgnoreIdPaths != nil { + return *x.xxx_hidden_IgnoreIdPaths + } + } + return nil +} + +func (x *Config) GetEnumZeroValueSuffix() string { + if x != nil { + return x.xxx_hidden_EnumZeroValueSuffix + } + return "" +} + +func (x *Config) GetRpcAllowSameRequestResponse() bool { + if x != nil { + return x.xxx_hidden_RpcAllowSameRequestResponse + } + return false +} + +func (x *Config) GetRpcAllowGoogleProtobufEmptyRequests() bool { + if x != nil { + return x.xxx_hidden_RpcAllowGoogleProtobufEmptyRequests + } + return false +} + +func (x *Config) GetRpcAllowGoogleProtobufEmptyResponses() bool { + if x != nil { + return x.xxx_hidden_RpcAllowGoogleProtobufEmptyResponses + } + return false +} + +func (x *Config) GetServiceSuffix() string { + if x != nil { + return x.xxx_hidden_ServiceSuffix + } + return "" +} + +func (x *Config) GetAllowCommentIgnores() bool { + if x != nil { + return x.xxx_hidden_AllowCommentIgnores + } + return false +} + +func (x *Config) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *Config) SetUseIds(v []string) { + x.xxx_hidden_UseIds = v +} + +func (x *Config) SetExceptIds(v []string) { + x.xxx_hidden_ExceptIds = v +} + +func (x *Config) SetIgnorePaths(v []string) { + x.xxx_hidden_IgnorePaths = v +} + +func (x *Config) SetIgnoreIdPaths(v []*IDPaths) { + x.xxx_hidden_IgnoreIdPaths = &v +} + +func (x *Config) SetEnumZeroValueSuffix(v string) { + x.xxx_hidden_EnumZeroValueSuffix = v +} + +func (x *Config) SetRpcAllowSameRequestResponse(v bool) { + x.xxx_hidden_RpcAllowSameRequestResponse = v +} + +func (x *Config) SetRpcAllowGoogleProtobufEmptyRequests(v bool) { + x.xxx_hidden_RpcAllowGoogleProtobufEmptyRequests = v +} + +func (x *Config) SetRpcAllowGoogleProtobufEmptyResponses(v bool) { + x.xxx_hidden_RpcAllowGoogleProtobufEmptyResponses = v +} + +func (x *Config) SetServiceSuffix(v string) { + x.xxx_hidden_ServiceSuffix = v +} + +func (x *Config) SetAllowCommentIgnores(v bool) { + x.xxx_hidden_AllowCommentIgnores = v +} + +type Config_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version represents the version of the lint rule and category IDs that should be used with this config. + Version string + // use_ids lists the rule and/or category IDs that are included in the lint check. + UseIds []string + // except_ids lists the rule and/or category IDs that are excluded from the lint check. + ExceptIds []string + // ignore_paths lists the paths of directories and/or files that should be ignored by the lint check. + // All paths are relative to the root of the module. + IgnorePaths []string + // ignore_id_paths is a map of rule and/or category IDs to directory and/or file paths to exclude from the + // lint check. This corresponds with the ignore_only configuration key. + IgnoreIdPaths []*IDPaths + // enum_zero_value_suffix controls the behavior of the ENUM_ZERO_VALUE lint rule ID. By default, this rule + // verifies that the zero value of all enums ends in _UNSPECIFIED. This config allows the user to override + // this value with the given string. + EnumZeroValueSuffix string + // rpc_allow_same_request_response allows the same message type for both the request and response of an RPC. + RpcAllowSameRequestResponse bool + // rpc_allow_google_protobuf_empty_requests allows the RPC requests to use the google.protobuf.Empty message. + RpcAllowGoogleProtobufEmptyRequests bool + // rpc_allow_google_protobuf_empty_responses allows the RPC responses to use the google.protobuf.Empty message. + RpcAllowGoogleProtobufEmptyResponses bool + // service_suffix applies to the SERVICE_SUFFIX rule ID. By default, the rule verifies that all service names + // end with the suffix Service. This allows users to override the value with the given string. + ServiceSuffix string + // allow_comment_ignores turns on comment-driven ignores. + AllowCommentIgnores bool +} + +func (b0 Config_builder) Build() *Config { + m0 := &Config{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + x.xxx_hidden_UseIds = b.UseIds + x.xxx_hidden_ExceptIds = b.ExceptIds + x.xxx_hidden_IgnorePaths = b.IgnorePaths + x.xxx_hidden_IgnoreIdPaths = &b.IgnoreIdPaths + x.xxx_hidden_EnumZeroValueSuffix = b.EnumZeroValueSuffix + x.xxx_hidden_RpcAllowSameRequestResponse = b.RpcAllowSameRequestResponse + x.xxx_hidden_RpcAllowGoogleProtobufEmptyRequests = b.RpcAllowGoogleProtobufEmptyRequests + x.xxx_hidden_RpcAllowGoogleProtobufEmptyResponses = b.RpcAllowGoogleProtobufEmptyResponses + x.xxx_hidden_ServiceSuffix = b.ServiceSuffix + x.xxx_hidden_AllowCommentIgnores = b.AllowCommentIgnores + return m0 +} + +// IDPaths represents a rule or category ID and the file and/or directory paths that are ignored for the rule. +type IDPaths struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *IDPaths) Reset() { + *x = IDPaths{} + mi := &file_buf_alpha_lint_v1_config_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IDPaths) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IDPaths) ProtoMessage() {} + +func (x *IDPaths) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_lint_v1_config_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *IDPaths) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *IDPaths) GetPaths() []string { + if x != nil { + return x.xxx_hidden_Paths + } + return nil +} + +func (x *IDPaths) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *IDPaths) SetPaths(v []string) { + x.xxx_hidden_Paths = v +} + +type IDPaths_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Paths []string +} + +func (b0 IDPaths_builder) Build() *IDPaths { + m0 := &IDPaths{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Paths = b.Paths + return m0 +} + +var File_buf_alpha_lint_v1_config_proto protoreflect.FileDescriptor + +var file_buf_alpha_lint_v1_config_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6c, 0x69, 0x6e, 0x74, + 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x11, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6c, 0x69, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x22, 0xc7, 0x04, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x5f, + 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x49, 0x64, + 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x49, 0x64, 0x73, + 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x50, 0x61, + 0x74, 0x68, 0x73, 0x12, 0x42, 0x0a, 0x0f, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, + 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x49, 0x44, 0x50, 0x61, 0x74, 0x68, 0x73, 0x52, 0x0d, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, + 0x49, 0x64, 0x50, 0x61, 0x74, 0x68, 0x73, 0x12, 0x33, 0x0a, 0x16, 0x65, 0x6e, 0x75, 0x6d, 0x5f, + 0x7a, 0x65, 0x72, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x73, 0x75, 0x66, 0x66, 0x69, + 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x65, 0x6e, 0x75, 0x6d, 0x5a, 0x65, 0x72, + 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x75, 0x66, 0x66, 0x69, 0x78, 0x12, 0x44, 0x0a, 0x1f, + 0x72, 0x70, 0x63, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x61, 0x6d, 0x65, 0x5f, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1b, 0x72, 0x70, 0x63, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x53, + 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x55, 0x0a, 0x28, 0x72, 0x70, 0x63, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, + 0x65, 0x6d, 0x70, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x23, 0x72, 0x70, 0x63, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x47, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x57, 0x0a, 0x29, 0x72, 0x70, 0x63, + 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x24, 0x72, 0x70, + 0x63, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x75, + 0x66, 0x66, 0x69, 0x78, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x53, 0x75, 0x66, 0x66, 0x69, 0x78, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x6c, 0x6c, + 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x67, 0x6e, 0x6f, 0x72, + 0x65, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x43, + 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x73, 0x22, 0x2f, 0x0a, + 0x07, 0x49, 0x44, 0x50, 0x61, 0x74, 0x68, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x42, 0xd2, + 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, + 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, + 0x6c, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x6c, 0x69, 0x6e, 0x74, 0x76, 0x31, 0xa2, 0x02, + 0x03, 0x42, 0x41, 0x4c, 0xaa, 0x02, 0x11, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x4c, 0x69, 0x6e, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x42, 0x75, 0x66, 0x5c, 0x41, + 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x4c, 0x69, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x42, + 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x4c, 0x69, 0x6e, 0x74, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x42, + 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x4c, 0x69, 0x6e, 0x74, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_lint_v1_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_buf_alpha_lint_v1_config_proto_goTypes = []any{ + (*Config)(nil), // 0: buf.alpha.lint.v1.Config + (*IDPaths)(nil), // 1: buf.alpha.lint.v1.IDPaths +} +var file_buf_alpha_lint_v1_config_proto_depIdxs = []int32{ + 1, // 0: buf.alpha.lint.v1.Config.ignore_id_paths:type_name -> buf.alpha.lint.v1.IDPaths + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_buf_alpha_lint_v1_config_proto_init() } +func file_buf_alpha_lint_v1_config_proto_init() { + if File_buf_alpha_lint_v1_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_lint_v1_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_buf_alpha_lint_v1_config_proto_goTypes, + DependencyIndexes: file_buf_alpha_lint_v1_config_proto_depIdxs, + MessageInfos: file_buf_alpha_lint_v1_config_proto_msgTypes, + }.Build() + File_buf_alpha_lint_v1_config_proto = out.File + file_buf_alpha_lint_v1_config_proto_rawDesc = nil + file_buf_alpha_lint_v1_config_proto_goTypes = nil + file_buf_alpha_lint_v1_config_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/module/v1alpha1/module.pb.go b/private/gen/proto/go/buf/alpha/module/v1alpha1/module.pb.go index 41b42fbade..d119890871 100644 --- a/private/gen/proto/go/buf/alpha/module/v1alpha1/module.pb.go +++ b/private/gen/proto/go/buf/alpha/module/v1alpha1/module.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/module/v1alpha1/module.proto +//go:build !protoopaque + package modulev1alpha1 import ( @@ -26,7 +28,6 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -77,14 +78,9 @@ func (x DigestType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use DigestType.Descriptor instead. -func (DigestType) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_module_v1alpha1_module_proto_rawDescGZIP(), []int{0} -} - // Digest represents a hash function's value. type Digest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // digest_type describes the hash algorithm. e.g. "SHAKE256" DigestType DigestType `protobuf:"varint,1,opt,name=digest_type,json=digestType,proto3,enum=buf.alpha.module.v1alpha1.DigestType" json:"digest_type,omitempty"` // digest is the hash's output without encoding. @@ -118,11 +114,6 @@ func (x *Digest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Digest.ProtoReflect.Descriptor instead. -func (*Digest) Descriptor() ([]byte, []int) { - return file_buf_alpha_module_v1alpha1_module_proto_rawDescGZIP(), []int{0} -} - func (x *Digest) GetDigestType() DigestType { if x != nil { return x.DigestType @@ -137,9 +128,38 @@ func (x *Digest) GetDigest() []byte { return nil } +func (x *Digest) SetDigestType(v DigestType) { + x.DigestType = v +} + +func (x *Digest) SetDigest(v []byte) { + if v == nil { + v = []byte{} + } + x.Digest = v +} + +type Digest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // digest_type describes the hash algorithm. e.g. "SHAKE256" + DigestType DigestType + // digest is the hash's output without encoding. + Digest []byte +} + +func (b0 Digest_builder) Build() *Digest { + m0 := &Digest{} + b, x := &b0, m0 + _, _ = b, x + x.DigestType = b.DigestType + x.Digest = b.Digest + return m0 +} + // Blob represents some module content with an associated digest. type Blob struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Digest of the content. Digest *Digest `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"` // Content of the blob. @@ -173,11 +193,6 @@ func (x *Blob) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Blob.ProtoReflect.Descriptor instead. -func (*Blob) Descriptor() ([]byte, []int) { - return file_buf_alpha_module_v1alpha1_module_proto_rawDescGZIP(), []int{1} -} - func (x *Blob) GetDigest() *Digest { if x != nil { return x.Digest @@ -192,9 +207,49 @@ func (x *Blob) GetContent() []byte { return nil } +func (x *Blob) SetDigest(v *Digest) { + x.Digest = v +} + +func (x *Blob) SetContent(v []byte) { + if v == nil { + v = []byte{} + } + x.Content = v +} + +func (x *Blob) HasDigest() bool { + if x == nil { + return false + } + return x.Digest != nil +} + +func (x *Blob) ClearDigest() { + x.Digest = nil +} + +type Blob_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Digest of the content. + Digest *Digest + // Content of the blob. + Content []byte +} + +func (b0 Blob_builder) Build() *Blob { + m0 := &Blob{} + b, x := &b0, m0 + _, _ = b, x + x.Digest = b.Digest + x.Content = b.Content + return m0 +} + // Module is a module. type Module struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // files are the files that make up the set. // // Sorted by path. @@ -251,11 +306,6 @@ func (x *Module) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Module.ProtoReflect.Descriptor instead. -func (*Module) Descriptor() ([]byte, []int) { - return file_buf_alpha_module_v1alpha1_module_proto_rawDescGZIP(), []int{2} -} - func (x *Module) GetFiles() []*ModuleFile { if x != nil { return x.Files @@ -305,9 +355,105 @@ func (x *Module) GetDocumentationPath() string { return "" } +func (x *Module) SetFiles(v []*ModuleFile) { + x.Files = v +} + +func (x *Module) SetDependencies(v []*ModulePin) { + x.Dependencies = v +} + +func (x *Module) SetDocumentation(v string) { + x.Documentation = v +} + +func (x *Module) SetBreakingConfig(v *v1.Config) { + x.BreakingConfig = v +} + +func (x *Module) SetLintConfig(v *v11.Config) { + x.LintConfig = v +} + +func (x *Module) SetLicense(v string) { + x.License = v +} + +func (x *Module) SetDocumentationPath(v string) { + x.DocumentationPath = v +} + +func (x *Module) HasBreakingConfig() bool { + if x == nil { + return false + } + return x.BreakingConfig != nil +} + +func (x *Module) HasLintConfig() bool { + if x == nil { + return false + } + return x.LintConfig != nil +} + +func (x *Module) ClearBreakingConfig() { + x.BreakingConfig = nil +} + +func (x *Module) ClearLintConfig() { + x.LintConfig = nil +} + +type Module_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // files are the files that make up the set. + // + // Sorted by path. + // Path must be unique. + // Only the target files. No imports. + // + // Maximum total size of all content: 32MB. + Files []*ModuleFile + // dependencies are the dependencies. + Dependencies []*ModulePin + // documentation is the string representation of the contents of the file at documentation_path. + // + // string is used to enforce UTF-8 encoding or 7-bit ASCII text. + Documentation string + // breaking_config is the breaking change detection configuration set for the module. + BreakingConfig *v1.Config + // lint_config is the lint configuration set for the module. + LintConfig *v11.Config + // license is the string representation of the contents of the `LICENSE` file. + // + // string is used to enforce UTF-8 encoding or 7-bit ASCII text. + License string + // documentation_path is the path of the file which contains the module documentation. + // + // either `buf.md`, `README.md` or `README.markdown`. + // if empty, assumes buf.md. + DocumentationPath string +} + +func (b0 Module_builder) Build() *Module { + m0 := &Module{} + b, x := &b0, m0 + _, _ = b, x + x.Files = b.Files + x.Dependencies = b.Dependencies + x.Documentation = b.Documentation + x.BreakingConfig = b.BreakingConfig + x.LintConfig = b.LintConfig + x.License = b.License + x.DocumentationPath = b.DocumentationPath + return m0 +} + // ModuleFile is a file within a FileSet. type ModuleFile struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // path is the relative path of the file. // Path can only use '/' as the separator character, and includes no ".." components. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` @@ -342,11 +488,6 @@ func (x *ModuleFile) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ModuleFile.ProtoReflect.Descriptor instead. -func (*ModuleFile) Descriptor() ([]byte, []int) { - return file_buf_alpha_module_v1alpha1_module_proto_rawDescGZIP(), []int{3} -} - func (x *ModuleFile) GetPath() string { if x != nil { return x.Path @@ -361,9 +502,39 @@ func (x *ModuleFile) GetContent() []byte { return nil } +func (x *ModuleFile) SetPath(v string) { + x.Path = v +} + +func (x *ModuleFile) SetContent(v []byte) { + if v == nil { + v = []byte{} + } + x.Content = v +} + +type ModuleFile_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // path is the relative path of the file. + // Path can only use '/' as the separator character, and includes no ".." components. + Path string + // content is the content of the file. + Content []byte +} + +func (b0 ModuleFile_builder) Build() *ModuleFile { + m0 := &ModuleFile{} + b, x := &b0, m0 + _, _ = b, x + x.Path = b.Path + x.Content = b.Content + return m0 +} + // ModuleReference is a module reference. type ModuleReference struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,3,opt,name=repository,proto3" json:"repository,omitempty"` @@ -398,11 +569,6 @@ func (x *ModuleReference) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ModuleReference.ProtoReflect.Descriptor instead. -func (*ModuleReference) Descriptor() ([]byte, []int) { - return file_buf_alpha_module_v1alpha1_module_proto_rawDescGZIP(), []int{4} -} - func (x *ModuleReference) GetRemote() string { if x != nil { return x.Remote @@ -431,9 +597,46 @@ func (x *ModuleReference) GetReference() string { return "" } +func (x *ModuleReference) SetRemote(v string) { + x.Remote = v +} + +func (x *ModuleReference) SetOwner(v string) { + x.Owner = v +} + +func (x *ModuleReference) SetRepository(v string) { + x.Repository = v +} + +func (x *ModuleReference) SetReference(v string) { + x.Reference = v +} + +type ModuleReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Remote string + Owner string + Repository string + // either tag, or commit + Reference string +} + +func (b0 ModuleReference_builder) Build() *ModuleReference { + m0 := &ModuleReference{} + b, x := &b0, m0 + _, _ = b, x + x.Remote = b.Remote + x.Owner = b.Owner + x.Repository = b.Repository + x.Reference = b.Reference + return m0 +} + // ModulePin is a module pin. type ModulePin struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,3,opt,name=repository,proto3" json:"repository,omitempty"` @@ -472,11 +675,6 @@ func (x *ModulePin) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ModulePin.ProtoReflect.Descriptor instead. -func (*ModulePin) Descriptor() ([]byte, []int) { - return file_buf_alpha_module_v1alpha1_module_proto_rawDescGZIP(), []int{5} -} - func (x *ModulePin) GetRemote() string { if x != nil { return x.Remote @@ -512,6 +710,52 @@ func (x *ModulePin) GetManifestDigest() string { return "" } +func (x *ModulePin) SetRemote(v string) { + x.Remote = v +} + +func (x *ModulePin) SetOwner(v string) { + x.Owner = v +} + +func (x *ModulePin) SetRepository(v string) { + x.Repository = v +} + +func (x *ModulePin) SetCommit(v string) { + x.Commit = v +} + +func (x *ModulePin) SetManifestDigest(v string) { + x.ManifestDigest = v +} + +type ModulePin_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Remote string + Owner string + Repository string + Commit string + // Module's manifest digest. Replacement for previous b1/b3 digests. + // This is in the format ':`, where '' is the lowercase digest name ('shake256'), + // and '' is the lowercase hex-encoded digest. + // This value is persisted directly to the buf.lock file (https://buf.build/docs/configuration/v1/buf-lock) as the 'digest' key. + ManifestDigest string +} + +func (b0 ModulePin_builder) Build() *ModulePin { + m0 := &ModulePin{} + b, x := &b0, m0 + _, _ = b, x + x.Remote = b.Remote + x.Owner = b.Owner + x.Repository = b.Repository + x.Commit = b.Commit + x.ManifestDigest = b.ManifestDigest + return m0 +} + var File_buf_alpha_module_v1alpha1_module_proto protoreflect.FileDescriptor var file_buf_alpha_module_v1alpha1_module_proto_rawDesc = []byte{ @@ -609,18 +853,6 @@ var file_buf_alpha_module_v1alpha1_module_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_module_v1alpha1_module_proto_rawDescOnce sync.Once - file_buf_alpha_module_v1alpha1_module_proto_rawDescData = file_buf_alpha_module_v1alpha1_module_proto_rawDesc -) - -func file_buf_alpha_module_v1alpha1_module_proto_rawDescGZIP() []byte { - file_buf_alpha_module_v1alpha1_module_proto_rawDescOnce.Do(func() { - file_buf_alpha_module_v1alpha1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_module_v1alpha1_module_proto_rawDescData) - }) - return file_buf_alpha_module_v1alpha1_module_proto_rawDescData -} - var file_buf_alpha_module_v1alpha1_module_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_buf_alpha_module_v1alpha1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_buf_alpha_module_v1alpha1_module_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/module/v1alpha1/module_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/module/v1alpha1/module_protoopaque.pb.go new file mode 100644 index 0000000000..ebed1df1c4 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/module/v1alpha1/module_protoopaque.pb.go @@ -0,0 +1,879 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/module/v1alpha1/module.proto + +//go:build protoopaque + +package modulev1alpha1 + +import ( + v1 "github.com/bufbuild/buf/private/gen/proto/go/buf/alpha/breaking/v1" + v11 "github.com/bufbuild/buf/private/gen/proto/go/buf/alpha/lint/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type DigestType int32 + +const ( + DigestType_DIGEST_TYPE_UNSPECIFIED DigestType = 0 + DigestType_DIGEST_TYPE_SHAKE256 DigestType = 1 +) + +// Enum value maps for DigestType. +var ( + DigestType_name = map[int32]string{ + 0: "DIGEST_TYPE_UNSPECIFIED", + 1: "DIGEST_TYPE_SHAKE256", + } + DigestType_value = map[string]int32{ + "DIGEST_TYPE_UNSPECIFIED": 0, + "DIGEST_TYPE_SHAKE256": 1, + } +) + +func (x DigestType) Enum() *DigestType { + p := new(DigestType) + *p = x + return p +} + +func (x DigestType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DigestType) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_module_v1alpha1_module_proto_enumTypes[0].Descriptor() +} + +func (DigestType) Type() protoreflect.EnumType { + return &file_buf_alpha_module_v1alpha1_module_proto_enumTypes[0] +} + +func (x DigestType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Digest represents a hash function's value. +type Digest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DigestType DigestType `protobuf:"varint,1,opt,name=digest_type,json=digestType,proto3,enum=buf.alpha.module.v1alpha1.DigestType" json:"digest_type,omitempty"` + xxx_hidden_Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Digest) Reset() { + *x = Digest{} + mi := &file_buf_alpha_module_v1alpha1_module_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Digest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Digest) ProtoMessage() {} + +func (x *Digest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_module_v1alpha1_module_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Digest) GetDigestType() DigestType { + if x != nil { + return x.xxx_hidden_DigestType + } + return DigestType_DIGEST_TYPE_UNSPECIFIED +} + +func (x *Digest) GetDigest() []byte { + if x != nil { + return x.xxx_hidden_Digest + } + return nil +} + +func (x *Digest) SetDigestType(v DigestType) { + x.xxx_hidden_DigestType = v +} + +func (x *Digest) SetDigest(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Digest = v +} + +type Digest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // digest_type describes the hash algorithm. e.g. "SHAKE256" + DigestType DigestType + // digest is the hash's output without encoding. + Digest []byte +} + +func (b0 Digest_builder) Build() *Digest { + m0 := &Digest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DigestType = b.DigestType + x.xxx_hidden_Digest = b.Digest + return m0 +} + +// Blob represents some module content with an associated digest. +type Blob struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Digest *Digest `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"` + xxx_hidden_Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Blob) Reset() { + *x = Blob{} + mi := &file_buf_alpha_module_v1alpha1_module_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Blob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Blob) ProtoMessage() {} + +func (x *Blob) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_module_v1alpha1_module_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Blob) GetDigest() *Digest { + if x != nil { + return x.xxx_hidden_Digest + } + return nil +} + +func (x *Blob) GetContent() []byte { + if x != nil { + return x.xxx_hidden_Content + } + return nil +} + +func (x *Blob) SetDigest(v *Digest) { + x.xxx_hidden_Digest = v +} + +func (x *Blob) SetContent(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Content = v +} + +func (x *Blob) HasDigest() bool { + if x == nil { + return false + } + return x.xxx_hidden_Digest != nil +} + +func (x *Blob) ClearDigest() { + x.xxx_hidden_Digest = nil +} + +type Blob_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Digest of the content. + Digest *Digest + // Content of the blob. + Content []byte +} + +func (b0 Blob_builder) Build() *Blob { + m0 := &Blob{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Digest = b.Digest + x.xxx_hidden_Content = b.Content + return m0 +} + +// Module is a module. +type Module struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Files *[]*ModuleFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` + xxx_hidden_Dependencies *[]*ModulePin `protobuf:"bytes,2,rep,name=dependencies,proto3" json:"dependencies,omitempty"` + xxx_hidden_Documentation string `protobuf:"bytes,3,opt,name=documentation,proto3" json:"documentation,omitempty"` + xxx_hidden_BreakingConfig *v1.Config `protobuf:"bytes,4,opt,name=breaking_config,json=breakingConfig,proto3" json:"breaking_config,omitempty"` + xxx_hidden_LintConfig *v11.Config `protobuf:"bytes,5,opt,name=lint_config,json=lintConfig,proto3" json:"lint_config,omitempty"` + xxx_hidden_License string `protobuf:"bytes,6,opt,name=license,proto3" json:"license,omitempty"` + xxx_hidden_DocumentationPath string `protobuf:"bytes,7,opt,name=documentation_path,json=documentationPath,proto3" json:"documentation_path,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Module) Reset() { + *x = Module{} + mi := &file_buf_alpha_module_v1alpha1_module_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Module) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Module) ProtoMessage() {} + +func (x *Module) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_module_v1alpha1_module_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Module) GetFiles() []*ModuleFile { + if x != nil { + if x.xxx_hidden_Files != nil { + return *x.xxx_hidden_Files + } + } + return nil +} + +func (x *Module) GetDependencies() []*ModulePin { + if x != nil { + if x.xxx_hidden_Dependencies != nil { + return *x.xxx_hidden_Dependencies + } + } + return nil +} + +func (x *Module) GetDocumentation() string { + if x != nil { + return x.xxx_hidden_Documentation + } + return "" +} + +func (x *Module) GetBreakingConfig() *v1.Config { + if x != nil { + return x.xxx_hidden_BreakingConfig + } + return nil +} + +func (x *Module) GetLintConfig() *v11.Config { + if x != nil { + return x.xxx_hidden_LintConfig + } + return nil +} + +func (x *Module) GetLicense() string { + if x != nil { + return x.xxx_hidden_License + } + return "" +} + +func (x *Module) GetDocumentationPath() string { + if x != nil { + return x.xxx_hidden_DocumentationPath + } + return "" +} + +func (x *Module) SetFiles(v []*ModuleFile) { + x.xxx_hidden_Files = &v +} + +func (x *Module) SetDependencies(v []*ModulePin) { + x.xxx_hidden_Dependencies = &v +} + +func (x *Module) SetDocumentation(v string) { + x.xxx_hidden_Documentation = v +} + +func (x *Module) SetBreakingConfig(v *v1.Config) { + x.xxx_hidden_BreakingConfig = v +} + +func (x *Module) SetLintConfig(v *v11.Config) { + x.xxx_hidden_LintConfig = v +} + +func (x *Module) SetLicense(v string) { + x.xxx_hidden_License = v +} + +func (x *Module) SetDocumentationPath(v string) { + x.xxx_hidden_DocumentationPath = v +} + +func (x *Module) HasBreakingConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_BreakingConfig != nil +} + +func (x *Module) HasLintConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_LintConfig != nil +} + +func (x *Module) ClearBreakingConfig() { + x.xxx_hidden_BreakingConfig = nil +} + +func (x *Module) ClearLintConfig() { + x.xxx_hidden_LintConfig = nil +} + +type Module_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // files are the files that make up the set. + // + // Sorted by path. + // Path must be unique. + // Only the target files. No imports. + // + // Maximum total size of all content: 32MB. + Files []*ModuleFile + // dependencies are the dependencies. + Dependencies []*ModulePin + // documentation is the string representation of the contents of the file at documentation_path. + // + // string is used to enforce UTF-8 encoding or 7-bit ASCII text. + Documentation string + // breaking_config is the breaking change detection configuration set for the module. + BreakingConfig *v1.Config + // lint_config is the lint configuration set for the module. + LintConfig *v11.Config + // license is the string representation of the contents of the `LICENSE` file. + // + // string is used to enforce UTF-8 encoding or 7-bit ASCII text. + License string + // documentation_path is the path of the file which contains the module documentation. + // + // either `buf.md`, `README.md` or `README.markdown`. + // if empty, assumes buf.md. + DocumentationPath string +} + +func (b0 Module_builder) Build() *Module { + m0 := &Module{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Files = &b.Files + x.xxx_hidden_Dependencies = &b.Dependencies + x.xxx_hidden_Documentation = b.Documentation + x.xxx_hidden_BreakingConfig = b.BreakingConfig + x.xxx_hidden_LintConfig = b.LintConfig + x.xxx_hidden_License = b.License + x.xxx_hidden_DocumentationPath = b.DocumentationPath + return m0 +} + +// ModuleFile is a file within a FileSet. +type ModuleFile struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + xxx_hidden_Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ModuleFile) Reset() { + *x = ModuleFile{} + mi := &file_buf_alpha_module_v1alpha1_module_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ModuleFile) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModuleFile) ProtoMessage() {} + +func (x *ModuleFile) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_module_v1alpha1_module_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ModuleFile) GetPath() string { + if x != nil { + return x.xxx_hidden_Path + } + return "" +} + +func (x *ModuleFile) GetContent() []byte { + if x != nil { + return x.xxx_hidden_Content + } + return nil +} + +func (x *ModuleFile) SetPath(v string) { + x.xxx_hidden_Path = v +} + +func (x *ModuleFile) SetContent(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Content = v +} + +type ModuleFile_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // path is the relative path of the file. + // Path can only use '/' as the separator character, and includes no ".." components. + Path string + // content is the content of the file. + Content []byte +} + +func (b0 ModuleFile_builder) Build() *ModuleFile { + m0 := &ModuleFile{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Path = b.Path + x.xxx_hidden_Content = b.Content + return m0 +} + +// ModuleReference is a module reference. +type ModuleReference struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` + xxx_hidden_Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,3,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,4,opt,name=reference,proto3" json:"reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ModuleReference) Reset() { + *x = ModuleReference{} + mi := &file_buf_alpha_module_v1alpha1_module_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ModuleReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModuleReference) ProtoMessage() {} + +func (x *ModuleReference) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_module_v1alpha1_module_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ModuleReference) GetRemote() string { + if x != nil { + return x.xxx_hidden_Remote + } + return "" +} + +func (x *ModuleReference) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *ModuleReference) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *ModuleReference) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *ModuleReference) SetRemote(v string) { + x.xxx_hidden_Remote = v +} + +func (x *ModuleReference) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *ModuleReference) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *ModuleReference) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +type ModuleReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Remote string + Owner string + Repository string + // either tag, or commit + Reference string +} + +func (b0 ModuleReference_builder) Build() *ModuleReference { + m0 := &ModuleReference{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Remote = b.Remote + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Reference = b.Reference + return m0 +} + +// ModulePin is a module pin. +type ModulePin struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` + xxx_hidden_Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,3,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Commit string `protobuf:"bytes,5,opt,name=commit,proto3" json:"commit,omitempty"` + xxx_hidden_ManifestDigest string `protobuf:"bytes,8,opt,name=manifest_digest,json=manifestDigest,proto3" json:"manifest_digest,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ModulePin) Reset() { + *x = ModulePin{} + mi := &file_buf_alpha_module_v1alpha1_module_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ModulePin) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModulePin) ProtoMessage() {} + +func (x *ModulePin) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_module_v1alpha1_module_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ModulePin) GetRemote() string { + if x != nil { + return x.xxx_hidden_Remote + } + return "" +} + +func (x *ModulePin) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *ModulePin) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *ModulePin) GetCommit() string { + if x != nil { + return x.xxx_hidden_Commit + } + return "" +} + +func (x *ModulePin) GetManifestDigest() string { + if x != nil { + return x.xxx_hidden_ManifestDigest + } + return "" +} + +func (x *ModulePin) SetRemote(v string) { + x.xxx_hidden_Remote = v +} + +func (x *ModulePin) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *ModulePin) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *ModulePin) SetCommit(v string) { + x.xxx_hidden_Commit = v +} + +func (x *ModulePin) SetManifestDigest(v string) { + x.xxx_hidden_ManifestDigest = v +} + +type ModulePin_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Remote string + Owner string + Repository string + Commit string + // Module's manifest digest. Replacement for previous b1/b3 digests. + // This is in the format ':`, where '' is the lowercase digest name ('shake256'), + // and '' is the lowercase hex-encoded digest. + // This value is persisted directly to the buf.lock file (https://buf.build/docs/configuration/v1/buf-lock) as the 'digest' key. + ManifestDigest string +} + +func (b0 ModulePin_builder) Build() *ModulePin { + m0 := &ModulePin{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Remote = b.Remote + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Commit = b.Commit + x.xxx_hidden_ManifestDigest = b.ManifestDigest + return m0 +} + +var File_buf_alpha_module_v1alpha1_module_proto protoreflect.FileDescriptor + +var file_buf_alpha_module_v1alpha1_module_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x1a, 0x22, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x62, + 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2f, 0x6c, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x68, 0x0a, 0x06, 0x44, 0x69, 0x67, 0x65, 0x73, + 0x74, 0x12, 0x46, 0x0a, 0x0b, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x64, + 0x69, 0x67, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x69, 0x67, + 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, + 0x74, 0x22, 0x5b, 0x0a, 0x04, 0x42, 0x6c, 0x6f, 0x62, 0x12, 0x39, 0x0a, 0x06, 0x64, 0x69, 0x67, + 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x52, 0x06, 0x64, 0x69, + 0x67, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x82, + 0x03, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x66, 0x69, 0x6c, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, + 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, + 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, + 0x69, 0x6e, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, + 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0f, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x62, 0x72, 0x65, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, + 0x62, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, + 0x0a, 0x0b, 0x6c, 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, + 0x6c, 0x69, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x69, + 0x63, 0x65, 0x6e, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x69, 0x63, + 0x65, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x11, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x61, 0x74, 0x68, 0x22, 0x3a, 0x0a, 0x0a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x46, 0x69, 0x6c, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, + 0x7d, 0x0a, 0x0f, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0xc9, + 0x01, 0x0a, 0x09, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, + 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x64, + 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6d, 0x61, 0x6e, + 0x69, 0x66, 0x65, 0x73, 0x74, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x4a, 0x04, 0x08, 0x04, 0x10, + 0x05, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x52, 0x06, 0x62, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x52, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x2a, 0x43, 0x0a, 0x0a, 0x44, 0x69, + 0x67, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x49, 0x47, 0x45, + 0x53, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x49, 0x47, 0x45, 0x53, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x48, 0x41, 0x4b, 0x45, 0x32, 0x35, 0x36, 0x10, 0x01, 0x42, + 0x8a, 0x02, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x55, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, + 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, + 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x4d, 0xaa, 0x02, 0x19, + 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x19, 0x42, 0x75, 0x66, 0x5c, + 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, + 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_module_v1alpha1_module_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_buf_alpha_module_v1alpha1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_buf_alpha_module_v1alpha1_module_proto_goTypes = []any{ + (DigestType)(0), // 0: buf.alpha.module.v1alpha1.DigestType + (*Digest)(nil), // 1: buf.alpha.module.v1alpha1.Digest + (*Blob)(nil), // 2: buf.alpha.module.v1alpha1.Blob + (*Module)(nil), // 3: buf.alpha.module.v1alpha1.Module + (*ModuleFile)(nil), // 4: buf.alpha.module.v1alpha1.ModuleFile + (*ModuleReference)(nil), // 5: buf.alpha.module.v1alpha1.ModuleReference + (*ModulePin)(nil), // 6: buf.alpha.module.v1alpha1.ModulePin + (*v1.Config)(nil), // 7: buf.alpha.breaking.v1.Config + (*v11.Config)(nil), // 8: buf.alpha.lint.v1.Config +} +var file_buf_alpha_module_v1alpha1_module_proto_depIdxs = []int32{ + 0, // 0: buf.alpha.module.v1alpha1.Digest.digest_type:type_name -> buf.alpha.module.v1alpha1.DigestType + 1, // 1: buf.alpha.module.v1alpha1.Blob.digest:type_name -> buf.alpha.module.v1alpha1.Digest + 4, // 2: buf.alpha.module.v1alpha1.Module.files:type_name -> buf.alpha.module.v1alpha1.ModuleFile + 6, // 3: buf.alpha.module.v1alpha1.Module.dependencies:type_name -> buf.alpha.module.v1alpha1.ModulePin + 7, // 4: buf.alpha.module.v1alpha1.Module.breaking_config:type_name -> buf.alpha.breaking.v1.Config + 8, // 5: buf.alpha.module.v1alpha1.Module.lint_config:type_name -> buf.alpha.lint.v1.Config + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_buf_alpha_module_v1alpha1_module_proto_init() } +func file_buf_alpha_module_v1alpha1_module_proto_init() { + if File_buf_alpha_module_v1alpha1_module_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_module_v1alpha1_module_proto_rawDesc, + NumEnums: 1, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_buf_alpha_module_v1alpha1_module_proto_goTypes, + DependencyIndexes: file_buf_alpha_module_v1alpha1_module_proto_depIdxs, + EnumInfos: file_buf_alpha_module_v1alpha1_module_proto_enumTypes, + MessageInfos: file_buf_alpha_module_v1alpha1_module_proto_msgTypes, + }.Build() + File_buf_alpha_module_v1alpha1_module_proto = out.File + file_buf_alpha_module_v1alpha1_module_proto_rawDesc = nil + file_buf_alpha_module_v1alpha1_module_proto_goTypes = nil + file_buf_alpha_module_v1alpha1_module_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/admin.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/admin.pb.go index f094f6554a..c0f2c39a0b 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/admin.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/admin.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/admin.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -80,11 +81,6 @@ func (x BreakingChangeCategory) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use BreakingChangeCategory.Descriptor instead. -func (BreakingChangeCategory) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{0} -} - // CollisionType is the type of collisions that can occur. type CollisionType int32 @@ -133,13 +129,8 @@ func (x CollisionType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use CollisionType.Descriptor instead. -func (CollisionType) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{1} -} - type BreakingChangePolicy struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Enabled *bool `protobuf:"varint,1,opt,name=enabled,proto3,oneof" json:"enabled,omitempty"` IgnoreUnstablePackages *bool `protobuf:"varint,2,opt,name=ignore_unstable_packages,json=ignoreUnstablePackages,proto3,oneof" json:"ignore_unstable_packages,omitempty"` Category BreakingChangeCategory `protobuf:"varint,3,opt,name=category,proto3,enum=buf.alpha.registry.v1alpha1.BreakingChangeCategory" json:"category,omitempty"` @@ -172,11 +163,6 @@ func (x *BreakingChangePolicy) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BreakingChangePolicy.ProtoReflect.Descriptor instead. -func (*BreakingChangePolicy) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{0} -} - func (x *BreakingChangePolicy) GetEnabled() bool { if x != nil && x.Enabled != nil { return *x.Enabled @@ -198,9 +184,61 @@ func (x *BreakingChangePolicy) GetCategory() BreakingChangeCategory { return BreakingChangeCategory_BREAKING_CHANGE_CATEGORY_UNSPECIFIED } +func (x *BreakingChangePolicy) SetEnabled(v bool) { + x.Enabled = &v +} + +func (x *BreakingChangePolicy) SetIgnoreUnstablePackages(v bool) { + x.IgnoreUnstablePackages = &v +} + +func (x *BreakingChangePolicy) SetCategory(v BreakingChangeCategory) { + x.Category = v +} + +func (x *BreakingChangePolicy) HasEnabled() bool { + if x == nil { + return false + } + return x.Enabled != nil +} + +func (x *BreakingChangePolicy) HasIgnoreUnstablePackages() bool { + if x == nil { + return false + } + return x.IgnoreUnstablePackages != nil +} + +func (x *BreakingChangePolicy) ClearEnabled() { + x.Enabled = nil +} + +func (x *BreakingChangePolicy) ClearIgnoreUnstablePackages() { + x.IgnoreUnstablePackages = nil +} + +type BreakingChangePolicy_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Enabled *bool + IgnoreUnstablePackages *bool + Category BreakingChangeCategory +} + +func (b0 BreakingChangePolicy_builder) Build() *BreakingChangePolicy { + m0 := &BreakingChangePolicy{} + b, x := &b0, m0 + _, _ = b, x + x.Enabled = b.Enabled + x.IgnoreUnstablePackages = b.IgnoreUnstablePackages + x.Category = b.Category + return m0 +} + // UniquenessPolicy is the policy for uniqueness on the server. type UniquenessPolicy struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Whether uniqueness policy is enforced. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` unknownFields protoimpl.UnknownFields @@ -232,11 +270,6 @@ func (x *UniquenessPolicy) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UniquenessPolicy.ProtoReflect.Descriptor instead. -func (*UniquenessPolicy) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{1} -} - func (x *UniquenessPolicy) GetEnabled() bool { if x != nil { return x.Enabled @@ -244,9 +277,28 @@ func (x *UniquenessPolicy) GetEnabled() bool { return false } +func (x *UniquenessPolicy) SetEnabled(v bool) { + x.Enabled = v +} + +type UniquenessPolicy_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Whether uniqueness policy is enforced. + Enabled bool +} + +func (b0 UniquenessPolicy_builder) Build() *UniquenessPolicy { + m0 := &UniquenessPolicy{} + b, x := &b0, m0 + _, _ = b, x + x.Enabled = b.Enabled + return m0 +} + // ReviewFlowGracePeriodPolicy is the policy for the review flow grace period on the server. type ReviewFlowGracePeriodPolicy struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The number of seconds of the grace period. // Set to zero to disable the grace period. DurationSeconds uint32 `protobuf:"varint,1,opt,name=duration_seconds,json=durationSeconds,proto3" json:"duration_seconds,omitempty"` @@ -279,11 +331,6 @@ func (x *ReviewFlowGracePeriodPolicy) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ReviewFlowGracePeriodPolicy.ProtoReflect.Descriptor instead. -func (*ReviewFlowGracePeriodPolicy) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{2} -} - func (x *ReviewFlowGracePeriodPolicy) GetDurationSeconds() uint32 { if x != nil { return x.DurationSeconds @@ -291,9 +338,29 @@ func (x *ReviewFlowGracePeriodPolicy) GetDurationSeconds() uint32 { return 0 } +func (x *ReviewFlowGracePeriodPolicy) SetDurationSeconds(v uint32) { + x.DurationSeconds = v +} + +type ReviewFlowGracePeriodPolicy_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The number of seconds of the grace period. + // Set to zero to disable the grace period. + DurationSeconds uint32 +} + +func (b0 ReviewFlowGracePeriodPolicy_builder) Build() *ReviewFlowGracePeriodPolicy { + m0 := &ReviewFlowGracePeriodPolicy{} + b, x := &b0, m0 + _, _ = b, x + x.DurationSeconds = b.DurationSeconds + return m0 +} + // Collision is a collision that has occurred. type Collision struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The reference that has collisions. Reference string `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"` // The type of collision. @@ -332,11 +399,6 @@ func (x *Collision) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Collision.ProtoReflect.Descriptor instead. -func (*Collision) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{3} -} - func (x *Collision) GetReference() string { if x != nil { return x.Reference @@ -365,9 +427,50 @@ func (x *Collision) GetHasOtherCollisionSources() bool { return false } +func (x *Collision) SetReference(v string) { + x.Reference = v +} + +func (x *Collision) SetType(v CollisionType) { + x.Type = v +} + +func (x *Collision) SetSources(v []*CollisionSource) { + x.Sources = v +} + +func (x *Collision) SetHasOtherCollisionSources(v bool) { + x.HasOtherCollisionSources = v +} + +type Collision_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The reference that has collisions. + Reference string + // The type of collision. + Type CollisionType + // The sources of the collision that the user is authorized to see. + Sources []*CollisionSource + // Whether there are other collision sources that the user is not authorized to see. + // The user should contact a server admin for more information about these collisions. + HasOtherCollisionSources bool +} + +func (b0 Collision_builder) Build() *Collision { + m0 := &Collision{} + b, x := &b0, m0 + _, _ = b, x + x.Reference = b.Reference + x.Type = b.Type + x.Sources = b.Sources + x.HasOtherCollisionSources = b.HasOtherCollisionSources + return m0 +} + // CollisionSource is the source of a collision type CollisionSource struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The name of the owner of the source. OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` // The name of the repository of the source. @@ -403,11 +506,6 @@ func (x *CollisionSource) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CollisionSource.ProtoReflect.Descriptor instead. -func (*CollisionSource) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{4} -} - func (x *CollisionSource) GetOwnerName() string { if x != nil { return x.OwnerName @@ -429,11 +527,44 @@ func (x *CollisionSource) GetPath() string { return "" } +func (x *CollisionSource) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *CollisionSource) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *CollisionSource) SetPath(v string) { + x.Path = v +} + +type CollisionSource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the owner of the source. + OwnerName string + // The name of the repository of the source. + RepositoryName string + // The path of the file that is the source of the collision. + Path string +} + +func (b0 CollisionSource_builder) Build() *CollisionSource { + m0 := &CollisionSource{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerName = b.OwnerName + x.RepositoryName = b.RepositoryName + x.Path = b.Path + return m0 +} + // MonthlyUsage contains the total amount of message, enum and services types // for every organizations repositories within a single tenant BSR instance // for a given month and year. type MonthlyUsage struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The month, between 1 and 12. Month uint32 `protobuf:"varint,1,opt,name=month,proto3" json:"month,omitempty"` // The year, between 2020 and the current year. @@ -473,11 +604,6 @@ func (x *MonthlyUsage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MonthlyUsage.ProtoReflect.Descriptor instead. -func (*MonthlyUsage) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{5} -} - func (x *MonthlyUsage) GetMonth() uint32 { if x != nil { return x.Month @@ -513,8 +639,55 @@ func (x *MonthlyUsage) GetTotalMethodTypes() uint32 { return 0 } +func (x *MonthlyUsage) SetMonth(v uint32) { + x.Month = v +} + +func (x *MonthlyUsage) SetYear(v uint32) { + x.Year = v +} + +func (x *MonthlyUsage) SetTotalMessageTypes(v uint32) { + x.TotalMessageTypes = v +} + +func (x *MonthlyUsage) SetTotalEnumTypes(v uint32) { + x.TotalEnumTypes = v +} + +func (x *MonthlyUsage) SetTotalMethodTypes(v uint32) { + x.TotalMethodTypes = v +} + +type MonthlyUsage_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The month, between 1 and 12. + Month uint32 + // The year, between 2020 and the current year. + Year uint32 + // The total amount of message types for the month and year. + TotalMessageTypes uint32 + // The total amount of enum types for the month and year. + TotalEnumTypes uint32 + // The total amount of method types for the month and year. + TotalMethodTypes uint32 +} + +func (b0 MonthlyUsage_builder) Build() *MonthlyUsage { + m0 := &MonthlyUsage{} + b, x := &b0, m0 + _, _ = b, x + x.Month = b.Month + x.Year = b.Year + x.TotalMessageTypes = b.TotalMessageTypes + x.TotalEnumTypes = b.TotalEnumTypes + x.TotalMethodTypes = b.TotalMethodTypes + return m0 +} + type ForceDeleteUserRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -545,11 +718,6 @@ func (x *ForceDeleteUserRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ForceDeleteUserRequest.ProtoReflect.Descriptor instead. -func (*ForceDeleteUserRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{6} -} - func (x *ForceDeleteUserRequest) GetUserId() string { if x != nil { return x.UserId @@ -557,8 +725,26 @@ func (x *ForceDeleteUserRequest) GetUserId() string { return "" } +func (x *ForceDeleteUserRequest) SetUserId(v string) { + x.UserId = v +} + +type ForceDeleteUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + UserId string +} + +func (b0 ForceDeleteUserRequest_builder) Build() *ForceDeleteUserRequest { + m0 := &ForceDeleteUserRequest{} + b, x := &b0, m0 + _, _ = b, x + x.UserId = b.UserId + return m0 +} + type ForceDeleteUserResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The deleted user. User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // The deleted organizations. @@ -594,11 +780,6 @@ func (x *ForceDeleteUserResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ForceDeleteUserResponse.ProtoReflect.Descriptor instead. -func (*ForceDeleteUserResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{7} -} - func (x *ForceDeleteUserResponse) GetUser() *User { if x != nil { return x.User @@ -620,8 +801,52 @@ func (x *ForceDeleteUserResponse) GetRepositories() []*Repository { return nil } +func (x *ForceDeleteUserResponse) SetUser(v *User) { + x.User = v +} + +func (x *ForceDeleteUserResponse) SetOrganizations(v []*Organization) { + x.Organizations = v +} + +func (x *ForceDeleteUserResponse) SetRepositories(v []*Repository) { + x.Repositories = v +} + +func (x *ForceDeleteUserResponse) HasUser() bool { + if x == nil { + return false + } + return x.User != nil +} + +func (x *ForceDeleteUserResponse) ClearUser() { + x.User = nil +} + +type ForceDeleteUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The deleted user. + User *User + // The deleted organizations. + Organizations []*Organization + // The deleted repositories. + Repositories []*Repository +} + +func (b0 ForceDeleteUserResponse_builder) Build() *ForceDeleteUserResponse { + m0 := &ForceDeleteUserResponse{} + b, x := &b0, m0 + _, _ = b, x + x.User = b.User + x.Organizations = b.Organizations + x.Repositories = b.Repositories + return m0 +} + type UpdateUserVerificationStatusRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` VerificationStatus VerificationStatus `protobuf:"varint,2,opt,name=verification_status,json=verificationStatus,proto3,enum=buf.alpha.registry.v1alpha1.VerificationStatus" json:"verification_status,omitempty"` unknownFields protoimpl.UnknownFields @@ -653,11 +878,6 @@ func (x *UpdateUserVerificationStatusRequest) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use UpdateUserVerificationStatusRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserVerificationStatusRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{8} -} - func (x *UpdateUserVerificationStatusRequest) GetUserId() string { if x != nil { return x.UserId @@ -672,8 +892,32 @@ func (x *UpdateUserVerificationStatusRequest) GetVerificationStatus() Verificati return VerificationStatus_VERIFICATION_STATUS_UNSPECIFIED } +func (x *UpdateUserVerificationStatusRequest) SetUserId(v string) { + x.UserId = v +} + +func (x *UpdateUserVerificationStatusRequest) SetVerificationStatus(v VerificationStatus) { + x.VerificationStatus = v +} + +type UpdateUserVerificationStatusRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + UserId string + VerificationStatus VerificationStatus +} + +func (b0 UpdateUserVerificationStatusRequest_builder) Build() *UpdateUserVerificationStatusRequest { + m0 := &UpdateUserVerificationStatusRequest{} + b, x := &b0, m0 + _, _ = b, x + x.UserId = b.UserId + x.VerificationStatus = b.VerificationStatus + return m0 +} + type UpdateUserVerificationStatusResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -703,13 +947,20 @@ func (x *UpdateUserVerificationStatusResponse) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use UpdateUserVerificationStatusResponse.ProtoReflect.Descriptor instead. -func (*UpdateUserVerificationStatusResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{9} +type UpdateUserVerificationStatusResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateUserVerificationStatusResponse_builder) Build() *UpdateUserVerificationStatusResponse { + m0 := &UpdateUserVerificationStatusResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type UpdateOrganizationVerificationStatusRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` VerificationStatus VerificationStatus `protobuf:"varint,2,opt,name=verification_status,json=verificationStatus,proto3,enum=buf.alpha.registry.v1alpha1.VerificationStatus" json:"verification_status,omitempty"` unknownFields protoimpl.UnknownFields @@ -741,11 +992,6 @@ func (x *UpdateOrganizationVerificationStatusRequest) ProtoReflect() protoreflec return mi.MessageOf(x) } -// Deprecated: Use UpdateOrganizationVerificationStatusRequest.ProtoReflect.Descriptor instead. -func (*UpdateOrganizationVerificationStatusRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{10} -} - func (x *UpdateOrganizationVerificationStatusRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -760,8 +1006,32 @@ func (x *UpdateOrganizationVerificationStatusRequest) GetVerificationStatus() Ve return VerificationStatus_VERIFICATION_STATUS_UNSPECIFIED } +func (x *UpdateOrganizationVerificationStatusRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *UpdateOrganizationVerificationStatusRequest) SetVerificationStatus(v VerificationStatus) { + x.VerificationStatus = v +} + +type UpdateOrganizationVerificationStatusRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + OrganizationId string + VerificationStatus VerificationStatus +} + +func (b0 UpdateOrganizationVerificationStatusRequest_builder) Build() *UpdateOrganizationVerificationStatusRequest { + m0 := &UpdateOrganizationVerificationStatusRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.VerificationStatus = b.VerificationStatus + return m0 +} + type UpdateOrganizationVerificationStatusResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -791,13 +1061,20 @@ func (x *UpdateOrganizationVerificationStatusResponse) ProtoReflect() protorefle return mi.MessageOf(x) } -// Deprecated: Use UpdateOrganizationVerificationStatusResponse.ProtoReflect.Descriptor instead. -func (*UpdateOrganizationVerificationStatusResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{11} +type UpdateOrganizationVerificationStatusResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateOrganizationVerificationStatusResponse_builder) Build() *UpdateOrganizationVerificationStatusResponse { + m0 := &UpdateOrganizationVerificationStatusResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type CreateMachineUserRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -828,11 +1105,6 @@ func (x *CreateMachineUserRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateMachineUserRequest.ProtoReflect.Descriptor instead. -func (*CreateMachineUserRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{12} -} - func (x *CreateMachineUserRequest) GetUsername() string { if x != nil { return x.Username @@ -840,8 +1112,26 @@ func (x *CreateMachineUserRequest) GetUsername() string { return "" } +func (x *CreateMachineUserRequest) SetUsername(v string) { + x.Username = v +} + +type CreateMachineUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Username string +} + +func (b0 CreateMachineUserRequest_builder) Build() *CreateMachineUserRequest { + m0 := &CreateMachineUserRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Username = b.Username + return m0 +} + type CreateMachineUserResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -872,11 +1162,6 @@ func (x *CreateMachineUserResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateMachineUserResponse.ProtoReflect.Descriptor instead. -func (*CreateMachineUserResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{13} -} - func (x *CreateMachineUserResponse) GetUser() *User { if x != nil { return x.User @@ -884,8 +1169,37 @@ func (x *CreateMachineUserResponse) GetUser() *User { return nil } +func (x *CreateMachineUserResponse) SetUser(v *User) { + x.User = v +} + +func (x *CreateMachineUserResponse) HasUser() bool { + if x == nil { + return false + } + return x.User != nil +} + +func (x *CreateMachineUserResponse) ClearUser() { + x.User = nil +} + +type CreateMachineUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User +} + +func (b0 CreateMachineUserResponse_builder) Build() *CreateMachineUserResponse { + m0 := &CreateMachineUserResponse{} + b, x := &b0, m0 + _, _ = b, x + x.User = b.User + return m0 +} + type GetBreakingChangePolicyRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -915,13 +1229,20 @@ func (x *GetBreakingChangePolicyRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetBreakingChangePolicyRequest.ProtoReflect.Descriptor instead. -func (*GetBreakingChangePolicyRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{14} +type GetBreakingChangePolicyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetBreakingChangePolicyRequest_builder) Build() *GetBreakingChangePolicyRequest { + m0 := &GetBreakingChangePolicyRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetBreakingChangePolicyResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Policy *BreakingChangePolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -952,11 +1273,6 @@ func (x *GetBreakingChangePolicyResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetBreakingChangePolicyResponse.ProtoReflect.Descriptor instead. -func (*GetBreakingChangePolicyResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{15} -} - func (x *GetBreakingChangePolicyResponse) GetPolicy() *BreakingChangePolicy { if x != nil { return x.Policy @@ -964,8 +1280,37 @@ func (x *GetBreakingChangePolicyResponse) GetPolicy() *BreakingChangePolicy { return nil } +func (x *GetBreakingChangePolicyResponse) SetPolicy(v *BreakingChangePolicy) { + x.Policy = v +} + +func (x *GetBreakingChangePolicyResponse) HasPolicy() bool { + if x == nil { + return false + } + return x.Policy != nil +} + +func (x *GetBreakingChangePolicyResponse) ClearPolicy() { + x.Policy = nil +} + +type GetBreakingChangePolicyResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Policy *BreakingChangePolicy +} + +func (b0 GetBreakingChangePolicyResponse_builder) Build() *GetBreakingChangePolicyResponse { + m0 := &GetBreakingChangePolicyResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Policy = b.Policy + return m0 +} + type UpdateBreakingChangePolicyRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Policy *BreakingChangePolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -996,11 +1341,6 @@ func (x *UpdateBreakingChangePolicyRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use UpdateBreakingChangePolicyRequest.ProtoReflect.Descriptor instead. -func (*UpdateBreakingChangePolicyRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{16} -} - func (x *UpdateBreakingChangePolicyRequest) GetPolicy() *BreakingChangePolicy { if x != nil { return x.Policy @@ -1008,8 +1348,37 @@ func (x *UpdateBreakingChangePolicyRequest) GetPolicy() *BreakingChangePolicy { return nil } +func (x *UpdateBreakingChangePolicyRequest) SetPolicy(v *BreakingChangePolicy) { + x.Policy = v +} + +func (x *UpdateBreakingChangePolicyRequest) HasPolicy() bool { + if x == nil { + return false + } + return x.Policy != nil +} + +func (x *UpdateBreakingChangePolicyRequest) ClearPolicy() { + x.Policy = nil +} + +type UpdateBreakingChangePolicyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Policy *BreakingChangePolicy +} + +func (b0 UpdateBreakingChangePolicyRequest_builder) Build() *UpdateBreakingChangePolicyRequest { + m0 := &UpdateBreakingChangePolicyRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Policy = b.Policy + return m0 +} + type UpdateBreakingChangePolicyResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1039,13 +1408,20 @@ func (x *UpdateBreakingChangePolicyResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use UpdateBreakingChangePolicyResponse.ProtoReflect.Descriptor instead. -func (*UpdateBreakingChangePolicyResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{17} +type UpdateBreakingChangePolicyResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateBreakingChangePolicyResponse_builder) Build() *UpdateBreakingChangePolicyResponse { + m0 := &UpdateBreakingChangePolicyResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetUniquenessPolicyRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1075,13 +1451,20 @@ func (x *GetUniquenessPolicyRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUniquenessPolicyRequest.ProtoReflect.Descriptor instead. -func (*GetUniquenessPolicyRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{18} +type GetUniquenessPolicyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetUniquenessPolicyRequest_builder) Build() *GetUniquenessPolicyRequest { + m0 := &GetUniquenessPolicyRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetUniquenessPolicyResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The current uniqueness policy settings. Policy *UniquenessPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` // Reports the status of the backfill task, which can be executed by the server admin with the @@ -1116,11 +1499,6 @@ func (x *GetUniquenessPolicyResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUniquenessPolicyResponse.ProtoReflect.Descriptor instead. -func (*GetUniquenessPolicyResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{19} -} - func (x *GetUniquenessPolicyResponse) GetPolicy() *UniquenessPolicy { if x != nil { return x.Policy @@ -1135,8 +1513,46 @@ func (x *GetUniquenessPolicyResponse) GetBackfillTaskComplete() bool { return false } +func (x *GetUniquenessPolicyResponse) SetPolicy(v *UniquenessPolicy) { + x.Policy = v +} + +func (x *GetUniquenessPolicyResponse) SetBackfillTaskComplete(v bool) { + x.BackfillTaskComplete = v +} + +func (x *GetUniquenessPolicyResponse) HasPolicy() bool { + if x == nil { + return false + } + return x.Policy != nil +} + +func (x *GetUniquenessPolicyResponse) ClearPolicy() { + x.Policy = nil +} + +type GetUniquenessPolicyResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The current uniqueness policy settings. + Policy *UniquenessPolicy + // Reports the status of the backfill task, which can be executed by the server admin with the + // RunServerUniquenessBackfillTask RPC. + BackfillTaskComplete bool +} + +func (b0 GetUniquenessPolicyResponse_builder) Build() *GetUniquenessPolicyResponse { + m0 := &GetUniquenessPolicyResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Policy = b.Policy + x.BackfillTaskComplete = b.BackfillTaskComplete + return m0 +} + type UpdateUniquenessPolicyRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Policy *UniquenessPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1167,11 +1583,6 @@ func (x *UpdateUniquenessPolicyRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateUniquenessPolicyRequest.ProtoReflect.Descriptor instead. -func (*UpdateUniquenessPolicyRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{20} -} - func (x *UpdateUniquenessPolicyRequest) GetPolicy() *UniquenessPolicy { if x != nil { return x.Policy @@ -1179,8 +1590,37 @@ func (x *UpdateUniquenessPolicyRequest) GetPolicy() *UniquenessPolicy { return nil } +func (x *UpdateUniquenessPolicyRequest) SetPolicy(v *UniquenessPolicy) { + x.Policy = v +} + +func (x *UpdateUniquenessPolicyRequest) HasPolicy() bool { + if x == nil { + return false + } + return x.Policy != nil +} + +func (x *UpdateUniquenessPolicyRequest) ClearPolicy() { + x.Policy = nil +} + +type UpdateUniquenessPolicyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Policy *UniquenessPolicy +} + +func (b0 UpdateUniquenessPolicyRequest_builder) Build() *UpdateUniquenessPolicyRequest { + m0 := &UpdateUniquenessPolicyRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Policy = b.Policy + return m0 +} + type UpdateUniquenessPolicyResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1210,13 +1650,20 @@ func (x *UpdateUniquenessPolicyResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateUniquenessPolicyResponse.ProtoReflect.Descriptor instead. -func (*UpdateUniquenessPolicyResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{21} +type UpdateUniquenessPolicyResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateUniquenessPolicyResponse_builder) Build() *UpdateUniquenessPolicyResponse { + m0 := &UpdateUniquenessPolicyResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListServerUniquenessCollisionsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Token of the page to retrieve. If not specified, the first page of // results will be returned. Use the value obtained from `next_page_token` // in the previous response in order to request the next page of results. @@ -1259,11 +1706,6 @@ func (x *ListServerUniquenessCollisionsRequest) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use ListServerUniquenessCollisionsRequest.ProtoReflect.Descriptor instead. -func (*ListServerUniquenessCollisionsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{22} -} - func (x *ListServerUniquenessCollisionsRequest) GetPageToken() string { if x != nil { return x.PageToken @@ -1285,8 +1727,48 @@ func (x *ListServerUniquenessCollisionsRequest) GetCollisionType() CollisionType return CollisionType_COLLISION_TYPE_UNSPECIFIED } +func (x *ListServerUniquenessCollisionsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListServerUniquenessCollisionsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListServerUniquenessCollisionsRequest) SetCollisionType(v CollisionType) { + x.CollisionType = v +} + +type ListServerUniquenessCollisionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Token of the page to retrieve. If not specified, the first page of + // results will be returned. Use the value obtained from `next_page_token` + // in the previous response in order to request the next page of results. + PageToken string + // Number of elements to retrieve in a single page. + // When too large a page is requested, the server may decide to further + // limit the number of returned resources. + PageSize uint32 + // The desired collision type to filter by. + // This must be specified. Only collisions of the specified type will be returned, + // continue to page through results until no more collisions of the specified + // type are returned. + CollisionType CollisionType +} + +func (b0 ListServerUniquenessCollisionsRequest_builder) Build() *ListServerUniquenessCollisionsRequest { + m0 := &ListServerUniquenessCollisionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageToken = b.PageToken + x.PageSize = b.PageSize + x.CollisionType = b.CollisionType + return m0 +} + type ListServerUniquenessCollisionsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The collisions. Collisions []*Collision `protobuf:"bytes,1,rep,name=collisions,proto3" json:"collisions,omitempty"` // Pagination token used to retrieve the next page of results. @@ -1323,11 +1805,6 @@ func (x *ListServerUniquenessCollisionsResponse) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use ListServerUniquenessCollisionsResponse.ProtoReflect.Descriptor instead. -func (*ListServerUniquenessCollisionsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{23} -} - func (x *ListServerUniquenessCollisionsResponse) GetCollisions() []*Collision { if x != nil { return x.Collisions @@ -1342,8 +1819,37 @@ func (x *ListServerUniquenessCollisionsResponse) GetNextPageToken() string { return "" } +func (x *ListServerUniquenessCollisionsResponse) SetCollisions(v []*Collision) { + x.Collisions = v +} + +func (x *ListServerUniquenessCollisionsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListServerUniquenessCollisionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The collisions. + Collisions []*Collision + // Pagination token used to retrieve the next page of results. + // Pass the content of this string as the `page_token` attribute of + // the next request. `next_page_token` is not returned for the last + // page. + NextPageToken string +} + +func (b0 ListServerUniquenessCollisionsResponse_builder) Build() *ListServerUniquenessCollisionsResponse { + m0 := &ListServerUniquenessCollisionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Collisions = b.Collisions + x.NextPageToken = b.NextPageToken + return m0 +} + type RunServerUniquenessBackfillTaskRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1373,13 +1879,20 @@ func (x *RunServerUniquenessBackfillTaskRequest) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use RunServerUniquenessBackfillTaskRequest.ProtoReflect.Descriptor instead. -func (*RunServerUniquenessBackfillTaskRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{24} +type RunServerUniquenessBackfillTaskRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RunServerUniquenessBackfillTaskRequest_builder) Build() *RunServerUniquenessBackfillTaskRequest { + m0 := &RunServerUniquenessBackfillTaskRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type RunServerUniquenessBackfillTaskResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1409,13 +1922,20 @@ func (x *RunServerUniquenessBackfillTaskResponse) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use RunServerUniquenessBackfillTaskResponse.ProtoReflect.Descriptor instead. -func (*RunServerUniquenessBackfillTaskResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{25} +type RunServerUniquenessBackfillTaskResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RunServerUniquenessBackfillTaskResponse_builder) Build() *RunServerUniquenessBackfillTaskResponse { + m0 := &RunServerUniquenessBackfillTaskResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetReviewFlowGracePeriodPolicyRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1445,13 +1965,20 @@ func (x *GetReviewFlowGracePeriodPolicyRequest) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use GetReviewFlowGracePeriodPolicyRequest.ProtoReflect.Descriptor instead. -func (*GetReviewFlowGracePeriodPolicyRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{26} +type GetReviewFlowGracePeriodPolicyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetReviewFlowGracePeriodPolicyRequest_builder) Build() *GetReviewFlowGracePeriodPolicyRequest { + m0 := &GetReviewFlowGracePeriodPolicyRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetReviewFlowGracePeriodPolicyResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The current grace period policy settings. Policy *ReviewFlowGracePeriodPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` unknownFields protoimpl.UnknownFields @@ -1483,11 +2010,6 @@ func (x *GetReviewFlowGracePeriodPolicyResponse) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use GetReviewFlowGracePeriodPolicyResponse.ProtoReflect.Descriptor instead. -func (*GetReviewFlowGracePeriodPolicyResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{27} -} - func (x *GetReviewFlowGracePeriodPolicyResponse) GetPolicy() *ReviewFlowGracePeriodPolicy { if x != nil { return x.Policy @@ -1495,8 +2017,38 @@ func (x *GetReviewFlowGracePeriodPolicyResponse) GetPolicy() *ReviewFlowGracePer return nil } +func (x *GetReviewFlowGracePeriodPolicyResponse) SetPolicy(v *ReviewFlowGracePeriodPolicy) { + x.Policy = v +} + +func (x *GetReviewFlowGracePeriodPolicyResponse) HasPolicy() bool { + if x == nil { + return false + } + return x.Policy != nil +} + +func (x *GetReviewFlowGracePeriodPolicyResponse) ClearPolicy() { + x.Policy = nil +} + +type GetReviewFlowGracePeriodPolicyResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The current grace period policy settings. + Policy *ReviewFlowGracePeriodPolicy +} + +func (b0 GetReviewFlowGracePeriodPolicyResponse_builder) Build() *GetReviewFlowGracePeriodPolicyResponse { + m0 := &GetReviewFlowGracePeriodPolicyResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Policy = b.Policy + return m0 +} + type UpdateReviewFlowGracePeriodPolicyRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The new grace period policy settings. Policy *ReviewFlowGracePeriodPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` unknownFields protoimpl.UnknownFields @@ -1528,11 +2080,6 @@ func (x *UpdateReviewFlowGracePeriodPolicyRequest) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use UpdateReviewFlowGracePeriodPolicyRequest.ProtoReflect.Descriptor instead. -func (*UpdateReviewFlowGracePeriodPolicyRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{28} -} - func (x *UpdateReviewFlowGracePeriodPolicyRequest) GetPolicy() *ReviewFlowGracePeriodPolicy { if x != nil { return x.Policy @@ -1540,8 +2087,38 @@ func (x *UpdateReviewFlowGracePeriodPolicyRequest) GetPolicy() *ReviewFlowGraceP return nil } +func (x *UpdateReviewFlowGracePeriodPolicyRequest) SetPolicy(v *ReviewFlowGracePeriodPolicy) { + x.Policy = v +} + +func (x *UpdateReviewFlowGracePeriodPolicyRequest) HasPolicy() bool { + if x == nil { + return false + } + return x.Policy != nil +} + +func (x *UpdateReviewFlowGracePeriodPolicyRequest) ClearPolicy() { + x.Policy = nil +} + +type UpdateReviewFlowGracePeriodPolicyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The new grace period policy settings. + Policy *ReviewFlowGracePeriodPolicy +} + +func (b0 UpdateReviewFlowGracePeriodPolicyRequest_builder) Build() *UpdateReviewFlowGracePeriodPolicyRequest { + m0 := &UpdateReviewFlowGracePeriodPolicyRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Policy = b.Policy + return m0 +} + type UpdateReviewFlowGracePeriodPolicyResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1571,13 +2148,20 @@ func (x *UpdateReviewFlowGracePeriodPolicyResponse) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use UpdateReviewFlowGracePeriodPolicyResponse.ProtoReflect.Descriptor instead. -func (*UpdateReviewFlowGracePeriodPolicyResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{29} +type UpdateReviewFlowGracePeriodPolicyResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateReviewFlowGracePeriodPolicyResponse_builder) Build() *UpdateReviewFlowGracePeriodPolicyResponse { + m0 := &UpdateReviewFlowGracePeriodPolicyResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetClusterUsageRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The timestamp of the beginning time of a date range. StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The timestamp of the ending time of a date range. @@ -1611,11 +2195,6 @@ func (x *GetClusterUsageRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetClusterUsageRequest.ProtoReflect.Descriptor instead. -func (*GetClusterUsageRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{30} -} - func (x *GetClusterUsageRequest) GetStartTime() *timestamppb.Timestamp { if x != nil { return x.StartTime @@ -1630,8 +2209,56 @@ func (x *GetClusterUsageRequest) GetEndTime() *timestamppb.Timestamp { return nil } +func (x *GetClusterUsageRequest) SetStartTime(v *timestamppb.Timestamp) { + x.StartTime = v +} + +func (x *GetClusterUsageRequest) SetEndTime(v *timestamppb.Timestamp) { + x.EndTime = v +} + +func (x *GetClusterUsageRequest) HasStartTime() bool { + if x == nil { + return false + } + return x.StartTime != nil +} + +func (x *GetClusterUsageRequest) HasEndTime() bool { + if x == nil { + return false + } + return x.EndTime != nil +} + +func (x *GetClusterUsageRequest) ClearStartTime() { + x.StartTime = nil +} + +func (x *GetClusterUsageRequest) ClearEndTime() { + x.EndTime = nil +} + +type GetClusterUsageRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The timestamp of the beginning time of a date range. + StartTime *timestamppb.Timestamp + // The timestamp of the ending time of a date range. + EndTime *timestamppb.Timestamp +} + +func (b0 GetClusterUsageRequest_builder) Build() *GetClusterUsageRequest { + m0 := &GetClusterUsageRequest{} + b, x := &b0, m0 + _, _ = b, x + x.StartTime = b.StartTime + x.EndTime = b.EndTime + return m0 +} + type GetClusterUsageResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Usage []*MonthlyUsage `protobuf:"bytes,1,rep,name=usage,proto3" json:"usage,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1662,11 +2289,6 @@ func (x *GetClusterUsageResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetClusterUsageResponse.ProtoReflect.Descriptor instead. -func (*GetClusterUsageResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP(), []int{31} -} - func (x *GetClusterUsageResponse) GetUsage() []*MonthlyUsage { if x != nil { return x.Usage @@ -1674,6 +2296,24 @@ func (x *GetClusterUsageResponse) GetUsage() []*MonthlyUsage { return nil } +func (x *GetClusterUsageResponse) SetUsage(v []*MonthlyUsage) { + x.Usage = v +} + +type GetClusterUsageResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Usage []*MonthlyUsage +} + +func (b0 GetClusterUsageResponse_builder) Build() *GetClusterUsageResponse { + m0 := &GetClusterUsageResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Usage = b.Usage + return m0 +} + var File_buf_alpha_registry_v1alpha1_admin_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_admin_proto_rawDesc = []byte{ @@ -2077,18 +2717,6 @@ var file_buf_alpha_registry_v1alpha1_admin_proto_rawDesc = []byte{ 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_admin_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_admin_proto_rawDescData = file_buf_alpha_registry_v1alpha1_admin_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_admin_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_admin_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_admin_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_admin_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_admin_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_admin_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 32) var file_buf_alpha_registry_v1alpha1_admin_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/admin_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/admin_protoopaque.pb.go new file mode 100644 index 0000000000..078739b488 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/admin_protoopaque.pb.go @@ -0,0 +1,2827 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/admin.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// BreakingChangeCategory is the allowed list of categories for breaking rule settings. +type BreakingChangeCategory int32 + +const ( + BreakingChangeCategory_BREAKING_CHANGE_CATEGORY_UNSPECIFIED BreakingChangeCategory = 0 + BreakingChangeCategory_BREAKING_CHANGE_CATEGORY_FILE BreakingChangeCategory = 1 + BreakingChangeCategory_BREAKING_CHANGE_CATEGORY_WIRE_JSON BreakingChangeCategory = 2 +) + +// Enum value maps for BreakingChangeCategory. +var ( + BreakingChangeCategory_name = map[int32]string{ + 0: "BREAKING_CHANGE_CATEGORY_UNSPECIFIED", + 1: "BREAKING_CHANGE_CATEGORY_FILE", + 2: "BREAKING_CHANGE_CATEGORY_WIRE_JSON", + } + BreakingChangeCategory_value = map[string]int32{ + "BREAKING_CHANGE_CATEGORY_UNSPECIFIED": 0, + "BREAKING_CHANGE_CATEGORY_FILE": 1, + "BREAKING_CHANGE_CATEGORY_WIRE_JSON": 2, + } +) + +func (x BreakingChangeCategory) Enum() *BreakingChangeCategory { + p := new(BreakingChangeCategory) + *p = x + return p +} + +func (x BreakingChangeCategory) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BreakingChangeCategory) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_admin_proto_enumTypes[0].Descriptor() +} + +func (BreakingChangeCategory) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_admin_proto_enumTypes[0] +} + +func (x BreakingChangeCategory) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// CollisionType is the type of collisions that can occur. +type CollisionType int32 + +const ( + // Unspecified collision type. + CollisionType_COLLISION_TYPE_UNSPECIFIED CollisionType = 0 + // A fully qualified proto name + CollisionType_COLLISION_TYPE_FULLY_QUALIFIED_NAME CollisionType = 1 + // A proto file path + CollisionType_COLLISION_TYPE_PATH CollisionType = 2 +) + +// Enum value maps for CollisionType. +var ( + CollisionType_name = map[int32]string{ + 0: "COLLISION_TYPE_UNSPECIFIED", + 1: "COLLISION_TYPE_FULLY_QUALIFIED_NAME", + 2: "COLLISION_TYPE_PATH", + } + CollisionType_value = map[string]int32{ + "COLLISION_TYPE_UNSPECIFIED": 0, + "COLLISION_TYPE_FULLY_QUALIFIED_NAME": 1, + "COLLISION_TYPE_PATH": 2, + } +) + +func (x CollisionType) Enum() *CollisionType { + p := new(CollisionType) + *p = x + return p +} + +func (x CollisionType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CollisionType) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_admin_proto_enumTypes[1].Descriptor() +} + +func (CollisionType) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_admin_proto_enumTypes[1] +} + +func (x CollisionType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type BreakingChangePolicy struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3,oneof" json:"enabled,omitempty"` + xxx_hidden_IgnoreUnstablePackages bool `protobuf:"varint,2,opt,name=ignore_unstable_packages,json=ignoreUnstablePackages,proto3,oneof" json:"ignore_unstable_packages,omitempty"` + xxx_hidden_Category BreakingChangeCategory `protobuf:"varint,3,opt,name=category,proto3,enum=buf.alpha.registry.v1alpha1.BreakingChangeCategory" json:"category,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BreakingChangePolicy) Reset() { + *x = BreakingChangePolicy{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BreakingChangePolicy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BreakingChangePolicy) ProtoMessage() {} + +func (x *BreakingChangePolicy) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *BreakingChangePolicy) GetEnabled() bool { + if x != nil { + return x.xxx_hidden_Enabled + } + return false +} + +func (x *BreakingChangePolicy) GetIgnoreUnstablePackages() bool { + if x != nil { + return x.xxx_hidden_IgnoreUnstablePackages + } + return false +} + +func (x *BreakingChangePolicy) GetCategory() BreakingChangeCategory { + if x != nil { + return x.xxx_hidden_Category + } + return BreakingChangeCategory_BREAKING_CHANGE_CATEGORY_UNSPECIFIED +} + +func (x *BreakingChangePolicy) SetEnabled(v bool) { + x.xxx_hidden_Enabled = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 3) +} + +func (x *BreakingChangePolicy) SetIgnoreUnstablePackages(v bool) { + x.xxx_hidden_IgnoreUnstablePackages = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 3) +} + +func (x *BreakingChangePolicy) SetCategory(v BreakingChangeCategory) { + x.xxx_hidden_Category = v +} + +func (x *BreakingChangePolicy) HasEnabled() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *BreakingChangePolicy) HasIgnoreUnstablePackages() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *BreakingChangePolicy) ClearEnabled() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_Enabled = false +} + +func (x *BreakingChangePolicy) ClearIgnoreUnstablePackages() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_IgnoreUnstablePackages = false +} + +type BreakingChangePolicy_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Enabled *bool + IgnoreUnstablePackages *bool + Category BreakingChangeCategory +} + +func (b0 BreakingChangePolicy_builder) Build() *BreakingChangePolicy { + m0 := &BreakingChangePolicy{} + b, x := &b0, m0 + _, _ = b, x + if b.Enabled != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 3) + x.xxx_hidden_Enabled = *b.Enabled + } + if b.IgnoreUnstablePackages != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 3) + x.xxx_hidden_IgnoreUnstablePackages = *b.IgnoreUnstablePackages + } + x.xxx_hidden_Category = b.Category + return m0 +} + +// UniquenessPolicy is the policy for uniqueness on the server. +type UniquenessPolicy struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UniquenessPolicy) Reset() { + *x = UniquenessPolicy{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UniquenessPolicy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UniquenessPolicy) ProtoMessage() {} + +func (x *UniquenessPolicy) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UniquenessPolicy) GetEnabled() bool { + if x != nil { + return x.xxx_hidden_Enabled + } + return false +} + +func (x *UniquenessPolicy) SetEnabled(v bool) { + x.xxx_hidden_Enabled = v +} + +type UniquenessPolicy_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Whether uniqueness policy is enforced. + Enabled bool +} + +func (b0 UniquenessPolicy_builder) Build() *UniquenessPolicy { + m0 := &UniquenessPolicy{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Enabled = b.Enabled + return m0 +} + +// ReviewFlowGracePeriodPolicy is the policy for the review flow grace period on the server. +type ReviewFlowGracePeriodPolicy struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DurationSeconds uint32 `protobuf:"varint,1,opt,name=duration_seconds,json=durationSeconds,proto3" json:"duration_seconds,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ReviewFlowGracePeriodPolicy) Reset() { + *x = ReviewFlowGracePeriodPolicy{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ReviewFlowGracePeriodPolicy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReviewFlowGracePeriodPolicy) ProtoMessage() {} + +func (x *ReviewFlowGracePeriodPolicy) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ReviewFlowGracePeriodPolicy) GetDurationSeconds() uint32 { + if x != nil { + return x.xxx_hidden_DurationSeconds + } + return 0 +} + +func (x *ReviewFlowGracePeriodPolicy) SetDurationSeconds(v uint32) { + x.xxx_hidden_DurationSeconds = v +} + +type ReviewFlowGracePeriodPolicy_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The number of seconds of the grace period. + // Set to zero to disable the grace period. + DurationSeconds uint32 +} + +func (b0 ReviewFlowGracePeriodPolicy_builder) Build() *ReviewFlowGracePeriodPolicy { + m0 := &ReviewFlowGracePeriodPolicy{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DurationSeconds = b.DurationSeconds + return m0 +} + +// Collision is a collision that has occurred. +type Collision struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Reference string `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"` + xxx_hidden_Type CollisionType `protobuf:"varint,2,opt,name=type,proto3,enum=buf.alpha.registry.v1alpha1.CollisionType" json:"type,omitempty"` + xxx_hidden_Sources *[]*CollisionSource `protobuf:"bytes,3,rep,name=sources,proto3" json:"sources,omitempty"` + xxx_hidden_HasOtherCollisionSources bool `protobuf:"varint,4,opt,name=has_other_collision_sources,json=hasOtherCollisionSources,proto3" json:"has_other_collision_sources,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Collision) Reset() { + *x = Collision{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Collision) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Collision) ProtoMessage() {} + +func (x *Collision) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Collision) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *Collision) GetType() CollisionType { + if x != nil { + return x.xxx_hidden_Type + } + return CollisionType_COLLISION_TYPE_UNSPECIFIED +} + +func (x *Collision) GetSources() []*CollisionSource { + if x != nil { + if x.xxx_hidden_Sources != nil { + return *x.xxx_hidden_Sources + } + } + return nil +} + +func (x *Collision) GetHasOtherCollisionSources() bool { + if x != nil { + return x.xxx_hidden_HasOtherCollisionSources + } + return false +} + +func (x *Collision) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +func (x *Collision) SetType(v CollisionType) { + x.xxx_hidden_Type = v +} + +func (x *Collision) SetSources(v []*CollisionSource) { + x.xxx_hidden_Sources = &v +} + +func (x *Collision) SetHasOtherCollisionSources(v bool) { + x.xxx_hidden_HasOtherCollisionSources = v +} + +type Collision_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The reference that has collisions. + Reference string + // The type of collision. + Type CollisionType + // The sources of the collision that the user is authorized to see. + Sources []*CollisionSource + // Whether there are other collision sources that the user is not authorized to see. + // The user should contact a server admin for more information about these collisions. + HasOtherCollisionSources bool +} + +func (b0 Collision_builder) Build() *Collision { + m0 := &Collision{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Reference = b.Reference + x.xxx_hidden_Type = b.Type + x.xxx_hidden_Sources = &b.Sources + x.xxx_hidden_HasOtherCollisionSources = b.HasOtherCollisionSources + return m0 +} + +// CollisionSource is the source of a collision +type CollisionSource struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CollisionSource) Reset() { + *x = CollisionSource{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CollisionSource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CollisionSource) ProtoMessage() {} + +func (x *CollisionSource) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CollisionSource) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *CollisionSource) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *CollisionSource) GetPath() string { + if x != nil { + return x.xxx_hidden_Path + } + return "" +} + +func (x *CollisionSource) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *CollisionSource) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *CollisionSource) SetPath(v string) { + x.xxx_hidden_Path = v +} + +type CollisionSource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the owner of the source. + OwnerName string + // The name of the repository of the source. + RepositoryName string + // The path of the file that is the source of the collision. + Path string +} + +func (b0 CollisionSource_builder) Build() *CollisionSource { + m0 := &CollisionSource{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_Path = b.Path + return m0 +} + +// MonthlyUsage contains the total amount of message, enum and services types +// for every organizations repositories within a single tenant BSR instance +// for a given month and year. +type MonthlyUsage struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Month uint32 `protobuf:"varint,1,opt,name=month,proto3" json:"month,omitempty"` + xxx_hidden_Year uint32 `protobuf:"varint,2,opt,name=year,proto3" json:"year,omitempty"` + xxx_hidden_TotalMessageTypes uint32 `protobuf:"varint,3,opt,name=total_message_types,json=totalMessageTypes,proto3" json:"total_message_types,omitempty"` + xxx_hidden_TotalEnumTypes uint32 `protobuf:"varint,4,opt,name=total_enum_types,json=totalEnumTypes,proto3" json:"total_enum_types,omitempty"` + xxx_hidden_TotalMethodTypes uint32 `protobuf:"varint,5,opt,name=total_method_types,json=totalMethodTypes,proto3" json:"total_method_types,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MonthlyUsage) Reset() { + *x = MonthlyUsage{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MonthlyUsage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MonthlyUsage) ProtoMessage() {} + +func (x *MonthlyUsage) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MonthlyUsage) GetMonth() uint32 { + if x != nil { + return x.xxx_hidden_Month + } + return 0 +} + +func (x *MonthlyUsage) GetYear() uint32 { + if x != nil { + return x.xxx_hidden_Year + } + return 0 +} + +func (x *MonthlyUsage) GetTotalMessageTypes() uint32 { + if x != nil { + return x.xxx_hidden_TotalMessageTypes + } + return 0 +} + +func (x *MonthlyUsage) GetTotalEnumTypes() uint32 { + if x != nil { + return x.xxx_hidden_TotalEnumTypes + } + return 0 +} + +func (x *MonthlyUsage) GetTotalMethodTypes() uint32 { + if x != nil { + return x.xxx_hidden_TotalMethodTypes + } + return 0 +} + +func (x *MonthlyUsage) SetMonth(v uint32) { + x.xxx_hidden_Month = v +} + +func (x *MonthlyUsage) SetYear(v uint32) { + x.xxx_hidden_Year = v +} + +func (x *MonthlyUsage) SetTotalMessageTypes(v uint32) { + x.xxx_hidden_TotalMessageTypes = v +} + +func (x *MonthlyUsage) SetTotalEnumTypes(v uint32) { + x.xxx_hidden_TotalEnumTypes = v +} + +func (x *MonthlyUsage) SetTotalMethodTypes(v uint32) { + x.xxx_hidden_TotalMethodTypes = v +} + +type MonthlyUsage_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The month, between 1 and 12. + Month uint32 + // The year, between 2020 and the current year. + Year uint32 + // The total amount of message types for the month and year. + TotalMessageTypes uint32 + // The total amount of enum types for the month and year. + TotalEnumTypes uint32 + // The total amount of method types for the month and year. + TotalMethodTypes uint32 +} + +func (b0 MonthlyUsage_builder) Build() *MonthlyUsage { + m0 := &MonthlyUsage{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Month = b.Month + x.xxx_hidden_Year = b.Year + x.xxx_hidden_TotalMessageTypes = b.TotalMessageTypes + x.xxx_hidden_TotalEnumTypes = b.TotalEnumTypes + x.xxx_hidden_TotalMethodTypes = b.TotalMethodTypes + return m0 +} + +type ForceDeleteUserRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ForceDeleteUserRequest) Reset() { + *x = ForceDeleteUserRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ForceDeleteUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ForceDeleteUserRequest) ProtoMessage() {} + +func (x *ForceDeleteUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ForceDeleteUserRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *ForceDeleteUserRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +type ForceDeleteUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + UserId string +} + +func (b0 ForceDeleteUserRequest_builder) Build() *ForceDeleteUserRequest { + m0 := &ForceDeleteUserRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UserId = b.UserId + return m0 +} + +type ForceDeleteUserResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + xxx_hidden_Organizations *[]*Organization `protobuf:"bytes,2,rep,name=organizations,proto3" json:"organizations,omitempty"` + xxx_hidden_Repositories *[]*Repository `protobuf:"bytes,3,rep,name=repositories,proto3" json:"repositories,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ForceDeleteUserResponse) Reset() { + *x = ForceDeleteUserResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ForceDeleteUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ForceDeleteUserResponse) ProtoMessage() {} + +func (x *ForceDeleteUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ForceDeleteUserResponse) GetUser() *User { + if x != nil { + return x.xxx_hidden_User + } + return nil +} + +func (x *ForceDeleteUserResponse) GetOrganizations() []*Organization { + if x != nil { + if x.xxx_hidden_Organizations != nil { + return *x.xxx_hidden_Organizations + } + } + return nil +} + +func (x *ForceDeleteUserResponse) GetRepositories() []*Repository { + if x != nil { + if x.xxx_hidden_Repositories != nil { + return *x.xxx_hidden_Repositories + } + } + return nil +} + +func (x *ForceDeleteUserResponse) SetUser(v *User) { + x.xxx_hidden_User = v +} + +func (x *ForceDeleteUserResponse) SetOrganizations(v []*Organization) { + x.xxx_hidden_Organizations = &v +} + +func (x *ForceDeleteUserResponse) SetRepositories(v []*Repository) { + x.xxx_hidden_Repositories = &v +} + +func (x *ForceDeleteUserResponse) HasUser() bool { + if x == nil { + return false + } + return x.xxx_hidden_User != nil +} + +func (x *ForceDeleteUserResponse) ClearUser() { + x.xxx_hidden_User = nil +} + +type ForceDeleteUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The deleted user. + User *User + // The deleted organizations. + Organizations []*Organization + // The deleted repositories. + Repositories []*Repository +} + +func (b0 ForceDeleteUserResponse_builder) Build() *ForceDeleteUserResponse { + m0 := &ForceDeleteUserResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_User = b.User + x.xxx_hidden_Organizations = &b.Organizations + x.xxx_hidden_Repositories = &b.Repositories + return m0 +} + +type UpdateUserVerificationStatusRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + xxx_hidden_VerificationStatus VerificationStatus `protobuf:"varint,2,opt,name=verification_status,json=verificationStatus,proto3,enum=buf.alpha.registry.v1alpha1.VerificationStatus" json:"verification_status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUserVerificationStatusRequest) Reset() { + *x = UpdateUserVerificationStatusRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUserVerificationStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserVerificationStatusRequest) ProtoMessage() {} + +func (x *UpdateUserVerificationStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateUserVerificationStatusRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *UpdateUserVerificationStatusRequest) GetVerificationStatus() VerificationStatus { + if x != nil { + return x.xxx_hidden_VerificationStatus + } + return VerificationStatus_VERIFICATION_STATUS_UNSPECIFIED +} + +func (x *UpdateUserVerificationStatusRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +func (x *UpdateUserVerificationStatusRequest) SetVerificationStatus(v VerificationStatus) { + x.xxx_hidden_VerificationStatus = v +} + +type UpdateUserVerificationStatusRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + UserId string + VerificationStatus VerificationStatus +} + +func (b0 UpdateUserVerificationStatusRequest_builder) Build() *UpdateUserVerificationStatusRequest { + m0 := &UpdateUserVerificationStatusRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UserId = b.UserId + x.xxx_hidden_VerificationStatus = b.VerificationStatus + return m0 +} + +type UpdateUserVerificationStatusResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUserVerificationStatusResponse) Reset() { + *x = UpdateUserVerificationStatusResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUserVerificationStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserVerificationStatusResponse) ProtoMessage() {} + +func (x *UpdateUserVerificationStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UpdateUserVerificationStatusResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateUserVerificationStatusResponse_builder) Build() *UpdateUserVerificationStatusResponse { + m0 := &UpdateUserVerificationStatusResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type UpdateOrganizationVerificationStatusRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_VerificationStatus VerificationStatus `protobuf:"varint,2,opt,name=verification_status,json=verificationStatus,proto3,enum=buf.alpha.registry.v1alpha1.VerificationStatus" json:"verification_status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateOrganizationVerificationStatusRequest) Reset() { + *x = UpdateOrganizationVerificationStatusRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateOrganizationVerificationStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateOrganizationVerificationStatusRequest) ProtoMessage() {} + +func (x *UpdateOrganizationVerificationStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateOrganizationVerificationStatusRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *UpdateOrganizationVerificationStatusRequest) GetVerificationStatus() VerificationStatus { + if x != nil { + return x.xxx_hidden_VerificationStatus + } + return VerificationStatus_VERIFICATION_STATUS_UNSPECIFIED +} + +func (x *UpdateOrganizationVerificationStatusRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *UpdateOrganizationVerificationStatusRequest) SetVerificationStatus(v VerificationStatus) { + x.xxx_hidden_VerificationStatus = v +} + +type UpdateOrganizationVerificationStatusRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + OrganizationId string + VerificationStatus VerificationStatus +} + +func (b0 UpdateOrganizationVerificationStatusRequest_builder) Build() *UpdateOrganizationVerificationStatusRequest { + m0 := &UpdateOrganizationVerificationStatusRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_VerificationStatus = b.VerificationStatus + return m0 +} + +type UpdateOrganizationVerificationStatusResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateOrganizationVerificationStatusResponse) Reset() { + *x = UpdateOrganizationVerificationStatusResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateOrganizationVerificationStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateOrganizationVerificationStatusResponse) ProtoMessage() {} + +func (x *UpdateOrganizationVerificationStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UpdateOrganizationVerificationStatusResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateOrganizationVerificationStatusResponse_builder) Build() *UpdateOrganizationVerificationStatusResponse { + m0 := &UpdateOrganizationVerificationStatusResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type CreateMachineUserRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateMachineUserRequest) Reset() { + *x = CreateMachineUserRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateMachineUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateMachineUserRequest) ProtoMessage() {} + +func (x *CreateMachineUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateMachineUserRequest) GetUsername() string { + if x != nil { + return x.xxx_hidden_Username + } + return "" +} + +func (x *CreateMachineUserRequest) SetUsername(v string) { + x.xxx_hidden_Username = v +} + +type CreateMachineUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Username string +} + +func (b0 CreateMachineUserRequest_builder) Build() *CreateMachineUserRequest { + m0 := &CreateMachineUserRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Username = b.Username + return m0 +} + +type CreateMachineUserResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateMachineUserResponse) Reset() { + *x = CreateMachineUserResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateMachineUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateMachineUserResponse) ProtoMessage() {} + +func (x *CreateMachineUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateMachineUserResponse) GetUser() *User { + if x != nil { + return x.xxx_hidden_User + } + return nil +} + +func (x *CreateMachineUserResponse) SetUser(v *User) { + x.xxx_hidden_User = v +} + +func (x *CreateMachineUserResponse) HasUser() bool { + if x == nil { + return false + } + return x.xxx_hidden_User != nil +} + +func (x *CreateMachineUserResponse) ClearUser() { + x.xxx_hidden_User = nil +} + +type CreateMachineUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User +} + +func (b0 CreateMachineUserResponse_builder) Build() *CreateMachineUserResponse { + m0 := &CreateMachineUserResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_User = b.User + return m0 +} + +type GetBreakingChangePolicyRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetBreakingChangePolicyRequest) Reset() { + *x = GetBreakingChangePolicyRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetBreakingChangePolicyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBreakingChangePolicyRequest) ProtoMessage() {} + +func (x *GetBreakingChangePolicyRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type GetBreakingChangePolicyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetBreakingChangePolicyRequest_builder) Build() *GetBreakingChangePolicyRequest { + m0 := &GetBreakingChangePolicyRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetBreakingChangePolicyResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Policy *BreakingChangePolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetBreakingChangePolicyResponse) Reset() { + *x = GetBreakingChangePolicyResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetBreakingChangePolicyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBreakingChangePolicyResponse) ProtoMessage() {} + +func (x *GetBreakingChangePolicyResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetBreakingChangePolicyResponse) GetPolicy() *BreakingChangePolicy { + if x != nil { + return x.xxx_hidden_Policy + } + return nil +} + +func (x *GetBreakingChangePolicyResponse) SetPolicy(v *BreakingChangePolicy) { + x.xxx_hidden_Policy = v +} + +func (x *GetBreakingChangePolicyResponse) HasPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_Policy != nil +} + +func (x *GetBreakingChangePolicyResponse) ClearPolicy() { + x.xxx_hidden_Policy = nil +} + +type GetBreakingChangePolicyResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Policy *BreakingChangePolicy +} + +func (b0 GetBreakingChangePolicyResponse_builder) Build() *GetBreakingChangePolicyResponse { + m0 := &GetBreakingChangePolicyResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Policy = b.Policy + return m0 +} + +type UpdateBreakingChangePolicyRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Policy *BreakingChangePolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateBreakingChangePolicyRequest) Reset() { + *x = UpdateBreakingChangePolicyRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateBreakingChangePolicyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateBreakingChangePolicyRequest) ProtoMessage() {} + +func (x *UpdateBreakingChangePolicyRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateBreakingChangePolicyRequest) GetPolicy() *BreakingChangePolicy { + if x != nil { + return x.xxx_hidden_Policy + } + return nil +} + +func (x *UpdateBreakingChangePolicyRequest) SetPolicy(v *BreakingChangePolicy) { + x.xxx_hidden_Policy = v +} + +func (x *UpdateBreakingChangePolicyRequest) HasPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_Policy != nil +} + +func (x *UpdateBreakingChangePolicyRequest) ClearPolicy() { + x.xxx_hidden_Policy = nil +} + +type UpdateBreakingChangePolicyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Policy *BreakingChangePolicy +} + +func (b0 UpdateBreakingChangePolicyRequest_builder) Build() *UpdateBreakingChangePolicyRequest { + m0 := &UpdateBreakingChangePolicyRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Policy = b.Policy + return m0 +} + +type UpdateBreakingChangePolicyResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateBreakingChangePolicyResponse) Reset() { + *x = UpdateBreakingChangePolicyResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateBreakingChangePolicyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateBreakingChangePolicyResponse) ProtoMessage() {} + +func (x *UpdateBreakingChangePolicyResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UpdateBreakingChangePolicyResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateBreakingChangePolicyResponse_builder) Build() *UpdateBreakingChangePolicyResponse { + m0 := &UpdateBreakingChangePolicyResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetUniquenessPolicyRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUniquenessPolicyRequest) Reset() { + *x = GetUniquenessPolicyRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUniquenessPolicyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUniquenessPolicyRequest) ProtoMessage() {} + +func (x *GetUniquenessPolicyRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type GetUniquenessPolicyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetUniquenessPolicyRequest_builder) Build() *GetUniquenessPolicyRequest { + m0 := &GetUniquenessPolicyRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetUniquenessPolicyResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Policy *UniquenessPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` + xxx_hidden_BackfillTaskComplete bool `protobuf:"varint,2,opt,name=backfill_task_complete,json=backfillTaskComplete,proto3" json:"backfill_task_complete,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUniquenessPolicyResponse) Reset() { + *x = GetUniquenessPolicyResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUniquenessPolicyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUniquenessPolicyResponse) ProtoMessage() {} + +func (x *GetUniquenessPolicyResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetUniquenessPolicyResponse) GetPolicy() *UniquenessPolicy { + if x != nil { + return x.xxx_hidden_Policy + } + return nil +} + +func (x *GetUniquenessPolicyResponse) GetBackfillTaskComplete() bool { + if x != nil { + return x.xxx_hidden_BackfillTaskComplete + } + return false +} + +func (x *GetUniquenessPolicyResponse) SetPolicy(v *UniquenessPolicy) { + x.xxx_hidden_Policy = v +} + +func (x *GetUniquenessPolicyResponse) SetBackfillTaskComplete(v bool) { + x.xxx_hidden_BackfillTaskComplete = v +} + +func (x *GetUniquenessPolicyResponse) HasPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_Policy != nil +} + +func (x *GetUniquenessPolicyResponse) ClearPolicy() { + x.xxx_hidden_Policy = nil +} + +type GetUniquenessPolicyResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The current uniqueness policy settings. + Policy *UniquenessPolicy + // Reports the status of the backfill task, which can be executed by the server admin with the + // RunServerUniquenessBackfillTask RPC. + BackfillTaskComplete bool +} + +func (b0 GetUniquenessPolicyResponse_builder) Build() *GetUniquenessPolicyResponse { + m0 := &GetUniquenessPolicyResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Policy = b.Policy + x.xxx_hidden_BackfillTaskComplete = b.BackfillTaskComplete + return m0 +} + +type UpdateUniquenessPolicyRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Policy *UniquenessPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUniquenessPolicyRequest) Reset() { + *x = UpdateUniquenessPolicyRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUniquenessPolicyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUniquenessPolicyRequest) ProtoMessage() {} + +func (x *UpdateUniquenessPolicyRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateUniquenessPolicyRequest) GetPolicy() *UniquenessPolicy { + if x != nil { + return x.xxx_hidden_Policy + } + return nil +} + +func (x *UpdateUniquenessPolicyRequest) SetPolicy(v *UniquenessPolicy) { + x.xxx_hidden_Policy = v +} + +func (x *UpdateUniquenessPolicyRequest) HasPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_Policy != nil +} + +func (x *UpdateUniquenessPolicyRequest) ClearPolicy() { + x.xxx_hidden_Policy = nil +} + +type UpdateUniquenessPolicyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Policy *UniquenessPolicy +} + +func (b0 UpdateUniquenessPolicyRequest_builder) Build() *UpdateUniquenessPolicyRequest { + m0 := &UpdateUniquenessPolicyRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Policy = b.Policy + return m0 +} + +type UpdateUniquenessPolicyResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUniquenessPolicyResponse) Reset() { + *x = UpdateUniquenessPolicyResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUniquenessPolicyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUniquenessPolicyResponse) ProtoMessage() {} + +func (x *UpdateUniquenessPolicyResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UpdateUniquenessPolicyResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateUniquenessPolicyResponse_builder) Build() *UpdateUniquenessPolicyResponse { + m0 := &UpdateUniquenessPolicyResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListServerUniquenessCollisionsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageToken string `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_CollisionType CollisionType `protobuf:"varint,3,opt,name=collision_type,json=collisionType,proto3,enum=buf.alpha.registry.v1alpha1.CollisionType" json:"collision_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListServerUniquenessCollisionsRequest) Reset() { + *x = ListServerUniquenessCollisionsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListServerUniquenessCollisionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListServerUniquenessCollisionsRequest) ProtoMessage() {} + +func (x *ListServerUniquenessCollisionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListServerUniquenessCollisionsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListServerUniquenessCollisionsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListServerUniquenessCollisionsRequest) GetCollisionType() CollisionType { + if x != nil { + return x.xxx_hidden_CollisionType + } + return CollisionType_COLLISION_TYPE_UNSPECIFIED +} + +func (x *ListServerUniquenessCollisionsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListServerUniquenessCollisionsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListServerUniquenessCollisionsRequest) SetCollisionType(v CollisionType) { + x.xxx_hidden_CollisionType = v +} + +type ListServerUniquenessCollisionsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Token of the page to retrieve. If not specified, the first page of + // results will be returned. Use the value obtained from `next_page_token` + // in the previous response in order to request the next page of results. + PageToken string + // Number of elements to retrieve in a single page. + // When too large a page is requested, the server may decide to further + // limit the number of returned resources. + PageSize uint32 + // The desired collision type to filter by. + // This must be specified. Only collisions of the specified type will be returned, + // continue to page through results until no more collisions of the specified + // type are returned. + CollisionType CollisionType +} + +func (b0 ListServerUniquenessCollisionsRequest_builder) Build() *ListServerUniquenessCollisionsRequest { + m0 := &ListServerUniquenessCollisionsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_CollisionType = b.CollisionType + return m0 +} + +type ListServerUniquenessCollisionsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Collisions *[]*Collision `protobuf:"bytes,1,rep,name=collisions,proto3" json:"collisions,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListServerUniquenessCollisionsResponse) Reset() { + *x = ListServerUniquenessCollisionsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListServerUniquenessCollisionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListServerUniquenessCollisionsResponse) ProtoMessage() {} + +func (x *ListServerUniquenessCollisionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListServerUniquenessCollisionsResponse) GetCollisions() []*Collision { + if x != nil { + if x.xxx_hidden_Collisions != nil { + return *x.xxx_hidden_Collisions + } + } + return nil +} + +func (x *ListServerUniquenessCollisionsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListServerUniquenessCollisionsResponse) SetCollisions(v []*Collision) { + x.xxx_hidden_Collisions = &v +} + +func (x *ListServerUniquenessCollisionsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListServerUniquenessCollisionsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The collisions. + Collisions []*Collision + // Pagination token used to retrieve the next page of results. + // Pass the content of this string as the `page_token` attribute of + // the next request. `next_page_token` is not returned for the last + // page. + NextPageToken string +} + +func (b0 ListServerUniquenessCollisionsResponse_builder) Build() *ListServerUniquenessCollisionsResponse { + m0 := &ListServerUniquenessCollisionsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Collisions = &b.Collisions + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type RunServerUniquenessBackfillTaskRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RunServerUniquenessBackfillTaskRequest) Reset() { + *x = RunServerUniquenessBackfillTaskRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RunServerUniquenessBackfillTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RunServerUniquenessBackfillTaskRequest) ProtoMessage() {} + +func (x *RunServerUniquenessBackfillTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RunServerUniquenessBackfillTaskRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RunServerUniquenessBackfillTaskRequest_builder) Build() *RunServerUniquenessBackfillTaskRequest { + m0 := &RunServerUniquenessBackfillTaskRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type RunServerUniquenessBackfillTaskResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RunServerUniquenessBackfillTaskResponse) Reset() { + *x = RunServerUniquenessBackfillTaskResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RunServerUniquenessBackfillTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RunServerUniquenessBackfillTaskResponse) ProtoMessage() {} + +func (x *RunServerUniquenessBackfillTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RunServerUniquenessBackfillTaskResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RunServerUniquenessBackfillTaskResponse_builder) Build() *RunServerUniquenessBackfillTaskResponse { + m0 := &RunServerUniquenessBackfillTaskResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetReviewFlowGracePeriodPolicyRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetReviewFlowGracePeriodPolicyRequest) Reset() { + *x = GetReviewFlowGracePeriodPolicyRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetReviewFlowGracePeriodPolicyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetReviewFlowGracePeriodPolicyRequest) ProtoMessage() {} + +func (x *GetReviewFlowGracePeriodPolicyRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type GetReviewFlowGracePeriodPolicyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetReviewFlowGracePeriodPolicyRequest_builder) Build() *GetReviewFlowGracePeriodPolicyRequest { + m0 := &GetReviewFlowGracePeriodPolicyRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetReviewFlowGracePeriodPolicyResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Policy *ReviewFlowGracePeriodPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetReviewFlowGracePeriodPolicyResponse) Reset() { + *x = GetReviewFlowGracePeriodPolicyResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetReviewFlowGracePeriodPolicyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetReviewFlowGracePeriodPolicyResponse) ProtoMessage() {} + +func (x *GetReviewFlowGracePeriodPolicyResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetReviewFlowGracePeriodPolicyResponse) GetPolicy() *ReviewFlowGracePeriodPolicy { + if x != nil { + return x.xxx_hidden_Policy + } + return nil +} + +func (x *GetReviewFlowGracePeriodPolicyResponse) SetPolicy(v *ReviewFlowGracePeriodPolicy) { + x.xxx_hidden_Policy = v +} + +func (x *GetReviewFlowGracePeriodPolicyResponse) HasPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_Policy != nil +} + +func (x *GetReviewFlowGracePeriodPolicyResponse) ClearPolicy() { + x.xxx_hidden_Policy = nil +} + +type GetReviewFlowGracePeriodPolicyResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The current grace period policy settings. + Policy *ReviewFlowGracePeriodPolicy +} + +func (b0 GetReviewFlowGracePeriodPolicyResponse_builder) Build() *GetReviewFlowGracePeriodPolicyResponse { + m0 := &GetReviewFlowGracePeriodPolicyResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Policy = b.Policy + return m0 +} + +type UpdateReviewFlowGracePeriodPolicyRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Policy *ReviewFlowGracePeriodPolicy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateReviewFlowGracePeriodPolicyRequest) Reset() { + *x = UpdateReviewFlowGracePeriodPolicyRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateReviewFlowGracePeriodPolicyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateReviewFlowGracePeriodPolicyRequest) ProtoMessage() {} + +func (x *UpdateReviewFlowGracePeriodPolicyRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateReviewFlowGracePeriodPolicyRequest) GetPolicy() *ReviewFlowGracePeriodPolicy { + if x != nil { + return x.xxx_hidden_Policy + } + return nil +} + +func (x *UpdateReviewFlowGracePeriodPolicyRequest) SetPolicy(v *ReviewFlowGracePeriodPolicy) { + x.xxx_hidden_Policy = v +} + +func (x *UpdateReviewFlowGracePeriodPolicyRequest) HasPolicy() bool { + if x == nil { + return false + } + return x.xxx_hidden_Policy != nil +} + +func (x *UpdateReviewFlowGracePeriodPolicyRequest) ClearPolicy() { + x.xxx_hidden_Policy = nil +} + +type UpdateReviewFlowGracePeriodPolicyRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The new grace period policy settings. + Policy *ReviewFlowGracePeriodPolicy +} + +func (b0 UpdateReviewFlowGracePeriodPolicyRequest_builder) Build() *UpdateReviewFlowGracePeriodPolicyRequest { + m0 := &UpdateReviewFlowGracePeriodPolicyRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Policy = b.Policy + return m0 +} + +type UpdateReviewFlowGracePeriodPolicyResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateReviewFlowGracePeriodPolicyResponse) Reset() { + *x = UpdateReviewFlowGracePeriodPolicyResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateReviewFlowGracePeriodPolicyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateReviewFlowGracePeriodPolicyResponse) ProtoMessage() {} + +func (x *UpdateReviewFlowGracePeriodPolicyResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UpdateReviewFlowGracePeriodPolicyResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateReviewFlowGracePeriodPolicyResponse_builder) Build() *UpdateReviewFlowGracePeriodPolicyResponse { + m0 := &UpdateReviewFlowGracePeriodPolicyResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetClusterUsageRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + xxx_hidden_EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetClusterUsageRequest) Reset() { + *x = GetClusterUsageRequest{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetClusterUsageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClusterUsageRequest) ProtoMessage() {} + +func (x *GetClusterUsageRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetClusterUsageRequest) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartTime + } + return nil +} + +func (x *GetClusterUsageRequest) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_EndTime + } + return nil +} + +func (x *GetClusterUsageRequest) SetStartTime(v *timestamppb.Timestamp) { + x.xxx_hidden_StartTime = v +} + +func (x *GetClusterUsageRequest) SetEndTime(v *timestamppb.Timestamp) { + x.xxx_hidden_EndTime = v +} + +func (x *GetClusterUsageRequest) HasStartTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartTime != nil +} + +func (x *GetClusterUsageRequest) HasEndTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_EndTime != nil +} + +func (x *GetClusterUsageRequest) ClearStartTime() { + x.xxx_hidden_StartTime = nil +} + +func (x *GetClusterUsageRequest) ClearEndTime() { + x.xxx_hidden_EndTime = nil +} + +type GetClusterUsageRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The timestamp of the beginning time of a date range. + StartTime *timestamppb.Timestamp + // The timestamp of the ending time of a date range. + EndTime *timestamppb.Timestamp +} + +func (b0 GetClusterUsageRequest_builder) Build() *GetClusterUsageRequest { + m0 := &GetClusterUsageRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_StartTime = b.StartTime + x.xxx_hidden_EndTime = b.EndTime + return m0 +} + +type GetClusterUsageResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Usage *[]*MonthlyUsage `protobuf:"bytes,1,rep,name=usage,proto3" json:"usage,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetClusterUsageResponse) Reset() { + *x = GetClusterUsageResponse{} + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetClusterUsageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClusterUsageResponse) ProtoMessage() {} + +func (x *GetClusterUsageResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetClusterUsageResponse) GetUsage() []*MonthlyUsage { + if x != nil { + if x.xxx_hidden_Usage != nil { + return *x.xxx_hidden_Usage + } + } + return nil +} + +func (x *GetClusterUsageResponse) SetUsage(v []*MonthlyUsage) { + x.xxx_hidden_Usage = &v +} + +type GetClusterUsageResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Usage []*MonthlyUsage +} + +func (b0 GetClusterUsageResponse_builder) Build() *GetClusterUsageResponse { + m0 := &GetClusterUsageResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Usage = &b.Usage + return m0 +} + +var File_buf_alpha_registry_v1alpha1_admin_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_admin_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x2e, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x35, 0x62, 0x75, + 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xee, 0x01, 0x0a, 0x14, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, + 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1d, 0x0a, + 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, + 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x18, + 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x75, 0x6e, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x01, + 0x52, 0x16, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4f, 0x0a, 0x08, 0x63, + 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x72, 0x65, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, + 0x72, 0x79, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x42, 0x0a, 0x0a, 0x08, + 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x69, 0x67, 0x6e, + 0x6f, 0x72, 0x65, 0x5f, 0x75, 0x6e, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x73, 0x22, 0x2c, 0x0a, 0x10, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, + 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x22, 0x48, 0x0a, 0x1b, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x46, 0x6c, 0x6f, + 0x77, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0xf0, 0x01, + 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3e, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x46, 0x0a, 0x07, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x07, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x12, 0x3d, 0x0a, 0x1b, 0x68, 0x61, 0x73, 0x5f, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x5f, 0x63, + 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x68, 0x61, 0x73, 0x4f, 0x74, 0x68, 0x65, 0x72, + 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x22, 0x6d, 0x0a, 0x0f, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, + 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, + 0xc0, 0x01, 0x0a, 0x0c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x55, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x79, 0x65, 0x61, 0x72, 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x45, 0x6e, 0x75, 0x6d, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x54, 0x79, 0x70, + 0x65, 0x73, 0x22, 0x31, 0x0a, 0x16, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x8e, 0x02, 0x0a, 0x17, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x35, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x0d, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4b, 0x0a, 0x0c, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, + 0x10, 0x06, 0x52, 0x07, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x52, 0x09, 0x74, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x22, 0xa0, 0x01, 0x0a, 0x23, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, + 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x60, 0x0a, 0x13, 0x76, 0x65, 0x72, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x12, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x26, 0x0a, 0x24, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0xb8, 0x01, 0x0a, 0x2b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x60, 0x0a, 0x13, 0x76, 0x65, + 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x12, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2e, 0x0a, 0x2c, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x0a, 0x18, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, + 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x52, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, + 0x63, 0x68, 0x69, 0x6e, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x35, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x20, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x42, + 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x6c, 0x0a, 0x1f, 0x47, 0x65, + 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, + 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x72, 0x65, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x6e, 0x0a, 0x21, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, + 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x72, 0x65, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x24, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, + 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x9a, 0x01, 0x0a, + 0x1b, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06, + 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x69, 0x71, 0x75, + 0x65, 0x6e, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x12, 0x34, 0x0a, 0x16, 0x62, 0x61, 0x63, 0x6b, 0x66, 0x69, 0x6c, 0x6c, 0x5f, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x14, 0x62, 0x61, 0x63, 0x6b, 0x66, 0x69, 0x6c, 0x6c, 0x54, 0x61, 0x73, + 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x22, 0x66, 0x0a, 0x1d, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x06, 0x70, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, + 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x22, 0x20, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x6e, 0x69, 0x71, 0x75, + 0x65, 0x6e, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x25, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6c, 0x6c, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x63, 0x6f, 0x6c, + 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x63, + 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x98, 0x01, 0x0a, + 0x26, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x71, 0x75, + 0x65, 0x6e, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, + 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x28, 0x0a, 0x26, 0x52, 0x75, 0x6e, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x42, 0x61, + 0x63, 0x6b, 0x66, 0x69, 0x6c, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x29, 0x0a, 0x27, 0x52, 0x75, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, + 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x66, 0x69, 0x6c, 0x6c, + 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x0a, 0x25, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x46, 0x6c, 0x6f, 0x77, 0x47, 0x72, 0x61, + 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x7a, 0x0a, 0x26, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, + 0x65, 0x77, 0x46, 0x6c, 0x6f, 0x77, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, + 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x50, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x38, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x76, 0x69, 0x65, 0x77, 0x46, 0x6c, 0x6f, 0x77, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, + 0x69, 0x6f, 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x22, 0x7c, 0x0a, 0x28, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, + 0x77, 0x46, 0x6c, 0x6f, 0x77, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, + 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, + 0x65, 0x77, 0x46, 0x6c, 0x6f, 0x77, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, + 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, + 0x2b, 0x0a, 0x29, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x46, + 0x6c, 0x6f, 0x77, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8a, 0x01, 0x0a, + 0x16, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x73, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, + 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 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, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x5a, 0x0a, 0x17, 0x47, 0x65, 0x74, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, + 0x75, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x8d, 0x01, 0x0a, 0x16, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, + 0x12, 0x28, 0x0a, 0x24, 0x42, 0x52, 0x45, 0x41, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x43, 0x48, 0x41, + 0x4e, 0x47, 0x45, 0x5f, 0x43, 0x41, 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x52, + 0x45, 0x41, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x43, 0x41, + 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x26, 0x0a, + 0x22, 0x42, 0x52, 0x45, 0x41, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, + 0x5f, 0x43, 0x41, 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x57, 0x49, 0x52, 0x45, 0x5f, 0x4a, + 0x53, 0x4f, 0x4e, 0x10, 0x02, 0x2a, 0x71, 0x0a, 0x0d, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4f, 0x4c, 0x4c, 0x49, 0x53, + 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x27, 0x0a, 0x23, 0x43, 0x4f, 0x4c, 0x4c, 0x49, 0x53, + 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x59, 0x5f, 0x51, + 0x55, 0x41, 0x4c, 0x49, 0x46, 0x49, 0x45, 0x44, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x12, + 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4c, 0x4c, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x50, 0x41, 0x54, 0x48, 0x10, 0x02, 0x32, 0xa4, 0x10, 0x0a, 0x0c, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x0f, 0x46, 0x6f, + 0x72, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x33, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x63, + 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0xa3, 0x01, + 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x40, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x41, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0xbb, 0x01, 0x0a, 0x24, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x48, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x49, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x87, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x35, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, + 0x69, 0x6e, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0x99, 0x01, 0x0a, 0x17, + 0x47, 0x65, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, + 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x9d, 0x01, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72, 0x65, 0x61, 0x6b, + 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x72, 0x65, 0x61, 0x6b, + 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x55, + 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, + 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, + 0x6e, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x91, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x12, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, + 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xae, 0x01, 0x0a, 0x1e, + 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, + 0x6e, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x42, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, + 0x73, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x43, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x71, 0x75, + 0x65, 0x6e, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6c, 0x6c, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xb1, 0x01, 0x0a, + 0x1f, 0x52, 0x75, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, + 0x6e, 0x65, 0x73, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x66, 0x69, 0x6c, 0x6c, 0x54, 0x61, 0x73, 0x6b, + 0x12, 0x43, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, + 0x75, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x6e, 0x65, + 0x73, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x66, 0x69, 0x6c, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x44, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x6e, 0x69, + 0x71, 0x75, 0x65, 0x6e, 0x65, 0x73, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x66, 0x69, 0x6c, 0x6c, 0x54, + 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, + 0x12, 0xa9, 0x01, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x46, 0x6c, + 0x6f, 0x77, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x12, 0x42, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x46, 0x6c, 0x6f, 0x77, 0x47, + 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x46, + 0x6c, 0x6f, 0x77, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xb2, 0x01, 0x0a, + 0x21, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x46, 0x6c, 0x6f, + 0x77, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x12, 0x45, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x46, 0x6c, 0x6f, + 0x77, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x46, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x76, 0x69, 0x65, 0x77, 0x46, 0x6c, 0x6f, 0x77, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, + 0x69, 0x6f, 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x7c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x73, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x97, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x42, 0x0a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, + 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, + 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, + 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, + 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, + 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, + 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var file_buf_alpha_registry_v1alpha1_admin_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 32) +var file_buf_alpha_registry_v1alpha1_admin_proto_goTypes = []any{ + (BreakingChangeCategory)(0), // 0: buf.alpha.registry.v1alpha1.BreakingChangeCategory + (CollisionType)(0), // 1: buf.alpha.registry.v1alpha1.CollisionType + (*BreakingChangePolicy)(nil), // 2: buf.alpha.registry.v1alpha1.BreakingChangePolicy + (*UniquenessPolicy)(nil), // 3: buf.alpha.registry.v1alpha1.UniquenessPolicy + (*ReviewFlowGracePeriodPolicy)(nil), // 4: buf.alpha.registry.v1alpha1.ReviewFlowGracePeriodPolicy + (*Collision)(nil), // 5: buf.alpha.registry.v1alpha1.Collision + (*CollisionSource)(nil), // 6: buf.alpha.registry.v1alpha1.CollisionSource + (*MonthlyUsage)(nil), // 7: buf.alpha.registry.v1alpha1.MonthlyUsage + (*ForceDeleteUserRequest)(nil), // 8: buf.alpha.registry.v1alpha1.ForceDeleteUserRequest + (*ForceDeleteUserResponse)(nil), // 9: buf.alpha.registry.v1alpha1.ForceDeleteUserResponse + (*UpdateUserVerificationStatusRequest)(nil), // 10: buf.alpha.registry.v1alpha1.UpdateUserVerificationStatusRequest + (*UpdateUserVerificationStatusResponse)(nil), // 11: buf.alpha.registry.v1alpha1.UpdateUserVerificationStatusResponse + (*UpdateOrganizationVerificationStatusRequest)(nil), // 12: buf.alpha.registry.v1alpha1.UpdateOrganizationVerificationStatusRequest + (*UpdateOrganizationVerificationStatusResponse)(nil), // 13: buf.alpha.registry.v1alpha1.UpdateOrganizationVerificationStatusResponse + (*CreateMachineUserRequest)(nil), // 14: buf.alpha.registry.v1alpha1.CreateMachineUserRequest + (*CreateMachineUserResponse)(nil), // 15: buf.alpha.registry.v1alpha1.CreateMachineUserResponse + (*GetBreakingChangePolicyRequest)(nil), // 16: buf.alpha.registry.v1alpha1.GetBreakingChangePolicyRequest + (*GetBreakingChangePolicyResponse)(nil), // 17: buf.alpha.registry.v1alpha1.GetBreakingChangePolicyResponse + (*UpdateBreakingChangePolicyRequest)(nil), // 18: buf.alpha.registry.v1alpha1.UpdateBreakingChangePolicyRequest + (*UpdateBreakingChangePolicyResponse)(nil), // 19: buf.alpha.registry.v1alpha1.UpdateBreakingChangePolicyResponse + (*GetUniquenessPolicyRequest)(nil), // 20: buf.alpha.registry.v1alpha1.GetUniquenessPolicyRequest + (*GetUniquenessPolicyResponse)(nil), // 21: buf.alpha.registry.v1alpha1.GetUniquenessPolicyResponse + (*UpdateUniquenessPolicyRequest)(nil), // 22: buf.alpha.registry.v1alpha1.UpdateUniquenessPolicyRequest + (*UpdateUniquenessPolicyResponse)(nil), // 23: buf.alpha.registry.v1alpha1.UpdateUniquenessPolicyResponse + (*ListServerUniquenessCollisionsRequest)(nil), // 24: buf.alpha.registry.v1alpha1.ListServerUniquenessCollisionsRequest + (*ListServerUniquenessCollisionsResponse)(nil), // 25: buf.alpha.registry.v1alpha1.ListServerUniquenessCollisionsResponse + (*RunServerUniquenessBackfillTaskRequest)(nil), // 26: buf.alpha.registry.v1alpha1.RunServerUniquenessBackfillTaskRequest + (*RunServerUniquenessBackfillTaskResponse)(nil), // 27: buf.alpha.registry.v1alpha1.RunServerUniquenessBackfillTaskResponse + (*GetReviewFlowGracePeriodPolicyRequest)(nil), // 28: buf.alpha.registry.v1alpha1.GetReviewFlowGracePeriodPolicyRequest + (*GetReviewFlowGracePeriodPolicyResponse)(nil), // 29: buf.alpha.registry.v1alpha1.GetReviewFlowGracePeriodPolicyResponse + (*UpdateReviewFlowGracePeriodPolicyRequest)(nil), // 30: buf.alpha.registry.v1alpha1.UpdateReviewFlowGracePeriodPolicyRequest + (*UpdateReviewFlowGracePeriodPolicyResponse)(nil), // 31: buf.alpha.registry.v1alpha1.UpdateReviewFlowGracePeriodPolicyResponse + (*GetClusterUsageRequest)(nil), // 32: buf.alpha.registry.v1alpha1.GetClusterUsageRequest + (*GetClusterUsageResponse)(nil), // 33: buf.alpha.registry.v1alpha1.GetClusterUsageResponse + (*User)(nil), // 34: buf.alpha.registry.v1alpha1.User + (*Organization)(nil), // 35: buf.alpha.registry.v1alpha1.Organization + (*Repository)(nil), // 36: buf.alpha.registry.v1alpha1.Repository + (VerificationStatus)(0), // 37: buf.alpha.registry.v1alpha1.VerificationStatus + (*timestamppb.Timestamp)(nil), // 38: google.protobuf.Timestamp +} +var file_buf_alpha_registry_v1alpha1_admin_proto_depIdxs = []int32{ + 0, // 0: buf.alpha.registry.v1alpha1.BreakingChangePolicy.category:type_name -> buf.alpha.registry.v1alpha1.BreakingChangeCategory + 1, // 1: buf.alpha.registry.v1alpha1.Collision.type:type_name -> buf.alpha.registry.v1alpha1.CollisionType + 6, // 2: buf.alpha.registry.v1alpha1.Collision.sources:type_name -> buf.alpha.registry.v1alpha1.CollisionSource + 34, // 3: buf.alpha.registry.v1alpha1.ForceDeleteUserResponse.user:type_name -> buf.alpha.registry.v1alpha1.User + 35, // 4: buf.alpha.registry.v1alpha1.ForceDeleteUserResponse.organizations:type_name -> buf.alpha.registry.v1alpha1.Organization + 36, // 5: buf.alpha.registry.v1alpha1.ForceDeleteUserResponse.repositories:type_name -> buf.alpha.registry.v1alpha1.Repository + 37, // 6: buf.alpha.registry.v1alpha1.UpdateUserVerificationStatusRequest.verification_status:type_name -> buf.alpha.registry.v1alpha1.VerificationStatus + 37, // 7: buf.alpha.registry.v1alpha1.UpdateOrganizationVerificationStatusRequest.verification_status:type_name -> buf.alpha.registry.v1alpha1.VerificationStatus + 34, // 8: buf.alpha.registry.v1alpha1.CreateMachineUserResponse.user:type_name -> buf.alpha.registry.v1alpha1.User + 2, // 9: buf.alpha.registry.v1alpha1.GetBreakingChangePolicyResponse.policy:type_name -> buf.alpha.registry.v1alpha1.BreakingChangePolicy + 2, // 10: buf.alpha.registry.v1alpha1.UpdateBreakingChangePolicyRequest.policy:type_name -> buf.alpha.registry.v1alpha1.BreakingChangePolicy + 3, // 11: buf.alpha.registry.v1alpha1.GetUniquenessPolicyResponse.policy:type_name -> buf.alpha.registry.v1alpha1.UniquenessPolicy + 3, // 12: buf.alpha.registry.v1alpha1.UpdateUniquenessPolicyRequest.policy:type_name -> buf.alpha.registry.v1alpha1.UniquenessPolicy + 1, // 13: buf.alpha.registry.v1alpha1.ListServerUniquenessCollisionsRequest.collision_type:type_name -> buf.alpha.registry.v1alpha1.CollisionType + 5, // 14: buf.alpha.registry.v1alpha1.ListServerUniquenessCollisionsResponse.collisions:type_name -> buf.alpha.registry.v1alpha1.Collision + 4, // 15: buf.alpha.registry.v1alpha1.GetReviewFlowGracePeriodPolicyResponse.policy:type_name -> buf.alpha.registry.v1alpha1.ReviewFlowGracePeriodPolicy + 4, // 16: buf.alpha.registry.v1alpha1.UpdateReviewFlowGracePeriodPolicyRequest.policy:type_name -> buf.alpha.registry.v1alpha1.ReviewFlowGracePeriodPolicy + 38, // 17: buf.alpha.registry.v1alpha1.GetClusterUsageRequest.start_time:type_name -> google.protobuf.Timestamp + 38, // 18: buf.alpha.registry.v1alpha1.GetClusterUsageRequest.end_time:type_name -> google.protobuf.Timestamp + 7, // 19: buf.alpha.registry.v1alpha1.GetClusterUsageResponse.usage:type_name -> buf.alpha.registry.v1alpha1.MonthlyUsage + 8, // 20: buf.alpha.registry.v1alpha1.AdminService.ForceDeleteUser:input_type -> buf.alpha.registry.v1alpha1.ForceDeleteUserRequest + 10, // 21: buf.alpha.registry.v1alpha1.AdminService.UpdateUserVerificationStatus:input_type -> buf.alpha.registry.v1alpha1.UpdateUserVerificationStatusRequest + 12, // 22: buf.alpha.registry.v1alpha1.AdminService.UpdateOrganizationVerificationStatus:input_type -> buf.alpha.registry.v1alpha1.UpdateOrganizationVerificationStatusRequest + 14, // 23: buf.alpha.registry.v1alpha1.AdminService.CreateMachineUser:input_type -> buf.alpha.registry.v1alpha1.CreateMachineUserRequest + 16, // 24: buf.alpha.registry.v1alpha1.AdminService.GetBreakingChangePolicy:input_type -> buf.alpha.registry.v1alpha1.GetBreakingChangePolicyRequest + 18, // 25: buf.alpha.registry.v1alpha1.AdminService.UpdateBreakingChangePolicy:input_type -> buf.alpha.registry.v1alpha1.UpdateBreakingChangePolicyRequest + 20, // 26: buf.alpha.registry.v1alpha1.AdminService.GetUniquenessPolicy:input_type -> buf.alpha.registry.v1alpha1.GetUniquenessPolicyRequest + 22, // 27: buf.alpha.registry.v1alpha1.AdminService.UpdateUniquenessPolicy:input_type -> buf.alpha.registry.v1alpha1.UpdateUniquenessPolicyRequest + 24, // 28: buf.alpha.registry.v1alpha1.AdminService.ListServerUniquenessCollisions:input_type -> buf.alpha.registry.v1alpha1.ListServerUniquenessCollisionsRequest + 26, // 29: buf.alpha.registry.v1alpha1.AdminService.RunServerUniquenessBackfillTask:input_type -> buf.alpha.registry.v1alpha1.RunServerUniquenessBackfillTaskRequest + 28, // 30: buf.alpha.registry.v1alpha1.AdminService.GetReviewFlowGracePeriodPolicy:input_type -> buf.alpha.registry.v1alpha1.GetReviewFlowGracePeriodPolicyRequest + 30, // 31: buf.alpha.registry.v1alpha1.AdminService.UpdateReviewFlowGracePeriodPolicy:input_type -> buf.alpha.registry.v1alpha1.UpdateReviewFlowGracePeriodPolicyRequest + 32, // 32: buf.alpha.registry.v1alpha1.AdminService.GetClusterUsage:input_type -> buf.alpha.registry.v1alpha1.GetClusterUsageRequest + 9, // 33: buf.alpha.registry.v1alpha1.AdminService.ForceDeleteUser:output_type -> buf.alpha.registry.v1alpha1.ForceDeleteUserResponse + 11, // 34: buf.alpha.registry.v1alpha1.AdminService.UpdateUserVerificationStatus:output_type -> buf.alpha.registry.v1alpha1.UpdateUserVerificationStatusResponse + 13, // 35: buf.alpha.registry.v1alpha1.AdminService.UpdateOrganizationVerificationStatus:output_type -> buf.alpha.registry.v1alpha1.UpdateOrganizationVerificationStatusResponse + 15, // 36: buf.alpha.registry.v1alpha1.AdminService.CreateMachineUser:output_type -> buf.alpha.registry.v1alpha1.CreateMachineUserResponse + 17, // 37: buf.alpha.registry.v1alpha1.AdminService.GetBreakingChangePolicy:output_type -> buf.alpha.registry.v1alpha1.GetBreakingChangePolicyResponse + 19, // 38: buf.alpha.registry.v1alpha1.AdminService.UpdateBreakingChangePolicy:output_type -> buf.alpha.registry.v1alpha1.UpdateBreakingChangePolicyResponse + 21, // 39: buf.alpha.registry.v1alpha1.AdminService.GetUniquenessPolicy:output_type -> buf.alpha.registry.v1alpha1.GetUniquenessPolicyResponse + 23, // 40: buf.alpha.registry.v1alpha1.AdminService.UpdateUniquenessPolicy:output_type -> buf.alpha.registry.v1alpha1.UpdateUniquenessPolicyResponse + 25, // 41: buf.alpha.registry.v1alpha1.AdminService.ListServerUniquenessCollisions:output_type -> buf.alpha.registry.v1alpha1.ListServerUniquenessCollisionsResponse + 27, // 42: buf.alpha.registry.v1alpha1.AdminService.RunServerUniquenessBackfillTask:output_type -> buf.alpha.registry.v1alpha1.RunServerUniquenessBackfillTaskResponse + 29, // 43: buf.alpha.registry.v1alpha1.AdminService.GetReviewFlowGracePeriodPolicy:output_type -> buf.alpha.registry.v1alpha1.GetReviewFlowGracePeriodPolicyResponse + 31, // 44: buf.alpha.registry.v1alpha1.AdminService.UpdateReviewFlowGracePeriodPolicy:output_type -> buf.alpha.registry.v1alpha1.UpdateReviewFlowGracePeriodPolicyResponse + 33, // 45: buf.alpha.registry.v1alpha1.AdminService.GetClusterUsage:output_type -> buf.alpha.registry.v1alpha1.GetClusterUsageResponse + 33, // [33:46] is the sub-list for method output_type + 20, // [20:33] is the sub-list for method input_type + 20, // [20:20] is the sub-list for extension type_name + 20, // [20:20] is the sub-list for extension extendee + 0, // [0:20] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_admin_proto_init() } +func file_buf_alpha_registry_v1alpha1_admin_proto_init() { + if File_buf_alpha_registry_v1alpha1_admin_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_organization_proto_init() + file_buf_alpha_registry_v1alpha1_repository_proto_init() + file_buf_alpha_registry_v1alpha1_user_proto_init() + file_buf_alpha_registry_v1alpha1_verification_status_proto_init() + file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes[0].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_admin_proto_rawDesc, + NumEnums: 2, + NumMessages: 32, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_admin_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_admin_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_admin_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_admin_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_admin_proto = out.File + file_buf_alpha_registry_v1alpha1_admin_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_admin_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_admin_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/authn.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/authn.pb.go index 4f987a2728..9132bafab5 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/authn.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/authn.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/authn.proto +//go:build !protoopaque + package registryv1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -35,7 +36,7 @@ const ( ) type GetCurrentUserRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -65,13 +66,20 @@ func (x *GetCurrentUserRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCurrentUserRequest.ProtoReflect.Descriptor instead. -func (*GetCurrentUserRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authn_proto_rawDescGZIP(), []int{0} +type GetCurrentUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetCurrentUserRequest_builder) Build() *GetCurrentUserRequest { + m0 := &GetCurrentUserRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetCurrentUserResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -102,11 +110,6 @@ func (x *GetCurrentUserResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCurrentUserResponse.ProtoReflect.Descriptor instead. -func (*GetCurrentUserResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authn_proto_rawDescGZIP(), []int{1} -} - func (x *GetCurrentUserResponse) GetUser() *User { if x != nil { return x.User @@ -114,8 +117,37 @@ func (x *GetCurrentUserResponse) GetUser() *User { return nil } +func (x *GetCurrentUserResponse) SetUser(v *User) { + x.User = v +} + +func (x *GetCurrentUserResponse) HasUser() bool { + if x == nil { + return false + } + return x.User != nil +} + +func (x *GetCurrentUserResponse) ClearUser() { + x.User = nil +} + +type GetCurrentUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User +} + +func (b0 GetCurrentUserResponse_builder) Build() *GetCurrentUserResponse { + m0 := &GetCurrentUserResponse{} + b, x := &b0, m0 + _, _ = b, x + x.User = b.User + return m0 +} + type GetCurrentUserSubjectRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -145,13 +177,20 @@ func (x *GetCurrentUserSubjectRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCurrentUserSubjectRequest.ProtoReflect.Descriptor instead. -func (*GetCurrentUserSubjectRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authn_proto_rawDescGZIP(), []int{2} +type GetCurrentUserSubjectRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetCurrentUserSubjectRequest_builder) Build() *GetCurrentUserSubjectRequest { + m0 := &GetCurrentUserSubjectRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetCurrentUserSubjectResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The user's subject for mapping to user in identity provider. // Note: we do not want to make it part of the User response as // it contains potentially sensitive information and the User @@ -186,11 +225,6 @@ func (x *GetCurrentUserSubjectResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCurrentUserSubjectResponse.ProtoReflect.Descriptor instead. -func (*GetCurrentUserSubjectResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authn_proto_rawDescGZIP(), []int{3} -} - func (x *GetCurrentUserSubjectResponse) GetSubject() string { if x != nil { return x.Subject @@ -198,6 +232,28 @@ func (x *GetCurrentUserSubjectResponse) GetSubject() string { return "" } +func (x *GetCurrentUserSubjectResponse) SetSubject(v string) { + x.Subject = v +} + +type GetCurrentUserSubjectResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The user's subject for mapping to user in identity provider. + // Note: we do not want to make it part of the User response as + // it contains potentially sensitive information and the User + // response is shared with other users. + Subject string +} + +func (b0 GetCurrentUserSubjectResponse_builder) Build() *GetCurrentUserSubjectResponse { + m0 := &GetCurrentUserSubjectResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Subject = b.Subject + return m0 +} + var File_buf_alpha_registry_v1alpha1_authn_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_authn_proto_rawDesc = []byte{ @@ -259,18 +315,6 @@ var file_buf_alpha_registry_v1alpha1_authn_proto_rawDesc = []byte{ 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_authn_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_authn_proto_rawDescData = file_buf_alpha_registry_v1alpha1_authn_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_authn_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_authn_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_authn_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_authn_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_authn_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_authn_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_buf_alpha_registry_v1alpha1_authn_proto_goTypes = []any{ (*GetCurrentUserRequest)(nil), // 0: buf.alpha.registry.v1alpha1.GetCurrentUserRequest diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/authn_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/authn_protoopaque.pb.go new file mode 100644 index 0000000000..629963f4fe --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/authn_protoopaque.pb.go @@ -0,0 +1,359 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/authn.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type GetCurrentUserRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCurrentUserRequest) Reset() { + *x = GetCurrentUserRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authn_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCurrentUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCurrentUserRequest) ProtoMessage() {} + +func (x *GetCurrentUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authn_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type GetCurrentUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetCurrentUserRequest_builder) Build() *GetCurrentUserRequest { + m0 := &GetCurrentUserRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetCurrentUserResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCurrentUserResponse) Reset() { + *x = GetCurrentUserResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authn_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCurrentUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCurrentUserResponse) ProtoMessage() {} + +func (x *GetCurrentUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authn_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetCurrentUserResponse) GetUser() *User { + if x != nil { + return x.xxx_hidden_User + } + return nil +} + +func (x *GetCurrentUserResponse) SetUser(v *User) { + x.xxx_hidden_User = v +} + +func (x *GetCurrentUserResponse) HasUser() bool { + if x == nil { + return false + } + return x.xxx_hidden_User != nil +} + +func (x *GetCurrentUserResponse) ClearUser() { + x.xxx_hidden_User = nil +} + +type GetCurrentUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User +} + +func (b0 GetCurrentUserResponse_builder) Build() *GetCurrentUserResponse { + m0 := &GetCurrentUserResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_User = b.User + return m0 +} + +type GetCurrentUserSubjectRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCurrentUserSubjectRequest) Reset() { + *x = GetCurrentUserSubjectRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authn_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCurrentUserSubjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCurrentUserSubjectRequest) ProtoMessage() {} + +func (x *GetCurrentUserSubjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authn_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type GetCurrentUserSubjectRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetCurrentUserSubjectRequest_builder) Build() *GetCurrentUserSubjectRequest { + m0 := &GetCurrentUserSubjectRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetCurrentUserSubjectResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCurrentUserSubjectResponse) Reset() { + *x = GetCurrentUserSubjectResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authn_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCurrentUserSubjectResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCurrentUserSubjectResponse) ProtoMessage() {} + +func (x *GetCurrentUserSubjectResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authn_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetCurrentUserSubjectResponse) GetSubject() string { + if x != nil { + return x.xxx_hidden_Subject + } + return "" +} + +func (x *GetCurrentUserSubjectResponse) SetSubject(v string) { + x.xxx_hidden_Subject = v +} + +type GetCurrentUserSubjectResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The user's subject for mapping to user in identity provider. + // Note: we do not want to make it part of the User response as + // it contains potentially sensitive information and the User + // response is shared with other users. + Subject string +} + +func (b0 GetCurrentUserSubjectResponse_builder) Build() *GetCurrentUserSubjectResponse { + m0 := &GetCurrentUserSubjectResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Subject = b.Subject + return m0 +} + +var File_buf_alpha_registry_v1alpha1_authn_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_authn_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x75, + 0x74, 0x68, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x17, + 0x0a, 0x15, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x35, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x43, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x39, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x43, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x32, 0xa4, 0x02, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x7e, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x03, 0x90, 0x02, 0x01, 0x12, 0x93, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x39, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x75, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x97, 0x02, 0x0a, 0x1f, 0x63, + 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, + 0x41, 0x75, 0x74, 0x68, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, + 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, + 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, + 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, + 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, + 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_authn_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_buf_alpha_registry_v1alpha1_authn_proto_goTypes = []any{ + (*GetCurrentUserRequest)(nil), // 0: buf.alpha.registry.v1alpha1.GetCurrentUserRequest + (*GetCurrentUserResponse)(nil), // 1: buf.alpha.registry.v1alpha1.GetCurrentUserResponse + (*GetCurrentUserSubjectRequest)(nil), // 2: buf.alpha.registry.v1alpha1.GetCurrentUserSubjectRequest + (*GetCurrentUserSubjectResponse)(nil), // 3: buf.alpha.registry.v1alpha1.GetCurrentUserSubjectResponse + (*User)(nil), // 4: buf.alpha.registry.v1alpha1.User +} +var file_buf_alpha_registry_v1alpha1_authn_proto_depIdxs = []int32{ + 4, // 0: buf.alpha.registry.v1alpha1.GetCurrentUserResponse.user:type_name -> buf.alpha.registry.v1alpha1.User + 0, // 1: buf.alpha.registry.v1alpha1.AuthnService.GetCurrentUser:input_type -> buf.alpha.registry.v1alpha1.GetCurrentUserRequest + 2, // 2: buf.alpha.registry.v1alpha1.AuthnService.GetCurrentUserSubject:input_type -> buf.alpha.registry.v1alpha1.GetCurrentUserSubjectRequest + 1, // 3: buf.alpha.registry.v1alpha1.AuthnService.GetCurrentUser:output_type -> buf.alpha.registry.v1alpha1.GetCurrentUserResponse + 3, // 4: buf.alpha.registry.v1alpha1.AuthnService.GetCurrentUserSubject:output_type -> buf.alpha.registry.v1alpha1.GetCurrentUserSubjectResponse + 3, // [3:5] is the sub-list for method output_type + 1, // [1:3] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_authn_proto_init() } +func file_buf_alpha_registry_v1alpha1_authn_proto_init() { + if File_buf_alpha_registry_v1alpha1_authn_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_user_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_authn_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_authn_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_authn_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_authn_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_authn_proto = out.File + file_buf_alpha_registry_v1alpha1_authn_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_authn_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_authn_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/authz.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/authz.pb.go index 586b42a5f7..cce0f1136e 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/authz.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/authz.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/authz.proto +//go:build !protoopaque + package registryv1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -35,7 +36,7 @@ const ( ) type UserCanCreateOrganizationRepositoryRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which to check // whether the user is authorized. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` @@ -68,11 +69,6 @@ func (x *UserCanCreateOrganizationRepositoryRequest) ProtoReflect() protoreflect return mi.MessageOf(x) } -// Deprecated: Use UserCanCreateOrganizationRepositoryRequest.ProtoReflect.Descriptor instead. -func (*UserCanCreateOrganizationRepositoryRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{0} -} - func (x *UserCanCreateOrganizationRepositoryRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -80,8 +76,28 @@ func (x *UserCanCreateOrganizationRepositoryRequest) GetOrganizationId() string return "" } +func (x *UserCanCreateOrganizationRepositoryRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +type UserCanCreateOrganizationRepositoryRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // whether the user is authorized. + OrganizationId string +} + +func (b0 UserCanCreateOrganizationRepositoryRequest_builder) Build() *UserCanCreateOrganizationRepositoryRequest { + m0 := &UserCanCreateOrganizationRepositoryRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + return m0 +} + type UserCanCreateOrganizationRepositoryResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -112,11 +128,6 @@ func (x *UserCanCreateOrganizationRepositoryResponse) ProtoReflect() protoreflec return mi.MessageOf(x) } -// Deprecated: Use UserCanCreateOrganizationRepositoryResponse.ProtoReflect.Descriptor instead. -func (*UserCanCreateOrganizationRepositoryResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{1} -} - func (x *UserCanCreateOrganizationRepositoryResponse) GetAuthorized() bool { if x != nil { return x.Authorized @@ -124,8 +135,26 @@ func (x *UserCanCreateOrganizationRepositoryResponse) GetAuthorized() bool { return false } +func (x *UserCanCreateOrganizationRepositoryResponse) SetAuthorized(v bool) { + x.Authorized = v +} + +type UserCanCreateOrganizationRepositoryResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanCreateOrganizationRepositoryResponse_builder) Build() *UserCanCreateOrganizationRepositoryResponse { + m0 := &UserCanCreateOrganizationRepositoryResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Authorized = b.Authorized + return m0 +} + type UserCanSeeRepositorySettingsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository for which to check // whether the user is authorized. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` @@ -158,11 +187,6 @@ func (x *UserCanSeeRepositorySettingsRequest) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use UserCanSeeRepositorySettingsRequest.ProtoReflect.Descriptor instead. -func (*UserCanSeeRepositorySettingsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{2} -} - func (x *UserCanSeeRepositorySettingsRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -170,8 +194,28 @@ func (x *UserCanSeeRepositorySettingsRequest) GetRepositoryId() string { return "" } +func (x *UserCanSeeRepositorySettingsRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +type UserCanSeeRepositorySettingsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // whether the user is authorized. + RepositoryId string +} + +func (b0 UserCanSeeRepositorySettingsRequest_builder) Build() *UserCanSeeRepositorySettingsRequest { + m0 := &UserCanSeeRepositorySettingsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + return m0 +} + type UserCanSeeRepositorySettingsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -202,11 +246,6 @@ func (x *UserCanSeeRepositorySettingsResponse) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use UserCanSeeRepositorySettingsResponse.ProtoReflect.Descriptor instead. -func (*UserCanSeeRepositorySettingsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{3} -} - func (x *UserCanSeeRepositorySettingsResponse) GetAuthorized() bool { if x != nil { return x.Authorized @@ -214,8 +253,26 @@ func (x *UserCanSeeRepositorySettingsResponse) GetAuthorized() bool { return false } +func (x *UserCanSeeRepositorySettingsResponse) SetAuthorized(v bool) { + x.Authorized = v +} + +type UserCanSeeRepositorySettingsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanSeeRepositorySettingsResponse_builder) Build() *UserCanSeeRepositorySettingsResponse { + m0 := &UserCanSeeRepositorySettingsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Authorized = b.Authorized + return m0 +} + type UserCanSeeOrganizationSettingsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which to check // whether the user is authorized. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` @@ -248,11 +305,6 @@ func (x *UserCanSeeOrganizationSettingsRequest) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use UserCanSeeOrganizationSettingsRequest.ProtoReflect.Descriptor instead. -func (*UserCanSeeOrganizationSettingsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{4} -} - func (x *UserCanSeeOrganizationSettingsRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -260,8 +312,28 @@ func (x *UserCanSeeOrganizationSettingsRequest) GetOrganizationId() string { return "" } +func (x *UserCanSeeOrganizationSettingsRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +type UserCanSeeOrganizationSettingsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // whether the user is authorized. + OrganizationId string +} + +func (b0 UserCanSeeOrganizationSettingsRequest_builder) Build() *UserCanSeeOrganizationSettingsRequest { + m0 := &UserCanSeeOrganizationSettingsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + return m0 +} + type UserCanSeeOrganizationSettingsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -292,11 +364,6 @@ func (x *UserCanSeeOrganizationSettingsResponse) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use UserCanSeeOrganizationSettingsResponse.ProtoReflect.Descriptor instead. -func (*UserCanSeeOrganizationSettingsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{5} -} - func (x *UserCanSeeOrganizationSettingsResponse) GetAuthorized() bool { if x != nil { return x.Authorized @@ -304,8 +371,26 @@ func (x *UserCanSeeOrganizationSettingsResponse) GetAuthorized() bool { return false } +func (x *UserCanSeeOrganizationSettingsResponse) SetAuthorized(v bool) { + x.Authorized = v +} + +type UserCanSeeOrganizationSettingsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanSeeOrganizationSettingsResponse_builder) Build() *UserCanSeeOrganizationSettingsResponse { + m0 := &UserCanSeeOrganizationSettingsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Authorized = b.Authorized + return m0 +} + type UserCanAddOrganizationMemberRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which to check // whether the user is authorized. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` @@ -338,11 +423,6 @@ func (x *UserCanAddOrganizationMemberRequest) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use UserCanAddOrganizationMemberRequest.ProtoReflect.Descriptor instead. -func (*UserCanAddOrganizationMemberRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{6} -} - func (x *UserCanAddOrganizationMemberRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -350,8 +430,28 @@ func (x *UserCanAddOrganizationMemberRequest) GetOrganizationId() string { return "" } +func (x *UserCanAddOrganizationMemberRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +type UserCanAddOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // whether the user is authorized. + OrganizationId string +} + +func (b0 UserCanAddOrganizationMemberRequest_builder) Build() *UserCanAddOrganizationMemberRequest { + m0 := &UserCanAddOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + return m0 +} + type UserCanAddOrganizationMemberResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The list of roles that the user is authorized to add, empty list means the user is // not authorized to add any members. AuthorizedRoles []OrganizationRole `protobuf:"varint,1,rep,packed,name=authorized_roles,json=authorizedRoles,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"authorized_roles,omitempty"` @@ -384,11 +484,6 @@ func (x *UserCanAddOrganizationMemberResponse) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use UserCanAddOrganizationMemberResponse.ProtoReflect.Descriptor instead. -func (*UserCanAddOrganizationMemberResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{7} -} - func (x *UserCanAddOrganizationMemberResponse) GetAuthorizedRoles() []OrganizationRole { if x != nil { return x.AuthorizedRoles @@ -396,8 +491,28 @@ func (x *UserCanAddOrganizationMemberResponse) GetAuthorizedRoles() []Organizati return nil } +func (x *UserCanAddOrganizationMemberResponse) SetAuthorizedRoles(v []OrganizationRole) { + x.AuthorizedRoles = v +} + +type UserCanAddOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of roles that the user is authorized to add, empty list means the user is + // not authorized to add any members. + AuthorizedRoles []OrganizationRole +} + +func (b0 UserCanAddOrganizationMemberResponse_builder) Build() *UserCanAddOrganizationMemberResponse { + m0 := &UserCanAddOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + x.AuthorizedRoles = b.AuthorizedRoles + return m0 +} + type UserCanUpdateOrganizationMemberRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which to check // whether the user is authorized. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` @@ -430,11 +545,6 @@ func (x *UserCanUpdateOrganizationMemberRequest) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use UserCanUpdateOrganizationMemberRequest.ProtoReflect.Descriptor instead. -func (*UserCanUpdateOrganizationMemberRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{8} -} - func (x *UserCanUpdateOrganizationMemberRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -442,8 +552,28 @@ func (x *UserCanUpdateOrganizationMemberRequest) GetOrganizationId() string { return "" } +func (x *UserCanUpdateOrganizationMemberRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +type UserCanUpdateOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // whether the user is authorized. + OrganizationId string +} + +func (b0 UserCanUpdateOrganizationMemberRequest_builder) Build() *UserCanUpdateOrganizationMemberRequest { + m0 := &UserCanUpdateOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + return m0 +} + type UserCanUpdateOrganizationMemberResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The list of roles that the user is authorized to update (from and to), empty list means the user is // not authorized to update any members' role. AuthorizedRoles []OrganizationRole `protobuf:"varint,1,rep,packed,name=authorized_roles,json=authorizedRoles,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"authorized_roles,omitempty"` @@ -476,11 +606,6 @@ func (x *UserCanUpdateOrganizationMemberResponse) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use UserCanUpdateOrganizationMemberResponse.ProtoReflect.Descriptor instead. -func (*UserCanUpdateOrganizationMemberResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{9} -} - func (x *UserCanUpdateOrganizationMemberResponse) GetAuthorizedRoles() []OrganizationRole { if x != nil { return x.AuthorizedRoles @@ -488,8 +613,28 @@ func (x *UserCanUpdateOrganizationMemberResponse) GetAuthorizedRoles() []Organiz return nil } +func (x *UserCanUpdateOrganizationMemberResponse) SetAuthorizedRoles(v []OrganizationRole) { + x.AuthorizedRoles = v +} + +type UserCanUpdateOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of roles that the user is authorized to update (from and to), empty list means the user is + // not authorized to update any members' role. + AuthorizedRoles []OrganizationRole +} + +func (b0 UserCanUpdateOrganizationMemberResponse_builder) Build() *UserCanUpdateOrganizationMemberResponse { + m0 := &UserCanUpdateOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + x.AuthorizedRoles = b.AuthorizedRoles + return m0 +} + type UserCanRemoveOrganizationMemberRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which to check // whether the user is authorized. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` @@ -522,11 +667,6 @@ func (x *UserCanRemoveOrganizationMemberRequest) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use UserCanRemoveOrganizationMemberRequest.ProtoReflect.Descriptor instead. -func (*UserCanRemoveOrganizationMemberRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{10} -} - func (x *UserCanRemoveOrganizationMemberRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -534,8 +674,28 @@ func (x *UserCanRemoveOrganizationMemberRequest) GetOrganizationId() string { return "" } +func (x *UserCanRemoveOrganizationMemberRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +type UserCanRemoveOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // whether the user is authorized. + OrganizationId string +} + +func (b0 UserCanRemoveOrganizationMemberRequest_builder) Build() *UserCanRemoveOrganizationMemberRequest { + m0 := &UserCanRemoveOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + return m0 +} + type UserCanRemoveOrganizationMemberResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The list of roles that the user is authorized to remove, empty list means the user is // not authorized to remove any members. AuthorizedRoles []OrganizationRole `protobuf:"varint,1,rep,packed,name=authorized_roles,json=authorizedRoles,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"authorized_roles,omitempty"` @@ -568,11 +728,6 @@ func (x *UserCanRemoveOrganizationMemberResponse) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use UserCanRemoveOrganizationMemberResponse.ProtoReflect.Descriptor instead. -func (*UserCanRemoveOrganizationMemberResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{11} -} - func (x *UserCanRemoveOrganizationMemberResponse) GetAuthorizedRoles() []OrganizationRole { if x != nil { return x.AuthorizedRoles @@ -580,8 +735,28 @@ func (x *UserCanRemoveOrganizationMemberResponse) GetAuthorizedRoles() []Organiz return nil } +func (x *UserCanRemoveOrganizationMemberResponse) SetAuthorizedRoles(v []OrganizationRole) { + x.AuthorizedRoles = v +} + +type UserCanRemoveOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of roles that the user is authorized to remove, empty list means the user is + // not authorized to remove any members. + AuthorizedRoles []OrganizationRole +} + +func (b0 UserCanRemoveOrganizationMemberResponse_builder) Build() *UserCanRemoveOrganizationMemberResponse { + m0 := &UserCanRemoveOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + x.AuthorizedRoles = b.AuthorizedRoles + return m0 +} + type UserCanDeleteOrganizationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which to check // whether the user is authorized. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` @@ -614,11 +789,6 @@ func (x *UserCanDeleteOrganizationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserCanDeleteOrganizationRequest.ProtoReflect.Descriptor instead. -func (*UserCanDeleteOrganizationRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{12} -} - func (x *UserCanDeleteOrganizationRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -626,8 +796,28 @@ func (x *UserCanDeleteOrganizationRequest) GetOrganizationId() string { return "" } +func (x *UserCanDeleteOrganizationRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +type UserCanDeleteOrganizationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // whether the user is authorized. + OrganizationId string +} + +func (b0 UserCanDeleteOrganizationRequest_builder) Build() *UserCanDeleteOrganizationRequest { + m0 := &UserCanDeleteOrganizationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + return m0 +} + type UserCanDeleteOrganizationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -658,11 +848,6 @@ func (x *UserCanDeleteOrganizationResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use UserCanDeleteOrganizationResponse.ProtoReflect.Descriptor instead. -func (*UserCanDeleteOrganizationResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{13} -} - func (x *UserCanDeleteOrganizationResponse) GetAuthorized() bool { if x != nil { return x.Authorized @@ -670,8 +855,26 @@ func (x *UserCanDeleteOrganizationResponse) GetAuthorized() bool { return false } +func (x *UserCanDeleteOrganizationResponse) SetAuthorized(v bool) { + x.Authorized = v +} + +type UserCanDeleteOrganizationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanDeleteOrganizationResponse_builder) Build() *UserCanDeleteOrganizationResponse { + m0 := &UserCanDeleteOrganizationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Authorized = b.Authorized + return m0 +} + type UserCanDeleteRepositoryRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository for which to check // whether the user is authorized. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` @@ -704,11 +907,6 @@ func (x *UserCanDeleteRepositoryRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserCanDeleteRepositoryRequest.ProtoReflect.Descriptor instead. -func (*UserCanDeleteRepositoryRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{14} -} - func (x *UserCanDeleteRepositoryRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -716,8 +914,28 @@ func (x *UserCanDeleteRepositoryRequest) GetRepositoryId() string { return "" } +func (x *UserCanDeleteRepositoryRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +type UserCanDeleteRepositoryRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // whether the user is authorized. + RepositoryId string +} + +func (b0 UserCanDeleteRepositoryRequest_builder) Build() *UserCanDeleteRepositoryRequest { + m0 := &UserCanDeleteRepositoryRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + return m0 +} + type UserCanDeleteRepositoryResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -748,11 +966,6 @@ func (x *UserCanDeleteRepositoryResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserCanDeleteRepositoryResponse.ProtoReflect.Descriptor instead. -func (*UserCanDeleteRepositoryResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{15} -} - func (x *UserCanDeleteRepositoryResponse) GetAuthorized() bool { if x != nil { return x.Authorized @@ -760,8 +973,26 @@ func (x *UserCanDeleteRepositoryResponse) GetAuthorized() bool { return false } +func (x *UserCanDeleteRepositoryResponse) SetAuthorized(v bool) { + x.Authorized = v +} + +type UserCanDeleteRepositoryResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanDeleteRepositoryResponse_builder) Build() *UserCanDeleteRepositoryResponse { + m0 := &UserCanDeleteRepositoryResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Authorized = b.Authorized + return m0 +} + type UserCanDeleteUserRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -791,13 +1022,20 @@ func (x *UserCanDeleteUserRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserCanDeleteUserRequest.ProtoReflect.Descriptor instead. -func (*UserCanDeleteUserRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{16} +type UserCanDeleteUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UserCanDeleteUserRequest_builder) Build() *UserCanDeleteUserRequest { + m0 := &UserCanDeleteUserRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type UserCanDeleteUserResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -828,11 +1066,6 @@ func (x *UserCanDeleteUserResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserCanDeleteUserResponse.ProtoReflect.Descriptor instead. -func (*UserCanDeleteUserResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{17} -} - func (x *UserCanDeleteUserResponse) GetAuthorized() bool { if x != nil { return x.Authorized @@ -840,8 +1073,26 @@ func (x *UserCanDeleteUserResponse) GetAuthorized() bool { return false } +func (x *UserCanDeleteUserResponse) SetAuthorized(v bool) { + x.Authorized = v +} + +type UserCanDeleteUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanDeleteUserResponse_builder) Build() *UserCanDeleteUserResponse { + m0 := &UserCanDeleteUserResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Authorized = b.Authorized + return m0 +} + type UserCanSeeServerAdminPanelRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -871,13 +1122,20 @@ func (x *UserCanSeeServerAdminPanelRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use UserCanSeeServerAdminPanelRequest.ProtoReflect.Descriptor instead. -func (*UserCanSeeServerAdminPanelRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{18} +type UserCanSeeServerAdminPanelRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UserCanSeeServerAdminPanelRequest_builder) Build() *UserCanSeeServerAdminPanelRequest { + m0 := &UserCanSeeServerAdminPanelRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type UserCanSeeServerAdminPanelResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -908,11 +1166,6 @@ func (x *UserCanSeeServerAdminPanelResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use UserCanSeeServerAdminPanelResponse.ProtoReflect.Descriptor instead. -func (*UserCanSeeServerAdminPanelResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{19} -} - func (x *UserCanSeeServerAdminPanelResponse) GetAuthorized() bool { if x != nil { return x.Authorized @@ -920,8 +1173,26 @@ func (x *UserCanSeeServerAdminPanelResponse) GetAuthorized() bool { return false } +func (x *UserCanSeeServerAdminPanelResponse) SetAuthorized(v bool) { + x.Authorized = v +} + +type UserCanSeeServerAdminPanelResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanSeeServerAdminPanelResponse_builder) Build() *UserCanSeeServerAdminPanelResponse { + m0 := &UserCanSeeServerAdminPanelResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Authorized = b.Authorized + return m0 +} + type UserCanManageRepositoryContributorsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository for which to check // whether the user is authorized. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` @@ -954,11 +1225,6 @@ func (x *UserCanManageRepositoryContributorsRequest) ProtoReflect() protoreflect return mi.MessageOf(x) } -// Deprecated: Use UserCanManageRepositoryContributorsRequest.ProtoReflect.Descriptor instead. -func (*UserCanManageRepositoryContributorsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{20} -} - func (x *UserCanManageRepositoryContributorsRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -966,8 +1232,28 @@ func (x *UserCanManageRepositoryContributorsRequest) GetRepositoryId() string { return "" } +func (x *UserCanManageRepositoryContributorsRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +type UserCanManageRepositoryContributorsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // whether the user is authorized. + RepositoryId string +} + +func (b0 UserCanManageRepositoryContributorsRequest_builder) Build() *UserCanManageRepositoryContributorsRequest { + m0 := &UserCanManageRepositoryContributorsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + return m0 +} + type UserCanManageRepositoryContributorsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The list of roles that the user is authorized to manage, empty list means the user is // not authorized to manage any contributors. AuthorizedRoles []RepositoryRole `protobuf:"varint,1,rep,packed,name=authorized_roles,json=authorizedRoles,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"authorized_roles,omitempty"` @@ -1000,11 +1286,6 @@ func (x *UserCanManageRepositoryContributorsResponse) ProtoReflect() protoreflec return mi.MessageOf(x) } -// Deprecated: Use UserCanManageRepositoryContributorsResponse.ProtoReflect.Descriptor instead. -func (*UserCanManageRepositoryContributorsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{21} -} - func (x *UserCanManageRepositoryContributorsResponse) GetAuthorizedRoles() []RepositoryRole { if x != nil { return x.AuthorizedRoles @@ -1012,8 +1293,28 @@ func (x *UserCanManageRepositoryContributorsResponse) GetAuthorizedRoles() []Rep return nil } +func (x *UserCanManageRepositoryContributorsResponse) SetAuthorizedRoles(v []RepositoryRole) { + x.AuthorizedRoles = v +} + +type UserCanManageRepositoryContributorsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of roles that the user is authorized to manage, empty list means the user is + // not authorized to manage any contributors. + AuthorizedRoles []RepositoryRole +} + +func (b0 UserCanManageRepositoryContributorsResponse_builder) Build() *UserCanManageRepositoryContributorsResponse { + m0 := &UserCanManageRepositoryContributorsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.AuthorizedRoles = b.AuthorizedRoles + return m0 +} + type UserCanReviewCommitsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository for which to check // whether the user is authorized. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` @@ -1046,11 +1347,6 @@ func (x *UserCanReviewCommitsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserCanReviewCommitsRequest.ProtoReflect.Descriptor instead. -func (*UserCanReviewCommitsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{22} -} - func (x *UserCanReviewCommitsRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -1058,8 +1354,28 @@ func (x *UserCanReviewCommitsRequest) GetRepositoryId() string { return "" } +func (x *UserCanReviewCommitsRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +type UserCanReviewCommitsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // whether the user is authorized. + RepositoryId string +} + +func (b0 UserCanReviewCommitsRequest_builder) Build() *UserCanReviewCommitsRequest { + m0 := &UserCanReviewCommitsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + return m0 +} + type UserCanReviewCommitsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1090,11 +1406,6 @@ func (x *UserCanReviewCommitsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserCanReviewCommitsResponse.ProtoReflect.Descriptor instead. -func (*UserCanReviewCommitsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP(), []int{23} -} - func (x *UserCanReviewCommitsResponse) GetAuthorized() bool { if x != nil { return x.Authorized @@ -1102,6 +1413,24 @@ func (x *UserCanReviewCommitsResponse) GetAuthorized() bool { return false } +func (x *UserCanReviewCommitsResponse) SetAuthorized(v bool) { + x.Authorized = v +} + +type UserCanReviewCommitsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanReviewCommitsResponse_builder) Build() *UserCanReviewCommitsResponse { + m0 := &UserCanReviewCommitsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Authorized = b.Authorized + return m0 +} + var File_buf_alpha_registry_v1alpha1_authz_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_authz_proto_rawDesc = []byte{ @@ -1382,18 +1711,6 @@ var file_buf_alpha_registry_v1alpha1_authz_proto_rawDesc = []byte{ 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_authz_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_authz_proto_rawDescData = file_buf_alpha_registry_v1alpha1_authz_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_authz_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_authz_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_authz_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_authz_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_authz_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes = make([]protoimpl.MessageInfo, 24) var file_buf_alpha_registry_v1alpha1_authz_proto_goTypes = []any{ (*UserCanCreateOrganizationRepositoryRequest)(nil), // 0: buf.alpha.registry.v1alpha1.UserCanCreateOrganizationRepositoryRequest diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/authz_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/authz_protoopaque.pb.go new file mode 100644 index 0000000000..6d8e90fcd4 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/authz_protoopaque.pb.go @@ -0,0 +1,1775 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/authz.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type UserCanCreateOrganizationRepositoryRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanCreateOrganizationRepositoryRequest) Reset() { + *x = UserCanCreateOrganizationRepositoryRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanCreateOrganizationRepositoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanCreateOrganizationRepositoryRequest) ProtoMessage() {} + +func (x *UserCanCreateOrganizationRepositoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanCreateOrganizationRepositoryRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *UserCanCreateOrganizationRepositoryRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +type UserCanCreateOrganizationRepositoryRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // whether the user is authorized. + OrganizationId string +} + +func (b0 UserCanCreateOrganizationRepositoryRequest_builder) Build() *UserCanCreateOrganizationRepositoryRequest { + m0 := &UserCanCreateOrganizationRepositoryRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + return m0 +} + +type UserCanCreateOrganizationRepositoryResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanCreateOrganizationRepositoryResponse) Reset() { + *x = UserCanCreateOrganizationRepositoryResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanCreateOrganizationRepositoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanCreateOrganizationRepositoryResponse) ProtoMessage() {} + +func (x *UserCanCreateOrganizationRepositoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanCreateOrganizationRepositoryResponse) GetAuthorized() bool { + if x != nil { + return x.xxx_hidden_Authorized + } + return false +} + +func (x *UserCanCreateOrganizationRepositoryResponse) SetAuthorized(v bool) { + x.xxx_hidden_Authorized = v +} + +type UserCanCreateOrganizationRepositoryResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanCreateOrganizationRepositoryResponse_builder) Build() *UserCanCreateOrganizationRepositoryResponse { + m0 := &UserCanCreateOrganizationRepositoryResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Authorized = b.Authorized + return m0 +} + +type UserCanSeeRepositorySettingsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanSeeRepositorySettingsRequest) Reset() { + *x = UserCanSeeRepositorySettingsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanSeeRepositorySettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanSeeRepositorySettingsRequest) ProtoMessage() {} + +func (x *UserCanSeeRepositorySettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanSeeRepositorySettingsRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *UserCanSeeRepositorySettingsRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +type UserCanSeeRepositorySettingsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // whether the user is authorized. + RepositoryId string +} + +func (b0 UserCanSeeRepositorySettingsRequest_builder) Build() *UserCanSeeRepositorySettingsRequest { + m0 := &UserCanSeeRepositorySettingsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + return m0 +} + +type UserCanSeeRepositorySettingsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanSeeRepositorySettingsResponse) Reset() { + *x = UserCanSeeRepositorySettingsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanSeeRepositorySettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanSeeRepositorySettingsResponse) ProtoMessage() {} + +func (x *UserCanSeeRepositorySettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanSeeRepositorySettingsResponse) GetAuthorized() bool { + if x != nil { + return x.xxx_hidden_Authorized + } + return false +} + +func (x *UserCanSeeRepositorySettingsResponse) SetAuthorized(v bool) { + x.xxx_hidden_Authorized = v +} + +type UserCanSeeRepositorySettingsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanSeeRepositorySettingsResponse_builder) Build() *UserCanSeeRepositorySettingsResponse { + m0 := &UserCanSeeRepositorySettingsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Authorized = b.Authorized + return m0 +} + +type UserCanSeeOrganizationSettingsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanSeeOrganizationSettingsRequest) Reset() { + *x = UserCanSeeOrganizationSettingsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanSeeOrganizationSettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanSeeOrganizationSettingsRequest) ProtoMessage() {} + +func (x *UserCanSeeOrganizationSettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanSeeOrganizationSettingsRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *UserCanSeeOrganizationSettingsRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +type UserCanSeeOrganizationSettingsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // whether the user is authorized. + OrganizationId string +} + +func (b0 UserCanSeeOrganizationSettingsRequest_builder) Build() *UserCanSeeOrganizationSettingsRequest { + m0 := &UserCanSeeOrganizationSettingsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + return m0 +} + +type UserCanSeeOrganizationSettingsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanSeeOrganizationSettingsResponse) Reset() { + *x = UserCanSeeOrganizationSettingsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanSeeOrganizationSettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanSeeOrganizationSettingsResponse) ProtoMessage() {} + +func (x *UserCanSeeOrganizationSettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanSeeOrganizationSettingsResponse) GetAuthorized() bool { + if x != nil { + return x.xxx_hidden_Authorized + } + return false +} + +func (x *UserCanSeeOrganizationSettingsResponse) SetAuthorized(v bool) { + x.xxx_hidden_Authorized = v +} + +type UserCanSeeOrganizationSettingsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanSeeOrganizationSettingsResponse_builder) Build() *UserCanSeeOrganizationSettingsResponse { + m0 := &UserCanSeeOrganizationSettingsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Authorized = b.Authorized + return m0 +} + +type UserCanAddOrganizationMemberRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanAddOrganizationMemberRequest) Reset() { + *x = UserCanAddOrganizationMemberRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanAddOrganizationMemberRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanAddOrganizationMemberRequest) ProtoMessage() {} + +func (x *UserCanAddOrganizationMemberRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanAddOrganizationMemberRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *UserCanAddOrganizationMemberRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +type UserCanAddOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // whether the user is authorized. + OrganizationId string +} + +func (b0 UserCanAddOrganizationMemberRequest_builder) Build() *UserCanAddOrganizationMemberRequest { + m0 := &UserCanAddOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + return m0 +} + +type UserCanAddOrganizationMemberResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AuthorizedRoles []OrganizationRole `protobuf:"varint,1,rep,packed,name=authorized_roles,json=authorizedRoles,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"authorized_roles,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanAddOrganizationMemberResponse) Reset() { + *x = UserCanAddOrganizationMemberResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanAddOrganizationMemberResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanAddOrganizationMemberResponse) ProtoMessage() {} + +func (x *UserCanAddOrganizationMemberResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanAddOrganizationMemberResponse) GetAuthorizedRoles() []OrganizationRole { + if x != nil { + return x.xxx_hidden_AuthorizedRoles + } + return nil +} + +func (x *UserCanAddOrganizationMemberResponse) SetAuthorizedRoles(v []OrganizationRole) { + x.xxx_hidden_AuthorizedRoles = v +} + +type UserCanAddOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of roles that the user is authorized to add, empty list means the user is + // not authorized to add any members. + AuthorizedRoles []OrganizationRole +} + +func (b0 UserCanAddOrganizationMemberResponse_builder) Build() *UserCanAddOrganizationMemberResponse { + m0 := &UserCanAddOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AuthorizedRoles = b.AuthorizedRoles + return m0 +} + +type UserCanUpdateOrganizationMemberRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanUpdateOrganizationMemberRequest) Reset() { + *x = UserCanUpdateOrganizationMemberRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanUpdateOrganizationMemberRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanUpdateOrganizationMemberRequest) ProtoMessage() {} + +func (x *UserCanUpdateOrganizationMemberRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanUpdateOrganizationMemberRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *UserCanUpdateOrganizationMemberRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +type UserCanUpdateOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // whether the user is authorized. + OrganizationId string +} + +func (b0 UserCanUpdateOrganizationMemberRequest_builder) Build() *UserCanUpdateOrganizationMemberRequest { + m0 := &UserCanUpdateOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + return m0 +} + +type UserCanUpdateOrganizationMemberResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AuthorizedRoles []OrganizationRole `protobuf:"varint,1,rep,packed,name=authorized_roles,json=authorizedRoles,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"authorized_roles,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanUpdateOrganizationMemberResponse) Reset() { + *x = UserCanUpdateOrganizationMemberResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanUpdateOrganizationMemberResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanUpdateOrganizationMemberResponse) ProtoMessage() {} + +func (x *UserCanUpdateOrganizationMemberResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanUpdateOrganizationMemberResponse) GetAuthorizedRoles() []OrganizationRole { + if x != nil { + return x.xxx_hidden_AuthorizedRoles + } + return nil +} + +func (x *UserCanUpdateOrganizationMemberResponse) SetAuthorizedRoles(v []OrganizationRole) { + x.xxx_hidden_AuthorizedRoles = v +} + +type UserCanUpdateOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of roles that the user is authorized to update (from and to), empty list means the user is + // not authorized to update any members' role. + AuthorizedRoles []OrganizationRole +} + +func (b0 UserCanUpdateOrganizationMemberResponse_builder) Build() *UserCanUpdateOrganizationMemberResponse { + m0 := &UserCanUpdateOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AuthorizedRoles = b.AuthorizedRoles + return m0 +} + +type UserCanRemoveOrganizationMemberRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanRemoveOrganizationMemberRequest) Reset() { + *x = UserCanRemoveOrganizationMemberRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanRemoveOrganizationMemberRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanRemoveOrganizationMemberRequest) ProtoMessage() {} + +func (x *UserCanRemoveOrganizationMemberRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanRemoveOrganizationMemberRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *UserCanRemoveOrganizationMemberRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +type UserCanRemoveOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // whether the user is authorized. + OrganizationId string +} + +func (b0 UserCanRemoveOrganizationMemberRequest_builder) Build() *UserCanRemoveOrganizationMemberRequest { + m0 := &UserCanRemoveOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + return m0 +} + +type UserCanRemoveOrganizationMemberResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AuthorizedRoles []OrganizationRole `protobuf:"varint,1,rep,packed,name=authorized_roles,json=authorizedRoles,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"authorized_roles,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanRemoveOrganizationMemberResponse) Reset() { + *x = UserCanRemoveOrganizationMemberResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanRemoveOrganizationMemberResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanRemoveOrganizationMemberResponse) ProtoMessage() {} + +func (x *UserCanRemoveOrganizationMemberResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanRemoveOrganizationMemberResponse) GetAuthorizedRoles() []OrganizationRole { + if x != nil { + return x.xxx_hidden_AuthorizedRoles + } + return nil +} + +func (x *UserCanRemoveOrganizationMemberResponse) SetAuthorizedRoles(v []OrganizationRole) { + x.xxx_hidden_AuthorizedRoles = v +} + +type UserCanRemoveOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of roles that the user is authorized to remove, empty list means the user is + // not authorized to remove any members. + AuthorizedRoles []OrganizationRole +} + +func (b0 UserCanRemoveOrganizationMemberResponse_builder) Build() *UserCanRemoveOrganizationMemberResponse { + m0 := &UserCanRemoveOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AuthorizedRoles = b.AuthorizedRoles + return m0 +} + +type UserCanDeleteOrganizationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanDeleteOrganizationRequest) Reset() { + *x = UserCanDeleteOrganizationRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanDeleteOrganizationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanDeleteOrganizationRequest) ProtoMessage() {} + +func (x *UserCanDeleteOrganizationRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanDeleteOrganizationRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *UserCanDeleteOrganizationRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +type UserCanDeleteOrganizationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // whether the user is authorized. + OrganizationId string +} + +func (b0 UserCanDeleteOrganizationRequest_builder) Build() *UserCanDeleteOrganizationRequest { + m0 := &UserCanDeleteOrganizationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + return m0 +} + +type UserCanDeleteOrganizationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanDeleteOrganizationResponse) Reset() { + *x = UserCanDeleteOrganizationResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanDeleteOrganizationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanDeleteOrganizationResponse) ProtoMessage() {} + +func (x *UserCanDeleteOrganizationResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanDeleteOrganizationResponse) GetAuthorized() bool { + if x != nil { + return x.xxx_hidden_Authorized + } + return false +} + +func (x *UserCanDeleteOrganizationResponse) SetAuthorized(v bool) { + x.xxx_hidden_Authorized = v +} + +type UserCanDeleteOrganizationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanDeleteOrganizationResponse_builder) Build() *UserCanDeleteOrganizationResponse { + m0 := &UserCanDeleteOrganizationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Authorized = b.Authorized + return m0 +} + +type UserCanDeleteRepositoryRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanDeleteRepositoryRequest) Reset() { + *x = UserCanDeleteRepositoryRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanDeleteRepositoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanDeleteRepositoryRequest) ProtoMessage() {} + +func (x *UserCanDeleteRepositoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanDeleteRepositoryRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *UserCanDeleteRepositoryRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +type UserCanDeleteRepositoryRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // whether the user is authorized. + RepositoryId string +} + +func (b0 UserCanDeleteRepositoryRequest_builder) Build() *UserCanDeleteRepositoryRequest { + m0 := &UserCanDeleteRepositoryRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + return m0 +} + +type UserCanDeleteRepositoryResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanDeleteRepositoryResponse) Reset() { + *x = UserCanDeleteRepositoryResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanDeleteRepositoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanDeleteRepositoryResponse) ProtoMessage() {} + +func (x *UserCanDeleteRepositoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanDeleteRepositoryResponse) GetAuthorized() bool { + if x != nil { + return x.xxx_hidden_Authorized + } + return false +} + +func (x *UserCanDeleteRepositoryResponse) SetAuthorized(v bool) { + x.xxx_hidden_Authorized = v +} + +type UserCanDeleteRepositoryResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanDeleteRepositoryResponse_builder) Build() *UserCanDeleteRepositoryResponse { + m0 := &UserCanDeleteRepositoryResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Authorized = b.Authorized + return m0 +} + +type UserCanDeleteUserRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanDeleteUserRequest) Reset() { + *x = UserCanDeleteUserRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanDeleteUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanDeleteUserRequest) ProtoMessage() {} + +func (x *UserCanDeleteUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UserCanDeleteUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UserCanDeleteUserRequest_builder) Build() *UserCanDeleteUserRequest { + m0 := &UserCanDeleteUserRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type UserCanDeleteUserResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanDeleteUserResponse) Reset() { + *x = UserCanDeleteUserResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanDeleteUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanDeleteUserResponse) ProtoMessage() {} + +func (x *UserCanDeleteUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanDeleteUserResponse) GetAuthorized() bool { + if x != nil { + return x.xxx_hidden_Authorized + } + return false +} + +func (x *UserCanDeleteUserResponse) SetAuthorized(v bool) { + x.xxx_hidden_Authorized = v +} + +type UserCanDeleteUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanDeleteUserResponse_builder) Build() *UserCanDeleteUserResponse { + m0 := &UserCanDeleteUserResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Authorized = b.Authorized + return m0 +} + +type UserCanSeeServerAdminPanelRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanSeeServerAdminPanelRequest) Reset() { + *x = UserCanSeeServerAdminPanelRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanSeeServerAdminPanelRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanSeeServerAdminPanelRequest) ProtoMessage() {} + +func (x *UserCanSeeServerAdminPanelRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UserCanSeeServerAdminPanelRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UserCanSeeServerAdminPanelRequest_builder) Build() *UserCanSeeServerAdminPanelRequest { + m0 := &UserCanSeeServerAdminPanelRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type UserCanSeeServerAdminPanelResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanSeeServerAdminPanelResponse) Reset() { + *x = UserCanSeeServerAdminPanelResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanSeeServerAdminPanelResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanSeeServerAdminPanelResponse) ProtoMessage() {} + +func (x *UserCanSeeServerAdminPanelResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanSeeServerAdminPanelResponse) GetAuthorized() bool { + if x != nil { + return x.xxx_hidden_Authorized + } + return false +} + +func (x *UserCanSeeServerAdminPanelResponse) SetAuthorized(v bool) { + x.xxx_hidden_Authorized = v +} + +type UserCanSeeServerAdminPanelResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanSeeServerAdminPanelResponse_builder) Build() *UserCanSeeServerAdminPanelResponse { + m0 := &UserCanSeeServerAdminPanelResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Authorized = b.Authorized + return m0 +} + +type UserCanManageRepositoryContributorsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanManageRepositoryContributorsRequest) Reset() { + *x = UserCanManageRepositoryContributorsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanManageRepositoryContributorsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanManageRepositoryContributorsRequest) ProtoMessage() {} + +func (x *UserCanManageRepositoryContributorsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanManageRepositoryContributorsRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *UserCanManageRepositoryContributorsRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +type UserCanManageRepositoryContributorsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // whether the user is authorized. + RepositoryId string +} + +func (b0 UserCanManageRepositoryContributorsRequest_builder) Build() *UserCanManageRepositoryContributorsRequest { + m0 := &UserCanManageRepositoryContributorsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + return m0 +} + +type UserCanManageRepositoryContributorsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AuthorizedRoles []RepositoryRole `protobuf:"varint,1,rep,packed,name=authorized_roles,json=authorizedRoles,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"authorized_roles,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanManageRepositoryContributorsResponse) Reset() { + *x = UserCanManageRepositoryContributorsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanManageRepositoryContributorsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanManageRepositoryContributorsResponse) ProtoMessage() {} + +func (x *UserCanManageRepositoryContributorsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanManageRepositoryContributorsResponse) GetAuthorizedRoles() []RepositoryRole { + if x != nil { + return x.xxx_hidden_AuthorizedRoles + } + return nil +} + +func (x *UserCanManageRepositoryContributorsResponse) SetAuthorizedRoles(v []RepositoryRole) { + x.xxx_hidden_AuthorizedRoles = v +} + +type UserCanManageRepositoryContributorsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of roles that the user is authorized to manage, empty list means the user is + // not authorized to manage any contributors. + AuthorizedRoles []RepositoryRole +} + +func (b0 UserCanManageRepositoryContributorsResponse_builder) Build() *UserCanManageRepositoryContributorsResponse { + m0 := &UserCanManageRepositoryContributorsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AuthorizedRoles = b.AuthorizedRoles + return m0 +} + +type UserCanReviewCommitsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanReviewCommitsRequest) Reset() { + *x = UserCanReviewCommitsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanReviewCommitsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanReviewCommitsRequest) ProtoMessage() {} + +func (x *UserCanReviewCommitsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanReviewCommitsRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *UserCanReviewCommitsRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +type UserCanReviewCommitsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // whether the user is authorized. + RepositoryId string +} + +func (b0 UserCanReviewCommitsRequest_builder) Build() *UserCanReviewCommitsRequest { + m0 := &UserCanReviewCommitsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + return m0 +} + +type UserCanReviewCommitsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserCanReviewCommitsResponse) Reset() { + *x = UserCanReviewCommitsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserCanReviewCommitsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserCanReviewCommitsResponse) ProtoMessage() {} + +func (x *UserCanReviewCommitsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserCanReviewCommitsResponse) GetAuthorized() bool { + if x != nil { + return x.xxx_hidden_Authorized + } + return false +} + +func (x *UserCanReviewCommitsResponse) SetAuthorized(v bool) { + x.xxx_hidden_Authorized = v +} + +type UserCanReviewCommitsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Authorized bool +} + +func (b0 UserCanReviewCommitsResponse_builder) Build() *UserCanReviewCommitsResponse { + m0 := &UserCanReviewCommitsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Authorized = b.Authorized + return m0 +} + +var File_buf_alpha_registry_v1alpha1_authz_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_authz_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x75, + 0x74, 0x68, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x55, + 0x0a, 0x2a, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x4d, 0x0a, 0x2b, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x7a, 0x65, 0x64, 0x22, 0x4a, 0x0a, 0x23, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x53, + 0x65, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, + 0x22, 0x46, 0x0a, 0x24, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x65, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x22, 0x50, 0x0a, 0x25, 0x55, 0x73, 0x65, 0x72, + 0x43, 0x61, 0x6e, 0x53, 0x65, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x48, 0x0a, 0x26, 0x55, 0x73, + 0x65, 0x72, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x7a, 0x65, 0x64, 0x22, 0x4e, 0x0a, 0x23, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x41, + 0x64, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x80, 0x01, 0x0a, 0x24, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, + 0x41, 0x64, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, + 0x10, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x6c, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x0f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x65, 0x64, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x51, 0x0a, 0x26, 0x55, 0x73, 0x65, 0x72, 0x43, + 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x83, 0x01, 0x0a, 0x27, 0x55, + 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x10, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, + 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, + 0x0f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x52, 0x6f, 0x6c, 0x65, 0x73, + 0x22, 0x51, 0x0a, 0x26, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x22, 0x83, 0x01, 0x0a, 0x27, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x58, 0x0a, 0x10, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x72, 0x6f, + 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x0f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x7a, 0x65, 0x64, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x4b, 0x0a, 0x20, 0x55, 0x73, 0x65, + 0x72, 0x43, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, + 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x43, 0x0a, 0x21, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, + 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x22, 0x45, 0x0a, 0x1e, 0x55, + 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, + 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x49, 0x64, 0x22, 0x41, 0x0a, 0x1f, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x7a, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x65, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x3b, 0x0a, 0x19, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, + 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x22, 0x23, + 0x0a, 0x21, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x65, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0x44, 0x0a, 0x22, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x53, 0x65, + 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x61, 0x6e, 0x65, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x22, 0x51, 0x0a, 0x2a, 0x55, 0x73, 0x65, + 0x72, 0x43, 0x61, 0x6e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x85, 0x01, 0x0a, + 0x2b, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x10, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, + 0x6f, 0x6c, 0x65, 0x52, 0x0f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x52, + 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x42, 0x0a, 0x1b, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x52, + 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x1c, 0x55, 0x73, 0x65, 0x72, + 0x43, 0x61, 0x6e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x32, 0xfd, 0x0f, 0x0a, 0x0c, 0x41, 0x75, 0x74, + 0x68, 0x7a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xbd, 0x01, 0x0a, 0x23, 0x55, 0x73, + 0x65, 0x72, 0x43, 0x61, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x12, 0x47, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x48, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xa8, 0x01, 0x0a, 0x1c, 0x55, 0x73, + 0x65, 0x72, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x40, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, + 0x53, 0x65, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, + 0x61, 0x6e, 0x53, 0x65, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x03, 0x90, 0x02, 0x01, 0x12, 0xae, 0x01, 0x0a, 0x1e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, + 0x53, 0x65, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x42, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x65, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, + 0x6e, 0x53, 0x65, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xa8, 0x01, 0x0a, 0x1c, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, + 0x6e, 0x41, 0x64, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x40, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x41, 0x64, 0x64, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x41, 0x64, + 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, + 0x12, 0xb1, 0x01, 0x0a, 0x1f, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x12, 0x43, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x44, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x03, 0x90, 0x02, 0x01, 0x12, 0xb1, 0x01, 0x0a, 0x1f, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x43, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x44, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x43, 0x61, 0x6e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x9f, 0x01, 0x0a, 0x19, 0x55, 0x73, 0x65, + 0x72, 0x43, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x99, 0x01, 0x0a, 0x17, 0x55, + 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x3b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x87, 0x01, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x43, + 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x35, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, + 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, + 0x12, 0xa2, 0x01, 0x0a, 0x1a, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x65, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x12, + 0x3e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x3f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x43, 0x61, 0x6e, 0x53, 0x65, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x50, 0x61, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xbd, 0x01, 0x0a, 0x23, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, + 0x6e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x47, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x43, 0x61, 0x6e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x48, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x90, 0x01, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, + 0x6e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x38, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x43, 0x61, 0x6e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x52, 0x65, + 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x97, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x41, 0x75, + 0x74, 0x68, 0x7a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, + 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, + 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, + 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, + 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes = make([]protoimpl.MessageInfo, 24) +var file_buf_alpha_registry_v1alpha1_authz_proto_goTypes = []any{ + (*UserCanCreateOrganizationRepositoryRequest)(nil), // 0: buf.alpha.registry.v1alpha1.UserCanCreateOrganizationRepositoryRequest + (*UserCanCreateOrganizationRepositoryResponse)(nil), // 1: buf.alpha.registry.v1alpha1.UserCanCreateOrganizationRepositoryResponse + (*UserCanSeeRepositorySettingsRequest)(nil), // 2: buf.alpha.registry.v1alpha1.UserCanSeeRepositorySettingsRequest + (*UserCanSeeRepositorySettingsResponse)(nil), // 3: buf.alpha.registry.v1alpha1.UserCanSeeRepositorySettingsResponse + (*UserCanSeeOrganizationSettingsRequest)(nil), // 4: buf.alpha.registry.v1alpha1.UserCanSeeOrganizationSettingsRequest + (*UserCanSeeOrganizationSettingsResponse)(nil), // 5: buf.alpha.registry.v1alpha1.UserCanSeeOrganizationSettingsResponse + (*UserCanAddOrganizationMemberRequest)(nil), // 6: buf.alpha.registry.v1alpha1.UserCanAddOrganizationMemberRequest + (*UserCanAddOrganizationMemberResponse)(nil), // 7: buf.alpha.registry.v1alpha1.UserCanAddOrganizationMemberResponse + (*UserCanUpdateOrganizationMemberRequest)(nil), // 8: buf.alpha.registry.v1alpha1.UserCanUpdateOrganizationMemberRequest + (*UserCanUpdateOrganizationMemberResponse)(nil), // 9: buf.alpha.registry.v1alpha1.UserCanUpdateOrganizationMemberResponse + (*UserCanRemoveOrganizationMemberRequest)(nil), // 10: buf.alpha.registry.v1alpha1.UserCanRemoveOrganizationMemberRequest + (*UserCanRemoveOrganizationMemberResponse)(nil), // 11: buf.alpha.registry.v1alpha1.UserCanRemoveOrganizationMemberResponse + (*UserCanDeleteOrganizationRequest)(nil), // 12: buf.alpha.registry.v1alpha1.UserCanDeleteOrganizationRequest + (*UserCanDeleteOrganizationResponse)(nil), // 13: buf.alpha.registry.v1alpha1.UserCanDeleteOrganizationResponse + (*UserCanDeleteRepositoryRequest)(nil), // 14: buf.alpha.registry.v1alpha1.UserCanDeleteRepositoryRequest + (*UserCanDeleteRepositoryResponse)(nil), // 15: buf.alpha.registry.v1alpha1.UserCanDeleteRepositoryResponse + (*UserCanDeleteUserRequest)(nil), // 16: buf.alpha.registry.v1alpha1.UserCanDeleteUserRequest + (*UserCanDeleteUserResponse)(nil), // 17: buf.alpha.registry.v1alpha1.UserCanDeleteUserResponse + (*UserCanSeeServerAdminPanelRequest)(nil), // 18: buf.alpha.registry.v1alpha1.UserCanSeeServerAdminPanelRequest + (*UserCanSeeServerAdminPanelResponse)(nil), // 19: buf.alpha.registry.v1alpha1.UserCanSeeServerAdminPanelResponse + (*UserCanManageRepositoryContributorsRequest)(nil), // 20: buf.alpha.registry.v1alpha1.UserCanManageRepositoryContributorsRequest + (*UserCanManageRepositoryContributorsResponse)(nil), // 21: buf.alpha.registry.v1alpha1.UserCanManageRepositoryContributorsResponse + (*UserCanReviewCommitsRequest)(nil), // 22: buf.alpha.registry.v1alpha1.UserCanReviewCommitsRequest + (*UserCanReviewCommitsResponse)(nil), // 23: buf.alpha.registry.v1alpha1.UserCanReviewCommitsResponse + (OrganizationRole)(0), // 24: buf.alpha.registry.v1alpha1.OrganizationRole + (RepositoryRole)(0), // 25: buf.alpha.registry.v1alpha1.RepositoryRole +} +var file_buf_alpha_registry_v1alpha1_authz_proto_depIdxs = []int32{ + 24, // 0: buf.alpha.registry.v1alpha1.UserCanAddOrganizationMemberResponse.authorized_roles:type_name -> buf.alpha.registry.v1alpha1.OrganizationRole + 24, // 1: buf.alpha.registry.v1alpha1.UserCanUpdateOrganizationMemberResponse.authorized_roles:type_name -> buf.alpha.registry.v1alpha1.OrganizationRole + 24, // 2: buf.alpha.registry.v1alpha1.UserCanRemoveOrganizationMemberResponse.authorized_roles:type_name -> buf.alpha.registry.v1alpha1.OrganizationRole + 25, // 3: buf.alpha.registry.v1alpha1.UserCanManageRepositoryContributorsResponse.authorized_roles:type_name -> buf.alpha.registry.v1alpha1.RepositoryRole + 0, // 4: buf.alpha.registry.v1alpha1.AuthzService.UserCanCreateOrganizationRepository:input_type -> buf.alpha.registry.v1alpha1.UserCanCreateOrganizationRepositoryRequest + 2, // 5: buf.alpha.registry.v1alpha1.AuthzService.UserCanSeeRepositorySettings:input_type -> buf.alpha.registry.v1alpha1.UserCanSeeRepositorySettingsRequest + 4, // 6: buf.alpha.registry.v1alpha1.AuthzService.UserCanSeeOrganizationSettings:input_type -> buf.alpha.registry.v1alpha1.UserCanSeeOrganizationSettingsRequest + 6, // 7: buf.alpha.registry.v1alpha1.AuthzService.UserCanAddOrganizationMember:input_type -> buf.alpha.registry.v1alpha1.UserCanAddOrganizationMemberRequest + 8, // 8: buf.alpha.registry.v1alpha1.AuthzService.UserCanUpdateOrganizationMember:input_type -> buf.alpha.registry.v1alpha1.UserCanUpdateOrganizationMemberRequest + 10, // 9: buf.alpha.registry.v1alpha1.AuthzService.UserCanRemoveOrganizationMember:input_type -> buf.alpha.registry.v1alpha1.UserCanRemoveOrganizationMemberRequest + 12, // 10: buf.alpha.registry.v1alpha1.AuthzService.UserCanDeleteOrganization:input_type -> buf.alpha.registry.v1alpha1.UserCanDeleteOrganizationRequest + 14, // 11: buf.alpha.registry.v1alpha1.AuthzService.UserCanDeleteRepository:input_type -> buf.alpha.registry.v1alpha1.UserCanDeleteRepositoryRequest + 16, // 12: buf.alpha.registry.v1alpha1.AuthzService.UserCanDeleteUser:input_type -> buf.alpha.registry.v1alpha1.UserCanDeleteUserRequest + 18, // 13: buf.alpha.registry.v1alpha1.AuthzService.UserCanSeeServerAdminPanel:input_type -> buf.alpha.registry.v1alpha1.UserCanSeeServerAdminPanelRequest + 20, // 14: buf.alpha.registry.v1alpha1.AuthzService.UserCanManageRepositoryContributors:input_type -> buf.alpha.registry.v1alpha1.UserCanManageRepositoryContributorsRequest + 22, // 15: buf.alpha.registry.v1alpha1.AuthzService.UserCanReviewCommits:input_type -> buf.alpha.registry.v1alpha1.UserCanReviewCommitsRequest + 1, // 16: buf.alpha.registry.v1alpha1.AuthzService.UserCanCreateOrganizationRepository:output_type -> buf.alpha.registry.v1alpha1.UserCanCreateOrganizationRepositoryResponse + 3, // 17: buf.alpha.registry.v1alpha1.AuthzService.UserCanSeeRepositorySettings:output_type -> buf.alpha.registry.v1alpha1.UserCanSeeRepositorySettingsResponse + 5, // 18: buf.alpha.registry.v1alpha1.AuthzService.UserCanSeeOrganizationSettings:output_type -> buf.alpha.registry.v1alpha1.UserCanSeeOrganizationSettingsResponse + 7, // 19: buf.alpha.registry.v1alpha1.AuthzService.UserCanAddOrganizationMember:output_type -> buf.alpha.registry.v1alpha1.UserCanAddOrganizationMemberResponse + 9, // 20: buf.alpha.registry.v1alpha1.AuthzService.UserCanUpdateOrganizationMember:output_type -> buf.alpha.registry.v1alpha1.UserCanUpdateOrganizationMemberResponse + 11, // 21: buf.alpha.registry.v1alpha1.AuthzService.UserCanRemoveOrganizationMember:output_type -> buf.alpha.registry.v1alpha1.UserCanRemoveOrganizationMemberResponse + 13, // 22: buf.alpha.registry.v1alpha1.AuthzService.UserCanDeleteOrganization:output_type -> buf.alpha.registry.v1alpha1.UserCanDeleteOrganizationResponse + 15, // 23: buf.alpha.registry.v1alpha1.AuthzService.UserCanDeleteRepository:output_type -> buf.alpha.registry.v1alpha1.UserCanDeleteRepositoryResponse + 17, // 24: buf.alpha.registry.v1alpha1.AuthzService.UserCanDeleteUser:output_type -> buf.alpha.registry.v1alpha1.UserCanDeleteUserResponse + 19, // 25: buf.alpha.registry.v1alpha1.AuthzService.UserCanSeeServerAdminPanel:output_type -> buf.alpha.registry.v1alpha1.UserCanSeeServerAdminPanelResponse + 21, // 26: buf.alpha.registry.v1alpha1.AuthzService.UserCanManageRepositoryContributors:output_type -> buf.alpha.registry.v1alpha1.UserCanManageRepositoryContributorsResponse + 23, // 27: buf.alpha.registry.v1alpha1.AuthzService.UserCanReviewCommits:output_type -> buf.alpha.registry.v1alpha1.UserCanReviewCommitsResponse + 16, // [16:28] is the sub-list for method output_type + 4, // [4:16] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_authz_proto_init() } +func file_buf_alpha_registry_v1alpha1_authz_proto_init() { + if File_buf_alpha_registry_v1alpha1_authz_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_role_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_authz_proto_rawDesc, + NumEnums: 0, + NumMessages: 24, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_authz_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_authz_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_authz_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_authz_proto = out.File + file_buf_alpha_registry_v1alpha1_authz_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_authz_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_authz_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/convert.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/convert.pb.go index bf9ad50af3..f54dedd5cb 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/convert.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/convert.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/convert.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -80,13 +81,8 @@ func (x ConvertFormat) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use ConvertFormat.Descriptor instead. -func (ConvertFormat) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_convert_proto_rawDescGZIP(), []int{0} -} - type ConvertRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // type_name is the full type name of the serialized message (like acme.weather.v1.Units). TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` // image is the image source that defines the serialized message. @@ -126,11 +122,6 @@ func (x *ConvertRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConvertRequest.ProtoReflect.Descriptor instead. -func (*ConvertRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_convert_proto_rawDescGZIP(), []int{0} -} - func (x *ConvertRequest) GetTypeName() string { if x != nil { return x.TypeName @@ -166,8 +157,69 @@ func (x *ConvertRequest) GetResponseFormat() ConvertFormat { return ConvertFormat_CONVERT_FORMAT_UNSPECIFIED } +func (x *ConvertRequest) SetTypeName(v string) { + x.TypeName = v +} + +func (x *ConvertRequest) SetImage(v *v1.Image) { + x.Image = v +} + +func (x *ConvertRequest) SetPayload(v []byte) { + if v == nil { + v = []byte{} + } + x.Payload = v +} + +func (x *ConvertRequest) SetRequestFormat(v ConvertFormat) { + x.RequestFormat = v +} + +func (x *ConvertRequest) SetResponseFormat(v ConvertFormat) { + x.ResponseFormat = v +} + +func (x *ConvertRequest) HasImage() bool { + if x == nil { + return false + } + return x.Image != nil +} + +func (x *ConvertRequest) ClearImage() { + x.Image = nil +} + +type ConvertRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // type_name is the full type name of the serialized message (like acme.weather.v1.Units). + TypeName string + // image is the image source that defines the serialized message. + Image *v1.Image + // payload is the serialized Protobuf message. + Payload []byte + // request_format is the format of the payload. + RequestFormat ConvertFormat + // response_format is the desired format of the output result. + ResponseFormat ConvertFormat +} + +func (b0 ConvertRequest_builder) Build() *ConvertRequest { + m0 := &ConvertRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TypeName = b.TypeName + x.Image = b.Image + x.Payload = b.Payload + x.RequestFormat = b.RequestFormat + x.ResponseFormat = b.ResponseFormat + return m0 +} + type ConvertResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // payload is the converted serialized message in one of the supported formats. Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` unknownFields protoimpl.UnknownFields @@ -199,11 +251,6 @@ func (x *ConvertResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConvertResponse.ProtoReflect.Descriptor instead. -func (*ConvertResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_convert_proto_rawDescGZIP(), []int{1} -} - func (x *ConvertResponse) GetPayload() []byte { if x != nil { return x.Payload @@ -211,6 +258,28 @@ func (x *ConvertResponse) GetPayload() []byte { return nil } +func (x *ConvertResponse) SetPayload(v []byte) { + if v == nil { + v = []byte{} + } + x.Payload = v +} + +type ConvertResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // payload is the converted serialized message in one of the supported formats. + Payload []byte +} + +func (b0 ConvertResponse_builder) Build() *ConvertResponse { + m0 := &ConvertResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Payload = b.Payload + return m0 +} + var File_buf_alpha_registry_v1alpha1_convert_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_convert_proto_rawDesc = []byte{ @@ -276,18 +345,6 @@ var file_buf_alpha_registry_v1alpha1_convert_proto_rawDesc = []byte{ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_convert_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_convert_proto_rawDescData = file_buf_alpha_registry_v1alpha1_convert_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_convert_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_convert_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_convert_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_convert_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_convert_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_convert_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_buf_alpha_registry_v1alpha1_convert_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_buf_alpha_registry_v1alpha1_convert_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/convert_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/convert_protoopaque.pb.go new file mode 100644 index 0000000000..b9079aa8d9 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/convert_protoopaque.pb.go @@ -0,0 +1,387 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/convert.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + v1 "github.com/bufbuild/buf/private/gen/proto/go/buf/alpha/image/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The supported formats for the serialized message conversion. +type ConvertFormat int32 + +const ( + ConvertFormat_CONVERT_FORMAT_UNSPECIFIED ConvertFormat = 0 + ConvertFormat_CONVERT_FORMAT_BIN ConvertFormat = 1 + ConvertFormat_CONVERT_FORMAT_JSON ConvertFormat = 2 +) + +// Enum value maps for ConvertFormat. +var ( + ConvertFormat_name = map[int32]string{ + 0: "CONVERT_FORMAT_UNSPECIFIED", + 1: "CONVERT_FORMAT_BIN", + 2: "CONVERT_FORMAT_JSON", + } + ConvertFormat_value = map[string]int32{ + "CONVERT_FORMAT_UNSPECIFIED": 0, + "CONVERT_FORMAT_BIN": 1, + "CONVERT_FORMAT_JSON": 2, + } +) + +func (x ConvertFormat) Enum() *ConvertFormat { + p := new(ConvertFormat) + *p = x + return p +} + +func (x ConvertFormat) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConvertFormat) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_convert_proto_enumTypes[0].Descriptor() +} + +func (ConvertFormat) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_convert_proto_enumTypes[0] +} + +func (x ConvertFormat) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type ConvertRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + xxx_hidden_Image *v1.Image `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` + xxx_hidden_Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` + xxx_hidden_RequestFormat ConvertFormat `protobuf:"varint,4,opt,name=request_format,json=requestFormat,proto3,enum=buf.alpha.registry.v1alpha1.ConvertFormat" json:"request_format,omitempty"` + xxx_hidden_ResponseFormat ConvertFormat `protobuf:"varint,5,opt,name=response_format,json=responseFormat,proto3,enum=buf.alpha.registry.v1alpha1.ConvertFormat" json:"response_format,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConvertRequest) Reset() { + *x = ConvertRequest{} + mi := &file_buf_alpha_registry_v1alpha1_convert_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConvertRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConvertRequest) ProtoMessage() {} + +func (x *ConvertRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_convert_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ConvertRequest) GetTypeName() string { + if x != nil { + return x.xxx_hidden_TypeName + } + return "" +} + +func (x *ConvertRequest) GetImage() *v1.Image { + if x != nil { + return x.xxx_hidden_Image + } + return nil +} + +func (x *ConvertRequest) GetPayload() []byte { + if x != nil { + return x.xxx_hidden_Payload + } + return nil +} + +func (x *ConvertRequest) GetRequestFormat() ConvertFormat { + if x != nil { + return x.xxx_hidden_RequestFormat + } + return ConvertFormat_CONVERT_FORMAT_UNSPECIFIED +} + +func (x *ConvertRequest) GetResponseFormat() ConvertFormat { + if x != nil { + return x.xxx_hidden_ResponseFormat + } + return ConvertFormat_CONVERT_FORMAT_UNSPECIFIED +} + +func (x *ConvertRequest) SetTypeName(v string) { + x.xxx_hidden_TypeName = v +} + +func (x *ConvertRequest) SetImage(v *v1.Image) { + x.xxx_hidden_Image = v +} + +func (x *ConvertRequest) SetPayload(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Payload = v +} + +func (x *ConvertRequest) SetRequestFormat(v ConvertFormat) { + x.xxx_hidden_RequestFormat = v +} + +func (x *ConvertRequest) SetResponseFormat(v ConvertFormat) { + x.xxx_hidden_ResponseFormat = v +} + +func (x *ConvertRequest) HasImage() bool { + if x == nil { + return false + } + return x.xxx_hidden_Image != nil +} + +func (x *ConvertRequest) ClearImage() { + x.xxx_hidden_Image = nil +} + +type ConvertRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // type_name is the full type name of the serialized message (like acme.weather.v1.Units). + TypeName string + // image is the image source that defines the serialized message. + Image *v1.Image + // payload is the serialized Protobuf message. + Payload []byte + // request_format is the format of the payload. + RequestFormat ConvertFormat + // response_format is the desired format of the output result. + ResponseFormat ConvertFormat +} + +func (b0 ConvertRequest_builder) Build() *ConvertRequest { + m0 := &ConvertRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TypeName = b.TypeName + x.xxx_hidden_Image = b.Image + x.xxx_hidden_Payload = b.Payload + x.xxx_hidden_RequestFormat = b.RequestFormat + x.xxx_hidden_ResponseFormat = b.ResponseFormat + return m0 +} + +type ConvertResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConvertResponse) Reset() { + *x = ConvertResponse{} + mi := &file_buf_alpha_registry_v1alpha1_convert_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConvertResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConvertResponse) ProtoMessage() {} + +func (x *ConvertResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_convert_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ConvertResponse) GetPayload() []byte { + if x != nil { + return x.xxx_hidden_Payload + } + return nil +} + +func (x *ConvertResponse) SetPayload(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Payload = v +} + +type ConvertResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // payload is the converted serialized message in one of the supported formats. + Payload []byte +} + +func (b0 ConvertResponse_builder) Build() *ConvertResponse { + m0 := &ConvertResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Payload = b.Payload + return m0 +} + +var File_buf_alpha_registry_v1alpha1_convert_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_convert_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x63, 0x6f, + 0x6e, 0x76, 0x65, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1e, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa0, 0x02, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, + 0x76, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x61, + 0x67, 0x65, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x12, 0x51, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, + 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x53, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, + 0x6e, 0x76, 0x65, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x0e, 0x72, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x2b, 0x0a, 0x0f, 0x43, + 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0x60, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x76, + 0x65, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4f, 0x4e, + 0x56, 0x45, 0x52, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4f, 0x4e, + 0x56, 0x45, 0x52, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x42, 0x49, 0x4e, 0x10, + 0x01, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x54, 0x5f, 0x46, 0x4f, 0x52, + 0x4d, 0x41, 0x54, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x02, 0x32, 0x76, 0x0a, 0x0e, 0x43, 0x6f, + 0x6e, 0x76, 0x65, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x64, 0x0a, 0x07, + 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x12, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x42, 0x99, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0c, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, + 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_convert_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_buf_alpha_registry_v1alpha1_convert_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_buf_alpha_registry_v1alpha1_convert_proto_goTypes = []any{ + (ConvertFormat)(0), // 0: buf.alpha.registry.v1alpha1.ConvertFormat + (*ConvertRequest)(nil), // 1: buf.alpha.registry.v1alpha1.ConvertRequest + (*ConvertResponse)(nil), // 2: buf.alpha.registry.v1alpha1.ConvertResponse + (*v1.Image)(nil), // 3: buf.alpha.image.v1.Image +} +var file_buf_alpha_registry_v1alpha1_convert_proto_depIdxs = []int32{ + 3, // 0: buf.alpha.registry.v1alpha1.ConvertRequest.image:type_name -> buf.alpha.image.v1.Image + 0, // 1: buf.alpha.registry.v1alpha1.ConvertRequest.request_format:type_name -> buf.alpha.registry.v1alpha1.ConvertFormat + 0, // 2: buf.alpha.registry.v1alpha1.ConvertRequest.response_format:type_name -> buf.alpha.registry.v1alpha1.ConvertFormat + 1, // 3: buf.alpha.registry.v1alpha1.ConvertService.Convert:input_type -> buf.alpha.registry.v1alpha1.ConvertRequest + 2, // 4: buf.alpha.registry.v1alpha1.ConvertService.Convert:output_type -> buf.alpha.registry.v1alpha1.ConvertResponse + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_convert_proto_init() } +func file_buf_alpha_registry_v1alpha1_convert_proto_init() { + if File_buf_alpha_registry_v1alpha1_convert_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_convert_proto_rawDesc, + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_convert_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_convert_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_convert_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_convert_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_convert_proto = out.File + file_buf_alpha_registry_v1alpha1_convert_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_convert_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_convert_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/display.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/display.pb.go index 8964c7b017..a33116bc25 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/display.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/display.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/display.proto +//go:build !protoopaque + package registryv1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -35,7 +36,7 @@ const ( ) type DisplayOrganizationElementsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which to check // which elements should be displayed. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` @@ -68,11 +69,6 @@ func (x *DisplayOrganizationElementsRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use DisplayOrganizationElementsRequest.ProtoReflect.Descriptor instead. -func (*DisplayOrganizationElementsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{0} -} - func (x *DisplayOrganizationElementsRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -80,8 +76,28 @@ func (x *DisplayOrganizationElementsRequest) GetOrganizationId() string { return "" } +func (x *DisplayOrganizationElementsRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +type DisplayOrganizationElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // which elements should be displayed. + OrganizationId string +} + +func (b0 DisplayOrganizationElementsRequest_builder) Build() *DisplayOrganizationElementsRequest { + m0 := &DisplayOrganizationElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + return m0 +} + type DisplayOrganizationElementsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Display create organization repository element if true. CreateRepository bool `protobuf:"varint,1,opt,name=create_repository,json=createRepository,proto3" json:"create_repository,omitempty"` // Display organization settings element if true. @@ -119,11 +135,6 @@ func (x *DisplayOrganizationElementsResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use DisplayOrganizationElementsResponse.ProtoReflect.Descriptor instead. -func (*DisplayOrganizationElementsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{1} -} - func (x *DisplayOrganizationElementsResponse) GetCreateRepository() bool { if x != nil { return x.CreateRepository @@ -152,8 +163,48 @@ func (x *DisplayOrganizationElementsResponse) GetDelete() bool { return false } +func (x *DisplayOrganizationElementsResponse) SetCreateRepository(v bool) { + x.CreateRepository = v +} + +func (x *DisplayOrganizationElementsResponse) SetSettings(v bool) { + x.Settings = v +} + +func (x *DisplayOrganizationElementsResponse) SetUpdateSettings(v bool) { + x.UpdateSettings = v +} + +func (x *DisplayOrganizationElementsResponse) SetDelete(v bool) { + x.Delete = v +} + +type DisplayOrganizationElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display create organization repository element if true. + CreateRepository bool + // Display organization settings element if true. + Settings bool + // Display update organization settings element if true. + UpdateSettings bool + // Display delete organization element if true. + Delete bool +} + +func (b0 DisplayOrganizationElementsResponse_builder) Build() *DisplayOrganizationElementsResponse { + m0 := &DisplayOrganizationElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.CreateRepository = b.CreateRepository + x.Settings = b.Settings + x.UpdateSettings = b.UpdateSettings + x.Delete = b.Delete + return m0 +} + type DisplayRepositoryElementsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository for which to check // which elements should be displayed. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` @@ -186,11 +237,6 @@ func (x *DisplayRepositoryElementsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DisplayRepositoryElementsRequest.ProtoReflect.Descriptor instead. -func (*DisplayRepositoryElementsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{2} -} - func (x *DisplayRepositoryElementsRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -198,8 +244,28 @@ func (x *DisplayRepositoryElementsRequest) GetRepositoryId() string { return "" } +func (x *DisplayRepositoryElementsRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +type DisplayRepositoryElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // which elements should be displayed. + RepositoryId string +} + +func (b0 DisplayRepositoryElementsRequest_builder) Build() *DisplayRepositoryElementsRequest { + m0 := &DisplayRepositoryElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + return m0 +} + type DisplayRepositoryElementsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Display repository settings element if true. Settings bool `protobuf:"varint,1,opt,name=settings,proto3" json:"settings,omitempty"` // Display delete repository element if true. @@ -237,11 +303,6 @@ func (x *DisplayRepositoryElementsResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use DisplayRepositoryElementsResponse.ProtoReflect.Descriptor instead. -func (*DisplayRepositoryElementsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{3} -} - func (x *DisplayRepositoryElementsResponse) GetSettings() bool { if x != nil { return x.Settings @@ -270,8 +331,48 @@ func (x *DisplayRepositoryElementsResponse) GetLimitedWrite() bool { return false } +func (x *DisplayRepositoryElementsResponse) SetSettings(v bool) { + x.Settings = v +} + +func (x *DisplayRepositoryElementsResponse) SetDelete(v bool) { + x.Delete = v +} + +func (x *DisplayRepositoryElementsResponse) SetWrite(v bool) { + x.Write = v +} + +func (x *DisplayRepositoryElementsResponse) SetLimitedWrite(v bool) { + x.LimitedWrite = v +} + +type DisplayRepositoryElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display repository settings element if true. + Settings bool + // Display delete repository element if true. + Delete bool + // Display write repository elements if true. It includes all elements from limited_write. + Write bool + // Display limited_write repository elements if true. This is a subset of write elements. + LimitedWrite bool +} + +func (b0 DisplayRepositoryElementsResponse_builder) Build() *DisplayRepositoryElementsResponse { + m0 := &DisplayRepositoryElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Settings = b.Settings + x.Delete = b.Delete + x.Write = b.Write + x.LimitedWrite = b.LimitedWrite + return m0 +} + type DisplayPluginElementsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the plugin for which to check // which elements should be displayed. PluginId string `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` @@ -304,11 +405,6 @@ func (x *DisplayPluginElementsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DisplayPluginElementsRequest.ProtoReflect.Descriptor instead. -func (*DisplayPluginElementsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{4} -} - func (x *DisplayPluginElementsRequest) GetPluginId() string { if x != nil { return x.PluginId @@ -316,8 +412,28 @@ func (x *DisplayPluginElementsRequest) GetPluginId() string { return "" } +func (x *DisplayPluginElementsRequest) SetPluginId(v string) { + x.PluginId = v +} + +type DisplayPluginElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the plugin for which to check + // which elements should be displayed. + PluginId string +} + +func (b0 DisplayPluginElementsRequest_builder) Build() *DisplayPluginElementsRequest { + m0 := &DisplayPluginElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PluginId = b.PluginId + return m0 +} + type DisplayPluginElementsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Display plugin settings element if true. Settings bool `protobuf:"varint,1,opt,name=settings,proto3" json:"settings,omitempty"` // Display delete plugin element if true. @@ -351,11 +467,6 @@ func (x *DisplayPluginElementsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DisplayPluginElementsResponse.ProtoReflect.Descriptor instead. -func (*DisplayPluginElementsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{5} -} - func (x *DisplayPluginElementsResponse) GetSettings() bool { if x != nil { return x.Settings @@ -370,8 +481,34 @@ func (x *DisplayPluginElementsResponse) GetDelete() bool { return false } +func (x *DisplayPluginElementsResponse) SetSettings(v bool) { + x.Settings = v +} + +func (x *DisplayPluginElementsResponse) SetDelete(v bool) { + x.Delete = v +} + +type DisplayPluginElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display plugin settings element if true. + Settings bool + // Display delete plugin element if true. + Delete bool +} + +func (b0 DisplayPluginElementsResponse_builder) Build() *DisplayPluginElementsResponse { + m0 := &DisplayPluginElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Settings = b.Settings + x.Delete = b.Delete + return m0 +} + type DisplayUserElementsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -401,13 +538,20 @@ func (x *DisplayUserElementsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DisplayUserElementsRequest.ProtoReflect.Descriptor instead. -func (*DisplayUserElementsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{6} +type DisplayUserElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DisplayUserElementsRequest_builder) Build() *DisplayUserElementsRequest { + m0 := &DisplayUserElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type DisplayUserElementsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Display delete user element if true. Delete bool `protobuf:"varint,1,opt,name=delete,proto3" json:"delete,omitempty"` unknownFields protoimpl.UnknownFields @@ -439,11 +583,6 @@ func (x *DisplayUserElementsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DisplayUserElementsResponse.ProtoReflect.Descriptor instead. -func (*DisplayUserElementsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{7} -} - func (x *DisplayUserElementsResponse) GetDelete() bool { if x != nil { return x.Delete @@ -451,8 +590,27 @@ func (x *DisplayUserElementsResponse) GetDelete() bool { return false } +func (x *DisplayUserElementsResponse) SetDelete(v bool) { + x.Delete = v +} + +type DisplayUserElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display delete user element if true. + Delete bool +} + +func (b0 DisplayUserElementsResponse_builder) Build() *DisplayUserElementsResponse { + m0 := &DisplayUserElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Delete = b.Delete + return m0 +} + type DisplayServerElementsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -482,13 +640,20 @@ func (x *DisplayServerElementsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DisplayServerElementsRequest.ProtoReflect.Descriptor instead. -func (*DisplayServerElementsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{8} +type DisplayServerElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DisplayServerElementsRequest_builder) Build() *DisplayServerElementsRequest { + m0 := &DisplayServerElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type DisplayServerElementsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Display server admin panel element if true. AdminPanel bool `protobuf:"varint,1,opt,name=admin_panel,json=adminPanel,proto3" json:"admin_panel,omitempty"` unknownFields protoimpl.UnknownFields @@ -520,11 +685,6 @@ func (x *DisplayServerElementsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DisplayServerElementsResponse.ProtoReflect.Descriptor instead. -func (*DisplayServerElementsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{9} -} - func (x *DisplayServerElementsResponse) GetAdminPanel() bool { if x != nil { return x.AdminPanel @@ -532,8 +692,27 @@ func (x *DisplayServerElementsResponse) GetAdminPanel() bool { return false } +func (x *DisplayServerElementsResponse) SetAdminPanel(v bool) { + x.AdminPanel = v +} + +type DisplayServerElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display server admin panel element if true. + AdminPanel bool +} + +func (b0 DisplayServerElementsResponse_builder) Build() *DisplayServerElementsResponse { + m0 := &DisplayServerElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.AdminPanel = b.AdminPanel + return m0 +} + type DisplayOwnerEntitledElementsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The name of the owner for which to check // which elements are entitled to be displayed. OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` @@ -566,11 +745,6 @@ func (x *DisplayOwnerEntitledElementsRequest) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use DisplayOwnerEntitledElementsRequest.ProtoReflect.Descriptor instead. -func (*DisplayOwnerEntitledElementsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{10} -} - func (x *DisplayOwnerEntitledElementsRequest) GetOwnerName() string { if x != nil { return x.OwnerName @@ -578,8 +752,28 @@ func (x *DisplayOwnerEntitledElementsRequest) GetOwnerName() string { return "" } +func (x *DisplayOwnerEntitledElementsRequest) SetOwnerName(v string) { + x.OwnerName = v +} + +type DisplayOwnerEntitledElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the owner for which to check + // which elements are entitled to be displayed. + OwnerName string +} + +func (b0 DisplayOwnerEntitledElementsRequest_builder) Build() *DisplayOwnerEntitledElementsRequest { + m0 := &DisplayOwnerEntitledElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerName = b.OwnerName + return m0 +} + type DisplayOwnerEntitledElementsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Display create private repository element if true. CreatePrivateRepository bool `protobuf:"varint,1,opt,name=create_private_repository,json=createPrivateRepository,proto3" json:"create_private_repository,omitempty"` unknownFields protoimpl.UnknownFields @@ -611,11 +805,6 @@ func (x *DisplayOwnerEntitledElementsResponse) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use DisplayOwnerEntitledElementsResponse.ProtoReflect.Descriptor instead. -func (*DisplayOwnerEntitledElementsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{11} -} - func (x *DisplayOwnerEntitledElementsResponse) GetCreatePrivateRepository() bool { if x != nil { return x.CreatePrivateRepository @@ -623,8 +812,27 @@ func (x *DisplayOwnerEntitledElementsResponse) GetCreatePrivateRepository() bool return false } +func (x *DisplayOwnerEntitledElementsResponse) SetCreatePrivateRepository(v bool) { + x.CreatePrivateRepository = v +} + +type DisplayOwnerEntitledElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display create private repository element if true. + CreatePrivateRepository bool +} + +func (b0 DisplayOwnerEntitledElementsResponse_builder) Build() *DisplayOwnerEntitledElementsResponse { + m0 := &DisplayOwnerEntitledElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.CreatePrivateRepository = b.CreatePrivateRepository + return m0 +} + type DisplayRepositoryEntitledElementsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository for which to check // which elements are entitled to be displayed. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` @@ -657,11 +865,6 @@ func (x *DisplayRepositoryEntitledElementsRequest) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use DisplayRepositoryEntitledElementsRequest.ProtoReflect.Descriptor instead. -func (*DisplayRepositoryEntitledElementsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{12} -} - func (x *DisplayRepositoryEntitledElementsRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -669,8 +872,28 @@ func (x *DisplayRepositoryEntitledElementsRequest) GetRepositoryId() string { return "" } +func (x *DisplayRepositoryEntitledElementsRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +type DisplayRepositoryEntitledElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // which elements are entitled to be displayed. + RepositoryId string +} + +func (b0 DisplayRepositoryEntitledElementsRequest_builder) Build() *DisplayRepositoryEntitledElementsRequest { + m0 := &DisplayRepositoryEntitledElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + return m0 +} + type DisplayRepositoryEntitledElementsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Display repository change to private setting element if true. SetPrivate bool `protobuf:"varint,1,opt,name=set_private,json=setPrivate,proto3" json:"set_private,omitempty"` unknownFields protoimpl.UnknownFields @@ -702,11 +925,6 @@ func (x *DisplayRepositoryEntitledElementsResponse) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use DisplayRepositoryEntitledElementsResponse.ProtoReflect.Descriptor instead. -func (*DisplayRepositoryEntitledElementsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{13} -} - func (x *DisplayRepositoryEntitledElementsResponse) GetSetPrivate() bool { if x != nil { return x.SetPrivate @@ -714,8 +932,27 @@ func (x *DisplayRepositoryEntitledElementsResponse) GetSetPrivate() bool { return false } +func (x *DisplayRepositoryEntitledElementsResponse) SetSetPrivate(v bool) { + x.SetPrivate = v +} + +type DisplayRepositoryEntitledElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display repository change to private setting element if true. + SetPrivate bool +} + +func (b0 DisplayRepositoryEntitledElementsResponse_builder) Build() *DisplayRepositoryEntitledElementsResponse { + m0 := &DisplayRepositoryEntitledElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.SetPrivate = b.SetPrivate + return m0 +} + type ListManageableRepositoryRolesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository for which to check // which roles should be displayed as manageable. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` @@ -748,11 +985,6 @@ func (x *ListManageableRepositoryRolesRequest) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use ListManageableRepositoryRolesRequest.ProtoReflect.Descriptor instead. -func (*ListManageableRepositoryRolesRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{14} -} - func (x *ListManageableRepositoryRolesRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -760,8 +992,28 @@ func (x *ListManageableRepositoryRolesRequest) GetRepositoryId() string { return "" } +func (x *ListManageableRepositoryRolesRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +type ListManageableRepositoryRolesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // which roles should be displayed as manageable. + RepositoryId string +} + +func (b0 ListManageableRepositoryRolesRequest_builder) Build() *ListManageableRepositoryRolesRequest { + m0 := &ListManageableRepositoryRolesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + return m0 +} + type ListManageableRepositoryRolesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The list of roles that should be displayed // to the user as manageable. Roles []RepositoryRole `protobuf:"varint,1,rep,packed,name=roles,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"roles,omitempty"` @@ -794,11 +1046,6 @@ func (x *ListManageableRepositoryRolesResponse) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use ListManageableRepositoryRolesResponse.ProtoReflect.Descriptor instead. -func (*ListManageableRepositoryRolesResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{15} -} - func (x *ListManageableRepositoryRolesResponse) GetRoles() []RepositoryRole { if x != nil { return x.Roles @@ -806,8 +1053,28 @@ func (x *ListManageableRepositoryRolesResponse) GetRoles() []RepositoryRole { return nil } +func (x *ListManageableRepositoryRolesResponse) SetRoles(v []RepositoryRole) { + x.Roles = v +} + +type ListManageableRepositoryRolesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of roles that should be displayed + // to the user as manageable. + Roles []RepositoryRole +} + +func (b0 ListManageableRepositoryRolesResponse_builder) Build() *ListManageableRepositoryRolesResponse { + m0 := &ListManageableRepositoryRolesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Roles = b.Roles + return m0 +} + type ListManageableUserRepositoryRolesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository for which to check // which roles should be displayed as manageable. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` @@ -843,11 +1110,6 @@ func (x *ListManageableUserRepositoryRolesRequest) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use ListManageableUserRepositoryRolesRequest.ProtoReflect.Descriptor instead. -func (*ListManageableUserRepositoryRolesRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{16} -} - func (x *ListManageableUserRepositoryRolesRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -862,8 +1124,36 @@ func (x *ListManageableUserRepositoryRolesRequest) GetUserId() string { return "" } +func (x *ListManageableUserRepositoryRolesRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *ListManageableUserRepositoryRolesRequest) SetUserId(v string) { + x.UserId = v +} + +type ListManageableUserRepositoryRolesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // which roles should be displayed as manageable. + RepositoryId string + // The ID of the target user for which to check + // which roles are manageable. + UserId string +} + +func (b0 ListManageableUserRepositoryRolesRequest_builder) Build() *ListManageableUserRepositoryRolesRequest { + m0 := &ListManageableUserRepositoryRolesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.UserId = b.UserId + return m0 +} + type ListManageableUserRepositoryRolesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The list of roles that should be displayed // to the user as manageable. Roles []RepositoryRole `protobuf:"varint,1,rep,packed,name=roles,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"roles,omitempty"` @@ -896,11 +1186,6 @@ func (x *ListManageableUserRepositoryRolesResponse) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use ListManageableUserRepositoryRolesResponse.ProtoReflect.Descriptor instead. -func (*ListManageableUserRepositoryRolesResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP(), []int{17} -} - func (x *ListManageableUserRepositoryRolesResponse) GetRoles() []RepositoryRole { if x != nil { return x.Roles @@ -908,6 +1193,26 @@ func (x *ListManageableUserRepositoryRolesResponse) GetRoles() []RepositoryRole return nil } +func (x *ListManageableUserRepositoryRolesResponse) SetRoles(v []RepositoryRole) { + x.Roles = v +} + +type ListManageableUserRepositoryRolesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of roles that should be displayed + // to the user as manageable. + Roles []RepositoryRole +} + +func (b0 ListManageableUserRepositoryRolesResponse_builder) Build() *ListManageableUserRepositoryRolesResponse { + m0 := &ListManageableUserRepositoryRolesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Roles = b.Roles + return m0 +} + var File_buf_alpha_registry_v1alpha1_display_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_display_proto_rawDesc = []byte{ @@ -1132,18 +1437,6 @@ var file_buf_alpha_registry_v1alpha1_display_proto_rawDesc = []byte{ 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_display_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_display_proto_rawDescData = file_buf_alpha_registry_v1alpha1_display_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_display_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_display_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_display_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_display_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_display_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_display_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_buf_alpha_registry_v1alpha1_display_proto_goTypes = []any{ (*DisplayOrganizationElementsRequest)(nil), // 0: buf.alpha.registry.v1alpha1.DisplayOrganizationElementsRequest diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/display_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/display_protoopaque.pb.go new file mode 100644 index 0000000000..e334f39218 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/display_protoopaque.pb.go @@ -0,0 +1,1480 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/display.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type DisplayOrganizationElementsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayOrganizationElementsRequest) Reset() { + *x = DisplayOrganizationElementsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayOrganizationElementsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayOrganizationElementsRequest) ProtoMessage() {} + +func (x *DisplayOrganizationElementsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DisplayOrganizationElementsRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *DisplayOrganizationElementsRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +type DisplayOrganizationElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to check + // which elements should be displayed. + OrganizationId string +} + +func (b0 DisplayOrganizationElementsRequest_builder) Build() *DisplayOrganizationElementsRequest { + m0 := &DisplayOrganizationElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + return m0 +} + +type DisplayOrganizationElementsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CreateRepository bool `protobuf:"varint,1,opt,name=create_repository,json=createRepository,proto3" json:"create_repository,omitempty"` + xxx_hidden_Settings bool `protobuf:"varint,4,opt,name=settings,proto3" json:"settings,omitempty"` + xxx_hidden_UpdateSettings bool `protobuf:"varint,5,opt,name=update_settings,json=updateSettings,proto3" json:"update_settings,omitempty"` + xxx_hidden_Delete bool `protobuf:"varint,6,opt,name=delete,proto3" json:"delete,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayOrganizationElementsResponse) Reset() { + *x = DisplayOrganizationElementsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayOrganizationElementsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayOrganizationElementsResponse) ProtoMessage() {} + +func (x *DisplayOrganizationElementsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DisplayOrganizationElementsResponse) GetCreateRepository() bool { + if x != nil { + return x.xxx_hidden_CreateRepository + } + return false +} + +func (x *DisplayOrganizationElementsResponse) GetSettings() bool { + if x != nil { + return x.xxx_hidden_Settings + } + return false +} + +func (x *DisplayOrganizationElementsResponse) GetUpdateSettings() bool { + if x != nil { + return x.xxx_hidden_UpdateSettings + } + return false +} + +func (x *DisplayOrganizationElementsResponse) GetDelete() bool { + if x != nil { + return x.xxx_hidden_Delete + } + return false +} + +func (x *DisplayOrganizationElementsResponse) SetCreateRepository(v bool) { + x.xxx_hidden_CreateRepository = v +} + +func (x *DisplayOrganizationElementsResponse) SetSettings(v bool) { + x.xxx_hidden_Settings = v +} + +func (x *DisplayOrganizationElementsResponse) SetUpdateSettings(v bool) { + x.xxx_hidden_UpdateSettings = v +} + +func (x *DisplayOrganizationElementsResponse) SetDelete(v bool) { + x.xxx_hidden_Delete = v +} + +type DisplayOrganizationElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display create organization repository element if true. + CreateRepository bool + // Display organization settings element if true. + Settings bool + // Display update organization settings element if true. + UpdateSettings bool + // Display delete organization element if true. + Delete bool +} + +func (b0 DisplayOrganizationElementsResponse_builder) Build() *DisplayOrganizationElementsResponse { + m0 := &DisplayOrganizationElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CreateRepository = b.CreateRepository + x.xxx_hidden_Settings = b.Settings + x.xxx_hidden_UpdateSettings = b.UpdateSettings + x.xxx_hidden_Delete = b.Delete + return m0 +} + +type DisplayRepositoryElementsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayRepositoryElementsRequest) Reset() { + *x = DisplayRepositoryElementsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayRepositoryElementsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayRepositoryElementsRequest) ProtoMessage() {} + +func (x *DisplayRepositoryElementsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DisplayRepositoryElementsRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *DisplayRepositoryElementsRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +type DisplayRepositoryElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // which elements should be displayed. + RepositoryId string +} + +func (b0 DisplayRepositoryElementsRequest_builder) Build() *DisplayRepositoryElementsRequest { + m0 := &DisplayRepositoryElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + return m0 +} + +type DisplayRepositoryElementsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Settings bool `protobuf:"varint,1,opt,name=settings,proto3" json:"settings,omitempty"` + xxx_hidden_Delete bool `protobuf:"varint,2,opt,name=delete,proto3" json:"delete,omitempty"` + xxx_hidden_Write bool `protobuf:"varint,3,opt,name=write,proto3" json:"write,omitempty"` + xxx_hidden_LimitedWrite bool `protobuf:"varint,4,opt,name=limited_write,json=limitedWrite,proto3" json:"limited_write,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayRepositoryElementsResponse) Reset() { + *x = DisplayRepositoryElementsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayRepositoryElementsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayRepositoryElementsResponse) ProtoMessage() {} + +func (x *DisplayRepositoryElementsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DisplayRepositoryElementsResponse) GetSettings() bool { + if x != nil { + return x.xxx_hidden_Settings + } + return false +} + +func (x *DisplayRepositoryElementsResponse) GetDelete() bool { + if x != nil { + return x.xxx_hidden_Delete + } + return false +} + +func (x *DisplayRepositoryElementsResponse) GetWrite() bool { + if x != nil { + return x.xxx_hidden_Write + } + return false +} + +func (x *DisplayRepositoryElementsResponse) GetLimitedWrite() bool { + if x != nil { + return x.xxx_hidden_LimitedWrite + } + return false +} + +func (x *DisplayRepositoryElementsResponse) SetSettings(v bool) { + x.xxx_hidden_Settings = v +} + +func (x *DisplayRepositoryElementsResponse) SetDelete(v bool) { + x.xxx_hidden_Delete = v +} + +func (x *DisplayRepositoryElementsResponse) SetWrite(v bool) { + x.xxx_hidden_Write = v +} + +func (x *DisplayRepositoryElementsResponse) SetLimitedWrite(v bool) { + x.xxx_hidden_LimitedWrite = v +} + +type DisplayRepositoryElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display repository settings element if true. + Settings bool + // Display delete repository element if true. + Delete bool + // Display write repository elements if true. It includes all elements from limited_write. + Write bool + // Display limited_write repository elements if true. This is a subset of write elements. + LimitedWrite bool +} + +func (b0 DisplayRepositoryElementsResponse_builder) Build() *DisplayRepositoryElementsResponse { + m0 := &DisplayRepositoryElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Settings = b.Settings + x.xxx_hidden_Delete = b.Delete + x.xxx_hidden_Write = b.Write + x.xxx_hidden_LimitedWrite = b.LimitedWrite + return m0 +} + +type DisplayPluginElementsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PluginId string `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayPluginElementsRequest) Reset() { + *x = DisplayPluginElementsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayPluginElementsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayPluginElementsRequest) ProtoMessage() {} + +func (x *DisplayPluginElementsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DisplayPluginElementsRequest) GetPluginId() string { + if x != nil { + return x.xxx_hidden_PluginId + } + return "" +} + +func (x *DisplayPluginElementsRequest) SetPluginId(v string) { + x.xxx_hidden_PluginId = v +} + +type DisplayPluginElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the plugin for which to check + // which elements should be displayed. + PluginId string +} + +func (b0 DisplayPluginElementsRequest_builder) Build() *DisplayPluginElementsRequest { + m0 := &DisplayPluginElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PluginId = b.PluginId + return m0 +} + +type DisplayPluginElementsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Settings bool `protobuf:"varint,1,opt,name=settings,proto3" json:"settings,omitempty"` + xxx_hidden_Delete bool `protobuf:"varint,2,opt,name=delete,proto3" json:"delete,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayPluginElementsResponse) Reset() { + *x = DisplayPluginElementsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayPluginElementsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayPluginElementsResponse) ProtoMessage() {} + +func (x *DisplayPluginElementsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DisplayPluginElementsResponse) GetSettings() bool { + if x != nil { + return x.xxx_hidden_Settings + } + return false +} + +func (x *DisplayPluginElementsResponse) GetDelete() bool { + if x != nil { + return x.xxx_hidden_Delete + } + return false +} + +func (x *DisplayPluginElementsResponse) SetSettings(v bool) { + x.xxx_hidden_Settings = v +} + +func (x *DisplayPluginElementsResponse) SetDelete(v bool) { + x.xxx_hidden_Delete = v +} + +type DisplayPluginElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display plugin settings element if true. + Settings bool + // Display delete plugin element if true. + Delete bool +} + +func (b0 DisplayPluginElementsResponse_builder) Build() *DisplayPluginElementsResponse { + m0 := &DisplayPluginElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Settings = b.Settings + x.xxx_hidden_Delete = b.Delete + return m0 +} + +type DisplayUserElementsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayUserElementsRequest) Reset() { + *x = DisplayUserElementsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayUserElementsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayUserElementsRequest) ProtoMessage() {} + +func (x *DisplayUserElementsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DisplayUserElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DisplayUserElementsRequest_builder) Build() *DisplayUserElementsRequest { + m0 := &DisplayUserElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type DisplayUserElementsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Delete bool `protobuf:"varint,1,opt,name=delete,proto3" json:"delete,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayUserElementsResponse) Reset() { + *x = DisplayUserElementsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayUserElementsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayUserElementsResponse) ProtoMessage() {} + +func (x *DisplayUserElementsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DisplayUserElementsResponse) GetDelete() bool { + if x != nil { + return x.xxx_hidden_Delete + } + return false +} + +func (x *DisplayUserElementsResponse) SetDelete(v bool) { + x.xxx_hidden_Delete = v +} + +type DisplayUserElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display delete user element if true. + Delete bool +} + +func (b0 DisplayUserElementsResponse_builder) Build() *DisplayUserElementsResponse { + m0 := &DisplayUserElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Delete = b.Delete + return m0 +} + +type DisplayServerElementsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayServerElementsRequest) Reset() { + *x = DisplayServerElementsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayServerElementsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayServerElementsRequest) ProtoMessage() {} + +func (x *DisplayServerElementsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DisplayServerElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DisplayServerElementsRequest_builder) Build() *DisplayServerElementsRequest { + m0 := &DisplayServerElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type DisplayServerElementsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AdminPanel bool `protobuf:"varint,1,opt,name=admin_panel,json=adminPanel,proto3" json:"admin_panel,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayServerElementsResponse) Reset() { + *x = DisplayServerElementsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayServerElementsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayServerElementsResponse) ProtoMessage() {} + +func (x *DisplayServerElementsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DisplayServerElementsResponse) GetAdminPanel() bool { + if x != nil { + return x.xxx_hidden_AdminPanel + } + return false +} + +func (x *DisplayServerElementsResponse) SetAdminPanel(v bool) { + x.xxx_hidden_AdminPanel = v +} + +type DisplayServerElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display server admin panel element if true. + AdminPanel bool +} + +func (b0 DisplayServerElementsResponse_builder) Build() *DisplayServerElementsResponse { + m0 := &DisplayServerElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AdminPanel = b.AdminPanel + return m0 +} + +type DisplayOwnerEntitledElementsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayOwnerEntitledElementsRequest) Reset() { + *x = DisplayOwnerEntitledElementsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayOwnerEntitledElementsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayOwnerEntitledElementsRequest) ProtoMessage() {} + +func (x *DisplayOwnerEntitledElementsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DisplayOwnerEntitledElementsRequest) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *DisplayOwnerEntitledElementsRequest) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +type DisplayOwnerEntitledElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the owner for which to check + // which elements are entitled to be displayed. + OwnerName string +} + +func (b0 DisplayOwnerEntitledElementsRequest_builder) Build() *DisplayOwnerEntitledElementsRequest { + m0 := &DisplayOwnerEntitledElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerName = b.OwnerName + return m0 +} + +type DisplayOwnerEntitledElementsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CreatePrivateRepository bool `protobuf:"varint,1,opt,name=create_private_repository,json=createPrivateRepository,proto3" json:"create_private_repository,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayOwnerEntitledElementsResponse) Reset() { + *x = DisplayOwnerEntitledElementsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayOwnerEntitledElementsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayOwnerEntitledElementsResponse) ProtoMessage() {} + +func (x *DisplayOwnerEntitledElementsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DisplayOwnerEntitledElementsResponse) GetCreatePrivateRepository() bool { + if x != nil { + return x.xxx_hidden_CreatePrivateRepository + } + return false +} + +func (x *DisplayOwnerEntitledElementsResponse) SetCreatePrivateRepository(v bool) { + x.xxx_hidden_CreatePrivateRepository = v +} + +type DisplayOwnerEntitledElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display create private repository element if true. + CreatePrivateRepository bool +} + +func (b0 DisplayOwnerEntitledElementsResponse_builder) Build() *DisplayOwnerEntitledElementsResponse { + m0 := &DisplayOwnerEntitledElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CreatePrivateRepository = b.CreatePrivateRepository + return m0 +} + +type DisplayRepositoryEntitledElementsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayRepositoryEntitledElementsRequest) Reset() { + *x = DisplayRepositoryEntitledElementsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayRepositoryEntitledElementsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayRepositoryEntitledElementsRequest) ProtoMessage() {} + +func (x *DisplayRepositoryEntitledElementsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DisplayRepositoryEntitledElementsRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *DisplayRepositoryEntitledElementsRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +type DisplayRepositoryEntitledElementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // which elements are entitled to be displayed. + RepositoryId string +} + +func (b0 DisplayRepositoryEntitledElementsRequest_builder) Build() *DisplayRepositoryEntitledElementsRequest { + m0 := &DisplayRepositoryEntitledElementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + return m0 +} + +type DisplayRepositoryEntitledElementsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SetPrivate bool `protobuf:"varint,1,opt,name=set_private,json=setPrivate,proto3" json:"set_private,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisplayRepositoryEntitledElementsResponse) Reset() { + *x = DisplayRepositoryEntitledElementsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisplayRepositoryEntitledElementsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisplayRepositoryEntitledElementsResponse) ProtoMessage() {} + +func (x *DisplayRepositoryEntitledElementsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DisplayRepositoryEntitledElementsResponse) GetSetPrivate() bool { + if x != nil { + return x.xxx_hidden_SetPrivate + } + return false +} + +func (x *DisplayRepositoryEntitledElementsResponse) SetSetPrivate(v bool) { + x.xxx_hidden_SetPrivate = v +} + +type DisplayRepositoryEntitledElementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Display repository change to private setting element if true. + SetPrivate bool +} + +func (b0 DisplayRepositoryEntitledElementsResponse_builder) Build() *DisplayRepositoryEntitledElementsResponse { + m0 := &DisplayRepositoryEntitledElementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SetPrivate = b.SetPrivate + return m0 +} + +type ListManageableRepositoryRolesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListManageableRepositoryRolesRequest) Reset() { + *x = ListManageableRepositoryRolesRequest{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListManageableRepositoryRolesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListManageableRepositoryRolesRequest) ProtoMessage() {} + +func (x *ListManageableRepositoryRolesRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListManageableRepositoryRolesRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *ListManageableRepositoryRolesRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +type ListManageableRepositoryRolesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // which roles should be displayed as manageable. + RepositoryId string +} + +func (b0 ListManageableRepositoryRolesRequest_builder) Build() *ListManageableRepositoryRolesRequest { + m0 := &ListManageableRepositoryRolesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + return m0 +} + +type ListManageableRepositoryRolesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Roles []RepositoryRole `protobuf:"varint,1,rep,packed,name=roles,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"roles,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListManageableRepositoryRolesResponse) Reset() { + *x = ListManageableRepositoryRolesResponse{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListManageableRepositoryRolesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListManageableRepositoryRolesResponse) ProtoMessage() {} + +func (x *ListManageableRepositoryRolesResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListManageableRepositoryRolesResponse) GetRoles() []RepositoryRole { + if x != nil { + return x.xxx_hidden_Roles + } + return nil +} + +func (x *ListManageableRepositoryRolesResponse) SetRoles(v []RepositoryRole) { + x.xxx_hidden_Roles = v +} + +type ListManageableRepositoryRolesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of roles that should be displayed + // to the user as manageable. + Roles []RepositoryRole +} + +func (b0 ListManageableRepositoryRolesResponse_builder) Build() *ListManageableRepositoryRolesResponse { + m0 := &ListManageableRepositoryRolesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Roles = b.Roles + return m0 +} + +type ListManageableUserRepositoryRolesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListManageableUserRepositoryRolesRequest) Reset() { + *x = ListManageableUserRepositoryRolesRequest{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListManageableUserRepositoryRolesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListManageableUserRepositoryRolesRequest) ProtoMessage() {} + +func (x *ListManageableUserRepositoryRolesRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListManageableUserRepositoryRolesRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *ListManageableUserRepositoryRolesRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *ListManageableUserRepositoryRolesRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *ListManageableUserRepositoryRolesRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +type ListManageableUserRepositoryRolesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to check + // which roles should be displayed as manageable. + RepositoryId string + // The ID of the target user for which to check + // which roles are manageable. + UserId string +} + +func (b0 ListManageableUserRepositoryRolesRequest_builder) Build() *ListManageableUserRepositoryRolesRequest { + m0 := &ListManageableUserRepositoryRolesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_UserId = b.UserId + return m0 +} + +type ListManageableUserRepositoryRolesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Roles []RepositoryRole `protobuf:"varint,1,rep,packed,name=roles,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"roles,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListManageableUserRepositoryRolesResponse) Reset() { + *x = ListManageableUserRepositoryRolesResponse{} + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListManageableUserRepositoryRolesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListManageableUserRepositoryRolesResponse) ProtoMessage() {} + +func (x *ListManageableUserRepositoryRolesResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_display_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListManageableUserRepositoryRolesResponse) GetRoles() []RepositoryRole { + if x != nil { + return x.xxx_hidden_Roles + } + return nil +} + +func (x *ListManageableUserRepositoryRolesResponse) SetRoles(v []RepositoryRole) { + x.xxx_hidden_Roles = v +} + +type ListManageableUserRepositoryRolesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of roles that should be displayed + // to the user as manageable. + Roles []RepositoryRole +} + +func (b0 ListManageableUserRepositoryRolesResponse_builder) Build() *ListManageableUserRepositoryRolesResponse { + m0 := &ListManageableUserRepositoryRolesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Roles = b.Roles + return m0 +} + +var File_buf_alpha_registry_v1alpha1_display_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_display_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x4d, 0x0a, 0x22, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, + 0xdb, 0x01, 0x0a, 0x23, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x12, 0x27, 0x0a, 0x0f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x52, 0x0d, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x0f, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, 0x47, 0x0a, + 0x20, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x92, 0x01, 0x0a, 0x21, 0x44, 0x69, 0x73, 0x70, 0x6c, + 0x61, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x6c, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x05, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, + 0x64, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x22, 0x3b, 0x0a, 0x1c, 0x44, + 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x45, 0x6c, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x53, 0x0a, 0x1d, 0x44, 0x69, 0x73, 0x70, + 0x6c, 0x61, 0x79, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x22, 0x1c, 0x0a, + 0x1a, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6c, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x35, 0x0a, 0x1b, 0x44, + 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x22, 0x1e, 0x0a, 0x1c, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x40, 0x0a, 0x1d, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x6e, + 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x50, + 0x61, 0x6e, 0x65, 0x6c, 0x22, 0x44, 0x0a, 0x23, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4f, + 0x77, 0x6e, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x64, 0x45, 0x6c, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x62, 0x0a, 0x24, 0x44, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, + 0x65, 0x64, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x4f, + 0x0a, 0x28, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x64, 0x45, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, + 0x4c, 0x0a, 0x29, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x64, 0x45, 0x6c, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, + 0x73, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0a, 0x73, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0x4b, 0x0a, + 0x24, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x6a, 0x0a, 0x25, 0x4c, 0x69, + 0x73, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, + 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x68, 0x0a, 0x28, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, + 0x22, 0x6e, 0x0a, 0x29, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x61, 0x62, + 0x6c, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, + 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, + 0x32, 0xe3, 0x0b, 0x0a, 0x0e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0xa5, 0x01, 0x0a, 0x1b, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x3f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x9f, 0x01, 0x0a, 0x19, + 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3d, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x93, 0x01, + 0x0a, 0x15, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x45, + 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x39, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x50, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x45, 0x6c, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, + 0x90, 0x02, 0x01, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x55, + 0x73, 0x65, 0x72, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x37, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, + 0x79, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6c, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, + 0x90, 0x02, 0x01, 0x12, 0x93, 0x01, 0x0a, 0x15, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x39, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x70, + 0x6c, 0x61, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xa8, 0x01, 0x0a, 0x1c, 0x44, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, + 0x65, 0x64, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x40, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, + 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x64, 0x45, 0x6c, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, + 0x61, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x64, 0x45, + 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x03, 0x90, 0x02, 0x01, 0x12, 0xb7, 0x01, 0x0a, 0x21, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, + 0x65, 0x64, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x45, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, + 0x65, 0x64, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x46, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x64, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xab, + 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x61, 0x62, 0x6c, + 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x73, + 0x12, 0x41, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x61, 0x62, 0x6c, 0x65, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xb7, 0x01, 0x0a, + 0x21, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, + 0x65, 0x73, 0x12, 0x45, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x46, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x99, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0c, 0x44, 0x69, 0x73, 0x70, + 0x6c, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, + 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, + 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, + 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, + 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_display_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_buf_alpha_registry_v1alpha1_display_proto_goTypes = []any{ + (*DisplayOrganizationElementsRequest)(nil), // 0: buf.alpha.registry.v1alpha1.DisplayOrganizationElementsRequest + (*DisplayOrganizationElementsResponse)(nil), // 1: buf.alpha.registry.v1alpha1.DisplayOrganizationElementsResponse + (*DisplayRepositoryElementsRequest)(nil), // 2: buf.alpha.registry.v1alpha1.DisplayRepositoryElementsRequest + (*DisplayRepositoryElementsResponse)(nil), // 3: buf.alpha.registry.v1alpha1.DisplayRepositoryElementsResponse + (*DisplayPluginElementsRequest)(nil), // 4: buf.alpha.registry.v1alpha1.DisplayPluginElementsRequest + (*DisplayPluginElementsResponse)(nil), // 5: buf.alpha.registry.v1alpha1.DisplayPluginElementsResponse + (*DisplayUserElementsRequest)(nil), // 6: buf.alpha.registry.v1alpha1.DisplayUserElementsRequest + (*DisplayUserElementsResponse)(nil), // 7: buf.alpha.registry.v1alpha1.DisplayUserElementsResponse + (*DisplayServerElementsRequest)(nil), // 8: buf.alpha.registry.v1alpha1.DisplayServerElementsRequest + (*DisplayServerElementsResponse)(nil), // 9: buf.alpha.registry.v1alpha1.DisplayServerElementsResponse + (*DisplayOwnerEntitledElementsRequest)(nil), // 10: buf.alpha.registry.v1alpha1.DisplayOwnerEntitledElementsRequest + (*DisplayOwnerEntitledElementsResponse)(nil), // 11: buf.alpha.registry.v1alpha1.DisplayOwnerEntitledElementsResponse + (*DisplayRepositoryEntitledElementsRequest)(nil), // 12: buf.alpha.registry.v1alpha1.DisplayRepositoryEntitledElementsRequest + (*DisplayRepositoryEntitledElementsResponse)(nil), // 13: buf.alpha.registry.v1alpha1.DisplayRepositoryEntitledElementsResponse + (*ListManageableRepositoryRolesRequest)(nil), // 14: buf.alpha.registry.v1alpha1.ListManageableRepositoryRolesRequest + (*ListManageableRepositoryRolesResponse)(nil), // 15: buf.alpha.registry.v1alpha1.ListManageableRepositoryRolesResponse + (*ListManageableUserRepositoryRolesRequest)(nil), // 16: buf.alpha.registry.v1alpha1.ListManageableUserRepositoryRolesRequest + (*ListManageableUserRepositoryRolesResponse)(nil), // 17: buf.alpha.registry.v1alpha1.ListManageableUserRepositoryRolesResponse + (RepositoryRole)(0), // 18: buf.alpha.registry.v1alpha1.RepositoryRole +} +var file_buf_alpha_registry_v1alpha1_display_proto_depIdxs = []int32{ + 18, // 0: buf.alpha.registry.v1alpha1.ListManageableRepositoryRolesResponse.roles:type_name -> buf.alpha.registry.v1alpha1.RepositoryRole + 18, // 1: buf.alpha.registry.v1alpha1.ListManageableUserRepositoryRolesResponse.roles:type_name -> buf.alpha.registry.v1alpha1.RepositoryRole + 0, // 2: buf.alpha.registry.v1alpha1.DisplayService.DisplayOrganizationElements:input_type -> buf.alpha.registry.v1alpha1.DisplayOrganizationElementsRequest + 2, // 3: buf.alpha.registry.v1alpha1.DisplayService.DisplayRepositoryElements:input_type -> buf.alpha.registry.v1alpha1.DisplayRepositoryElementsRequest + 4, // 4: buf.alpha.registry.v1alpha1.DisplayService.DisplayPluginElements:input_type -> buf.alpha.registry.v1alpha1.DisplayPluginElementsRequest + 6, // 5: buf.alpha.registry.v1alpha1.DisplayService.DisplayUserElements:input_type -> buf.alpha.registry.v1alpha1.DisplayUserElementsRequest + 8, // 6: buf.alpha.registry.v1alpha1.DisplayService.DisplayServerElements:input_type -> buf.alpha.registry.v1alpha1.DisplayServerElementsRequest + 10, // 7: buf.alpha.registry.v1alpha1.DisplayService.DisplayOwnerEntitledElements:input_type -> buf.alpha.registry.v1alpha1.DisplayOwnerEntitledElementsRequest + 12, // 8: buf.alpha.registry.v1alpha1.DisplayService.DisplayRepositoryEntitledElements:input_type -> buf.alpha.registry.v1alpha1.DisplayRepositoryEntitledElementsRequest + 14, // 9: buf.alpha.registry.v1alpha1.DisplayService.ListManageableRepositoryRoles:input_type -> buf.alpha.registry.v1alpha1.ListManageableRepositoryRolesRequest + 16, // 10: buf.alpha.registry.v1alpha1.DisplayService.ListManageableUserRepositoryRoles:input_type -> buf.alpha.registry.v1alpha1.ListManageableUserRepositoryRolesRequest + 1, // 11: buf.alpha.registry.v1alpha1.DisplayService.DisplayOrganizationElements:output_type -> buf.alpha.registry.v1alpha1.DisplayOrganizationElementsResponse + 3, // 12: buf.alpha.registry.v1alpha1.DisplayService.DisplayRepositoryElements:output_type -> buf.alpha.registry.v1alpha1.DisplayRepositoryElementsResponse + 5, // 13: buf.alpha.registry.v1alpha1.DisplayService.DisplayPluginElements:output_type -> buf.alpha.registry.v1alpha1.DisplayPluginElementsResponse + 7, // 14: buf.alpha.registry.v1alpha1.DisplayService.DisplayUserElements:output_type -> buf.alpha.registry.v1alpha1.DisplayUserElementsResponse + 9, // 15: buf.alpha.registry.v1alpha1.DisplayService.DisplayServerElements:output_type -> buf.alpha.registry.v1alpha1.DisplayServerElementsResponse + 11, // 16: buf.alpha.registry.v1alpha1.DisplayService.DisplayOwnerEntitledElements:output_type -> buf.alpha.registry.v1alpha1.DisplayOwnerEntitledElementsResponse + 13, // 17: buf.alpha.registry.v1alpha1.DisplayService.DisplayRepositoryEntitledElements:output_type -> buf.alpha.registry.v1alpha1.DisplayRepositoryEntitledElementsResponse + 15, // 18: buf.alpha.registry.v1alpha1.DisplayService.ListManageableRepositoryRoles:output_type -> buf.alpha.registry.v1alpha1.ListManageableRepositoryRolesResponse + 17, // 19: buf.alpha.registry.v1alpha1.DisplayService.ListManageableUserRepositoryRoles:output_type -> buf.alpha.registry.v1alpha1.ListManageableUserRepositoryRolesResponse + 11, // [11:20] is the sub-list for method output_type + 2, // [2:11] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_display_proto_init() } +func file_buf_alpha_registry_v1alpha1_display_proto_init() { + if File_buf_alpha_registry_v1alpha1_display_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_role_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_display_proto_rawDesc, + NumEnums: 0, + NumMessages: 18, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_display_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_display_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_display_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_display_proto = out.File + file_buf_alpha_registry_v1alpha1_display_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_display_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_display_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/doc.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/doc.pb.go index 08ad89fc3c..60e654a0fa 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/doc.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/doc.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/doc.proto +//go:build !protoopaque + package registryv1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -82,14 +83,9 @@ func (x FieldType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use FieldType.Descriptor instead. -func (FieldType) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{0} -} - // GetSourceDirectoryInfoRequest takes an owner, repository, and reference. type GetSourceDirectoryInfoRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // Optional reference (if unspecified, will use the repository's default_branch). @@ -123,11 +119,6 @@ func (x *GetSourceDirectoryInfoRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetSourceDirectoryInfoRequest.ProtoReflect.Descriptor instead. -func (*GetSourceDirectoryInfoRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{0} -} - func (x *GetSourceDirectoryInfoRequest) GetOwner() string { if x != nil { return x.Owner @@ -149,9 +140,40 @@ func (x *GetSourceDirectoryInfoRequest) GetReference() string { return "" } +func (x *GetSourceDirectoryInfoRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *GetSourceDirectoryInfoRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *GetSourceDirectoryInfoRequest) SetReference(v string) { + x.Reference = v +} + +type GetSourceDirectoryInfoRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string +} + +func (b0 GetSourceDirectoryInfoRequest_builder) Build() *GetSourceDirectoryInfoRequest { + m0 := &GetSourceDirectoryInfoRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Reference = b.Reference + return m0 +} + // GetSourceDirectoryInfoResponse returns the root FileInfo for the requested module. type GetSourceDirectoryInfoResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Root *FileInfo `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -182,11 +204,6 @@ func (x *GetSourceDirectoryInfoResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetSourceDirectoryInfoResponse.ProtoReflect.Descriptor instead. -func (*GetSourceDirectoryInfoResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{1} -} - func (x *GetSourceDirectoryInfoResponse) GetRoot() *FileInfo { if x != nil { return x.Root @@ -194,10 +211,39 @@ func (x *GetSourceDirectoryInfoResponse) GetRoot() *FileInfo { return nil } +func (x *GetSourceDirectoryInfoResponse) SetRoot(v *FileInfo) { + x.Root = v +} + +func (x *GetSourceDirectoryInfoResponse) HasRoot() bool { + if x == nil { + return false + } + return x.Root != nil +} + +func (x *GetSourceDirectoryInfoResponse) ClearRoot() { + x.Root = nil +} + +type GetSourceDirectoryInfoResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Root *FileInfo +} + +func (b0 GetSourceDirectoryInfoResponse_builder) Build() *GetSourceDirectoryInfoResponse { + m0 := &GetSourceDirectoryInfoResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Root = b.Root + return m0 +} + // FileInfo is a nested structure that contains the file path, whether or not it's a directory, // and if so, the FileInfo children of that directory. type FileInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // the normalized path of the directory, relative to the root of the module. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` IsDir bool `protobuf:"varint,2,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"` @@ -231,11 +277,6 @@ func (x *FileInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FileInfo.ProtoReflect.Descriptor instead. -func (*FileInfo) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{2} -} - func (x *FileInfo) GetPath() string { if x != nil { return x.Path @@ -257,9 +298,40 @@ func (x *FileInfo) GetChildren() []*FileInfo { return nil } +func (x *FileInfo) SetPath(v string) { + x.Path = v +} + +func (x *FileInfo) SetIsDir(v bool) { + x.IsDir = v +} + +func (x *FileInfo) SetChildren(v []*FileInfo) { + x.Children = v +} + +type FileInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // the normalized path of the directory, relative to the root of the module. + Path string + IsDir bool + Children []*FileInfo +} + +func (b0 FileInfo_builder) Build() *FileInfo { + m0 := &FileInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Path = b.Path + x.IsDir = b.IsDir + x.Children = b.Children + return m0 +} + // GetSourceFileRequest takes an owner, repository, reference, and normalized path. type GetSourceFileRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // Optional reference (if unspecified, will use the repository's default_branch). @@ -295,11 +367,6 @@ func (x *GetSourceFileRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetSourceFileRequest.ProtoReflect.Descriptor instead. -func (*GetSourceFileRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{3} -} - func (x *GetSourceFileRequest) GetOwner() string { if x != nil { return x.Owner @@ -328,9 +395,47 @@ func (x *GetSourceFileRequest) GetPath() string { return "" } +func (x *GetSourceFileRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *GetSourceFileRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *GetSourceFileRequest) SetReference(v string) { + x.Reference = v +} + +func (x *GetSourceFileRequest) SetPath(v string) { + x.Path = v +} + +type GetSourceFileRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string + // the normalized path to the requested file, relative to the root of the module. + Path string +} + +func (b0 GetSourceFileRequest_builder) Build() *GetSourceFileRequest { + m0 := &GetSourceFileRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Reference = b.Reference + x.Path = b.Path + return m0 +} + // GetSourceFileResponse returns the source code contents of the requested file. type GetSourceFileResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // content is the content of the file. Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` unknownFields protoimpl.UnknownFields @@ -362,11 +467,6 @@ func (x *GetSourceFileResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetSourceFileResponse.ProtoReflect.Descriptor instead. -func (*GetSourceFileResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{4} -} - func (x *GetSourceFileResponse) GetContent() []byte { if x != nil { return x.Content @@ -374,9 +474,31 @@ func (x *GetSourceFileResponse) GetContent() []byte { return nil } +func (x *GetSourceFileResponse) SetContent(v []byte) { + if v == nil { + v = []byte{} + } + x.Content = v +} + +type GetSourceFileResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // content is the content of the file. + Content []byte +} + +func (b0 GetSourceFileResponse_builder) Build() *GetSourceFileResponse { + m0 := &GetSourceFileResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Content = b.Content + return m0 +} + // GetModulePackagesRequest takes an owner, repository, and reference. type GetModulePackagesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // Optional reference (if unspecified, will use the repository's default_branch). @@ -410,11 +532,6 @@ func (x *GetModulePackagesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetModulePackagesRequest.ProtoReflect.Descriptor instead. -func (*GetModulePackagesRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{5} -} - func (x *GetModulePackagesRequest) GetOwner() string { if x != nil { return x.Owner @@ -436,9 +553,40 @@ func (x *GetModulePackagesRequest) GetReference() string { return "" } +func (x *GetModulePackagesRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *GetModulePackagesRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *GetModulePackagesRequest) SetReference(v string) { + x.Reference = v +} + +type GetModulePackagesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string +} + +func (b0 GetModulePackagesRequest_builder) Build() *GetModulePackagesRequest { + m0 := &GetModulePackagesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Reference = b.Reference + return m0 +} + // GetModulePackagesResponse returns the list of ModulePackages for the requested module. type GetModulePackagesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ModulePackages []*ModulePackage `protobuf:"bytes,2,rep,name=module_packages,json=modulePackages,proto3" json:"module_packages,omitempty"` unknownFields protoimpl.UnknownFields @@ -470,11 +618,6 @@ func (x *GetModulePackagesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetModulePackagesResponse.ProtoReflect.Descriptor instead. -func (*GetModulePackagesResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{6} -} - func (x *GetModulePackagesResponse) GetName() string { if x != nil { return x.Name @@ -489,9 +632,33 @@ func (x *GetModulePackagesResponse) GetModulePackages() []*ModulePackage { return nil } +func (x *GetModulePackagesResponse) SetName(v string) { + x.Name = v +} + +func (x *GetModulePackagesResponse) SetModulePackages(v []*ModulePackage) { + x.ModulePackages = v +} + +type GetModulePackagesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + ModulePackages []*ModulePackage +} + +func (b0 GetModulePackagesResponse_builder) Build() *GetModulePackagesResponse { + m0 := &GetModulePackagesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.ModulePackages = b.ModulePackages + return m0 +} + // ModulePackage provides the details about a module's associated package. type ModulePackage struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` unknownFields protoimpl.UnknownFields @@ -523,11 +690,6 @@ func (x *ModulePackage) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ModulePackage.ProtoReflect.Descriptor instead. -func (*ModulePackage) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{7} -} - func (x *ModulePackage) GetName() string { if x != nil { return x.Name @@ -542,9 +704,33 @@ func (x *ModulePackage) GetDescription() string { return "" } +func (x *ModulePackage) SetName(v string) { + x.Name = v +} + +func (x *ModulePackage) SetDescription(v string) { + x.Description = v +} + +type ModulePackage_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Description string +} + +func (b0 ModulePackage_builder) Build() *ModulePackage { + m0 := &ModulePackage{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Description = b.Description + return m0 +} + // GetModuleDocumentationRequest takes an owner, repository, and reference. type GetModuleDocumentationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // Optional reference (if unspecified, will use the repository's default_branch). @@ -578,11 +764,6 @@ func (x *GetModuleDocumentationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetModuleDocumentationRequest.ProtoReflect.Descriptor instead. -func (*GetModuleDocumentationRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{8} -} - func (x *GetModuleDocumentationRequest) GetOwner() string { if x != nil { return x.Owner @@ -604,9 +785,40 @@ func (x *GetModuleDocumentationRequest) GetReference() string { return "" } +func (x *GetModuleDocumentationRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *GetModuleDocumentationRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *GetModuleDocumentationRequest) SetReference(v string) { + x.Reference = v +} + +type GetModuleDocumentationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string +} + +func (b0 GetModuleDocumentationRequest_builder) Build() *GetModuleDocumentationRequest { + m0 := &GetModuleDocumentationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Reference = b.Reference + return m0 +} + // GetModuleDocumentationResponse returns the ModuleDocumentation for the requested module. type GetModuleDocumentationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ModuleDocumentation *ModuleDocumentation `protobuf:"bytes,1,opt,name=module_documentation,json=moduleDocumentation,proto3" json:"module_documentation,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -637,11 +849,6 @@ func (x *GetModuleDocumentationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetModuleDocumentationResponse.ProtoReflect.Descriptor instead. -func (*GetModuleDocumentationResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{9} -} - func (x *GetModuleDocumentationResponse) GetModuleDocumentation() *ModuleDocumentation { if x != nil { return x.ModuleDocumentation @@ -649,9 +856,38 @@ func (x *GetModuleDocumentationResponse) GetModuleDocumentation() *ModuleDocumen return nil } +func (x *GetModuleDocumentationResponse) SetModuleDocumentation(v *ModuleDocumentation) { + x.ModuleDocumentation = v +} + +func (x *GetModuleDocumentationResponse) HasModuleDocumentation() bool { + if x == nil { + return false + } + return x.ModuleDocumentation != nil +} + +func (x *GetModuleDocumentationResponse) ClearModuleDocumentation() { + x.ModuleDocumentation = nil +} + +type GetModuleDocumentationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ModuleDocumentation *ModuleDocumentation +} + +func (b0 GetModuleDocumentationResponse_builder) Build() *GetModuleDocumentationResponse { + m0 := &GetModuleDocumentationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ModuleDocumentation = b.ModuleDocumentation + return m0 +} + // ModuleDocumentation provides the name of the module and associated documentations. type ModuleDocumentation struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // This is the string representation of the contents of the buf.md file for module-level documentation. // @@ -697,11 +933,6 @@ func (x *ModuleDocumentation) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ModuleDocumentation.ProtoReflect.Descriptor instead. -func (*ModuleDocumentation) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{10} -} - func (x *ModuleDocumentation) GetName() string { if x != nil { return x.Name @@ -730,9 +961,57 @@ func (x *ModuleDocumentation) GetDocumentationPath() string { return "" } +func (x *ModuleDocumentation) SetName(v string) { + x.Name = v +} + +func (x *ModuleDocumentation) SetDocumentation(v string) { + x.Documentation = v +} + +func (x *ModuleDocumentation) SetLicense(v string) { + x.License = v +} + +func (x *ModuleDocumentation) SetDocumentationPath(v string) { + x.DocumentationPath = v +} + +type ModuleDocumentation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // This is the string representation of the contents of the buf.md file for module-level documentation. + // + // The buf.md file is a part of the module. + // string is used to enforce UTF-8 encoding or 7-bit ASCII text. + Documentation string + // This is the string representation of the contents of the LICENSE file for module-level license. + // + // The LICENSE file is a part of the module. + // string is used to enforce UTF-8 encoding or 7-bit ASCII text. + License string + // documentation_path is the path of the file which contains the module documentation. + // + // either `buf.md`, `README.md` or `README.markdown`. + // if empty, assumes buf.md. + DocumentationPath string +} + +func (b0 ModuleDocumentation_builder) Build() *ModuleDocumentation { + m0 := &ModuleDocumentation{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Documentation = b.Documentation + x.License = b.License + x.DocumentationPath = b.DocumentationPath + return m0 +} + // GetPackageDocumentationRequest takes an owner, repository, reference, and package name. type GetPackageDocumentationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // Optional reference (if unspecified, will use the repository's default_branch). @@ -768,11 +1047,6 @@ func (x *GetPackageDocumentationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetPackageDocumentationRequest.ProtoReflect.Descriptor instead. -func (*GetPackageDocumentationRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{11} -} - func (x *GetPackageDocumentationRequest) GetOwner() string { if x != nil { return x.Owner @@ -801,9 +1075,47 @@ func (x *GetPackageDocumentationRequest) GetPackageName() string { return "" } +func (x *GetPackageDocumentationRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *GetPackageDocumentationRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *GetPackageDocumentationRequest) SetReference(v string) { + x.Reference = v +} + +func (x *GetPackageDocumentationRequest) SetPackageName(v string) { + x.PackageName = v +} + +type GetPackageDocumentationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string + // this is the fully qualified package name. + PackageName string +} + +func (b0 GetPackageDocumentationRequest_builder) Build() *GetPackageDocumentationRequest { + m0 := &GetPackageDocumentationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Reference = b.Reference + x.PackageName = b.PackageName + return m0 +} + // GetPackageDocumentationReponse returns the documentation for the requested package. type GetPackageDocumentationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PackageDocumentation *PackageDocumentation `protobuf:"bytes,1,opt,name=package_documentation,json=packageDocumentation,proto3" json:"package_documentation,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -834,11 +1146,6 @@ func (x *GetPackageDocumentationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetPackageDocumentationResponse.ProtoReflect.Descriptor instead. -func (*GetPackageDocumentationResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{12} -} - func (x *GetPackageDocumentationResponse) GetPackageDocumentation() *PackageDocumentation { if x != nil { return x.PackageDocumentation @@ -846,9 +1153,38 @@ func (x *GetPackageDocumentationResponse) GetPackageDocumentation() *PackageDocu return nil } +func (x *GetPackageDocumentationResponse) SetPackageDocumentation(v *PackageDocumentation) { + x.PackageDocumentation = v +} + +func (x *GetPackageDocumentationResponse) HasPackageDocumentation() bool { + if x == nil { + return false + } + return x.PackageDocumentation != nil +} + +func (x *GetPackageDocumentationResponse) ClearPackageDocumentation() { + x.PackageDocumentation = nil +} + +type GetPackageDocumentationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PackageDocumentation *PackageDocumentation +} + +func (b0 GetPackageDocumentationResponse_builder) Build() *GetPackageDocumentationResponse { + m0 := &GetPackageDocumentationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.PackageDocumentation = b.PackageDocumentation + return m0 +} + // PackageDocumentation provides the name, description, and top level types defined in the package. type PackageDocumentation struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // comments contains the package-level comment documentation. // There is currently no convention for this. @@ -894,11 +1230,6 @@ func (x *PackageDocumentation) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PackageDocumentation.ProtoReflect.Descriptor instead. -func (*PackageDocumentation) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{13} -} - func (x *PackageDocumentation) GetName() string { if x != nil { return x.Name @@ -941,12 +1272,70 @@ func (x *PackageDocumentation) GetFileExtensions() []*FileExtension { return nil } +func (x *PackageDocumentation) SetName(v string) { + x.Name = v +} + +func (x *PackageDocumentation) SetComments(v string) { + x.Comments = v +} + +func (x *PackageDocumentation) SetServices(v []*Service) { + x.Services = v +} + +func (x *PackageDocumentation) SetEnums(v []*Enum) { + x.Enums = v +} + +func (x *PackageDocumentation) SetMessages(v []*Message) { + x.Messages = v +} + +func (x *PackageDocumentation) SetFileExtensions(v []*FileExtension) { + x.FileExtensions = v +} + +type PackageDocumentation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // comments contains the package-level comment documentation. + // There is currently no convention for this. + // + // This is derived from the leading comments at the top level of the package. + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + // services contains all the services defined in the package in alphabetical order. + Services []*Service + // enums contains all the enums defined in the package in alphabetical order. + Enums []*Enum + // messages contains all the messages defined in the package in alphabetical order. + Messages []*Message + // extensions contains all the file level extensions in the package in alphabetical order. + FileExtensions []*FileExtension +} + +func (b0 PackageDocumentation_builder) Build() *PackageDocumentation { + m0 := &PackageDocumentation{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Comments = b.Comments + x.Services = b.Services + x.Enums = b.Enums + x.Messages = b.Messages + x.FileExtensions = b.FileExtensions + return m0 +} + // Location provides the location information for the source code. // // This does not provide the leading or trailing comments as these will // be parsed into descriptions or dropped respectively. type Location struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` StartLine int32 `protobuf:"varint,1,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"` StartColumn int32 `protobuf:"varint,2,opt,name=start_column,json=startColumn,proto3" json:"start_column,omitempty"` EndLine int32 `protobuf:"varint,3,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"` @@ -980,11 +1369,6 @@ func (x *Location) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Location.ProtoReflect.Descriptor instead. -func (*Location) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{14} -} - func (x *Location) GetStartLine() int32 { if x != nil { return x.StartLine @@ -1013,9 +1397,45 @@ func (x *Location) GetEndColumn() int32 { return 0 } +func (x *Location) SetStartLine(v int32) { + x.StartLine = v +} + +func (x *Location) SetStartColumn(v int32) { + x.StartColumn = v +} + +func (x *Location) SetEndLine(v int32) { + x.EndLine = v +} + +func (x *Location) SetEndColumn(v int32) { + x.EndColumn = v +} + +type Location_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + StartLine int32 + StartColumn int32 + EndLine int32 + EndColumn int32 +} + +func (b0 Location_builder) Build() *Location { + m0 := &Location{} + b, x := &b0, m0 + _, _ = b, x + x.StartLine = b.StartLine + x.StartColumn = b.StartColumn + x.EndLine = b.EndLine + x.EndColumn = b.EndColumn + return m0 +} + // Service provides information for the documentation for a given service type in a file. type Service struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // nested_name includes the nested types for a given type definition. NestedName string `protobuf:"bytes,2,opt,name=nested_name,json=nestedName,proto3" json:"nested_name,omitempty"` @@ -1071,11 +1491,6 @@ func (x *Service) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Service.ProtoReflect.Descriptor instead. -func (*Service) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{15} -} - func (x *Service) GetName() string { if x != nil { return x.Name @@ -1147,28 +1562,141 @@ func (x *Service) GetServiceOptions() *ServiceOptions { return nil } -// ServiceOptions provides information for the documentation of options for a given service. -// -// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. -type ServiceOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` - Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *Service) SetName(v string) { + x.Name = v } -func (x *ServiceOptions) Reset() { - *x = ServiceOptions{} - mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Service) SetNestedName(v string) { + x.NestedName = v } -func (x *ServiceOptions) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *Service) SetFullName(v string) { + x.FullName = v } -func (*ServiceOptions) ProtoMessage() {} +func (x *Service) SetComments(v string) { + x.Comments = v +} + +func (x *Service) SetFilePath(v string) { + x.FilePath = v +} + +func (x *Service) SetLocation(v *Location) { + x.Location = v +} + +func (x *Service) SetMethods(v []*Method) { + x.Methods = v +} + +func (x *Service) SetImplicitlyDeprecated(v bool) { + x.ImplicitlyDeprecated = v +} + +func (x *Service) SetOptions(v []*FieldLiteral) { + x.Options = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Service) SetServiceOptions(v *ServiceOptions) { + x.ServiceOptions = v +} + +func (x *Service) HasLocation() bool { + if x == nil { + return false + } + return x.Location != nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Service) HasServiceOptions() bool { + if x == nil { + return false + } + return x.ServiceOptions != nil +} + +func (x *Service) ClearLocation() { + x.Location = nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Service) ClearServiceOptions() { + x.ServiceOptions = nil +} + +type Service_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // nested_name includes the nested types for a given type definition. + NestedName string + // full_name includes the package name and nested types for a given type definition. + FullName string + // comments is derived from the leading comments of a given service. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + // file_path is the normalized path of the file containing the service. + // This is used for navigating to the source code for the service. + FilePath string + Location *Location + Methods []*Method + // implicitly_deprecated is true if its enclosing file is deprecated. + ImplicitlyDeprecated bool + // All options that are present on the service. This is a super-set of + // service_options and uses a dynamic representation so it can also + // accommodate custom options with arbitrary types. + // This supersedes service_options. + Options []*FieldLiteral + // Use options instead. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. + ServiceOptions *ServiceOptions +} + +func (b0 Service_builder) Build() *Service { + m0 := &Service{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.NestedName = b.NestedName + x.FullName = b.FullName + x.Comments = b.Comments + x.FilePath = b.FilePath + x.Location = b.Location + x.Methods = b.Methods + x.ImplicitlyDeprecated = b.ImplicitlyDeprecated + x.Options = b.Options + x.ServiceOptions = b.ServiceOptions + return m0 +} + +// ServiceOptions provides information for the documentation of options for a given service. +// +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type ServiceOptions struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ServiceOptions) Reset() { + *x = ServiceOptions{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ServiceOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceOptions) ProtoMessage() {} func (x *ServiceOptions) ProtoReflect() protoreflect.Message { mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[16] @@ -1182,11 +1710,6 @@ func (x *ServiceOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ServiceOptions.ProtoReflect.Descriptor instead. -func (*ServiceOptions) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{16} -} - func (x *ServiceOptions) GetDeprecated() bool { if x != nil { return x.Deprecated @@ -1194,9 +1717,28 @@ func (x *ServiceOptions) GetDeprecated() bool { return false } +func (x *ServiceOptions) SetDeprecated(v bool) { + x.Deprecated = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type ServiceOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deprecated bool +} + +func (b0 ServiceOptions_builder) Build() *ServiceOptions { + m0 := &ServiceOptions{} + b, x := &b0, m0 + _, _ = b, x + x.Deprecated = b.Deprecated + return m0 +} + // Method provides information for the documentation for a method of a given service. type Method struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // comments is derived from the leading comments of a given method. // @@ -1245,11 +1787,6 @@ func (x *Method) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Method.ProtoReflect.Descriptor instead. -func (*Method) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{17} -} - func (x *Method) GetName() string { if x != nil { return x.Name @@ -1300,11 +1837,113 @@ func (x *Method) GetMethodOptions() *MethodOptions { return nil } +func (x *Method) SetName(v string) { + x.Name = v +} + +func (x *Method) SetComments(v string) { + x.Comments = v +} + +func (x *Method) SetRequest(v *MethodRequestResponse) { + x.Request = v +} + +func (x *Method) SetResponse(v *MethodRequestResponse) { + x.Response = v +} + +func (x *Method) SetImplicitlyDeprecated(v bool) { + x.ImplicitlyDeprecated = v +} + +func (x *Method) SetOptions(v []*FieldLiteral) { + x.Options = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Method) SetMethodOptions(v *MethodOptions) { + x.MethodOptions = v +} + +func (x *Method) HasRequest() bool { + if x == nil { + return false + } + return x.Request != nil +} + +func (x *Method) HasResponse() bool { + if x == nil { + return false + } + return x.Response != nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Method) HasMethodOptions() bool { + if x == nil { + return false + } + return x.MethodOptions != nil +} + +func (x *Method) ClearRequest() { + x.Request = nil +} + +func (x *Method) ClearResponse() { + x.Response = nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Method) ClearMethodOptions() { + x.MethodOptions = nil +} + +type Method_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // comments is derived from the leading comments of a given method. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + Request *MethodRequestResponse + Response *MethodRequestResponse + // implicitly_deprecated is true if its enclosing file or parent element is deprecated. + ImplicitlyDeprecated bool + // All options that are present on the method. This is a super-set of + // method_options and uses a dynamic representation so it can also + // accommodate custom options with arbitrary types. + // This supersedes method_options. + Options []*FieldLiteral + // Use options instead. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. + MethodOptions *MethodOptions +} + +func (b0 Method_builder) Build() *Method { + m0 := &Method{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Comments = b.Comments + x.Request = b.Request + x.Response = b.Response + x.ImplicitlyDeprecated = b.ImplicitlyDeprecated + x.Options = b.Options + x.MethodOptions = b.MethodOptions + return m0 +} + // MethodOptions provides information for the documentation of options for a method. // // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. type MethodOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` // idempotency_level holds a value of the enumeration `google.protobuf.MethodOptions.IdempotencyLevel. IdempotencyLevel int32 `protobuf:"varint,2,opt,name=idempotency_level,json=idempotencyLevel,proto3" json:"idempotency_level,omitempty"` @@ -1337,11 +1976,6 @@ func (x *MethodOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MethodOptions.ProtoReflect.Descriptor instead. -func (*MethodOptions) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{18} -} - func (x *MethodOptions) GetDeprecated() bool { if x != nil { return x.Deprecated @@ -1356,9 +1990,35 @@ func (x *MethodOptions) GetIdempotencyLevel() int32 { return 0 } +func (x *MethodOptions) SetDeprecated(v bool) { + x.Deprecated = v +} + +func (x *MethodOptions) SetIdempotencyLevel(v int32) { + x.IdempotencyLevel = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type MethodOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deprecated bool + // idempotency_level holds a value of the enumeration `google.protobuf.MethodOptions.IdempotencyLevel. + IdempotencyLevel int32 +} + +func (b0 MethodOptions_builder) Build() *MethodOptions { + m0 := &MethodOptions{} + b, x := &b0, m0 + _, _ = b, x + x.Deprecated = b.Deprecated + x.IdempotencyLevel = b.IdempotencyLevel + return m0 +} + // MethodRequestResponse provides information for the documentation of a Method request or response message. type MethodRequestResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // nested_type is the nested name of the message of the request or response. This includes nested definitions. NestedType string `protobuf:"bytes,1,opt,name=nested_type,json=nestedType,proto3" json:"nested_type,omitempty"` // full_type is the fully qualified name of the message of the request or response. This includes package and nested definitions. @@ -1398,11 +2058,6 @@ func (x *MethodRequestResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MethodRequestResponse.ProtoReflect.Descriptor instead. -func (*MethodRequestResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{19} -} - func (x *MethodRequestResponse) GetNestedType() string { if x != nil { return x.NestedType @@ -1438,9 +2093,78 @@ func (x *MethodRequestResponse) GetImportModuleRef() *ImportModuleRef { return nil } +func (x *MethodRequestResponse) SetNestedType(v string) { + x.NestedType = v +} + +func (x *MethodRequestResponse) SetFullType(v string) { + x.FullType = v +} + +func (x *MethodRequestResponse) SetStreaming(v bool) { + x.Streaming = v +} + +func (x *MethodRequestResponse) SetMessage(v *Message) { + x.Message = v +} + +func (x *MethodRequestResponse) SetImportModuleRef(v *ImportModuleRef) { + x.ImportModuleRef = v +} + +func (x *MethodRequestResponse) HasMessage() bool { + if x == nil { + return false + } + return x.Message != nil +} + +func (x *MethodRequestResponse) HasImportModuleRef() bool { + if x == nil { + return false + } + return x.ImportModuleRef != nil +} + +func (x *MethodRequestResponse) ClearMessage() { + x.Message = nil +} + +func (x *MethodRequestResponse) ClearImportModuleRef() { + x.ImportModuleRef = nil +} + +type MethodRequestResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // nested_type is the nested name of the message of the request or response. This includes nested definitions. + NestedType string + // full_type is the fully qualified name of the message of the request or response. This includes package and nested definitions. + FullType string + // boolean flag for whether the streaming label is set on an method request or response. + Streaming bool + Message *Message + // import_module_ref is included if the request or response is an imported type. + // It contains all the metadata for the import. + ImportModuleRef *ImportModuleRef +} + +func (b0 MethodRequestResponse_builder) Build() *MethodRequestResponse { + m0 := &MethodRequestResponse{} + b, x := &b0, m0 + _, _ = b, x + x.NestedType = b.NestedType + x.FullType = b.FullType + x.Streaming = b.Streaming + x.Message = b.Message + x.ImportModuleRef = b.ImportModuleRef + return m0 +} + // Enum provides information for the documentation of an enum. type Enum struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // nested_name includes the nested types for a given type definition. NestedName string `protobuf:"bytes,2,opt,name=nested_name,json=nestedName,proto3" json:"nested_name,omitempty"` @@ -1495,11 +2219,6 @@ func (x *Enum) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Enum.ProtoReflect.Descriptor instead. -func (*Enum) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{20} -} - func (x *Enum) GetName() string { if x != nil { return x.Name @@ -1571,11 +2290,123 @@ func (x *Enum) GetEnumOptions() *EnumOptions { return nil } +func (x *Enum) SetName(v string) { + x.Name = v +} + +func (x *Enum) SetNestedName(v string) { + x.NestedName = v +} + +func (x *Enum) SetFullName(v string) { + x.FullName = v +} + +func (x *Enum) SetComments(v string) { + x.Comments = v +} + +func (x *Enum) SetFilePath(v string) { + x.FilePath = v +} + +func (x *Enum) SetLocation(v *Location) { + x.Location = v +} + +func (x *Enum) SetValues(v []*EnumValue) { + x.Values = v +} + +func (x *Enum) SetImplicitlyDeprecated(v bool) { + x.ImplicitlyDeprecated = v +} + +func (x *Enum) SetOptions(v []*FieldLiteral) { + x.Options = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Enum) SetEnumOptions(v *EnumOptions) { + x.EnumOptions = v +} + +func (x *Enum) HasLocation() bool { + if x == nil { + return false + } + return x.Location != nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Enum) HasEnumOptions() bool { + if x == nil { + return false + } + return x.EnumOptions != nil +} + +func (x *Enum) ClearLocation() { + x.Location = nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Enum) ClearEnumOptions() { + x.EnumOptions = nil +} + +type Enum_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // nested_name includes the nested types for a given type definition. + NestedName string + // full_name includes the package name and nested types for a given type definition. + FullName string + // comments is derived from the leading comments of a given Enum. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + // file_path is the normalized path of the file containing the enum. + FilePath string + Location *Location + Values []*EnumValue + // implicitly_deprecated is true if its enclosing file or parent element is deprecated. + ImplicitlyDeprecated bool + // All options that are present on the enum. This is a super-set of + // enum_options and uses a dynamic representation so it can also + // accommodate custom options with arbitrary types. + // // This supersedes enum_options. + Options []*FieldLiteral + // Use options instead. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. + EnumOptions *EnumOptions +} + +func (b0 Enum_builder) Build() *Enum { + m0 := &Enum{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.NestedName = b.NestedName + x.FullName = b.FullName + x.Comments = b.Comments + x.FilePath = b.FilePath + x.Location = b.Location + x.Values = b.Values + x.ImplicitlyDeprecated = b.ImplicitlyDeprecated + x.Options = b.Options + x.EnumOptions = b.EnumOptions + return m0 +} + // EnumOptions provides information for the documentation of options for an enum. // // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. type EnumOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` AllowAlias bool `protobuf:"varint,2,opt,name=allow_alias,json=allowAlias,proto3" json:"allow_alias,omitempty"` unknownFields protoimpl.UnknownFields @@ -1607,11 +2438,6 @@ func (x *EnumOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EnumOptions.ProtoReflect.Descriptor instead. -func (*EnumOptions) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{21} -} - func (x *EnumOptions) GetDeprecated() bool { if x != nil { return x.Deprecated @@ -1626,9 +2452,34 @@ func (x *EnumOptions) GetAllowAlias() bool { return false } +func (x *EnumOptions) SetDeprecated(v bool) { + x.Deprecated = v +} + +func (x *EnumOptions) SetAllowAlias(v bool) { + x.AllowAlias = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type EnumOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deprecated bool + AllowAlias bool +} + +func (b0 EnumOptions_builder) Build() *EnumOptions { + m0 := &EnumOptions{} + b, x := &b0, m0 + _, _ = b, x + x.Deprecated = b.Deprecated + x.AllowAlias = b.AllowAlias + return m0 +} + // EnumValue provides information for the documentation of an enum value. type EnumValue struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // comments is derived from the leading comments of a given enum value. @@ -1674,11 +2525,6 @@ func (x *EnumValue) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EnumValue.ProtoReflect.Descriptor instead. -func (*EnumValue) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{22} -} - func (x *EnumValue) GetName() string { if x != nil { return x.Name @@ -1715,11 +2561,78 @@ func (x *EnumValue) GetEnumValueOptions() *EnumValueOptions { return nil } +func (x *EnumValue) SetName(v string) { + x.Name = v +} + +func (x *EnumValue) SetNumber(v int32) { + x.Number = v +} + +func (x *EnumValue) SetComments(v string) { + x.Comments = v +} + +func (x *EnumValue) SetOptions(v []*FieldLiteral) { + x.Options = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *EnumValue) SetEnumValueOptions(v *EnumValueOptions) { + x.EnumValueOptions = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *EnumValue) HasEnumValueOptions() bool { + if x == nil { + return false + } + return x.EnumValueOptions != nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *EnumValue) ClearEnumValueOptions() { + x.EnumValueOptions = nil +} + +type EnumValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Number int32 + // comments is derived from the leading comments of a given enum value. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + // All options that are present on the enum. This is a super-set of + // enum_value_options and uses a dynamic representation so it can also + // accommodate custom options with arbitrary types. + // // This supersedes enum_value_options. + Options []*FieldLiteral + // Use options instead. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. + EnumValueOptions *EnumValueOptions +} + +func (b0 EnumValue_builder) Build() *EnumValue { + m0 := &EnumValue{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Number = b.Number + x.Comments = b.Comments + x.Options = b.Options + x.EnumValueOptions = b.EnumValueOptions + return m0 +} + // EnumValueOptions provides information for the documentation of options for an enum value. // // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. type EnumValueOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1750,11 +2663,6 @@ func (x *EnumValueOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor instead. -func (*EnumValueOptions) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{23} -} - func (x *EnumValueOptions) GetDeprecated() bool { if x != nil { return x.Deprecated @@ -1762,9 +2670,28 @@ func (x *EnumValueOptions) GetDeprecated() bool { return false } +func (x *EnumValueOptions) SetDeprecated(v bool) { + x.Deprecated = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type EnumValueOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deprecated bool +} + +func (b0 EnumValueOptions_builder) Build() *EnumValueOptions { + m0 := &EnumValueOptions{} + b, x := &b0, m0 + _, _ = b, x + x.Deprecated = b.Deprecated + return m0 +} + // ImportRef provides the import metadata if a type is imported. type ImportModuleRef struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,3,opt,name=repository,proto3" json:"repository,omitempty"` @@ -1801,11 +2728,6 @@ func (x *ImportModuleRef) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ImportModuleRef.ProtoReflect.Descriptor instead. -func (*ImportModuleRef) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{24} -} - func (x *ImportModuleRef) GetRemote() string { if x != nil { return x.Remote @@ -1841,9 +2763,53 @@ func (x *ImportModuleRef) GetPackageName() string { return "" } +func (x *ImportModuleRef) SetRemote(v string) { + x.Remote = v +} + +func (x *ImportModuleRef) SetOwner(v string) { + x.Owner = v +} + +func (x *ImportModuleRef) SetRepository(v string) { + x.Repository = v +} + +func (x *ImportModuleRef) SetCommit(v string) { + x.Commit = v +} + +func (x *ImportModuleRef) SetPackageName(v string) { + x.PackageName = v +} + +type ImportModuleRef_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Remote string + Owner string + Repository string + // the commit is based on the module commit of the imported type provided + // by the image. + Commit string + PackageName string +} + +func (b0 ImportModuleRef_builder) Build() *ImportModuleRef { + m0 := &ImportModuleRef{} + b, x := &b0, m0 + _, _ = b, x + x.Remote = b.Remote + x.Owner = b.Owner + x.Repository = b.Repository + x.Commit = b.Commit + x.PackageName = b.PackageName + return m0 +} + // Message provides information for the documentation of a protobuf message. type Message struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // nested_name includes the nested types for a given type definition. NestedName string `protobuf:"bytes,2,opt,name=nested_name,json=nestedName,proto3" json:"nested_name,omitempty"` @@ -1900,11 +2866,6 @@ func (x *Message) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Message.ProtoReflect.Descriptor instead. -func (*Message) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{25} -} - func (x *Message) GetName() string { if x != nil { return x.Name @@ -1990,9 +2951,133 @@ func (x *Message) GetMessageOptions() *MessageOptions { return nil } +func (x *Message) SetName(v string) { + x.Name = v +} + +func (x *Message) SetNestedName(v string) { + x.NestedName = v +} + +func (x *Message) SetFullName(v string) { + x.FullName = v +} + +func (x *Message) SetComments(v string) { + x.Comments = v +} + +func (x *Message) SetFilePath(v string) { + x.FilePath = v +} + +func (x *Message) SetIsMapEntry(v bool) { + x.IsMapEntry = v +} + +func (x *Message) SetFields(v []*MessageField) { + x.Fields = v +} + +func (x *Message) SetLocation(v *Location) { + x.Location = v +} + +func (x *Message) SetMessageExtensions(v []*Field) { + x.MessageExtensions = v +} + +func (x *Message) SetImplicitlyDeprecated(v bool) { + x.ImplicitlyDeprecated = v +} + +func (x *Message) SetOptions(v []*FieldLiteral) { + x.Options = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Message) SetMessageOptions(v *MessageOptions) { + x.MessageOptions = v +} + +func (x *Message) HasLocation() bool { + if x == nil { + return false + } + return x.Location != nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Message) HasMessageOptions() bool { + if x == nil { + return false + } + return x.MessageOptions != nil +} + +func (x *Message) ClearLocation() { + x.Location = nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Message) ClearMessageOptions() { + x.MessageOptions = nil +} + +type Message_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // nested_name includes the nested types for a given type definition. + NestedName string + // full_name includes the package name and nested types for a given type definition. + FullName string + // comments is derived from the leading comments of a given message. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + // file_path is the normalized path of the file containing the message. + FilePath string + IsMapEntry bool + Fields []*MessageField + Location *Location + MessageExtensions []*Field + // implicitly_deprecated is true if its enclosing file or parent element is deprecated. + ImplicitlyDeprecated bool + // All options that are present on the message. This is a super-set of + // message_options and uses a dynamic representation so it can also + // accommodate custom options with arbitrary types. + // // This supersedes message_options. + Options []*FieldLiteral + // Use options instead. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. + MessageOptions *MessageOptions +} + +func (b0 Message_builder) Build() *Message { + m0 := &Message{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.NestedName = b.NestedName + x.FullName = b.FullName + x.Comments = b.Comments + x.FilePath = b.FilePath + x.IsMapEntry = b.IsMapEntry + x.Fields = b.Fields + x.Location = b.Location + x.MessageExtensions = b.MessageExtensions + x.ImplicitlyDeprecated = b.ImplicitlyDeprecated + x.Options = b.Options + x.MessageOptions = b.MessageOptions + return m0 +} + // MessageField can be either a single field or a oneof set of fields. type MessageField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to MessageField: // // *MessageField_Field @@ -2027,11 +3112,6 @@ func (x *MessageField) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MessageField.ProtoReflect.Descriptor instead. -func (*MessageField) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{26} -} - func (x *MessageField) GetMessageField() isMessageField_MessageField { if x != nil { return x.MessageField @@ -2057,6 +3137,111 @@ func (x *MessageField) GetOneof() *Oneof { return nil } +func (x *MessageField) SetField(v *Field) { + if v == nil { + x.MessageField = nil + return + } + x.MessageField = &MessageField_Field{v} +} + +func (x *MessageField) SetOneof(v *Oneof) { + if v == nil { + x.MessageField = nil + return + } + x.MessageField = &MessageField_Oneof{v} +} + +func (x *MessageField) HasMessageField() bool { + if x == nil { + return false + } + return x.MessageField != nil +} + +func (x *MessageField) HasField() bool { + if x == nil { + return false + } + _, ok := x.MessageField.(*MessageField_Field) + return ok +} + +func (x *MessageField) HasOneof() bool { + if x == nil { + return false + } + _, ok := x.MessageField.(*MessageField_Oneof) + return ok +} + +func (x *MessageField) ClearMessageField() { + x.MessageField = nil +} + +func (x *MessageField) ClearField() { + if _, ok := x.MessageField.(*MessageField_Field); ok { + x.MessageField = nil + } +} + +func (x *MessageField) ClearOneof() { + if _, ok := x.MessageField.(*MessageField_Oneof); ok { + x.MessageField = nil + } +} + +const MessageField_MessageField_not_set_case case_MessageField_MessageField = 0 +const MessageField_Field_case case_MessageField_MessageField = 1 +const MessageField_Oneof_case case_MessageField_MessageField = 2 + +func (x *MessageField) WhichMessageField() case_MessageField_MessageField { + if x == nil { + return MessageField_MessageField_not_set_case + } + switch x.MessageField.(type) { + case *MessageField_Field: + return MessageField_Field_case + case *MessageField_Oneof: + return MessageField_Oneof_case + default: + return MessageField_MessageField_not_set_case + } +} + +type MessageField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof MessageField: + Field *Field + Oneof *Oneof + // -- end of MessageField +} + +func (b0 MessageField_builder) Build() *MessageField { + m0 := &MessageField{} + b, x := &b0, m0 + _, _ = b, x + if b.Field != nil { + x.MessageField = &MessageField_Field{b.Field} + } + if b.Oneof != nil { + x.MessageField = &MessageField_Oneof{b.Oneof} + } + return m0 +} + +type case_MessageField_MessageField protoreflect.FieldNumber + +func (x case_MessageField_MessageField) String() string { + md := file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[26].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isMessageField_MessageField interface { isMessageField_MessageField() } @@ -2077,7 +3262,7 @@ func (*MessageField_Oneof) isMessageField_MessageField() {} // // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. type MessageOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -2108,11 +3293,6 @@ func (x *MessageOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead. -func (*MessageOptions) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{27} -} - func (x *MessageOptions) GetDeprecated() bool { if x != nil { return x.Deprecated @@ -2120,9 +3300,28 @@ func (x *MessageOptions) GetDeprecated() bool { return false } +func (x *MessageOptions) SetDeprecated(v bool) { + x.Deprecated = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type MessageOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deprecated bool +} + +func (b0 MessageOptions_builder) Build() *MessageOptions { + m0 := &MessageOptions{} + b, x := &b0, m0 + _, _ = b, x + x.Deprecated = b.Deprecated + return m0 +} + // Oneof represents a oneof set of fields. type Oneof struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Fields []*Field `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` // All options that are present on the OneOf. @@ -2158,11 +3357,6 @@ func (x *Oneof) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Oneof.ProtoReflect.Descriptor instead. -func (*Oneof) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{28} -} - func (x *Oneof) GetName() string { if x != nil { return x.Name @@ -2184,9 +3378,42 @@ func (x *Oneof) GetOptions() []*FieldLiteral { return nil } +func (x *Oneof) SetName(v string) { + x.Name = v +} + +func (x *Oneof) SetFields(v []*Field) { + x.Fields = v +} + +func (x *Oneof) SetOptions(v []*FieldLiteral) { + x.Options = v +} + +type Oneof_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Fields []*Field + // All options that are present on the OneOf. + // This is a dynamic representation so it can also + // accommodate custom options with arbitrary types. + Options []*FieldLiteral +} + +func (b0 Oneof_builder) Build() *Oneof { + m0 := &Oneof{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Fields = b.Fields + x.Options = b.Options + return m0 +} + // Field provides information for the documentation of a message field. type Field struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // comments is derived from the leading comments of a given message field. // @@ -2246,11 +3473,6 @@ func (x *Field) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Field.ProtoReflect.Descriptor instead. -func (*Field) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{29} -} - func (x *Field) GetName() string { if x != nil { return x.Name @@ -2329,11 +3551,144 @@ func (x *Field) GetFieldOptions() *FieldOptions { return nil } +func (x *Field) SetName(v string) { + x.Name = v +} + +func (x *Field) SetComments(v string) { + x.Comments = v +} + +func (x *Field) SetLabel(v string) { + x.Label = v +} + +func (x *Field) SetNestedType(v string) { + x.NestedType = v +} + +func (x *Field) SetFullType(v string) { + x.FullType = v +} + +func (x *Field) SetTag(v uint32) { + x.Tag = v +} + +func (x *Field) SetMapEntry(v *MapEntry) { + x.MapEntry = v +} + +func (x *Field) SetImportModuleRef(v *ImportModuleRef) { + x.ImportModuleRef = v +} + +func (x *Field) SetExtendee(v string) { + x.Extendee = v +} + +func (x *Field) SetOptions(v []*FieldLiteral) { + x.Options = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Field) SetFieldOptions(v *FieldOptions) { + x.FieldOptions = v +} + +func (x *Field) HasMapEntry() bool { + if x == nil { + return false + } + return x.MapEntry != nil +} + +func (x *Field) HasImportModuleRef() bool { + if x == nil { + return false + } + return x.ImportModuleRef != nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Field) HasFieldOptions() bool { + if x == nil { + return false + } + return x.FieldOptions != nil +} + +func (x *Field) ClearMapEntry() { + x.MapEntry = nil +} + +func (x *Field) ClearImportModuleRef() { + x.ImportModuleRef = nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Field) ClearFieldOptions() { + x.FieldOptions = nil +} + +type Field_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // comments is derived from the leading comments of a given message field. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + Label string + // string representation of the nested name of the field type, which includes nested definitions. + NestedType string + // string representation of the full name of the field type, which includes package name + // and nested definitions. + FullType string + Tag uint32 + // MapEntry is present if the field is a map type. + MapEntry *MapEntry + // import_module_ref is included if the field is an imported type. + // It contains all the metadata for the import. + ImportModuleRef *ImportModuleRef + // Extendee is the name of the type that is being ext if the field is an extension. + // This is an empty string for fields that are not extenions. + Extendee string + // All options that are present on the field. This is a super-set of + // field_options and uses a dynamic representation so it can also + // accommodate custom options with arbitrary types. + // This supersedes field_options. + Options []*FieldLiteral + // Use options instead. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. + FieldOptions *FieldOptions +} + +func (b0 Field_builder) Build() *Field { + m0 := &Field{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Comments = b.Comments + x.Label = b.Label + x.NestedType = b.NestedType + x.FullType = b.FullType + x.Tag = b.Tag + x.MapEntry = b.MapEntry + x.ImportModuleRef = b.ImportModuleRef + x.Extendee = b.Extendee + x.Options = b.Options + x.FieldOptions = b.FieldOptions + return m0 +} + // FieldOptions provides information for the documentation of options for a field. // // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. type FieldOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` Packed *bool `protobuf:"varint,2,opt,name=packed,proto3,oneof" json:"packed,omitempty"` // ctype holds a value of the enumeration `google.protobuf.FieldOptions.CType. @@ -2369,11 +3724,6 @@ func (x *FieldOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead. -func (*FieldOptions) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{30} -} - func (x *FieldOptions) GetDeprecated() bool { if x != nil { return x.Deprecated @@ -2402,9 +3752,59 @@ func (x *FieldOptions) GetJstype() int32 { return 0 } +func (x *FieldOptions) SetDeprecated(v bool) { + x.Deprecated = v +} + +func (x *FieldOptions) SetPacked(v bool) { + x.Packed = &v +} + +func (x *FieldOptions) SetCtype(v int32) { + x.Ctype = v +} + +func (x *FieldOptions) SetJstype(v int32) { + x.Jstype = v +} + +func (x *FieldOptions) HasPacked() bool { + if x == nil { + return false + } + return x.Packed != nil +} + +func (x *FieldOptions) ClearPacked() { + x.Packed = nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type FieldOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deprecated bool + Packed *bool + // ctype holds a value of the enumeration `google.protobuf.FieldOptions.CType. + Ctype int32 + // jstype holds a value of the enumeration `google.protobuf.FieldOptions.JSType. + Jstype int32 +} + +func (b0 FieldOptions_builder) Build() *FieldOptions { + m0 := &FieldOptions{} + b, x := &b0, m0 + _, _ = b, x + x.Deprecated = b.Deprecated + x.Packed = b.Packed + x.Ctype = b.Ctype + x.Jstype = b.Jstype + return m0 +} + // FieldLiteral represents a field and its value. It can be used to model descriptor options. type FieldLiteral struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // When is_extension is true, name is the fully-qualified name of the // extension. Otherwise, it is the simple name of the field. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` @@ -2446,11 +3846,6 @@ func (x *FieldLiteral) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FieldLiteral.ProtoReflect.Descriptor instead. -func (*FieldLiteral) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{31} -} - func (x *FieldLiteral) GetName() string { if x != nil { return x.Name @@ -2486,9 +3881,80 @@ func (x *FieldLiteral) GetImportModuleRef() *ImportModuleRef { return nil } +func (x *FieldLiteral) SetName(v string) { + x.Name = v +} + +func (x *FieldLiteral) SetTag(v int32) { + x.Tag = v +} + +func (x *FieldLiteral) SetFieldType(v FieldType) { + x.FieldType = v +} + +func (x *FieldLiteral) SetValue(v *LiteralValue) { + x.Value = v +} + +func (x *FieldLiteral) SetImportModuleRef(v *ImportModuleRef) { + x.ImportModuleRef = v +} + +func (x *FieldLiteral) HasValue() bool { + if x == nil { + return false + } + return x.Value != nil +} + +func (x *FieldLiteral) HasImportModuleRef() bool { + if x == nil { + return false + } + return x.ImportModuleRef != nil +} + +func (x *FieldLiteral) ClearValue() { + x.Value = nil +} + +func (x *FieldLiteral) ClearImportModuleRef() { + x.ImportModuleRef = nil +} + +type FieldLiteral_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // When is_extension is true, name is the fully-qualified name of the + // extension. Otherwise, it is the simple name of the field. + Name string + // The unique field number associated with the field. + Tag int32 + // Indicates whether this is an extension or not. + FieldType FieldType + // The field's value. + Value *LiteralValue + // This is the module where the extension is defined if the field type + // is extension or the module where the messages is defined for field type any. + ImportModuleRef *ImportModuleRef +} + +func (b0 FieldLiteral_builder) Build() *FieldLiteral { + m0 := &FieldLiteral{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Tag = b.Tag + x.FieldType = b.FieldType + x.Value = b.Value + x.ImportModuleRef = b.ImportModuleRef + return m0 +} + // MessageLiteral represents an option value for a type that is a message. type MessageLiteral struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Map of field names to value. Extension field names will be in the form: // [fully.qualified.extension.Name]. Fields []*FieldLiteral `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` @@ -2521,11 +3987,6 @@ func (x *MessageLiteral) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MessageLiteral.ProtoReflect.Descriptor instead. -func (*MessageLiteral) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{32} -} - func (x *MessageLiteral) GetFields() []*FieldLiteral { if x != nil { return x.Fields @@ -2533,11 +3994,31 @@ func (x *MessageLiteral) GetFields() []*FieldLiteral { return nil } +func (x *MessageLiteral) SetFields(v []*FieldLiteral) { + x.Fields = v +} + +type MessageLiteral_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Map of field names to value. Extension field names will be in the form: + // [fully.qualified.extension.Name]. + Fields []*FieldLiteral +} + +func (b0 MessageLiteral_builder) Build() *MessageLiteral { + m0 := &MessageLiteral{} + b, x := &b0, m0 + _, _ = b, x + x.Fields = b.Fields + return m0 +} + // ArrayLiteral represents an option value for a type that is a repeated field. // Maps are also represented using an ArrayLiteral, where each map entry is a MessageLiteral // that contains a key and value field. type ArrayLiteral struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Elements []*LiteralValue `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -2568,11 +4049,6 @@ func (x *ArrayLiteral) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ArrayLiteral.ProtoReflect.Descriptor instead. -func (*ArrayLiteral) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{33} -} - func (x *ArrayLiteral) GetElements() []*LiteralValue { if x != nil { return x.Elements @@ -2580,9 +4056,27 @@ func (x *ArrayLiteral) GetElements() []*LiteralValue { return nil } +func (x *ArrayLiteral) SetElements(v []*LiteralValue) { + x.Elements = v +} + +type ArrayLiteral_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Elements []*LiteralValue +} + +func (b0 ArrayLiteral_builder) Build() *ArrayLiteral { + m0 := &ArrayLiteral{} + b, x := &b0, m0 + _, _ = b, x + x.Elements = b.Elements + return m0 +} + // LiteralValue represents the actual value of the extension. type LiteralValue struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Value: // // *LiteralValue_StringValue @@ -2624,11 +4118,6 @@ func (x *LiteralValue) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LiteralValue.ProtoReflect.Descriptor instead. -func (*LiteralValue) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{34} -} - func (x *LiteralValue) GetValue() isLiteralValue_Value { if x != nil { return x.Value @@ -2715,6 +4204,267 @@ func (x *LiteralValue) GetComments() string { return "" } +func (x *LiteralValue) SetStringValue(v string) { + x.Value = &LiteralValue_StringValue{v} +} + +func (x *LiteralValue) SetIntValue(v int64) { + x.Value = &LiteralValue_IntValue{v} +} + +func (x *LiteralValue) SetUintValue(v uint64) { + x.Value = &LiteralValue_UintValue{v} +} + +func (x *LiteralValue) SetDoubleValue(v float64) { + x.Value = &LiteralValue_DoubleValue{v} +} + +func (x *LiteralValue) SetBoolValue(v bool) { + x.Value = &LiteralValue_BoolValue{v} +} + +func (x *LiteralValue) SetEnumValueNameValue(v string) { + x.Value = &LiteralValue_EnumValueNameValue{v} +} + +func (x *LiteralValue) SetArrayValue(v *ArrayLiteral) { + if v == nil { + x.Value = nil + return + } + x.Value = &LiteralValue_ArrayValue{v} +} + +func (x *LiteralValue) SetMessageValue(v *MessageLiteral) { + if v == nil { + x.Value = nil + return + } + x.Value = &LiteralValue_MessageValue{v} +} + +func (x *LiteralValue) SetComments(v string) { + x.Comments = v +} + +func (x *LiteralValue) HasValue() bool { + if x == nil { + return false + } + return x.Value != nil +} + +func (x *LiteralValue) HasStringValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*LiteralValue_StringValue) + return ok +} + +func (x *LiteralValue) HasIntValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*LiteralValue_IntValue) + return ok +} + +func (x *LiteralValue) HasUintValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*LiteralValue_UintValue) + return ok +} + +func (x *LiteralValue) HasDoubleValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*LiteralValue_DoubleValue) + return ok +} + +func (x *LiteralValue) HasBoolValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*LiteralValue_BoolValue) + return ok +} + +func (x *LiteralValue) HasEnumValueNameValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*LiteralValue_EnumValueNameValue) + return ok +} + +func (x *LiteralValue) HasArrayValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*LiteralValue_ArrayValue) + return ok +} + +func (x *LiteralValue) HasMessageValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*LiteralValue_MessageValue) + return ok +} + +func (x *LiteralValue) ClearValue() { + x.Value = nil +} + +func (x *LiteralValue) ClearStringValue() { + if _, ok := x.Value.(*LiteralValue_StringValue); ok { + x.Value = nil + } +} + +func (x *LiteralValue) ClearIntValue() { + if _, ok := x.Value.(*LiteralValue_IntValue); ok { + x.Value = nil + } +} + +func (x *LiteralValue) ClearUintValue() { + if _, ok := x.Value.(*LiteralValue_UintValue); ok { + x.Value = nil + } +} + +func (x *LiteralValue) ClearDoubleValue() { + if _, ok := x.Value.(*LiteralValue_DoubleValue); ok { + x.Value = nil + } +} + +func (x *LiteralValue) ClearBoolValue() { + if _, ok := x.Value.(*LiteralValue_BoolValue); ok { + x.Value = nil + } +} + +func (x *LiteralValue) ClearEnumValueNameValue() { + if _, ok := x.Value.(*LiteralValue_EnumValueNameValue); ok { + x.Value = nil + } +} + +func (x *LiteralValue) ClearArrayValue() { + if _, ok := x.Value.(*LiteralValue_ArrayValue); ok { + x.Value = nil + } +} + +func (x *LiteralValue) ClearMessageValue() { + if _, ok := x.Value.(*LiteralValue_MessageValue); ok { + x.Value = nil + } +} + +const LiteralValue_Value_not_set_case case_LiteralValue_Value = 0 +const LiteralValue_StringValue_case case_LiteralValue_Value = 2 +const LiteralValue_IntValue_case case_LiteralValue_Value = 3 +const LiteralValue_UintValue_case case_LiteralValue_Value = 4 +const LiteralValue_DoubleValue_case case_LiteralValue_Value = 5 +const LiteralValue_BoolValue_case case_LiteralValue_Value = 6 +const LiteralValue_EnumValueNameValue_case case_LiteralValue_Value = 7 +const LiteralValue_ArrayValue_case case_LiteralValue_Value = 8 +const LiteralValue_MessageValue_case case_LiteralValue_Value = 9 + +func (x *LiteralValue) WhichValue() case_LiteralValue_Value { + if x == nil { + return LiteralValue_Value_not_set_case + } + switch x.Value.(type) { + case *LiteralValue_StringValue: + return LiteralValue_StringValue_case + case *LiteralValue_IntValue: + return LiteralValue_IntValue_case + case *LiteralValue_UintValue: + return LiteralValue_UintValue_case + case *LiteralValue_DoubleValue: + return LiteralValue_DoubleValue_case + case *LiteralValue_BoolValue: + return LiteralValue_BoolValue_case + case *LiteralValue_EnumValueNameValue: + return LiteralValue_EnumValueNameValue_case + case *LiteralValue_ArrayValue: + return LiteralValue_ArrayValue_case + case *LiteralValue_MessageValue: + return LiteralValue_MessageValue_case + default: + return LiteralValue_Value_not_set_case + } +} + +type LiteralValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Value: + StringValue *string + IntValue *int64 + UintValue *uint64 + DoubleValue *float64 + BoolValue *bool + EnumValueNameValue *string + ArrayValue *ArrayLiteral + MessageValue *MessageLiteral + // -- end of Value + Comments string +} + +func (b0 LiteralValue_builder) Build() *LiteralValue { + m0 := &LiteralValue{} + b, x := &b0, m0 + _, _ = b, x + if b.StringValue != nil { + x.Value = &LiteralValue_StringValue{*b.StringValue} + } + if b.IntValue != nil { + x.Value = &LiteralValue_IntValue{*b.IntValue} + } + if b.UintValue != nil { + x.Value = &LiteralValue_UintValue{*b.UintValue} + } + if b.DoubleValue != nil { + x.Value = &LiteralValue_DoubleValue{*b.DoubleValue} + } + if b.BoolValue != nil { + x.Value = &LiteralValue_BoolValue{*b.BoolValue} + } + if b.EnumValueNameValue != nil { + x.Value = &LiteralValue_EnumValueNameValue{*b.EnumValueNameValue} + } + if b.ArrayValue != nil { + x.Value = &LiteralValue_ArrayValue{b.ArrayValue} + } + if b.MessageValue != nil { + x.Value = &LiteralValue_MessageValue{b.MessageValue} + } + x.Comments = b.Comments + return m0 +} + +type case_LiteralValue_Value protoreflect.FieldNumber + +func (x case_LiteralValue_Value) String() string { + md := file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[34].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isLiteralValue_Value interface { isLiteralValue_Value() } @@ -2769,7 +4519,7 @@ func (*LiteralValue_MessageValue) isLiteralValue_Value() {} // MapEntry provides the key and value types for the MapEntry type for a map field. type MapEntry struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // string representation of the full name of the type for the map key. keys can only be // scalar types: https://developers.google.com/protocol-buffers/docs/overview#maps KeyFullType string `protobuf:"bytes,1,opt,name=key_full_type,json=keyFullType,proto3" json:"key_full_type,omitempty"` @@ -2808,11 +4558,6 @@ func (x *MapEntry) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MapEntry.ProtoReflect.Descriptor instead. -func (*MapEntry) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{35} -} - func (x *MapEntry) GetKeyFullType() string { if x != nil { return x.KeyFullType @@ -2841,9 +4586,61 @@ func (x *MapEntry) GetValueImportModuleRef() *ImportModuleRef { return nil } +func (x *MapEntry) SetKeyFullType(v string) { + x.KeyFullType = v +} + +func (x *MapEntry) SetValueNestedType(v string) { + x.ValueNestedType = v +} + +func (x *MapEntry) SetValueFullType(v string) { + x.ValueFullType = v +} + +func (x *MapEntry) SetValueImportModuleRef(v *ImportModuleRef) { + x.ValueImportModuleRef = v +} + +func (x *MapEntry) HasValueImportModuleRef() bool { + if x == nil { + return false + } + return x.ValueImportModuleRef != nil +} + +func (x *MapEntry) ClearValueImportModuleRef() { + x.ValueImportModuleRef = nil +} + +type MapEntry_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // string representation of the full name of the type for the map key. keys can only be + // scalar types: https://developers.google.com/protocol-buffers/docs/overview#maps + KeyFullType string + // string representation of the nested name of the type for the map value. + ValueNestedType string + // string representation of the full name of the type for the map value. + ValueFullType string + // if the value is an imported type, this is the import module ref + ValueImportModuleRef *ImportModuleRef +} + +func (b0 MapEntry_builder) Build() *MapEntry { + m0 := &MapEntry{} + b, x := &b0, m0 + _, _ = b, x + x.KeyFullType = b.KeyFullType + x.ValueNestedType = b.ValueNestedType + x.ValueFullType = b.ValueFullType + x.ValueImportModuleRef = b.ValueImportModuleRef + return m0 +} + // FileExtension provides the information for the documentation of a file extension. type FileExtension struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // extension_type is the string representation of the type being extended. ExtensionType string `protobuf:"bytes,1,opt,name=extension_type,json=extensionType,proto3" json:"extension_type,omitempty"` // comments is derived from the leading comments of a given message field. @@ -2887,11 +4684,6 @@ func (x *FileExtension) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FileExtension.ProtoReflect.Descriptor instead. -func (*FileExtension) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP(), []int{36} -} - func (x *FileExtension) GetExtensionType() string { if x != nil { return x.ExtensionType @@ -2934,6 +4726,73 @@ func (x *FileExtension) GetImplicitlyDeprecated() bool { return false } +func (x *FileExtension) SetExtensionType(v string) { + x.ExtensionType = v +} + +func (x *FileExtension) SetComments(v string) { + x.Comments = v +} + +func (x *FileExtension) SetFilePath(v string) { + x.FilePath = v +} + +func (x *FileExtension) SetLocation(v *Location) { + x.Location = v +} + +func (x *FileExtension) SetFields(v []*Field) { + x.Fields = v +} + +func (x *FileExtension) SetImplicitlyDeprecated(v bool) { + x.ImplicitlyDeprecated = v +} + +func (x *FileExtension) HasLocation() bool { + if x == nil { + return false + } + return x.Location != nil +} + +func (x *FileExtension) ClearLocation() { + x.Location = nil +} + +type FileExtension_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // extension_type is the string representation of the type being extended. + ExtensionType string + // comments is derived from the leading comments of a given message field. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + // file_path is the normalized path of the file containing the message. + FilePath string + Location *Location + // fields are all the fields that are associated with the extension. + Fields []*Field + // implicitly_deprecated is true if its enclosing file or parent element is deprecated. + ImplicitlyDeprecated bool +} + +func (b0 FileExtension_builder) Build() *FileExtension { + m0 := &FileExtension{} + b, x := &b0, m0 + _, _ = b, x + x.ExtensionType = b.ExtensionType + x.Comments = b.Comments + x.FilePath = b.FilePath + x.Location = b.Location + x.Fields = b.Fields + x.ImplicitlyDeprecated = b.ImplicitlyDeprecated + return m0 +} + var File_buf_alpha_registry_v1alpha1_doc_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_doc_proto_rawDesc = []byte{ @@ -3479,18 +5338,6 @@ var file_buf_alpha_registry_v1alpha1_doc_proto_rawDesc = []byte{ 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_doc_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_doc_proto_rawDescData = file_buf_alpha_registry_v1alpha1_doc_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_doc_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_doc_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_doc_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_doc_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_doc_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_doc_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes = make([]protoimpl.MessageInfo, 37) var file_buf_alpha_registry_v1alpha1_doc_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/doc_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/doc_protoopaque.pb.go new file mode 100644 index 0000000000..023f8de16a --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/doc_protoopaque.pb.go @@ -0,0 +1,5355 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/doc.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// FieldType indicates whether a field is a normal, an extension or an any. +type FieldType int32 + +const ( + FieldType_FIELD_TYPE_UNSPECIFIED FieldType = 0 + FieldType_FIELD_TYPE_NORMAL FieldType = 1 + FieldType_FIELD_TYPE_EXTENSION FieldType = 2 + FieldType_FIELD_TYPE_ANY FieldType = 3 +) + +// Enum value maps for FieldType. +var ( + FieldType_name = map[int32]string{ + 0: "FIELD_TYPE_UNSPECIFIED", + 1: "FIELD_TYPE_NORMAL", + 2: "FIELD_TYPE_EXTENSION", + 3: "FIELD_TYPE_ANY", + } + FieldType_value = map[string]int32{ + "FIELD_TYPE_UNSPECIFIED": 0, + "FIELD_TYPE_NORMAL": 1, + "FIELD_TYPE_EXTENSION": 2, + "FIELD_TYPE_ANY": 3, + } +) + +func (x FieldType) Enum() *FieldType { + p := new(FieldType) + *p = x + return p +} + +func (x FieldType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FieldType) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_doc_proto_enumTypes[0].Descriptor() +} + +func (FieldType) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_doc_proto_enumTypes[0] +} + +func (x FieldType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// GetSourceDirectoryInfoRequest takes an owner, repository, and reference. +type GetSourceDirectoryInfoRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSourceDirectoryInfoRequest) Reset() { + *x = GetSourceDirectoryInfoRequest{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSourceDirectoryInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSourceDirectoryInfoRequest) ProtoMessage() {} + +func (x *GetSourceDirectoryInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetSourceDirectoryInfoRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetSourceDirectoryInfoRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *GetSourceDirectoryInfoRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *GetSourceDirectoryInfoRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetSourceDirectoryInfoRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *GetSourceDirectoryInfoRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +type GetSourceDirectoryInfoRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string +} + +func (b0 GetSourceDirectoryInfoRequest_builder) Build() *GetSourceDirectoryInfoRequest { + m0 := &GetSourceDirectoryInfoRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Reference = b.Reference + return m0 +} + +// GetSourceDirectoryInfoResponse returns the root FileInfo for the requested module. +type GetSourceDirectoryInfoResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Root *FileInfo `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSourceDirectoryInfoResponse) Reset() { + *x = GetSourceDirectoryInfoResponse{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSourceDirectoryInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSourceDirectoryInfoResponse) ProtoMessage() {} + +func (x *GetSourceDirectoryInfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetSourceDirectoryInfoResponse) GetRoot() *FileInfo { + if x != nil { + return x.xxx_hidden_Root + } + return nil +} + +func (x *GetSourceDirectoryInfoResponse) SetRoot(v *FileInfo) { + x.xxx_hidden_Root = v +} + +func (x *GetSourceDirectoryInfoResponse) HasRoot() bool { + if x == nil { + return false + } + return x.xxx_hidden_Root != nil +} + +func (x *GetSourceDirectoryInfoResponse) ClearRoot() { + x.xxx_hidden_Root = nil +} + +type GetSourceDirectoryInfoResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Root *FileInfo +} + +func (b0 GetSourceDirectoryInfoResponse_builder) Build() *GetSourceDirectoryInfoResponse { + m0 := &GetSourceDirectoryInfoResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Root = b.Root + return m0 +} + +// FileInfo is a nested structure that contains the file path, whether or not it's a directory, +// and if so, the FileInfo children of that directory. +type FileInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + xxx_hidden_IsDir bool `protobuf:"varint,2,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"` + xxx_hidden_Children *[]*FileInfo `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FileInfo) Reset() { + *x = FileInfo{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FileInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileInfo) ProtoMessage() {} + +func (x *FileInfo) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *FileInfo) GetPath() string { + if x != nil { + return x.xxx_hidden_Path + } + return "" +} + +func (x *FileInfo) GetIsDir() bool { + if x != nil { + return x.xxx_hidden_IsDir + } + return false +} + +func (x *FileInfo) GetChildren() []*FileInfo { + if x != nil { + if x.xxx_hidden_Children != nil { + return *x.xxx_hidden_Children + } + } + return nil +} + +func (x *FileInfo) SetPath(v string) { + x.xxx_hidden_Path = v +} + +func (x *FileInfo) SetIsDir(v bool) { + x.xxx_hidden_IsDir = v +} + +func (x *FileInfo) SetChildren(v []*FileInfo) { + x.xxx_hidden_Children = &v +} + +type FileInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // the normalized path of the directory, relative to the root of the module. + Path string + IsDir bool + Children []*FileInfo +} + +func (b0 FileInfo_builder) Build() *FileInfo { + m0 := &FileInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Path = b.Path + x.xxx_hidden_IsDir = b.IsDir + x.xxx_hidden_Children = &b.Children + return m0 +} + +// GetSourceFileRequest takes an owner, repository, reference, and normalized path. +type GetSourceFileRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + xxx_hidden_Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSourceFileRequest) Reset() { + *x = GetSourceFileRequest{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSourceFileRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSourceFileRequest) ProtoMessage() {} + +func (x *GetSourceFileRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetSourceFileRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetSourceFileRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *GetSourceFileRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *GetSourceFileRequest) GetPath() string { + if x != nil { + return x.xxx_hidden_Path + } + return "" +} + +func (x *GetSourceFileRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetSourceFileRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *GetSourceFileRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +func (x *GetSourceFileRequest) SetPath(v string) { + x.xxx_hidden_Path = v +} + +type GetSourceFileRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string + // the normalized path to the requested file, relative to the root of the module. + Path string +} + +func (b0 GetSourceFileRequest_builder) Build() *GetSourceFileRequest { + m0 := &GetSourceFileRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Reference = b.Reference + x.xxx_hidden_Path = b.Path + return m0 +} + +// GetSourceFileResponse returns the source code contents of the requested file. +type GetSourceFileResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSourceFileResponse) Reset() { + *x = GetSourceFileResponse{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSourceFileResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSourceFileResponse) ProtoMessage() {} + +func (x *GetSourceFileResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetSourceFileResponse) GetContent() []byte { + if x != nil { + return x.xxx_hidden_Content + } + return nil +} + +func (x *GetSourceFileResponse) SetContent(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Content = v +} + +type GetSourceFileResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // content is the content of the file. + Content []byte +} + +func (b0 GetSourceFileResponse_builder) Build() *GetSourceFileResponse { + m0 := &GetSourceFileResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Content = b.Content + return m0 +} + +// GetModulePackagesRequest takes an owner, repository, and reference. +type GetModulePackagesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetModulePackagesRequest) Reset() { + *x = GetModulePackagesRequest{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetModulePackagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetModulePackagesRequest) ProtoMessage() {} + +func (x *GetModulePackagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetModulePackagesRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetModulePackagesRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *GetModulePackagesRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *GetModulePackagesRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetModulePackagesRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *GetModulePackagesRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +type GetModulePackagesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string +} + +func (b0 GetModulePackagesRequest_builder) Build() *GetModulePackagesRequest { + m0 := &GetModulePackagesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Reference = b.Reference + return m0 +} + +// GetModulePackagesResponse returns the list of ModulePackages for the requested module. +type GetModulePackagesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_ModulePackages *[]*ModulePackage `protobuf:"bytes,2,rep,name=module_packages,json=modulePackages,proto3" json:"module_packages,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetModulePackagesResponse) Reset() { + *x = GetModulePackagesResponse{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetModulePackagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetModulePackagesResponse) ProtoMessage() {} + +func (x *GetModulePackagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetModulePackagesResponse) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GetModulePackagesResponse) GetModulePackages() []*ModulePackage { + if x != nil { + if x.xxx_hidden_ModulePackages != nil { + return *x.xxx_hidden_ModulePackages + } + } + return nil +} + +func (x *GetModulePackagesResponse) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *GetModulePackagesResponse) SetModulePackages(v []*ModulePackage) { + x.xxx_hidden_ModulePackages = &v +} + +type GetModulePackagesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + ModulePackages []*ModulePackage +} + +func (b0 GetModulePackagesResponse_builder) Build() *GetModulePackagesResponse { + m0 := &GetModulePackagesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_ModulePackages = &b.ModulePackages + return m0 +} + +// ModulePackage provides the details about a module's associated package. +type ModulePackage struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ModulePackage) Reset() { + *x = ModulePackage{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ModulePackage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModulePackage) ProtoMessage() {} + +func (x *ModulePackage) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ModulePackage) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *ModulePackage) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *ModulePackage) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *ModulePackage) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +type ModulePackage_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Description string +} + +func (b0 ModulePackage_builder) Build() *ModulePackage { + m0 := &ModulePackage{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Description = b.Description + return m0 +} + +// GetModuleDocumentationRequest takes an owner, repository, and reference. +type GetModuleDocumentationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetModuleDocumentationRequest) Reset() { + *x = GetModuleDocumentationRequest{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetModuleDocumentationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetModuleDocumentationRequest) ProtoMessage() {} + +func (x *GetModuleDocumentationRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetModuleDocumentationRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetModuleDocumentationRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *GetModuleDocumentationRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *GetModuleDocumentationRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetModuleDocumentationRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *GetModuleDocumentationRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +type GetModuleDocumentationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string +} + +func (b0 GetModuleDocumentationRequest_builder) Build() *GetModuleDocumentationRequest { + m0 := &GetModuleDocumentationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Reference = b.Reference + return m0 +} + +// GetModuleDocumentationResponse returns the ModuleDocumentation for the requested module. +type GetModuleDocumentationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ModuleDocumentation *ModuleDocumentation `protobuf:"bytes,1,opt,name=module_documentation,json=moduleDocumentation,proto3" json:"module_documentation,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetModuleDocumentationResponse) Reset() { + *x = GetModuleDocumentationResponse{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetModuleDocumentationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetModuleDocumentationResponse) ProtoMessage() {} + +func (x *GetModuleDocumentationResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetModuleDocumentationResponse) GetModuleDocumentation() *ModuleDocumentation { + if x != nil { + return x.xxx_hidden_ModuleDocumentation + } + return nil +} + +func (x *GetModuleDocumentationResponse) SetModuleDocumentation(v *ModuleDocumentation) { + x.xxx_hidden_ModuleDocumentation = v +} + +func (x *GetModuleDocumentationResponse) HasModuleDocumentation() bool { + if x == nil { + return false + } + return x.xxx_hidden_ModuleDocumentation != nil +} + +func (x *GetModuleDocumentationResponse) ClearModuleDocumentation() { + x.xxx_hidden_ModuleDocumentation = nil +} + +type GetModuleDocumentationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ModuleDocumentation *ModuleDocumentation +} + +func (b0 GetModuleDocumentationResponse_builder) Build() *GetModuleDocumentationResponse { + m0 := &GetModuleDocumentationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ModuleDocumentation = b.ModuleDocumentation + return m0 +} + +// ModuleDocumentation provides the name of the module and associated documentations. +type ModuleDocumentation struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Documentation string `protobuf:"bytes,3,opt,name=documentation,proto3" json:"documentation,omitempty"` + xxx_hidden_License string `protobuf:"bytes,4,opt,name=license,proto3" json:"license,omitempty"` + xxx_hidden_DocumentationPath string `protobuf:"bytes,5,opt,name=documentation_path,json=documentationPath,proto3" json:"documentation_path,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ModuleDocumentation) Reset() { + *x = ModuleDocumentation{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ModuleDocumentation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModuleDocumentation) ProtoMessage() {} + +func (x *ModuleDocumentation) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ModuleDocumentation) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *ModuleDocumentation) GetDocumentation() string { + if x != nil { + return x.xxx_hidden_Documentation + } + return "" +} + +func (x *ModuleDocumentation) GetLicense() string { + if x != nil { + return x.xxx_hidden_License + } + return "" +} + +func (x *ModuleDocumentation) GetDocumentationPath() string { + if x != nil { + return x.xxx_hidden_DocumentationPath + } + return "" +} + +func (x *ModuleDocumentation) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *ModuleDocumentation) SetDocumentation(v string) { + x.xxx_hidden_Documentation = v +} + +func (x *ModuleDocumentation) SetLicense(v string) { + x.xxx_hidden_License = v +} + +func (x *ModuleDocumentation) SetDocumentationPath(v string) { + x.xxx_hidden_DocumentationPath = v +} + +type ModuleDocumentation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // This is the string representation of the contents of the buf.md file for module-level documentation. + // + // The buf.md file is a part of the module. + // string is used to enforce UTF-8 encoding or 7-bit ASCII text. + Documentation string + // This is the string representation of the contents of the LICENSE file for module-level license. + // + // The LICENSE file is a part of the module. + // string is used to enforce UTF-8 encoding or 7-bit ASCII text. + License string + // documentation_path is the path of the file which contains the module documentation. + // + // either `buf.md`, `README.md` or `README.markdown`. + // if empty, assumes buf.md. + DocumentationPath string +} + +func (b0 ModuleDocumentation_builder) Build() *ModuleDocumentation { + m0 := &ModuleDocumentation{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Documentation = b.Documentation + x.xxx_hidden_License = b.License + x.xxx_hidden_DocumentationPath = b.DocumentationPath + return m0 +} + +// GetPackageDocumentationRequest takes an owner, repository, reference, and package name. +type GetPackageDocumentationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + xxx_hidden_PackageName string `protobuf:"bytes,4,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetPackageDocumentationRequest) Reset() { + *x = GetPackageDocumentationRequest{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetPackageDocumentationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPackageDocumentationRequest) ProtoMessage() {} + +func (x *GetPackageDocumentationRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetPackageDocumentationRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetPackageDocumentationRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *GetPackageDocumentationRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *GetPackageDocumentationRequest) GetPackageName() string { + if x != nil { + return x.xxx_hidden_PackageName + } + return "" +} + +func (x *GetPackageDocumentationRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetPackageDocumentationRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *GetPackageDocumentationRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +func (x *GetPackageDocumentationRequest) SetPackageName(v string) { + x.xxx_hidden_PackageName = v +} + +type GetPackageDocumentationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string + // this is the fully qualified package name. + PackageName string +} + +func (b0 GetPackageDocumentationRequest_builder) Build() *GetPackageDocumentationRequest { + m0 := &GetPackageDocumentationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Reference = b.Reference + x.xxx_hidden_PackageName = b.PackageName + return m0 +} + +// GetPackageDocumentationReponse returns the documentation for the requested package. +type GetPackageDocumentationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PackageDocumentation *PackageDocumentation `protobuf:"bytes,1,opt,name=package_documentation,json=packageDocumentation,proto3" json:"package_documentation,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetPackageDocumentationResponse) Reset() { + *x = GetPackageDocumentationResponse{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetPackageDocumentationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPackageDocumentationResponse) ProtoMessage() {} + +func (x *GetPackageDocumentationResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetPackageDocumentationResponse) GetPackageDocumentation() *PackageDocumentation { + if x != nil { + return x.xxx_hidden_PackageDocumentation + } + return nil +} + +func (x *GetPackageDocumentationResponse) SetPackageDocumentation(v *PackageDocumentation) { + x.xxx_hidden_PackageDocumentation = v +} + +func (x *GetPackageDocumentationResponse) HasPackageDocumentation() bool { + if x == nil { + return false + } + return x.xxx_hidden_PackageDocumentation != nil +} + +func (x *GetPackageDocumentationResponse) ClearPackageDocumentation() { + x.xxx_hidden_PackageDocumentation = nil +} + +type GetPackageDocumentationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PackageDocumentation *PackageDocumentation +} + +func (b0 GetPackageDocumentationResponse_builder) Build() *GetPackageDocumentationResponse { + m0 := &GetPackageDocumentationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PackageDocumentation = b.PackageDocumentation + return m0 +} + +// PackageDocumentation provides the name, description, and top level types defined in the package. +type PackageDocumentation struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Comments string `protobuf:"bytes,2,opt,name=comments,proto3" json:"comments,omitempty"` + xxx_hidden_Services *[]*Service `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` + xxx_hidden_Enums *[]*Enum `protobuf:"bytes,4,rep,name=enums,proto3" json:"enums,omitempty"` + xxx_hidden_Messages *[]*Message `protobuf:"bytes,5,rep,name=messages,proto3" json:"messages,omitempty"` + xxx_hidden_FileExtensions *[]*FileExtension `protobuf:"bytes,6,rep,name=file_extensions,json=fileExtensions,proto3" json:"file_extensions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PackageDocumentation) Reset() { + *x = PackageDocumentation{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PackageDocumentation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PackageDocumentation) ProtoMessage() {} + +func (x *PackageDocumentation) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PackageDocumentation) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *PackageDocumentation) GetComments() string { + if x != nil { + return x.xxx_hidden_Comments + } + return "" +} + +func (x *PackageDocumentation) GetServices() []*Service { + if x != nil { + if x.xxx_hidden_Services != nil { + return *x.xxx_hidden_Services + } + } + return nil +} + +func (x *PackageDocumentation) GetEnums() []*Enum { + if x != nil { + if x.xxx_hidden_Enums != nil { + return *x.xxx_hidden_Enums + } + } + return nil +} + +func (x *PackageDocumentation) GetMessages() []*Message { + if x != nil { + if x.xxx_hidden_Messages != nil { + return *x.xxx_hidden_Messages + } + } + return nil +} + +func (x *PackageDocumentation) GetFileExtensions() []*FileExtension { + if x != nil { + if x.xxx_hidden_FileExtensions != nil { + return *x.xxx_hidden_FileExtensions + } + } + return nil +} + +func (x *PackageDocumentation) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *PackageDocumentation) SetComments(v string) { + x.xxx_hidden_Comments = v +} + +func (x *PackageDocumentation) SetServices(v []*Service) { + x.xxx_hidden_Services = &v +} + +func (x *PackageDocumentation) SetEnums(v []*Enum) { + x.xxx_hidden_Enums = &v +} + +func (x *PackageDocumentation) SetMessages(v []*Message) { + x.xxx_hidden_Messages = &v +} + +func (x *PackageDocumentation) SetFileExtensions(v []*FileExtension) { + x.xxx_hidden_FileExtensions = &v +} + +type PackageDocumentation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // comments contains the package-level comment documentation. + // There is currently no convention for this. + // + // This is derived from the leading comments at the top level of the package. + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + // services contains all the services defined in the package in alphabetical order. + Services []*Service + // enums contains all the enums defined in the package in alphabetical order. + Enums []*Enum + // messages contains all the messages defined in the package in alphabetical order. + Messages []*Message + // extensions contains all the file level extensions in the package in alphabetical order. + FileExtensions []*FileExtension +} + +func (b0 PackageDocumentation_builder) Build() *PackageDocumentation { + m0 := &PackageDocumentation{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Comments = b.Comments + x.xxx_hidden_Services = &b.Services + x.xxx_hidden_Enums = &b.Enums + x.xxx_hidden_Messages = &b.Messages + x.xxx_hidden_FileExtensions = &b.FileExtensions + return m0 +} + +// Location provides the location information for the source code. +// +// This does not provide the leading or trailing comments as these will +// be parsed into descriptions or dropped respectively. +type Location struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_StartLine int32 `protobuf:"varint,1,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"` + xxx_hidden_StartColumn int32 `protobuf:"varint,2,opt,name=start_column,json=startColumn,proto3" json:"start_column,omitempty"` + xxx_hidden_EndLine int32 `protobuf:"varint,3,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"` + xxx_hidden_EndColumn int32 `protobuf:"varint,4,opt,name=end_column,json=endColumn,proto3" json:"end_column,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Location) Reset() { + *x = Location{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Location) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Location) ProtoMessage() {} + +func (x *Location) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Location) GetStartLine() int32 { + if x != nil { + return x.xxx_hidden_StartLine + } + return 0 +} + +func (x *Location) GetStartColumn() int32 { + if x != nil { + return x.xxx_hidden_StartColumn + } + return 0 +} + +func (x *Location) GetEndLine() int32 { + if x != nil { + return x.xxx_hidden_EndLine + } + return 0 +} + +func (x *Location) GetEndColumn() int32 { + if x != nil { + return x.xxx_hidden_EndColumn + } + return 0 +} + +func (x *Location) SetStartLine(v int32) { + x.xxx_hidden_StartLine = v +} + +func (x *Location) SetStartColumn(v int32) { + x.xxx_hidden_StartColumn = v +} + +func (x *Location) SetEndLine(v int32) { + x.xxx_hidden_EndLine = v +} + +func (x *Location) SetEndColumn(v int32) { + x.xxx_hidden_EndColumn = v +} + +type Location_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + StartLine int32 + StartColumn int32 + EndLine int32 + EndColumn int32 +} + +func (b0 Location_builder) Build() *Location { + m0 := &Location{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_StartLine = b.StartLine + x.xxx_hidden_StartColumn = b.StartColumn + x.xxx_hidden_EndLine = b.EndLine + x.xxx_hidden_EndColumn = b.EndColumn + return m0 +} + +// Service provides information for the documentation for a given service type in a file. +type Service struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_NestedName string `protobuf:"bytes,2,opt,name=nested_name,json=nestedName,proto3" json:"nested_name,omitempty"` + xxx_hidden_FullName string `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + xxx_hidden_Comments string `protobuf:"bytes,4,opt,name=comments,proto3" json:"comments,omitempty"` + xxx_hidden_FilePath string `protobuf:"bytes,5,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` + xxx_hidden_Location *Location `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"` + xxx_hidden_Methods *[]*Method `protobuf:"bytes,7,rep,name=methods,proto3" json:"methods,omitempty"` + xxx_hidden_ImplicitlyDeprecated bool `protobuf:"varint,9,opt,name=implicitly_deprecated,json=implicitlyDeprecated,proto3" json:"implicitly_deprecated,omitempty"` + xxx_hidden_Options *[]*FieldLiteral `protobuf:"bytes,10,rep,name=options,proto3" json:"options,omitempty"` + xxx_hidden_ServiceOptions *ServiceOptions `protobuf:"bytes,8,opt,name=service_options,json=serviceOptions,proto3" json:"service_options,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Service) Reset() { + *x = Service{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Service) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Service) ProtoMessage() {} + +func (x *Service) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Service) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Service) GetNestedName() string { + if x != nil { + return x.xxx_hidden_NestedName + } + return "" +} + +func (x *Service) GetFullName() string { + if x != nil { + return x.xxx_hidden_FullName + } + return "" +} + +func (x *Service) GetComments() string { + if x != nil { + return x.xxx_hidden_Comments + } + return "" +} + +func (x *Service) GetFilePath() string { + if x != nil { + return x.xxx_hidden_FilePath + } + return "" +} + +func (x *Service) GetLocation() *Location { + if x != nil { + return x.xxx_hidden_Location + } + return nil +} + +func (x *Service) GetMethods() []*Method { + if x != nil { + if x.xxx_hidden_Methods != nil { + return *x.xxx_hidden_Methods + } + } + return nil +} + +func (x *Service) GetImplicitlyDeprecated() bool { + if x != nil { + return x.xxx_hidden_ImplicitlyDeprecated + } + return false +} + +func (x *Service) GetOptions() []*FieldLiteral { + if x != nil { + if x.xxx_hidden_Options != nil { + return *x.xxx_hidden_Options + } + } + return nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Service) GetServiceOptions() *ServiceOptions { + if x != nil { + return x.xxx_hidden_ServiceOptions + } + return nil +} + +func (x *Service) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *Service) SetNestedName(v string) { + x.xxx_hidden_NestedName = v +} + +func (x *Service) SetFullName(v string) { + x.xxx_hidden_FullName = v +} + +func (x *Service) SetComments(v string) { + x.xxx_hidden_Comments = v +} + +func (x *Service) SetFilePath(v string) { + x.xxx_hidden_FilePath = v +} + +func (x *Service) SetLocation(v *Location) { + x.xxx_hidden_Location = v +} + +func (x *Service) SetMethods(v []*Method) { + x.xxx_hidden_Methods = &v +} + +func (x *Service) SetImplicitlyDeprecated(v bool) { + x.xxx_hidden_ImplicitlyDeprecated = v +} + +func (x *Service) SetOptions(v []*FieldLiteral) { + x.xxx_hidden_Options = &v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Service) SetServiceOptions(v *ServiceOptions) { + x.xxx_hidden_ServiceOptions = v +} + +func (x *Service) HasLocation() bool { + if x == nil { + return false + } + return x.xxx_hidden_Location != nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Service) HasServiceOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_ServiceOptions != nil +} + +func (x *Service) ClearLocation() { + x.xxx_hidden_Location = nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Service) ClearServiceOptions() { + x.xxx_hidden_ServiceOptions = nil +} + +type Service_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // nested_name includes the nested types for a given type definition. + NestedName string + // full_name includes the package name and nested types for a given type definition. + FullName string + // comments is derived from the leading comments of a given service. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + // file_path is the normalized path of the file containing the service. + // This is used for navigating to the source code for the service. + FilePath string + Location *Location + Methods []*Method + // implicitly_deprecated is true if its enclosing file is deprecated. + ImplicitlyDeprecated bool + // All options that are present on the service. This is a super-set of + // service_options and uses a dynamic representation so it can also + // accommodate custom options with arbitrary types. + // This supersedes service_options. + Options []*FieldLiteral + // Use options instead. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. + ServiceOptions *ServiceOptions +} + +func (b0 Service_builder) Build() *Service { + m0 := &Service{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_NestedName = b.NestedName + x.xxx_hidden_FullName = b.FullName + x.xxx_hidden_Comments = b.Comments + x.xxx_hidden_FilePath = b.FilePath + x.xxx_hidden_Location = b.Location + x.xxx_hidden_Methods = &b.Methods + x.xxx_hidden_ImplicitlyDeprecated = b.ImplicitlyDeprecated + x.xxx_hidden_Options = &b.Options + x.xxx_hidden_ServiceOptions = b.ServiceOptions + return m0 +} + +// ServiceOptions provides information for the documentation of options for a given service. +// +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type ServiceOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ServiceOptions) Reset() { + *x = ServiceOptions{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ServiceOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceOptions) ProtoMessage() {} + +func (x *ServiceOptions) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ServiceOptions) GetDeprecated() bool { + if x != nil { + return x.xxx_hidden_Deprecated + } + return false +} + +func (x *ServiceOptions) SetDeprecated(v bool) { + x.xxx_hidden_Deprecated = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type ServiceOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deprecated bool +} + +func (b0 ServiceOptions_builder) Build() *ServiceOptions { + m0 := &ServiceOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Deprecated = b.Deprecated + return m0 +} + +// Method provides information for the documentation for a method of a given service. +type Method struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Comments string `protobuf:"bytes,2,opt,name=comments,proto3" json:"comments,omitempty"` + xxx_hidden_Request *MethodRequestResponse `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` + xxx_hidden_Response *MethodRequestResponse `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"` + xxx_hidden_ImplicitlyDeprecated bool `protobuf:"varint,6,opt,name=implicitly_deprecated,json=implicitlyDeprecated,proto3" json:"implicitly_deprecated,omitempty"` + xxx_hidden_Options *[]*FieldLiteral `protobuf:"bytes,7,rep,name=options,proto3" json:"options,omitempty"` + xxx_hidden_MethodOptions *MethodOptions `protobuf:"bytes,5,opt,name=method_options,json=methodOptions,proto3" json:"method_options,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Method) Reset() { + *x = Method{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Method) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Method) ProtoMessage() {} + +func (x *Method) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Method) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Method) GetComments() string { + if x != nil { + return x.xxx_hidden_Comments + } + return "" +} + +func (x *Method) GetRequest() *MethodRequestResponse { + if x != nil { + return x.xxx_hidden_Request + } + return nil +} + +func (x *Method) GetResponse() *MethodRequestResponse { + if x != nil { + return x.xxx_hidden_Response + } + return nil +} + +func (x *Method) GetImplicitlyDeprecated() bool { + if x != nil { + return x.xxx_hidden_ImplicitlyDeprecated + } + return false +} + +func (x *Method) GetOptions() []*FieldLiteral { + if x != nil { + if x.xxx_hidden_Options != nil { + return *x.xxx_hidden_Options + } + } + return nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Method) GetMethodOptions() *MethodOptions { + if x != nil { + return x.xxx_hidden_MethodOptions + } + return nil +} + +func (x *Method) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *Method) SetComments(v string) { + x.xxx_hidden_Comments = v +} + +func (x *Method) SetRequest(v *MethodRequestResponse) { + x.xxx_hidden_Request = v +} + +func (x *Method) SetResponse(v *MethodRequestResponse) { + x.xxx_hidden_Response = v +} + +func (x *Method) SetImplicitlyDeprecated(v bool) { + x.xxx_hidden_ImplicitlyDeprecated = v +} + +func (x *Method) SetOptions(v []*FieldLiteral) { + x.xxx_hidden_Options = &v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Method) SetMethodOptions(v *MethodOptions) { + x.xxx_hidden_MethodOptions = v +} + +func (x *Method) HasRequest() bool { + if x == nil { + return false + } + return x.xxx_hidden_Request != nil +} + +func (x *Method) HasResponse() bool { + if x == nil { + return false + } + return x.xxx_hidden_Response != nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Method) HasMethodOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_MethodOptions != nil +} + +func (x *Method) ClearRequest() { + x.xxx_hidden_Request = nil +} + +func (x *Method) ClearResponse() { + x.xxx_hidden_Response = nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Method) ClearMethodOptions() { + x.xxx_hidden_MethodOptions = nil +} + +type Method_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // comments is derived from the leading comments of a given method. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + Request *MethodRequestResponse + Response *MethodRequestResponse + // implicitly_deprecated is true if its enclosing file or parent element is deprecated. + ImplicitlyDeprecated bool + // All options that are present on the method. This is a super-set of + // method_options and uses a dynamic representation so it can also + // accommodate custom options with arbitrary types. + // This supersedes method_options. + Options []*FieldLiteral + // Use options instead. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. + MethodOptions *MethodOptions +} + +func (b0 Method_builder) Build() *Method { + m0 := &Method{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Comments = b.Comments + x.xxx_hidden_Request = b.Request + x.xxx_hidden_Response = b.Response + x.xxx_hidden_ImplicitlyDeprecated = b.ImplicitlyDeprecated + x.xxx_hidden_Options = &b.Options + x.xxx_hidden_MethodOptions = b.MethodOptions + return m0 +} + +// MethodOptions provides information for the documentation of options for a method. +// +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type MethodOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` + xxx_hidden_IdempotencyLevel int32 `protobuf:"varint,2,opt,name=idempotency_level,json=idempotencyLevel,proto3" json:"idempotency_level,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MethodOptions) Reset() { + *x = MethodOptions{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MethodOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MethodOptions) ProtoMessage() {} + +func (x *MethodOptions) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MethodOptions) GetDeprecated() bool { + if x != nil { + return x.xxx_hidden_Deprecated + } + return false +} + +func (x *MethodOptions) GetIdempotencyLevel() int32 { + if x != nil { + return x.xxx_hidden_IdempotencyLevel + } + return 0 +} + +func (x *MethodOptions) SetDeprecated(v bool) { + x.xxx_hidden_Deprecated = v +} + +func (x *MethodOptions) SetIdempotencyLevel(v int32) { + x.xxx_hidden_IdempotencyLevel = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type MethodOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deprecated bool + // idempotency_level holds a value of the enumeration `google.protobuf.MethodOptions.IdempotencyLevel. + IdempotencyLevel int32 +} + +func (b0 MethodOptions_builder) Build() *MethodOptions { + m0 := &MethodOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Deprecated = b.Deprecated + x.xxx_hidden_IdempotencyLevel = b.IdempotencyLevel + return m0 +} + +// MethodRequestResponse provides information for the documentation of a Method request or response message. +type MethodRequestResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_NestedType string `protobuf:"bytes,1,opt,name=nested_type,json=nestedType,proto3" json:"nested_type,omitempty"` + xxx_hidden_FullType string `protobuf:"bytes,2,opt,name=full_type,json=fullType,proto3" json:"full_type,omitempty"` + xxx_hidden_Streaming bool `protobuf:"varint,3,opt,name=streaming,proto3" json:"streaming,omitempty"` + xxx_hidden_Message *Message `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` + xxx_hidden_ImportModuleRef *ImportModuleRef `protobuf:"bytes,5,opt,name=import_module_ref,json=importModuleRef,proto3" json:"import_module_ref,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MethodRequestResponse) Reset() { + *x = MethodRequestResponse{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MethodRequestResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MethodRequestResponse) ProtoMessage() {} + +func (x *MethodRequestResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MethodRequestResponse) GetNestedType() string { + if x != nil { + return x.xxx_hidden_NestedType + } + return "" +} + +func (x *MethodRequestResponse) GetFullType() string { + if x != nil { + return x.xxx_hidden_FullType + } + return "" +} + +func (x *MethodRequestResponse) GetStreaming() bool { + if x != nil { + return x.xxx_hidden_Streaming + } + return false +} + +func (x *MethodRequestResponse) GetMessage() *Message { + if x != nil { + return x.xxx_hidden_Message + } + return nil +} + +func (x *MethodRequestResponse) GetImportModuleRef() *ImportModuleRef { + if x != nil { + return x.xxx_hidden_ImportModuleRef + } + return nil +} + +func (x *MethodRequestResponse) SetNestedType(v string) { + x.xxx_hidden_NestedType = v +} + +func (x *MethodRequestResponse) SetFullType(v string) { + x.xxx_hidden_FullType = v +} + +func (x *MethodRequestResponse) SetStreaming(v bool) { + x.xxx_hidden_Streaming = v +} + +func (x *MethodRequestResponse) SetMessage(v *Message) { + x.xxx_hidden_Message = v +} + +func (x *MethodRequestResponse) SetImportModuleRef(v *ImportModuleRef) { + x.xxx_hidden_ImportModuleRef = v +} + +func (x *MethodRequestResponse) HasMessage() bool { + if x == nil { + return false + } + return x.xxx_hidden_Message != nil +} + +func (x *MethodRequestResponse) HasImportModuleRef() bool { + if x == nil { + return false + } + return x.xxx_hidden_ImportModuleRef != nil +} + +func (x *MethodRequestResponse) ClearMessage() { + x.xxx_hidden_Message = nil +} + +func (x *MethodRequestResponse) ClearImportModuleRef() { + x.xxx_hidden_ImportModuleRef = nil +} + +type MethodRequestResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // nested_type is the nested name of the message of the request or response. This includes nested definitions. + NestedType string + // full_type is the fully qualified name of the message of the request or response. This includes package and nested definitions. + FullType string + // boolean flag for whether the streaming label is set on an method request or response. + Streaming bool + Message *Message + // import_module_ref is included if the request or response is an imported type. + // It contains all the metadata for the import. + ImportModuleRef *ImportModuleRef +} + +func (b0 MethodRequestResponse_builder) Build() *MethodRequestResponse { + m0 := &MethodRequestResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_NestedType = b.NestedType + x.xxx_hidden_FullType = b.FullType + x.xxx_hidden_Streaming = b.Streaming + x.xxx_hidden_Message = b.Message + x.xxx_hidden_ImportModuleRef = b.ImportModuleRef + return m0 +} + +// Enum provides information for the documentation of an enum. +type Enum struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_NestedName string `protobuf:"bytes,2,opt,name=nested_name,json=nestedName,proto3" json:"nested_name,omitempty"` + xxx_hidden_FullName string `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + xxx_hidden_Comments string `protobuf:"bytes,4,opt,name=comments,proto3" json:"comments,omitempty"` + xxx_hidden_FilePath string `protobuf:"bytes,5,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` + xxx_hidden_Location *Location `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"` + xxx_hidden_Values *[]*EnumValue `protobuf:"bytes,7,rep,name=values,proto3" json:"values,omitempty"` + xxx_hidden_ImplicitlyDeprecated bool `protobuf:"varint,9,opt,name=implicitly_deprecated,json=implicitlyDeprecated,proto3" json:"implicitly_deprecated,omitempty"` + xxx_hidden_Options *[]*FieldLiteral `protobuf:"bytes,10,rep,name=options,proto3" json:"options,omitempty"` + xxx_hidden_EnumOptions *EnumOptions `protobuf:"bytes,8,opt,name=enum_options,json=enumOptions,proto3" json:"enum_options,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Enum) Reset() { + *x = Enum{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Enum) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Enum) ProtoMessage() {} + +func (x *Enum) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Enum) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Enum) GetNestedName() string { + if x != nil { + return x.xxx_hidden_NestedName + } + return "" +} + +func (x *Enum) GetFullName() string { + if x != nil { + return x.xxx_hidden_FullName + } + return "" +} + +func (x *Enum) GetComments() string { + if x != nil { + return x.xxx_hidden_Comments + } + return "" +} + +func (x *Enum) GetFilePath() string { + if x != nil { + return x.xxx_hidden_FilePath + } + return "" +} + +func (x *Enum) GetLocation() *Location { + if x != nil { + return x.xxx_hidden_Location + } + return nil +} + +func (x *Enum) GetValues() []*EnumValue { + if x != nil { + if x.xxx_hidden_Values != nil { + return *x.xxx_hidden_Values + } + } + return nil +} + +func (x *Enum) GetImplicitlyDeprecated() bool { + if x != nil { + return x.xxx_hidden_ImplicitlyDeprecated + } + return false +} + +func (x *Enum) GetOptions() []*FieldLiteral { + if x != nil { + if x.xxx_hidden_Options != nil { + return *x.xxx_hidden_Options + } + } + return nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Enum) GetEnumOptions() *EnumOptions { + if x != nil { + return x.xxx_hidden_EnumOptions + } + return nil +} + +func (x *Enum) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *Enum) SetNestedName(v string) { + x.xxx_hidden_NestedName = v +} + +func (x *Enum) SetFullName(v string) { + x.xxx_hidden_FullName = v +} + +func (x *Enum) SetComments(v string) { + x.xxx_hidden_Comments = v +} + +func (x *Enum) SetFilePath(v string) { + x.xxx_hidden_FilePath = v +} + +func (x *Enum) SetLocation(v *Location) { + x.xxx_hidden_Location = v +} + +func (x *Enum) SetValues(v []*EnumValue) { + x.xxx_hidden_Values = &v +} + +func (x *Enum) SetImplicitlyDeprecated(v bool) { + x.xxx_hidden_ImplicitlyDeprecated = v +} + +func (x *Enum) SetOptions(v []*FieldLiteral) { + x.xxx_hidden_Options = &v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Enum) SetEnumOptions(v *EnumOptions) { + x.xxx_hidden_EnumOptions = v +} + +func (x *Enum) HasLocation() bool { + if x == nil { + return false + } + return x.xxx_hidden_Location != nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Enum) HasEnumOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_EnumOptions != nil +} + +func (x *Enum) ClearLocation() { + x.xxx_hidden_Location = nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Enum) ClearEnumOptions() { + x.xxx_hidden_EnumOptions = nil +} + +type Enum_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // nested_name includes the nested types for a given type definition. + NestedName string + // full_name includes the package name and nested types for a given type definition. + FullName string + // comments is derived from the leading comments of a given Enum. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + // file_path is the normalized path of the file containing the enum. + FilePath string + Location *Location + Values []*EnumValue + // implicitly_deprecated is true if its enclosing file or parent element is deprecated. + ImplicitlyDeprecated bool + // All options that are present on the enum. This is a super-set of + // enum_options and uses a dynamic representation so it can also + // accommodate custom options with arbitrary types. + // // This supersedes enum_options. + Options []*FieldLiteral + // Use options instead. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. + EnumOptions *EnumOptions +} + +func (b0 Enum_builder) Build() *Enum { + m0 := &Enum{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_NestedName = b.NestedName + x.xxx_hidden_FullName = b.FullName + x.xxx_hidden_Comments = b.Comments + x.xxx_hidden_FilePath = b.FilePath + x.xxx_hidden_Location = b.Location + x.xxx_hidden_Values = &b.Values + x.xxx_hidden_ImplicitlyDeprecated = b.ImplicitlyDeprecated + x.xxx_hidden_Options = &b.Options + x.xxx_hidden_EnumOptions = b.EnumOptions + return m0 +} + +// EnumOptions provides information for the documentation of options for an enum. +// +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type EnumOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` + xxx_hidden_AllowAlias bool `protobuf:"varint,2,opt,name=allow_alias,json=allowAlias,proto3" json:"allow_alias,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EnumOptions) Reset() { + *x = EnumOptions{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EnumOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumOptions) ProtoMessage() {} + +func (x *EnumOptions) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *EnumOptions) GetDeprecated() bool { + if x != nil { + return x.xxx_hidden_Deprecated + } + return false +} + +func (x *EnumOptions) GetAllowAlias() bool { + if x != nil { + return x.xxx_hidden_AllowAlias + } + return false +} + +func (x *EnumOptions) SetDeprecated(v bool) { + x.xxx_hidden_Deprecated = v +} + +func (x *EnumOptions) SetAllowAlias(v bool) { + x.xxx_hidden_AllowAlias = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type EnumOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deprecated bool + AllowAlias bool +} + +func (b0 EnumOptions_builder) Build() *EnumOptions { + m0 := &EnumOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Deprecated = b.Deprecated + x.xxx_hidden_AllowAlias = b.AllowAlias + return m0 +} + +// EnumValue provides information for the documentation of an enum value. +type EnumValue struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` + xxx_hidden_Comments string `protobuf:"bytes,3,opt,name=comments,proto3" json:"comments,omitempty"` + xxx_hidden_Options *[]*FieldLiteral `protobuf:"bytes,5,rep,name=options,proto3" json:"options,omitempty"` + xxx_hidden_EnumValueOptions *EnumValueOptions `protobuf:"bytes,4,opt,name=enum_value_options,json=enumValueOptions,proto3" json:"enum_value_options,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EnumValue) Reset() { + *x = EnumValue{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EnumValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumValue) ProtoMessage() {} + +func (x *EnumValue) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *EnumValue) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *EnumValue) GetNumber() int32 { + if x != nil { + return x.xxx_hidden_Number + } + return 0 +} + +func (x *EnumValue) GetComments() string { + if x != nil { + return x.xxx_hidden_Comments + } + return "" +} + +func (x *EnumValue) GetOptions() []*FieldLiteral { + if x != nil { + if x.xxx_hidden_Options != nil { + return *x.xxx_hidden_Options + } + } + return nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *EnumValue) GetEnumValueOptions() *EnumValueOptions { + if x != nil { + return x.xxx_hidden_EnumValueOptions + } + return nil +} + +func (x *EnumValue) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *EnumValue) SetNumber(v int32) { + x.xxx_hidden_Number = v +} + +func (x *EnumValue) SetComments(v string) { + x.xxx_hidden_Comments = v +} + +func (x *EnumValue) SetOptions(v []*FieldLiteral) { + x.xxx_hidden_Options = &v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *EnumValue) SetEnumValueOptions(v *EnumValueOptions) { + x.xxx_hidden_EnumValueOptions = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *EnumValue) HasEnumValueOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_EnumValueOptions != nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *EnumValue) ClearEnumValueOptions() { + x.xxx_hidden_EnumValueOptions = nil +} + +type EnumValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Number int32 + // comments is derived from the leading comments of a given enum value. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + // All options that are present on the enum. This is a super-set of + // enum_value_options and uses a dynamic representation so it can also + // accommodate custom options with arbitrary types. + // // This supersedes enum_value_options. + Options []*FieldLiteral + // Use options instead. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. + EnumValueOptions *EnumValueOptions +} + +func (b0 EnumValue_builder) Build() *EnumValue { + m0 := &EnumValue{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Number = b.Number + x.xxx_hidden_Comments = b.Comments + x.xxx_hidden_Options = &b.Options + x.xxx_hidden_EnumValueOptions = b.EnumValueOptions + return m0 +} + +// EnumValueOptions provides information for the documentation of options for an enum value. +// +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type EnumValueOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EnumValueOptions) Reset() { + *x = EnumValueOptions{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EnumValueOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumValueOptions) ProtoMessage() {} + +func (x *EnumValueOptions) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *EnumValueOptions) GetDeprecated() bool { + if x != nil { + return x.xxx_hidden_Deprecated + } + return false +} + +func (x *EnumValueOptions) SetDeprecated(v bool) { + x.xxx_hidden_Deprecated = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type EnumValueOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deprecated bool +} + +func (b0 EnumValueOptions_builder) Build() *EnumValueOptions { + m0 := &EnumValueOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Deprecated = b.Deprecated + return m0 +} + +// ImportRef provides the import metadata if a type is imported. +type ImportModuleRef struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` + xxx_hidden_Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,3,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Commit string `protobuf:"bytes,4,opt,name=commit,proto3" json:"commit,omitempty"` + xxx_hidden_PackageName string `protobuf:"bytes,5,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ImportModuleRef) Reset() { + *x = ImportModuleRef{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ImportModuleRef) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ImportModuleRef) ProtoMessage() {} + +func (x *ImportModuleRef) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ImportModuleRef) GetRemote() string { + if x != nil { + return x.xxx_hidden_Remote + } + return "" +} + +func (x *ImportModuleRef) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *ImportModuleRef) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *ImportModuleRef) GetCommit() string { + if x != nil { + return x.xxx_hidden_Commit + } + return "" +} + +func (x *ImportModuleRef) GetPackageName() string { + if x != nil { + return x.xxx_hidden_PackageName + } + return "" +} + +func (x *ImportModuleRef) SetRemote(v string) { + x.xxx_hidden_Remote = v +} + +func (x *ImportModuleRef) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *ImportModuleRef) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *ImportModuleRef) SetCommit(v string) { + x.xxx_hidden_Commit = v +} + +func (x *ImportModuleRef) SetPackageName(v string) { + x.xxx_hidden_PackageName = v +} + +type ImportModuleRef_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Remote string + Owner string + Repository string + // the commit is based on the module commit of the imported type provided + // by the image. + Commit string + PackageName string +} + +func (b0 ImportModuleRef_builder) Build() *ImportModuleRef { + m0 := &ImportModuleRef{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Remote = b.Remote + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Commit = b.Commit + x.xxx_hidden_PackageName = b.PackageName + return m0 +} + +// Message provides information for the documentation of a protobuf message. +type Message struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_NestedName string `protobuf:"bytes,2,opt,name=nested_name,json=nestedName,proto3" json:"nested_name,omitempty"` + xxx_hidden_FullName string `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + xxx_hidden_Comments string `protobuf:"bytes,4,opt,name=comments,proto3" json:"comments,omitempty"` + xxx_hidden_FilePath string `protobuf:"bytes,5,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` + xxx_hidden_IsMapEntry bool `protobuf:"varint,6,opt,name=is_map_entry,json=isMapEntry,proto3" json:"is_map_entry,omitempty"` + xxx_hidden_Fields *[]*MessageField `protobuf:"bytes,7,rep,name=fields,proto3" json:"fields,omitempty"` + xxx_hidden_Location *Location `protobuf:"bytes,8,opt,name=location,proto3" json:"location,omitempty"` + xxx_hidden_MessageExtensions *[]*Field `protobuf:"bytes,9,rep,name=message_extensions,json=messageExtensions,proto3" json:"message_extensions,omitempty"` + xxx_hidden_ImplicitlyDeprecated bool `protobuf:"varint,11,opt,name=implicitly_deprecated,json=implicitlyDeprecated,proto3" json:"implicitly_deprecated,omitempty"` + xxx_hidden_Options *[]*FieldLiteral `protobuf:"bytes,12,rep,name=options,proto3" json:"options,omitempty"` + xxx_hidden_MessageOptions *MessageOptions `protobuf:"bytes,10,opt,name=message_options,json=messageOptions,proto3" json:"message_options,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Message) Reset() { + *x = Message{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Message) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Message) ProtoMessage() {} + +func (x *Message) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Message) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Message) GetNestedName() string { + if x != nil { + return x.xxx_hidden_NestedName + } + return "" +} + +func (x *Message) GetFullName() string { + if x != nil { + return x.xxx_hidden_FullName + } + return "" +} + +func (x *Message) GetComments() string { + if x != nil { + return x.xxx_hidden_Comments + } + return "" +} + +func (x *Message) GetFilePath() string { + if x != nil { + return x.xxx_hidden_FilePath + } + return "" +} + +func (x *Message) GetIsMapEntry() bool { + if x != nil { + return x.xxx_hidden_IsMapEntry + } + return false +} + +func (x *Message) GetFields() []*MessageField { + if x != nil { + if x.xxx_hidden_Fields != nil { + return *x.xxx_hidden_Fields + } + } + return nil +} + +func (x *Message) GetLocation() *Location { + if x != nil { + return x.xxx_hidden_Location + } + return nil +} + +func (x *Message) GetMessageExtensions() []*Field { + if x != nil { + if x.xxx_hidden_MessageExtensions != nil { + return *x.xxx_hidden_MessageExtensions + } + } + return nil +} + +func (x *Message) GetImplicitlyDeprecated() bool { + if x != nil { + return x.xxx_hidden_ImplicitlyDeprecated + } + return false +} + +func (x *Message) GetOptions() []*FieldLiteral { + if x != nil { + if x.xxx_hidden_Options != nil { + return *x.xxx_hidden_Options + } + } + return nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Message) GetMessageOptions() *MessageOptions { + if x != nil { + return x.xxx_hidden_MessageOptions + } + return nil +} + +func (x *Message) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *Message) SetNestedName(v string) { + x.xxx_hidden_NestedName = v +} + +func (x *Message) SetFullName(v string) { + x.xxx_hidden_FullName = v +} + +func (x *Message) SetComments(v string) { + x.xxx_hidden_Comments = v +} + +func (x *Message) SetFilePath(v string) { + x.xxx_hidden_FilePath = v +} + +func (x *Message) SetIsMapEntry(v bool) { + x.xxx_hidden_IsMapEntry = v +} + +func (x *Message) SetFields(v []*MessageField) { + x.xxx_hidden_Fields = &v +} + +func (x *Message) SetLocation(v *Location) { + x.xxx_hidden_Location = v +} + +func (x *Message) SetMessageExtensions(v []*Field) { + x.xxx_hidden_MessageExtensions = &v +} + +func (x *Message) SetImplicitlyDeprecated(v bool) { + x.xxx_hidden_ImplicitlyDeprecated = v +} + +func (x *Message) SetOptions(v []*FieldLiteral) { + x.xxx_hidden_Options = &v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Message) SetMessageOptions(v *MessageOptions) { + x.xxx_hidden_MessageOptions = v +} + +func (x *Message) HasLocation() bool { + if x == nil { + return false + } + return x.xxx_hidden_Location != nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Message) HasMessageOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_MessageOptions != nil +} + +func (x *Message) ClearLocation() { + x.xxx_hidden_Location = nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Message) ClearMessageOptions() { + x.xxx_hidden_MessageOptions = nil +} + +type Message_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // nested_name includes the nested types for a given type definition. + NestedName string + // full_name includes the package name and nested types for a given type definition. + FullName string + // comments is derived from the leading comments of a given message. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + // file_path is the normalized path of the file containing the message. + FilePath string + IsMapEntry bool + Fields []*MessageField + Location *Location + MessageExtensions []*Field + // implicitly_deprecated is true if its enclosing file or parent element is deprecated. + ImplicitlyDeprecated bool + // All options that are present on the message. This is a super-set of + // message_options and uses a dynamic representation so it can also + // accommodate custom options with arbitrary types. + // // This supersedes message_options. + Options []*FieldLiteral + // Use options instead. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. + MessageOptions *MessageOptions +} + +func (b0 Message_builder) Build() *Message { + m0 := &Message{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_NestedName = b.NestedName + x.xxx_hidden_FullName = b.FullName + x.xxx_hidden_Comments = b.Comments + x.xxx_hidden_FilePath = b.FilePath + x.xxx_hidden_IsMapEntry = b.IsMapEntry + x.xxx_hidden_Fields = &b.Fields + x.xxx_hidden_Location = b.Location + x.xxx_hidden_MessageExtensions = &b.MessageExtensions + x.xxx_hidden_ImplicitlyDeprecated = b.ImplicitlyDeprecated + x.xxx_hidden_Options = &b.Options + x.xxx_hidden_MessageOptions = b.MessageOptions + return m0 +} + +// MessageField can be either a single field or a oneof set of fields. +type MessageField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_MessageField isMessageField_MessageField `protobuf_oneof:"message_field"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MessageField) Reset() { + *x = MessageField{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MessageField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MessageField) ProtoMessage() {} + +func (x *MessageField) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MessageField) GetField() *Field { + if x != nil { + if x, ok := x.xxx_hidden_MessageField.(*messageField_Field); ok { + return x.Field + } + } + return nil +} + +func (x *MessageField) GetOneof() *Oneof { + if x != nil { + if x, ok := x.xxx_hidden_MessageField.(*messageField_Oneof); ok { + return x.Oneof + } + } + return nil +} + +func (x *MessageField) SetField(v *Field) { + if v == nil { + x.xxx_hidden_MessageField = nil + return + } + x.xxx_hidden_MessageField = &messageField_Field{v} +} + +func (x *MessageField) SetOneof(v *Oneof) { + if v == nil { + x.xxx_hidden_MessageField = nil + return + } + x.xxx_hidden_MessageField = &messageField_Oneof{v} +} + +func (x *MessageField) HasMessageField() bool { + if x == nil { + return false + } + return x.xxx_hidden_MessageField != nil +} + +func (x *MessageField) HasField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_MessageField.(*messageField_Field) + return ok +} + +func (x *MessageField) HasOneof() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_MessageField.(*messageField_Oneof) + return ok +} + +func (x *MessageField) ClearMessageField() { + x.xxx_hidden_MessageField = nil +} + +func (x *MessageField) ClearField() { + if _, ok := x.xxx_hidden_MessageField.(*messageField_Field); ok { + x.xxx_hidden_MessageField = nil + } +} + +func (x *MessageField) ClearOneof() { + if _, ok := x.xxx_hidden_MessageField.(*messageField_Oneof); ok { + x.xxx_hidden_MessageField = nil + } +} + +const MessageField_MessageField_not_set_case case_MessageField_MessageField = 0 +const MessageField_Field_case case_MessageField_MessageField = 1 +const MessageField_Oneof_case case_MessageField_MessageField = 2 + +func (x *MessageField) WhichMessageField() case_MessageField_MessageField { + if x == nil { + return MessageField_MessageField_not_set_case + } + switch x.xxx_hidden_MessageField.(type) { + case *messageField_Field: + return MessageField_Field_case + case *messageField_Oneof: + return MessageField_Oneof_case + default: + return MessageField_MessageField_not_set_case + } +} + +type MessageField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_MessageField: + Field *Field + Oneof *Oneof + // -- end of xxx_hidden_MessageField +} + +func (b0 MessageField_builder) Build() *MessageField { + m0 := &MessageField{} + b, x := &b0, m0 + _, _ = b, x + if b.Field != nil { + x.xxx_hidden_MessageField = &messageField_Field{b.Field} + } + if b.Oneof != nil { + x.xxx_hidden_MessageField = &messageField_Oneof{b.Oneof} + } + return m0 +} + +type case_MessageField_MessageField protoreflect.FieldNumber + +func (x case_MessageField_MessageField) String() string { + md := file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[26].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isMessageField_MessageField interface { + isMessageField_MessageField() +} + +type messageField_Field struct { + Field *Field `protobuf:"bytes,1,opt,name=field,proto3,oneof"` +} + +type messageField_Oneof struct { + Oneof *Oneof `protobuf:"bytes,2,opt,name=oneof,proto3,oneof"` +} + +func (*messageField_Field) isMessageField_MessageField() {} + +func (*messageField_Oneof) isMessageField_MessageField() {} + +// MessageOptions provides information for the documentation of options for a message. +// +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type MessageOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MessageOptions) Reset() { + *x = MessageOptions{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MessageOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MessageOptions) ProtoMessage() {} + +func (x *MessageOptions) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MessageOptions) GetDeprecated() bool { + if x != nil { + return x.xxx_hidden_Deprecated + } + return false +} + +func (x *MessageOptions) SetDeprecated(v bool) { + x.xxx_hidden_Deprecated = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type MessageOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deprecated bool +} + +func (b0 MessageOptions_builder) Build() *MessageOptions { + m0 := &MessageOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Deprecated = b.Deprecated + return m0 +} + +// Oneof represents a oneof set of fields. +type Oneof struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Fields *[]*Field `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` + xxx_hidden_Options *[]*FieldLiteral `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Oneof) Reset() { + *x = Oneof{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Oneof) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Oneof) ProtoMessage() {} + +func (x *Oneof) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Oneof) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Oneof) GetFields() []*Field { + if x != nil { + if x.xxx_hidden_Fields != nil { + return *x.xxx_hidden_Fields + } + } + return nil +} + +func (x *Oneof) GetOptions() []*FieldLiteral { + if x != nil { + if x.xxx_hidden_Options != nil { + return *x.xxx_hidden_Options + } + } + return nil +} + +func (x *Oneof) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *Oneof) SetFields(v []*Field) { + x.xxx_hidden_Fields = &v +} + +func (x *Oneof) SetOptions(v []*FieldLiteral) { + x.xxx_hidden_Options = &v +} + +type Oneof_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Fields []*Field + // All options that are present on the OneOf. + // This is a dynamic representation so it can also + // accommodate custom options with arbitrary types. + Options []*FieldLiteral +} + +func (b0 Oneof_builder) Build() *Oneof { + m0 := &Oneof{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Fields = &b.Fields + x.xxx_hidden_Options = &b.Options + return m0 +} + +// Field provides information for the documentation of a message field. +type Field struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Comments string `protobuf:"bytes,2,opt,name=comments,proto3" json:"comments,omitempty"` + xxx_hidden_Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` + xxx_hidden_NestedType string `protobuf:"bytes,4,opt,name=nested_type,json=nestedType,proto3" json:"nested_type,omitempty"` + xxx_hidden_FullType string `protobuf:"bytes,5,opt,name=full_type,json=fullType,proto3" json:"full_type,omitempty"` + xxx_hidden_Tag uint32 `protobuf:"varint,6,opt,name=tag,proto3" json:"tag,omitempty"` + xxx_hidden_MapEntry *MapEntry `protobuf:"bytes,7,opt,name=map_entry,json=mapEntry,proto3" json:"map_entry,omitempty"` + xxx_hidden_ImportModuleRef *ImportModuleRef `protobuf:"bytes,8,opt,name=import_module_ref,json=importModuleRef,proto3" json:"import_module_ref,omitempty"` + xxx_hidden_Extendee string `protobuf:"bytes,9,opt,name=extendee,proto3" json:"extendee,omitempty"` + xxx_hidden_Options *[]*FieldLiteral `protobuf:"bytes,11,rep,name=options,proto3" json:"options,omitempty"` + xxx_hidden_FieldOptions *FieldOptions `protobuf:"bytes,10,opt,name=field_options,json=fieldOptions,proto3" json:"field_options,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Field) Reset() { + *x = Field{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Field) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Field) ProtoMessage() {} + +func (x *Field) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Field) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Field) GetComments() string { + if x != nil { + return x.xxx_hidden_Comments + } + return "" +} + +func (x *Field) GetLabel() string { + if x != nil { + return x.xxx_hidden_Label + } + return "" +} + +func (x *Field) GetNestedType() string { + if x != nil { + return x.xxx_hidden_NestedType + } + return "" +} + +func (x *Field) GetFullType() string { + if x != nil { + return x.xxx_hidden_FullType + } + return "" +} + +func (x *Field) GetTag() uint32 { + if x != nil { + return x.xxx_hidden_Tag + } + return 0 +} + +func (x *Field) GetMapEntry() *MapEntry { + if x != nil { + return x.xxx_hidden_MapEntry + } + return nil +} + +func (x *Field) GetImportModuleRef() *ImportModuleRef { + if x != nil { + return x.xxx_hidden_ImportModuleRef + } + return nil +} + +func (x *Field) GetExtendee() string { + if x != nil { + return x.xxx_hidden_Extendee + } + return "" +} + +func (x *Field) GetOptions() []*FieldLiteral { + if x != nil { + if x.xxx_hidden_Options != nil { + return *x.xxx_hidden_Options + } + } + return nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Field) GetFieldOptions() *FieldOptions { + if x != nil { + return x.xxx_hidden_FieldOptions + } + return nil +} + +func (x *Field) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *Field) SetComments(v string) { + x.xxx_hidden_Comments = v +} + +func (x *Field) SetLabel(v string) { + x.xxx_hidden_Label = v +} + +func (x *Field) SetNestedType(v string) { + x.xxx_hidden_NestedType = v +} + +func (x *Field) SetFullType(v string) { + x.xxx_hidden_FullType = v +} + +func (x *Field) SetTag(v uint32) { + x.xxx_hidden_Tag = v +} + +func (x *Field) SetMapEntry(v *MapEntry) { + x.xxx_hidden_MapEntry = v +} + +func (x *Field) SetImportModuleRef(v *ImportModuleRef) { + x.xxx_hidden_ImportModuleRef = v +} + +func (x *Field) SetExtendee(v string) { + x.xxx_hidden_Extendee = v +} + +func (x *Field) SetOptions(v []*FieldLiteral) { + x.xxx_hidden_Options = &v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Field) SetFieldOptions(v *FieldOptions) { + x.xxx_hidden_FieldOptions = v +} + +func (x *Field) HasMapEntry() bool { + if x == nil { + return false + } + return x.xxx_hidden_MapEntry != nil +} + +func (x *Field) HasImportModuleRef() bool { + if x == nil { + return false + } + return x.xxx_hidden_ImportModuleRef != nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Field) HasFieldOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_FieldOptions != nil +} + +func (x *Field) ClearMapEntry() { + x.xxx_hidden_MapEntry = nil +} + +func (x *Field) ClearImportModuleRef() { + x.xxx_hidden_ImportModuleRef = nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +func (x *Field) ClearFieldOptions() { + x.xxx_hidden_FieldOptions = nil +} + +type Field_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + // comments is derived from the leading comments of a given message field. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + Label string + // string representation of the nested name of the field type, which includes nested definitions. + NestedType string + // string representation of the full name of the field type, which includes package name + // and nested definitions. + FullType string + Tag uint32 + // MapEntry is present if the field is a map type. + MapEntry *MapEntry + // import_module_ref is included if the field is an imported type. + // It contains all the metadata for the import. + ImportModuleRef *ImportModuleRef + // Extendee is the name of the type that is being ext if the field is an extension. + // This is an empty string for fields that are not extenions. + Extendee string + // All options that are present on the field. This is a super-set of + // field_options and uses a dynamic representation so it can also + // accommodate custom options with arbitrary types. + // This supersedes field_options. + Options []*FieldLiteral + // Use options instead. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. + FieldOptions *FieldOptions +} + +func (b0 Field_builder) Build() *Field { + m0 := &Field{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Comments = b.Comments + x.xxx_hidden_Label = b.Label + x.xxx_hidden_NestedType = b.NestedType + x.xxx_hidden_FullType = b.FullType + x.xxx_hidden_Tag = b.Tag + x.xxx_hidden_MapEntry = b.MapEntry + x.xxx_hidden_ImportModuleRef = b.ImportModuleRef + x.xxx_hidden_Extendee = b.Extendee + x.xxx_hidden_Options = &b.Options + x.xxx_hidden_FieldOptions = b.FieldOptions + return m0 +} + +// FieldOptions provides information for the documentation of options for a field. +// +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type FieldOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Deprecated bool `protobuf:"varint,1,opt,name=deprecated,proto3" json:"deprecated,omitempty"` + xxx_hidden_Packed bool `protobuf:"varint,2,opt,name=packed,proto3,oneof" json:"packed,omitempty"` + xxx_hidden_Ctype int32 `protobuf:"varint,3,opt,name=ctype,proto3" json:"ctype,omitempty"` + xxx_hidden_Jstype int32 `protobuf:"varint,4,opt,name=jstype,proto3" json:"jstype,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FieldOptions) Reset() { + *x = FieldOptions{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FieldOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldOptions) ProtoMessage() {} + +func (x *FieldOptions) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *FieldOptions) GetDeprecated() bool { + if x != nil { + return x.xxx_hidden_Deprecated + } + return false +} + +func (x *FieldOptions) GetPacked() bool { + if x != nil { + return x.xxx_hidden_Packed + } + return false +} + +func (x *FieldOptions) GetCtype() int32 { + if x != nil { + return x.xxx_hidden_Ctype + } + return 0 +} + +func (x *FieldOptions) GetJstype() int32 { + if x != nil { + return x.xxx_hidden_Jstype + } + return 0 +} + +func (x *FieldOptions) SetDeprecated(v bool) { + x.xxx_hidden_Deprecated = v +} + +func (x *FieldOptions) SetPacked(v bool) { + x.xxx_hidden_Packed = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 4) +} + +func (x *FieldOptions) SetCtype(v int32) { + x.xxx_hidden_Ctype = v +} + +func (x *FieldOptions) SetJstype(v int32) { + x.xxx_hidden_Jstype = v +} + +func (x *FieldOptions) HasPacked() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *FieldOptions) ClearPacked() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_Packed = false +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/doc.proto. +type FieldOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Deprecated bool + Packed *bool + // ctype holds a value of the enumeration `google.protobuf.FieldOptions.CType. + Ctype int32 + // jstype holds a value of the enumeration `google.protobuf.FieldOptions.JSType. + Jstype int32 +} + +func (b0 FieldOptions_builder) Build() *FieldOptions { + m0 := &FieldOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Deprecated = b.Deprecated + if b.Packed != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 4) + x.xxx_hidden_Packed = *b.Packed + } + x.xxx_hidden_Ctype = b.Ctype + x.xxx_hidden_Jstype = b.Jstype + return m0 +} + +// FieldLiteral represents a field and its value. It can be used to model descriptor options. +type FieldLiteral struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Tag int32 `protobuf:"varint,2,opt,name=tag,proto3" json:"tag,omitempty"` + xxx_hidden_FieldType FieldType `protobuf:"varint,3,opt,name=field_type,json=fieldType,proto3,enum=buf.alpha.registry.v1alpha1.FieldType" json:"field_type,omitempty"` + xxx_hidden_Value *LiteralValue `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` + xxx_hidden_ImportModuleRef *ImportModuleRef `protobuf:"bytes,5,opt,name=import_module_ref,json=importModuleRef,proto3" json:"import_module_ref,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FieldLiteral) Reset() { + *x = FieldLiteral{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FieldLiteral) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldLiteral) ProtoMessage() {} + +func (x *FieldLiteral) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *FieldLiteral) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *FieldLiteral) GetTag() int32 { + if x != nil { + return x.xxx_hidden_Tag + } + return 0 +} + +func (x *FieldLiteral) GetFieldType() FieldType { + if x != nil { + return x.xxx_hidden_FieldType + } + return FieldType_FIELD_TYPE_UNSPECIFIED +} + +func (x *FieldLiteral) GetValue() *LiteralValue { + if x != nil { + return x.xxx_hidden_Value + } + return nil +} + +func (x *FieldLiteral) GetImportModuleRef() *ImportModuleRef { + if x != nil { + return x.xxx_hidden_ImportModuleRef + } + return nil +} + +func (x *FieldLiteral) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *FieldLiteral) SetTag(v int32) { + x.xxx_hidden_Tag = v +} + +func (x *FieldLiteral) SetFieldType(v FieldType) { + x.xxx_hidden_FieldType = v +} + +func (x *FieldLiteral) SetValue(v *LiteralValue) { + x.xxx_hidden_Value = v +} + +func (x *FieldLiteral) SetImportModuleRef(v *ImportModuleRef) { + x.xxx_hidden_ImportModuleRef = v +} + +func (x *FieldLiteral) HasValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_Value != nil +} + +func (x *FieldLiteral) HasImportModuleRef() bool { + if x == nil { + return false + } + return x.xxx_hidden_ImportModuleRef != nil +} + +func (x *FieldLiteral) ClearValue() { + x.xxx_hidden_Value = nil +} + +func (x *FieldLiteral) ClearImportModuleRef() { + x.xxx_hidden_ImportModuleRef = nil +} + +type FieldLiteral_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // When is_extension is true, name is the fully-qualified name of the + // extension. Otherwise, it is the simple name of the field. + Name string + // The unique field number associated with the field. + Tag int32 + // Indicates whether this is an extension or not. + FieldType FieldType + // The field's value. + Value *LiteralValue + // This is the module where the extension is defined if the field type + // is extension or the module where the messages is defined for field type any. + ImportModuleRef *ImportModuleRef +} + +func (b0 FieldLiteral_builder) Build() *FieldLiteral { + m0 := &FieldLiteral{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Tag = b.Tag + x.xxx_hidden_FieldType = b.FieldType + x.xxx_hidden_Value = b.Value + x.xxx_hidden_ImportModuleRef = b.ImportModuleRef + return m0 +} + +// MessageLiteral represents an option value for a type that is a message. +type MessageLiteral struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Fields *[]*FieldLiteral `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MessageLiteral) Reset() { + *x = MessageLiteral{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MessageLiteral) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MessageLiteral) ProtoMessage() {} + +func (x *MessageLiteral) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MessageLiteral) GetFields() []*FieldLiteral { + if x != nil { + if x.xxx_hidden_Fields != nil { + return *x.xxx_hidden_Fields + } + } + return nil +} + +func (x *MessageLiteral) SetFields(v []*FieldLiteral) { + x.xxx_hidden_Fields = &v +} + +type MessageLiteral_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Map of field names to value. Extension field names will be in the form: + // [fully.qualified.extension.Name]. + Fields []*FieldLiteral +} + +func (b0 MessageLiteral_builder) Build() *MessageLiteral { + m0 := &MessageLiteral{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Fields = &b.Fields + return m0 +} + +// ArrayLiteral represents an option value for a type that is a repeated field. +// Maps are also represented using an ArrayLiteral, where each map entry is a MessageLiteral +// that contains a key and value field. +type ArrayLiteral struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Elements *[]*LiteralValue `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ArrayLiteral) Reset() { + *x = ArrayLiteral{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ArrayLiteral) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArrayLiteral) ProtoMessage() {} + +func (x *ArrayLiteral) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ArrayLiteral) GetElements() []*LiteralValue { + if x != nil { + if x.xxx_hidden_Elements != nil { + return *x.xxx_hidden_Elements + } + } + return nil +} + +func (x *ArrayLiteral) SetElements(v []*LiteralValue) { + x.xxx_hidden_Elements = &v +} + +type ArrayLiteral_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Elements []*LiteralValue +} + +func (b0 ArrayLiteral_builder) Build() *ArrayLiteral { + m0 := &ArrayLiteral{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Elements = &b.Elements + return m0 +} + +// LiteralValue represents the actual value of the extension. +type LiteralValue struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Value isLiteralValue_Value `protobuf_oneof:"value"` + xxx_hidden_Comments string `protobuf:"bytes,10,opt,name=comments,proto3" json:"comments,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LiteralValue) Reset() { + *x = LiteralValue{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LiteralValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LiteralValue) ProtoMessage() {} + +func (x *LiteralValue) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[34] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *LiteralValue) GetStringValue() string { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*literalValue_StringValue); ok { + return x.StringValue + } + } + return "" +} + +func (x *LiteralValue) GetIntValue() int64 { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*literalValue_IntValue); ok { + return x.IntValue + } + } + return 0 +} + +func (x *LiteralValue) GetUintValue() uint64 { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*literalValue_UintValue); ok { + return x.UintValue + } + } + return 0 +} + +func (x *LiteralValue) GetDoubleValue() float64 { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*literalValue_DoubleValue); ok { + return x.DoubleValue + } + } + return 0 +} + +func (x *LiteralValue) GetBoolValue() bool { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*literalValue_BoolValue); ok { + return x.BoolValue + } + } + return false +} + +func (x *LiteralValue) GetEnumValueNameValue() string { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*literalValue_EnumValueNameValue); ok { + return x.EnumValueNameValue + } + } + return "" +} + +func (x *LiteralValue) GetArrayValue() *ArrayLiteral { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*literalValue_ArrayValue); ok { + return x.ArrayValue + } + } + return nil +} + +func (x *LiteralValue) GetMessageValue() *MessageLiteral { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*literalValue_MessageValue); ok { + return x.MessageValue + } + } + return nil +} + +func (x *LiteralValue) GetComments() string { + if x != nil { + return x.xxx_hidden_Comments + } + return "" +} + +func (x *LiteralValue) SetStringValue(v string) { + x.xxx_hidden_Value = &literalValue_StringValue{v} +} + +func (x *LiteralValue) SetIntValue(v int64) { + x.xxx_hidden_Value = &literalValue_IntValue{v} +} + +func (x *LiteralValue) SetUintValue(v uint64) { + x.xxx_hidden_Value = &literalValue_UintValue{v} +} + +func (x *LiteralValue) SetDoubleValue(v float64) { + x.xxx_hidden_Value = &literalValue_DoubleValue{v} +} + +func (x *LiteralValue) SetBoolValue(v bool) { + x.xxx_hidden_Value = &literalValue_BoolValue{v} +} + +func (x *LiteralValue) SetEnumValueNameValue(v string) { + x.xxx_hidden_Value = &literalValue_EnumValueNameValue{v} +} + +func (x *LiteralValue) SetArrayValue(v *ArrayLiteral) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &literalValue_ArrayValue{v} +} + +func (x *LiteralValue) SetMessageValue(v *MessageLiteral) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &literalValue_MessageValue{v} +} + +func (x *LiteralValue) SetComments(v string) { + x.xxx_hidden_Comments = v +} + +func (x *LiteralValue) HasValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_Value != nil +} + +func (x *LiteralValue) HasStringValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*literalValue_StringValue) + return ok +} + +func (x *LiteralValue) HasIntValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*literalValue_IntValue) + return ok +} + +func (x *LiteralValue) HasUintValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*literalValue_UintValue) + return ok +} + +func (x *LiteralValue) HasDoubleValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*literalValue_DoubleValue) + return ok +} + +func (x *LiteralValue) HasBoolValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*literalValue_BoolValue) + return ok +} + +func (x *LiteralValue) HasEnumValueNameValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*literalValue_EnumValueNameValue) + return ok +} + +func (x *LiteralValue) HasArrayValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*literalValue_ArrayValue) + return ok +} + +func (x *LiteralValue) HasMessageValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*literalValue_MessageValue) + return ok +} + +func (x *LiteralValue) ClearValue() { + x.xxx_hidden_Value = nil +} + +func (x *LiteralValue) ClearStringValue() { + if _, ok := x.xxx_hidden_Value.(*literalValue_StringValue); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *LiteralValue) ClearIntValue() { + if _, ok := x.xxx_hidden_Value.(*literalValue_IntValue); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *LiteralValue) ClearUintValue() { + if _, ok := x.xxx_hidden_Value.(*literalValue_UintValue); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *LiteralValue) ClearDoubleValue() { + if _, ok := x.xxx_hidden_Value.(*literalValue_DoubleValue); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *LiteralValue) ClearBoolValue() { + if _, ok := x.xxx_hidden_Value.(*literalValue_BoolValue); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *LiteralValue) ClearEnumValueNameValue() { + if _, ok := x.xxx_hidden_Value.(*literalValue_EnumValueNameValue); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *LiteralValue) ClearArrayValue() { + if _, ok := x.xxx_hidden_Value.(*literalValue_ArrayValue); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *LiteralValue) ClearMessageValue() { + if _, ok := x.xxx_hidden_Value.(*literalValue_MessageValue); ok { + x.xxx_hidden_Value = nil + } +} + +const LiteralValue_Value_not_set_case case_LiteralValue_Value = 0 +const LiteralValue_StringValue_case case_LiteralValue_Value = 2 +const LiteralValue_IntValue_case case_LiteralValue_Value = 3 +const LiteralValue_UintValue_case case_LiteralValue_Value = 4 +const LiteralValue_DoubleValue_case case_LiteralValue_Value = 5 +const LiteralValue_BoolValue_case case_LiteralValue_Value = 6 +const LiteralValue_EnumValueNameValue_case case_LiteralValue_Value = 7 +const LiteralValue_ArrayValue_case case_LiteralValue_Value = 8 +const LiteralValue_MessageValue_case case_LiteralValue_Value = 9 + +func (x *LiteralValue) WhichValue() case_LiteralValue_Value { + if x == nil { + return LiteralValue_Value_not_set_case + } + switch x.xxx_hidden_Value.(type) { + case *literalValue_StringValue: + return LiteralValue_StringValue_case + case *literalValue_IntValue: + return LiteralValue_IntValue_case + case *literalValue_UintValue: + return LiteralValue_UintValue_case + case *literalValue_DoubleValue: + return LiteralValue_DoubleValue_case + case *literalValue_BoolValue: + return LiteralValue_BoolValue_case + case *literalValue_EnumValueNameValue: + return LiteralValue_EnumValueNameValue_case + case *literalValue_ArrayValue: + return LiteralValue_ArrayValue_case + case *literalValue_MessageValue: + return LiteralValue_MessageValue_case + default: + return LiteralValue_Value_not_set_case + } +} + +type LiteralValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Value: + StringValue *string + IntValue *int64 + UintValue *uint64 + DoubleValue *float64 + BoolValue *bool + EnumValueNameValue *string + ArrayValue *ArrayLiteral + MessageValue *MessageLiteral + // -- end of xxx_hidden_Value + Comments string +} + +func (b0 LiteralValue_builder) Build() *LiteralValue { + m0 := &LiteralValue{} + b, x := &b0, m0 + _, _ = b, x + if b.StringValue != nil { + x.xxx_hidden_Value = &literalValue_StringValue{*b.StringValue} + } + if b.IntValue != nil { + x.xxx_hidden_Value = &literalValue_IntValue{*b.IntValue} + } + if b.UintValue != nil { + x.xxx_hidden_Value = &literalValue_UintValue{*b.UintValue} + } + if b.DoubleValue != nil { + x.xxx_hidden_Value = &literalValue_DoubleValue{*b.DoubleValue} + } + if b.BoolValue != nil { + x.xxx_hidden_Value = &literalValue_BoolValue{*b.BoolValue} + } + if b.EnumValueNameValue != nil { + x.xxx_hidden_Value = &literalValue_EnumValueNameValue{*b.EnumValueNameValue} + } + if b.ArrayValue != nil { + x.xxx_hidden_Value = &literalValue_ArrayValue{b.ArrayValue} + } + if b.MessageValue != nil { + x.xxx_hidden_Value = &literalValue_MessageValue{b.MessageValue} + } + x.xxx_hidden_Comments = b.Comments + return m0 +} + +type case_LiteralValue_Value protoreflect.FieldNumber + +func (x case_LiteralValue_Value) String() string { + md := file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[34].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isLiteralValue_Value interface { + isLiteralValue_Value() +} + +type literalValue_StringValue struct { + StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type literalValue_IntValue struct { + IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"` +} + +type literalValue_UintValue struct { + UintValue uint64 `protobuf:"varint,4,opt,name=uint_value,json=uintValue,proto3,oneof"` +} + +type literalValue_DoubleValue struct { + DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"` +} + +type literalValue_BoolValue struct { + BoolValue bool `protobuf:"varint,6,opt,name=bool_value,json=boolValue,proto3,oneof"` +} + +type literalValue_EnumValueNameValue struct { + EnumValueNameValue string `protobuf:"bytes,7,opt,name=enum_value_name_value,json=enumValueNameValue,proto3,oneof"` +} + +type literalValue_ArrayValue struct { + ArrayValue *ArrayLiteral `protobuf:"bytes,8,opt,name=array_value,json=arrayValue,proto3,oneof"` +} + +type literalValue_MessageValue struct { + MessageValue *MessageLiteral `protobuf:"bytes,9,opt,name=message_value,json=messageValue,proto3,oneof"` +} + +func (*literalValue_StringValue) isLiteralValue_Value() {} + +func (*literalValue_IntValue) isLiteralValue_Value() {} + +func (*literalValue_UintValue) isLiteralValue_Value() {} + +func (*literalValue_DoubleValue) isLiteralValue_Value() {} + +func (*literalValue_BoolValue) isLiteralValue_Value() {} + +func (*literalValue_EnumValueNameValue) isLiteralValue_Value() {} + +func (*literalValue_ArrayValue) isLiteralValue_Value() {} + +func (*literalValue_MessageValue) isLiteralValue_Value() {} + +// MapEntry provides the key and value types for the MapEntry type for a map field. +type MapEntry struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_KeyFullType string `protobuf:"bytes,1,opt,name=key_full_type,json=keyFullType,proto3" json:"key_full_type,omitempty"` + xxx_hidden_ValueNestedType string `protobuf:"bytes,2,opt,name=value_nested_type,json=valueNestedType,proto3" json:"value_nested_type,omitempty"` + xxx_hidden_ValueFullType string `protobuf:"bytes,3,opt,name=value_full_type,json=valueFullType,proto3" json:"value_full_type,omitempty"` + xxx_hidden_ValueImportModuleRef *ImportModuleRef `protobuf:"bytes,4,opt,name=value_import_module_ref,json=valueImportModuleRef,proto3" json:"value_import_module_ref,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MapEntry) Reset() { + *x = MapEntry{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MapEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MapEntry) ProtoMessage() {} + +func (x *MapEntry) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[35] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MapEntry) GetKeyFullType() string { + if x != nil { + return x.xxx_hidden_KeyFullType + } + return "" +} + +func (x *MapEntry) GetValueNestedType() string { + if x != nil { + return x.xxx_hidden_ValueNestedType + } + return "" +} + +func (x *MapEntry) GetValueFullType() string { + if x != nil { + return x.xxx_hidden_ValueFullType + } + return "" +} + +func (x *MapEntry) GetValueImportModuleRef() *ImportModuleRef { + if x != nil { + return x.xxx_hidden_ValueImportModuleRef + } + return nil +} + +func (x *MapEntry) SetKeyFullType(v string) { + x.xxx_hidden_KeyFullType = v +} + +func (x *MapEntry) SetValueNestedType(v string) { + x.xxx_hidden_ValueNestedType = v +} + +func (x *MapEntry) SetValueFullType(v string) { + x.xxx_hidden_ValueFullType = v +} + +func (x *MapEntry) SetValueImportModuleRef(v *ImportModuleRef) { + x.xxx_hidden_ValueImportModuleRef = v +} + +func (x *MapEntry) HasValueImportModuleRef() bool { + if x == nil { + return false + } + return x.xxx_hidden_ValueImportModuleRef != nil +} + +func (x *MapEntry) ClearValueImportModuleRef() { + x.xxx_hidden_ValueImportModuleRef = nil +} + +type MapEntry_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // string representation of the full name of the type for the map key. keys can only be + // scalar types: https://developers.google.com/protocol-buffers/docs/overview#maps + KeyFullType string + // string representation of the nested name of the type for the map value. + ValueNestedType string + // string representation of the full name of the type for the map value. + ValueFullType string + // if the value is an imported type, this is the import module ref + ValueImportModuleRef *ImportModuleRef +} + +func (b0 MapEntry_builder) Build() *MapEntry { + m0 := &MapEntry{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_KeyFullType = b.KeyFullType + x.xxx_hidden_ValueNestedType = b.ValueNestedType + x.xxx_hidden_ValueFullType = b.ValueFullType + x.xxx_hidden_ValueImportModuleRef = b.ValueImportModuleRef + return m0 +} + +// FileExtension provides the information for the documentation of a file extension. +type FileExtension struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ExtensionType string `protobuf:"bytes,1,opt,name=extension_type,json=extensionType,proto3" json:"extension_type,omitempty"` + xxx_hidden_Comments string `protobuf:"bytes,2,opt,name=comments,proto3" json:"comments,omitempty"` + xxx_hidden_FilePath string `protobuf:"bytes,3,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` + xxx_hidden_Location *Location `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` + xxx_hidden_Fields *[]*Field `protobuf:"bytes,5,rep,name=fields,proto3" json:"fields,omitempty"` + xxx_hidden_ImplicitlyDeprecated bool `protobuf:"varint,6,opt,name=implicitly_deprecated,json=implicitlyDeprecated,proto3" json:"implicitly_deprecated,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FileExtension) Reset() { + *x = FileExtension{} + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FileExtension) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileExtension) ProtoMessage() {} + +func (x *FileExtension) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[36] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *FileExtension) GetExtensionType() string { + if x != nil { + return x.xxx_hidden_ExtensionType + } + return "" +} + +func (x *FileExtension) GetComments() string { + if x != nil { + return x.xxx_hidden_Comments + } + return "" +} + +func (x *FileExtension) GetFilePath() string { + if x != nil { + return x.xxx_hidden_FilePath + } + return "" +} + +func (x *FileExtension) GetLocation() *Location { + if x != nil { + return x.xxx_hidden_Location + } + return nil +} + +func (x *FileExtension) GetFields() []*Field { + if x != nil { + if x.xxx_hidden_Fields != nil { + return *x.xxx_hidden_Fields + } + } + return nil +} + +func (x *FileExtension) GetImplicitlyDeprecated() bool { + if x != nil { + return x.xxx_hidden_ImplicitlyDeprecated + } + return false +} + +func (x *FileExtension) SetExtensionType(v string) { + x.xxx_hidden_ExtensionType = v +} + +func (x *FileExtension) SetComments(v string) { + x.xxx_hidden_Comments = v +} + +func (x *FileExtension) SetFilePath(v string) { + x.xxx_hidden_FilePath = v +} + +func (x *FileExtension) SetLocation(v *Location) { + x.xxx_hidden_Location = v +} + +func (x *FileExtension) SetFields(v []*Field) { + x.xxx_hidden_Fields = &v +} + +func (x *FileExtension) SetImplicitlyDeprecated(v bool) { + x.xxx_hidden_ImplicitlyDeprecated = v +} + +func (x *FileExtension) HasLocation() bool { + if x == nil { + return false + } + return x.xxx_hidden_Location != nil +} + +func (x *FileExtension) ClearLocation() { + x.xxx_hidden_Location = nil +} + +type FileExtension_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // extension_type is the string representation of the type being extended. + ExtensionType string + // comments is derived from the leading comments of a given message field. + // + // Paragraph newlines (double new lines) are respected, however single newlines are not. + // Note that any leading and trailing `//` or spaces within a `/* */` block will be stripped. + Comments string + // file_path is the normalized path of the file containing the message. + FilePath string + Location *Location + // fields are all the fields that are associated with the extension. + Fields []*Field + // implicitly_deprecated is true if its enclosing file or parent element is deprecated. + ImplicitlyDeprecated bool +} + +func (b0 FileExtension_builder) Build() *FileExtension { + m0 := &FileExtension{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ExtensionType = b.ExtensionType + x.xxx_hidden_Comments = b.Comments + x.xxx_hidden_FilePath = b.FilePath + x.xxx_hidden_Location = b.Location + x.xxx_hidden_Fields = &b.Fields + x.xxx_hidden_ImplicitlyDeprecated = b.ImplicitlyDeprecated + return m0 +} + +var File_buf_alpha_registry_v1alpha1_doc_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_doc_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x64, 0x6f, + 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x22, 0x73, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x5b, 0x0a, 0x1e, 0x47, 0x65, 0x74, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x72, + 0x6f, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x22, 0x78, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x44, 0x69, 0x72, 0x12, 0x41, 0x0a, + 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, + 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, + 0x22, 0x7e, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, + 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, + 0x22, 0x31, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x22, 0x6e, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x53, 0x0a, 0x0f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x0e, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x22, 0x45, 0x0a, 0x0d, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x73, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x14, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x6d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x98, + 0x01, 0x0a, 0x13, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x61, 0x74, 0x68, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x22, 0x97, 0x01, 0x0a, 0x1e, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x22, 0x89, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x15, 0x70, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x44, 0x6f, 0x63, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x70, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0xd8, 0x02, 0x0a, 0x14, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x40, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x05, 0x65, 0x6e, + 0x75, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x65, 0x6e, + 0x75, 0x6d, 0x73, 0x12, 0x40, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x53, 0x0a, 0x0f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x65, 0x78, + 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, + 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x66, 0x69, 0x6c, 0x65, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x86, 0x01, 0x0a, 0x08, 0x4c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, + 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x65, 0x6e, 0x64, + 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6e, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x22, 0xea, 0x03, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1b, 0x0a, + 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x41, 0x0a, 0x08, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x0a, + 0x07, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x33, 0x0a, 0x15, + 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x6c, 0x79, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x69, 0x6d, 0x70, + 0x6c, 0x69, 0x63, 0x69, 0x74, 0x6c, 0x79, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x43, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x58, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x02, 0x18, 0x01, + 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x22, 0x34, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xa7, 0x03, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x12, 0x4c, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x4e, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x33, 0x0a, 0x15, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x6c, 0x79, 0x5f, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, + 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x6c, 0x79, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x12, 0x43, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, + 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x55, 0x0a, 0x0e, 0x6d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x02, 0x18, + 0x01, 0x52, 0x0d, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x22, 0x60, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x69, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, + 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x69, 0x64, + 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x3a, 0x02, + 0x18, 0x01, 0x22, 0x8d, 0x02, 0x0a, 0x15, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, + 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, + 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x3e, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x58, 0x0a, 0x11, 0x69, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, + 0x66, 0x52, 0x0f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, + 0x65, 0x66, 0x22, 0xdf, 0x03, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, + 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, + 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x41, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x06, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x15, 0x69, 0x6d, 0x70, + 0x6c, 0x69, 0x63, 0x69, 0x74, 0x6c, 0x79, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x63, + 0x69, 0x74, 0x6c, 0x79, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x43, + 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x4f, 0x0a, 0x0c, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x65, 0x6e, 0x75, 0x6d, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x52, 0x0a, 0x0b, 0x45, 0x6e, 0x75, 0x6d, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x6c, 0x69, + 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x41, + 0x6c, 0x69, 0x61, 0x73, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xf9, 0x01, 0x0a, 0x09, 0x45, 0x6e, 0x75, + 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x43, + 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x5f, 0x0a, 0x12, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x6e, + 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x02, + 0x18, 0x01, 0x52, 0x10, 0x65, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x36, 0x0a, 0x10, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, + 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x9a, 0x01, 0x0a, + 0x0f, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x16, + 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xe3, 0x04, 0x0a, 0x07, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, + 0x6c, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, + 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x20, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x6d, 0x61, 0x70, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x41, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x41, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x12, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x15, 0x69, + 0x6d, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x6c, 0x79, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x69, 0x6d, 0x70, 0x6c, + 0x69, 0x63, 0x69, 0x74, 0x6c, 0x79, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x43, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x07, 0x6f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x58, 0x0a, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x02, 0x18, 0x01, 0x52, + 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, + 0x97, 0x01, 0x0a, 0x0c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x12, 0x3a, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x22, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x3a, 0x0a, 0x05, + 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x48, + 0x00, 0x52, 0x05, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x42, 0x0f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, 0x34, 0x0a, 0x0e, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x64, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x22, + 0x9c, 0x01, 0x0a, 0x05, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, + 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x43, 0x0a, 0x07, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4c, 0x69, + 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xf0, + 0x03, 0x0a, 0x05, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x1f, + 0x0a, 0x0b, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, + 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x42, + 0x0a, 0x09, 0x6d, 0x61, 0x70, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x61, 0x70, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x58, 0x0a, 0x11, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x49, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x52, 0x0f, 0x69, 0x6d, 0x70, + 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x12, 0x1a, 0x0a, 0x08, + 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x65, 0x12, 0x43, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4c, 0x69, 0x74, + 0x65, 0x72, 0x61, 0x6c, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x52, 0x0a, + 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, + 0x02, 0x18, 0x01, 0x52, 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x88, 0x01, 0x0a, 0x0c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x48, 0x00, 0x52, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, + 0x14, 0x0a, 0x05, 0x63, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, + 0x63, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6a, 0x73, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6a, 0x73, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x02, 0x18, + 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x22, 0x96, 0x02, 0x0a, + 0x0c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, + 0x74, 0x61, 0x67, 0x12, 0x45, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x58, 0x0a, 0x11, 0x69, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x52, 0x65, 0x66, 0x52, 0x0f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x52, 0x65, 0x66, 0x22, 0x53, 0x0a, 0x0e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x12, 0x41, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4c, 0x69, 0x74, 0x65, 0x72, + 0x61, 0x6c, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x55, 0x0a, 0x0c, 0x41, 0x72, + 0x72, 0x61, 0x79, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x12, 0x45, 0x0a, 0x08, 0x65, 0x6c, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, + 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x22, 0xb5, 0x03, 0x0a, 0x0c, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, + 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x75, 0x69, 0x6e, 0x74, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x09, 0x75, 0x69, + 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, + 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, + 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, + 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, + 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x33, 0x0a, + 0x15, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x12, + 0x65, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x4c, 0x0a, 0x0b, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4c, 0x69, 0x74, 0x65, 0x72, + 0x61, 0x6c, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x72, 0x72, 0x61, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x52, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x74, + 0x65, 0x72, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xe7, 0x01, 0x0a, 0x08, 0x4d, 0x61, + 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x22, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x5f, 0x66, 0x75, + 0x6c, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6b, + 0x65, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4e, 0x65, 0x73, 0x74, + 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, + 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x63, + 0x0a, 0x17, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x49, 0x6d, + 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x52, 0x14, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x52, 0x65, 0x66, 0x22, 0xa3, 0x02, 0x0a, 0x0d, 0x46, 0x69, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, + 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, + 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x41, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, + 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, + 0x65, 0x6c, 0x64, 0x73, 0x12, 0x33, 0x0a, 0x15, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, + 0x6c, 0x79, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x14, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x6c, 0x79, 0x44, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x2a, 0x6c, 0x0a, 0x09, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x46, 0x49, 0x45, + 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x4e, 0x53, 0x49, 0x4f, + 0x4e, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x41, 0x4e, 0x59, 0x10, 0x03, 0x32, 0xe1, 0x05, 0x0a, 0x0a, 0x44, 0x6f, 0x63, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x96, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, + 0x7b, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, 0x65, + 0x12, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x87, 0x01, 0x0a, + 0x11, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x73, 0x12, 0x35, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x96, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, + 0x99, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x44, 0x6f, + 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x95, 0x02, 0x0a, 0x1f, + 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, + 0x08, 0x44, 0x6f, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, + 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, + 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, + 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, + 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, + 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_doc_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes = make([]protoimpl.MessageInfo, 37) +var file_buf_alpha_registry_v1alpha1_doc_proto_goTypes = []any{ + (FieldType)(0), // 0: buf.alpha.registry.v1alpha1.FieldType + (*GetSourceDirectoryInfoRequest)(nil), // 1: buf.alpha.registry.v1alpha1.GetSourceDirectoryInfoRequest + (*GetSourceDirectoryInfoResponse)(nil), // 2: buf.alpha.registry.v1alpha1.GetSourceDirectoryInfoResponse + (*FileInfo)(nil), // 3: buf.alpha.registry.v1alpha1.FileInfo + (*GetSourceFileRequest)(nil), // 4: buf.alpha.registry.v1alpha1.GetSourceFileRequest + (*GetSourceFileResponse)(nil), // 5: buf.alpha.registry.v1alpha1.GetSourceFileResponse + (*GetModulePackagesRequest)(nil), // 6: buf.alpha.registry.v1alpha1.GetModulePackagesRequest + (*GetModulePackagesResponse)(nil), // 7: buf.alpha.registry.v1alpha1.GetModulePackagesResponse + (*ModulePackage)(nil), // 8: buf.alpha.registry.v1alpha1.ModulePackage + (*GetModuleDocumentationRequest)(nil), // 9: buf.alpha.registry.v1alpha1.GetModuleDocumentationRequest + (*GetModuleDocumentationResponse)(nil), // 10: buf.alpha.registry.v1alpha1.GetModuleDocumentationResponse + (*ModuleDocumentation)(nil), // 11: buf.alpha.registry.v1alpha1.ModuleDocumentation + (*GetPackageDocumentationRequest)(nil), // 12: buf.alpha.registry.v1alpha1.GetPackageDocumentationRequest + (*GetPackageDocumentationResponse)(nil), // 13: buf.alpha.registry.v1alpha1.GetPackageDocumentationResponse + (*PackageDocumentation)(nil), // 14: buf.alpha.registry.v1alpha1.PackageDocumentation + (*Location)(nil), // 15: buf.alpha.registry.v1alpha1.Location + (*Service)(nil), // 16: buf.alpha.registry.v1alpha1.Service + (*ServiceOptions)(nil), // 17: buf.alpha.registry.v1alpha1.ServiceOptions + (*Method)(nil), // 18: buf.alpha.registry.v1alpha1.Method + (*MethodOptions)(nil), // 19: buf.alpha.registry.v1alpha1.MethodOptions + (*MethodRequestResponse)(nil), // 20: buf.alpha.registry.v1alpha1.MethodRequestResponse + (*Enum)(nil), // 21: buf.alpha.registry.v1alpha1.Enum + (*EnumOptions)(nil), // 22: buf.alpha.registry.v1alpha1.EnumOptions + (*EnumValue)(nil), // 23: buf.alpha.registry.v1alpha1.EnumValue + (*EnumValueOptions)(nil), // 24: buf.alpha.registry.v1alpha1.EnumValueOptions + (*ImportModuleRef)(nil), // 25: buf.alpha.registry.v1alpha1.ImportModuleRef + (*Message)(nil), // 26: buf.alpha.registry.v1alpha1.Message + (*MessageField)(nil), // 27: buf.alpha.registry.v1alpha1.MessageField + (*MessageOptions)(nil), // 28: buf.alpha.registry.v1alpha1.MessageOptions + (*Oneof)(nil), // 29: buf.alpha.registry.v1alpha1.Oneof + (*Field)(nil), // 30: buf.alpha.registry.v1alpha1.Field + (*FieldOptions)(nil), // 31: buf.alpha.registry.v1alpha1.FieldOptions + (*FieldLiteral)(nil), // 32: buf.alpha.registry.v1alpha1.FieldLiteral + (*MessageLiteral)(nil), // 33: buf.alpha.registry.v1alpha1.MessageLiteral + (*ArrayLiteral)(nil), // 34: buf.alpha.registry.v1alpha1.ArrayLiteral + (*LiteralValue)(nil), // 35: buf.alpha.registry.v1alpha1.LiteralValue + (*MapEntry)(nil), // 36: buf.alpha.registry.v1alpha1.MapEntry + (*FileExtension)(nil), // 37: buf.alpha.registry.v1alpha1.FileExtension +} +var file_buf_alpha_registry_v1alpha1_doc_proto_depIdxs = []int32{ + 3, // 0: buf.alpha.registry.v1alpha1.GetSourceDirectoryInfoResponse.root:type_name -> buf.alpha.registry.v1alpha1.FileInfo + 3, // 1: buf.alpha.registry.v1alpha1.FileInfo.children:type_name -> buf.alpha.registry.v1alpha1.FileInfo + 8, // 2: buf.alpha.registry.v1alpha1.GetModulePackagesResponse.module_packages:type_name -> buf.alpha.registry.v1alpha1.ModulePackage + 11, // 3: buf.alpha.registry.v1alpha1.GetModuleDocumentationResponse.module_documentation:type_name -> buf.alpha.registry.v1alpha1.ModuleDocumentation + 14, // 4: buf.alpha.registry.v1alpha1.GetPackageDocumentationResponse.package_documentation:type_name -> buf.alpha.registry.v1alpha1.PackageDocumentation + 16, // 5: buf.alpha.registry.v1alpha1.PackageDocumentation.services:type_name -> buf.alpha.registry.v1alpha1.Service + 21, // 6: buf.alpha.registry.v1alpha1.PackageDocumentation.enums:type_name -> buf.alpha.registry.v1alpha1.Enum + 26, // 7: buf.alpha.registry.v1alpha1.PackageDocumentation.messages:type_name -> buf.alpha.registry.v1alpha1.Message + 37, // 8: buf.alpha.registry.v1alpha1.PackageDocumentation.file_extensions:type_name -> buf.alpha.registry.v1alpha1.FileExtension + 15, // 9: buf.alpha.registry.v1alpha1.Service.location:type_name -> buf.alpha.registry.v1alpha1.Location + 18, // 10: buf.alpha.registry.v1alpha1.Service.methods:type_name -> buf.alpha.registry.v1alpha1.Method + 32, // 11: buf.alpha.registry.v1alpha1.Service.options:type_name -> buf.alpha.registry.v1alpha1.FieldLiteral + 17, // 12: buf.alpha.registry.v1alpha1.Service.service_options:type_name -> buf.alpha.registry.v1alpha1.ServiceOptions + 20, // 13: buf.alpha.registry.v1alpha1.Method.request:type_name -> buf.alpha.registry.v1alpha1.MethodRequestResponse + 20, // 14: buf.alpha.registry.v1alpha1.Method.response:type_name -> buf.alpha.registry.v1alpha1.MethodRequestResponse + 32, // 15: buf.alpha.registry.v1alpha1.Method.options:type_name -> buf.alpha.registry.v1alpha1.FieldLiteral + 19, // 16: buf.alpha.registry.v1alpha1.Method.method_options:type_name -> buf.alpha.registry.v1alpha1.MethodOptions + 26, // 17: buf.alpha.registry.v1alpha1.MethodRequestResponse.message:type_name -> buf.alpha.registry.v1alpha1.Message + 25, // 18: buf.alpha.registry.v1alpha1.MethodRequestResponse.import_module_ref:type_name -> buf.alpha.registry.v1alpha1.ImportModuleRef + 15, // 19: buf.alpha.registry.v1alpha1.Enum.location:type_name -> buf.alpha.registry.v1alpha1.Location + 23, // 20: buf.alpha.registry.v1alpha1.Enum.values:type_name -> buf.alpha.registry.v1alpha1.EnumValue + 32, // 21: buf.alpha.registry.v1alpha1.Enum.options:type_name -> buf.alpha.registry.v1alpha1.FieldLiteral + 22, // 22: buf.alpha.registry.v1alpha1.Enum.enum_options:type_name -> buf.alpha.registry.v1alpha1.EnumOptions + 32, // 23: buf.alpha.registry.v1alpha1.EnumValue.options:type_name -> buf.alpha.registry.v1alpha1.FieldLiteral + 24, // 24: buf.alpha.registry.v1alpha1.EnumValue.enum_value_options:type_name -> buf.alpha.registry.v1alpha1.EnumValueOptions + 27, // 25: buf.alpha.registry.v1alpha1.Message.fields:type_name -> buf.alpha.registry.v1alpha1.MessageField + 15, // 26: buf.alpha.registry.v1alpha1.Message.location:type_name -> buf.alpha.registry.v1alpha1.Location + 30, // 27: buf.alpha.registry.v1alpha1.Message.message_extensions:type_name -> buf.alpha.registry.v1alpha1.Field + 32, // 28: buf.alpha.registry.v1alpha1.Message.options:type_name -> buf.alpha.registry.v1alpha1.FieldLiteral + 28, // 29: buf.alpha.registry.v1alpha1.Message.message_options:type_name -> buf.alpha.registry.v1alpha1.MessageOptions + 30, // 30: buf.alpha.registry.v1alpha1.MessageField.field:type_name -> buf.alpha.registry.v1alpha1.Field + 29, // 31: buf.alpha.registry.v1alpha1.MessageField.oneof:type_name -> buf.alpha.registry.v1alpha1.Oneof + 30, // 32: buf.alpha.registry.v1alpha1.Oneof.fields:type_name -> buf.alpha.registry.v1alpha1.Field + 32, // 33: buf.alpha.registry.v1alpha1.Oneof.options:type_name -> buf.alpha.registry.v1alpha1.FieldLiteral + 36, // 34: buf.alpha.registry.v1alpha1.Field.map_entry:type_name -> buf.alpha.registry.v1alpha1.MapEntry + 25, // 35: buf.alpha.registry.v1alpha1.Field.import_module_ref:type_name -> buf.alpha.registry.v1alpha1.ImportModuleRef + 32, // 36: buf.alpha.registry.v1alpha1.Field.options:type_name -> buf.alpha.registry.v1alpha1.FieldLiteral + 31, // 37: buf.alpha.registry.v1alpha1.Field.field_options:type_name -> buf.alpha.registry.v1alpha1.FieldOptions + 0, // 38: buf.alpha.registry.v1alpha1.FieldLiteral.field_type:type_name -> buf.alpha.registry.v1alpha1.FieldType + 35, // 39: buf.alpha.registry.v1alpha1.FieldLiteral.value:type_name -> buf.alpha.registry.v1alpha1.LiteralValue + 25, // 40: buf.alpha.registry.v1alpha1.FieldLiteral.import_module_ref:type_name -> buf.alpha.registry.v1alpha1.ImportModuleRef + 32, // 41: buf.alpha.registry.v1alpha1.MessageLiteral.fields:type_name -> buf.alpha.registry.v1alpha1.FieldLiteral + 35, // 42: buf.alpha.registry.v1alpha1.ArrayLiteral.elements:type_name -> buf.alpha.registry.v1alpha1.LiteralValue + 34, // 43: buf.alpha.registry.v1alpha1.LiteralValue.array_value:type_name -> buf.alpha.registry.v1alpha1.ArrayLiteral + 33, // 44: buf.alpha.registry.v1alpha1.LiteralValue.message_value:type_name -> buf.alpha.registry.v1alpha1.MessageLiteral + 25, // 45: buf.alpha.registry.v1alpha1.MapEntry.value_import_module_ref:type_name -> buf.alpha.registry.v1alpha1.ImportModuleRef + 15, // 46: buf.alpha.registry.v1alpha1.FileExtension.location:type_name -> buf.alpha.registry.v1alpha1.Location + 30, // 47: buf.alpha.registry.v1alpha1.FileExtension.fields:type_name -> buf.alpha.registry.v1alpha1.Field + 1, // 48: buf.alpha.registry.v1alpha1.DocService.GetSourceDirectoryInfo:input_type -> buf.alpha.registry.v1alpha1.GetSourceDirectoryInfoRequest + 4, // 49: buf.alpha.registry.v1alpha1.DocService.GetSourceFile:input_type -> buf.alpha.registry.v1alpha1.GetSourceFileRequest + 6, // 50: buf.alpha.registry.v1alpha1.DocService.GetModulePackages:input_type -> buf.alpha.registry.v1alpha1.GetModulePackagesRequest + 9, // 51: buf.alpha.registry.v1alpha1.DocService.GetModuleDocumentation:input_type -> buf.alpha.registry.v1alpha1.GetModuleDocumentationRequest + 12, // 52: buf.alpha.registry.v1alpha1.DocService.GetPackageDocumentation:input_type -> buf.alpha.registry.v1alpha1.GetPackageDocumentationRequest + 2, // 53: buf.alpha.registry.v1alpha1.DocService.GetSourceDirectoryInfo:output_type -> buf.alpha.registry.v1alpha1.GetSourceDirectoryInfoResponse + 5, // 54: buf.alpha.registry.v1alpha1.DocService.GetSourceFile:output_type -> buf.alpha.registry.v1alpha1.GetSourceFileResponse + 7, // 55: buf.alpha.registry.v1alpha1.DocService.GetModulePackages:output_type -> buf.alpha.registry.v1alpha1.GetModulePackagesResponse + 10, // 56: buf.alpha.registry.v1alpha1.DocService.GetModuleDocumentation:output_type -> buf.alpha.registry.v1alpha1.GetModuleDocumentationResponse + 13, // 57: buf.alpha.registry.v1alpha1.DocService.GetPackageDocumentation:output_type -> buf.alpha.registry.v1alpha1.GetPackageDocumentationResponse + 53, // [53:58] is the sub-list for method output_type + 48, // [48:53] is the sub-list for method input_type + 48, // [48:48] is the sub-list for extension type_name + 48, // [48:48] is the sub-list for extension extendee + 0, // [0:48] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_doc_proto_init() } +func file_buf_alpha_registry_v1alpha1_doc_proto_init() { + if File_buf_alpha_registry_v1alpha1_doc_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[26].OneofWrappers = []any{ + (*messageField_Field)(nil), + (*messageField_Oneof)(nil), + } + file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[30].OneofWrappers = []any{} + file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes[34].OneofWrappers = []any{ + (*literalValue_StringValue)(nil), + (*literalValue_IntValue)(nil), + (*literalValue_UintValue)(nil), + (*literalValue_DoubleValue)(nil), + (*literalValue_BoolValue)(nil), + (*literalValue_EnumValueNameValue)(nil), + (*literalValue_ArrayValue)(nil), + (*literalValue_MessageValue)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_doc_proto_rawDesc, + NumEnums: 1, + NumMessages: 37, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_doc_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_doc_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_doc_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_doc_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_doc_proto = out.File + file_buf_alpha_registry_v1alpha1_doc_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_doc_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_doc_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/download.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/download.pb.go index 6792f4e2f4..a06ba9f040 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/download.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/download.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/download.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -37,7 +38,7 @@ const ( // DownloadRequest specifies the module to download. type DownloadRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // Optional reference (if unspecified, will use the repository's default_branch). @@ -71,11 +72,6 @@ func (x *DownloadRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DownloadRequest.ProtoReflect.Descriptor instead. -func (*DownloadRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_download_proto_rawDescGZIP(), []int{0} -} - func (x *DownloadRequest) GetOwner() string { if x != nil { return x.Owner @@ -97,9 +93,40 @@ func (x *DownloadRequest) GetReference() string { return "" } +func (x *DownloadRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *DownloadRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *DownloadRequest) SetReference(v string) { + x.Reference = v +} + +type DownloadRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string +} + +func (b0 DownloadRequest_builder) Build() *DownloadRequest { + m0 := &DownloadRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Reference = b.Reference + return m0 +} + // DownloadResponse contains the remote module. type DownloadResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Module *v1alpha1.Module `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -130,11 +157,6 @@ func (x *DownloadResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DownloadResponse.ProtoReflect.Descriptor instead. -func (*DownloadResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_download_proto_rawDescGZIP(), []int{1} -} - func (x *DownloadResponse) GetModule() *v1alpha1.Module { if x != nil { return x.Module @@ -142,9 +164,38 @@ func (x *DownloadResponse) GetModule() *v1alpha1.Module { return nil } +func (x *DownloadResponse) SetModule(v *v1alpha1.Module) { + x.Module = v +} + +func (x *DownloadResponse) HasModule() bool { + if x == nil { + return false + } + return x.Module != nil +} + +func (x *DownloadResponse) ClearModule() { + x.Module = nil +} + +type DownloadResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Module *v1alpha1.Module +} + +func (b0 DownloadResponse_builder) Build() *DownloadResponse { + m0 := &DownloadResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Module = b.Module + return m0 +} + // DownloadManifestAndBlobsRequest specifies the module to download. type DownloadManifestAndBlobsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // Optional reference (if unspecified, will use the repository's default_branch). @@ -178,11 +229,6 @@ func (x *DownloadManifestAndBlobsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DownloadManifestAndBlobsRequest.ProtoReflect.Descriptor instead. -func (*DownloadManifestAndBlobsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_download_proto_rawDescGZIP(), []int{2} -} - func (x *DownloadManifestAndBlobsRequest) GetOwner() string { if x != nil { return x.Owner @@ -204,9 +250,40 @@ func (x *DownloadManifestAndBlobsRequest) GetReference() string { return "" } +func (x *DownloadManifestAndBlobsRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *DownloadManifestAndBlobsRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *DownloadManifestAndBlobsRequest) SetReference(v string) { + x.Reference = v +} + +type DownloadManifestAndBlobsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string +} + +func (b0 DownloadManifestAndBlobsRequest_builder) Build() *DownloadManifestAndBlobsRequest { + m0 := &DownloadManifestAndBlobsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Reference = b.Reference + return m0 +} + // DownloadManifestAndBlobsResponse is the returned resolved remote module. type DownloadManifestAndBlobsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // manifest is the manifest of the module's content. // The content of the manifest blob is a text encoding of an ordered list of unique paths, each path encoded as: // @@ -247,11 +324,6 @@ func (x *DownloadManifestAndBlobsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DownloadManifestAndBlobsResponse.ProtoReflect.Descriptor instead. -func (*DownloadManifestAndBlobsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_download_proto_rawDescGZIP(), []int{3} -} - func (x *DownloadManifestAndBlobsResponse) GetManifest() *v1alpha1.Blob { if x != nil { return x.Manifest @@ -266,6 +338,50 @@ func (x *DownloadManifestAndBlobsResponse) GetBlobs() []*v1alpha1.Blob { return nil } +func (x *DownloadManifestAndBlobsResponse) SetManifest(v *v1alpha1.Blob) { + x.Manifest = v +} + +func (x *DownloadManifestAndBlobsResponse) SetBlobs(v []*v1alpha1.Blob) { + x.Blobs = v +} + +func (x *DownloadManifestAndBlobsResponse) HasManifest() bool { + if x == nil { + return false + } + return x.Manifest != nil +} + +func (x *DownloadManifestAndBlobsResponse) ClearManifest() { + x.Manifest = nil +} + +type DownloadManifestAndBlobsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // manifest is the manifest of the module's content. + // The content of the manifest blob is a text encoding of an ordered list of unique paths, each path encoded as: + // + // :[SP][SP][LF] + // + // The only supported digest type is 'shake256'. The shake256 digest consists of 64 bytes of lowercase hex + // encoded output of SHAKE256. + Manifest *v1alpha1.Blob + // blobs is a set of blobs that closes on the module's manifest to form the + // complete module's content. + Blobs []*v1alpha1.Blob +} + +func (b0 DownloadManifestAndBlobsResponse_builder) Build() *DownloadManifestAndBlobsResponse { + m0 := &DownloadManifestAndBlobsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Manifest = b.Manifest + x.Blobs = b.Blobs + return m0 +} + var File_buf_alpha_registry_v1alpha1_download_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_download_proto_rawDesc = []byte{ @@ -343,18 +459,6 @@ var file_buf_alpha_registry_v1alpha1_download_proto_rawDesc = []byte{ 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_download_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_download_proto_rawDescData = file_buf_alpha_registry_v1alpha1_download_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_download_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_download_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_download_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_download_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_download_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_download_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_buf_alpha_registry_v1alpha1_download_proto_goTypes = []any{ (*DownloadRequest)(nil), // 0: buf.alpha.registry.v1alpha1.DownloadRequest diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/download_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/download_protoopaque.pb.go new file mode 100644 index 0000000000..deacae91db --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/download_protoopaque.pb.go @@ -0,0 +1,500 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/download.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + v1alpha1 "github.com/bufbuild/buf/private/gen/proto/go/buf/alpha/module/v1alpha1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// DownloadRequest specifies the module to download. +type DownloadRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DownloadRequest) Reset() { + *x = DownloadRequest{} + mi := &file_buf_alpha_registry_v1alpha1_download_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DownloadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DownloadRequest) ProtoMessage() {} + +func (x *DownloadRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_download_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DownloadRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *DownloadRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *DownloadRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *DownloadRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *DownloadRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *DownloadRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +type DownloadRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string +} + +func (b0 DownloadRequest_builder) Build() *DownloadRequest { + m0 := &DownloadRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Reference = b.Reference + return m0 +} + +// DownloadResponse contains the remote module. +type DownloadResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Module *v1alpha1.Module `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DownloadResponse) Reset() { + *x = DownloadResponse{} + mi := &file_buf_alpha_registry_v1alpha1_download_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DownloadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DownloadResponse) ProtoMessage() {} + +func (x *DownloadResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_download_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DownloadResponse) GetModule() *v1alpha1.Module { + if x != nil { + return x.xxx_hidden_Module + } + return nil +} + +func (x *DownloadResponse) SetModule(v *v1alpha1.Module) { + x.xxx_hidden_Module = v +} + +func (x *DownloadResponse) HasModule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Module != nil +} + +func (x *DownloadResponse) ClearModule() { + x.xxx_hidden_Module = nil +} + +type DownloadResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Module *v1alpha1.Module +} + +func (b0 DownloadResponse_builder) Build() *DownloadResponse { + m0 := &DownloadResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Module = b.Module + return m0 +} + +// DownloadManifestAndBlobsRequest specifies the module to download. +type DownloadManifestAndBlobsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DownloadManifestAndBlobsRequest) Reset() { + *x = DownloadManifestAndBlobsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_download_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DownloadManifestAndBlobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DownloadManifestAndBlobsRequest) ProtoMessage() {} + +func (x *DownloadManifestAndBlobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_download_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DownloadManifestAndBlobsRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *DownloadManifestAndBlobsRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *DownloadManifestAndBlobsRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *DownloadManifestAndBlobsRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *DownloadManifestAndBlobsRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *DownloadManifestAndBlobsRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +type DownloadManifestAndBlobsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string +} + +func (b0 DownloadManifestAndBlobsRequest_builder) Build() *DownloadManifestAndBlobsRequest { + m0 := &DownloadManifestAndBlobsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Reference = b.Reference + return m0 +} + +// DownloadManifestAndBlobsResponse is the returned resolved remote module. +type DownloadManifestAndBlobsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Manifest *v1alpha1.Blob `protobuf:"bytes,1,opt,name=manifest,proto3" json:"manifest,omitempty"` + xxx_hidden_Blobs *[]*v1alpha1.Blob `protobuf:"bytes,2,rep,name=blobs,proto3" json:"blobs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DownloadManifestAndBlobsResponse) Reset() { + *x = DownloadManifestAndBlobsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_download_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DownloadManifestAndBlobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DownloadManifestAndBlobsResponse) ProtoMessage() {} + +func (x *DownloadManifestAndBlobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_download_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DownloadManifestAndBlobsResponse) GetManifest() *v1alpha1.Blob { + if x != nil { + return x.xxx_hidden_Manifest + } + return nil +} + +func (x *DownloadManifestAndBlobsResponse) GetBlobs() []*v1alpha1.Blob { + if x != nil { + if x.xxx_hidden_Blobs != nil { + return *x.xxx_hidden_Blobs + } + } + return nil +} + +func (x *DownloadManifestAndBlobsResponse) SetManifest(v *v1alpha1.Blob) { + x.xxx_hidden_Manifest = v +} + +func (x *DownloadManifestAndBlobsResponse) SetBlobs(v []*v1alpha1.Blob) { + x.xxx_hidden_Blobs = &v +} + +func (x *DownloadManifestAndBlobsResponse) HasManifest() bool { + if x == nil { + return false + } + return x.xxx_hidden_Manifest != nil +} + +func (x *DownloadManifestAndBlobsResponse) ClearManifest() { + x.xxx_hidden_Manifest = nil +} + +type DownloadManifestAndBlobsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // manifest is the manifest of the module's content. + // The content of the manifest blob is a text encoding of an ordered list of unique paths, each path encoded as: + // + // :[SP][SP][LF] + // + // The only supported digest type is 'shake256'. The shake256 digest consists of 64 bytes of lowercase hex + // encoded output of SHAKE256. + Manifest *v1alpha1.Blob + // blobs is a set of blobs that closes on the module's manifest to form the + // complete module's content. + Blobs []*v1alpha1.Blob +} + +func (b0 DownloadManifestAndBlobsResponse_builder) Build() *DownloadManifestAndBlobsResponse { + m0 := &DownloadManifestAndBlobsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Manifest = b.Manifest + x.xxx_hidden_Blobs = &b.Blobs + return m0 +} + +var File_buf_alpha_registry_v1alpha1_download_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_download_proto_rawDesc = []byte{ + 0x0a, 0x2a, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x64, 0x6f, + 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x65, 0x0a, 0x0f, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x4d, 0x0a, 0x10, 0x44, 0x6f, 0x77, 0x6e, + 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, + 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x22, 0x75, 0x0a, 0x1f, 0x44, 0x6f, 0x77, 0x6e, 0x6c, + 0x6f, 0x61, 0x64, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x42, 0x6c, + 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x96, + 0x01, 0x0a, 0x20, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x61, 0x6e, 0x69, 0x66, + 0x65, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x08, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, + 0x12, 0x35, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x62, + 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x32, 0x9e, 0x02, 0x0a, 0x0f, 0x44, 0x6f, 0x77, 0x6e, + 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x08, 0x44, + 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x9c, 0x01, 0x0a, 0x18, 0x44, 0x6f, + 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x41, 0x6e, + 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x12, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x61, 0x6e, + 0x69, 0x66, 0x65, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x61, 0x6e, 0x69, 0x66, + 0x65, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x9a, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0d, 0x44, 0x6f, + 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, + 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, + 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, + 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_download_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_buf_alpha_registry_v1alpha1_download_proto_goTypes = []any{ + (*DownloadRequest)(nil), // 0: buf.alpha.registry.v1alpha1.DownloadRequest + (*DownloadResponse)(nil), // 1: buf.alpha.registry.v1alpha1.DownloadResponse + (*DownloadManifestAndBlobsRequest)(nil), // 2: buf.alpha.registry.v1alpha1.DownloadManifestAndBlobsRequest + (*DownloadManifestAndBlobsResponse)(nil), // 3: buf.alpha.registry.v1alpha1.DownloadManifestAndBlobsResponse + (*v1alpha1.Module)(nil), // 4: buf.alpha.module.v1alpha1.Module + (*v1alpha1.Blob)(nil), // 5: buf.alpha.module.v1alpha1.Blob +} +var file_buf_alpha_registry_v1alpha1_download_proto_depIdxs = []int32{ + 4, // 0: buf.alpha.registry.v1alpha1.DownloadResponse.module:type_name -> buf.alpha.module.v1alpha1.Module + 5, // 1: buf.alpha.registry.v1alpha1.DownloadManifestAndBlobsResponse.manifest:type_name -> buf.alpha.module.v1alpha1.Blob + 5, // 2: buf.alpha.registry.v1alpha1.DownloadManifestAndBlobsResponse.blobs:type_name -> buf.alpha.module.v1alpha1.Blob + 0, // 3: buf.alpha.registry.v1alpha1.DownloadService.Download:input_type -> buf.alpha.registry.v1alpha1.DownloadRequest + 2, // 4: buf.alpha.registry.v1alpha1.DownloadService.DownloadManifestAndBlobs:input_type -> buf.alpha.registry.v1alpha1.DownloadManifestAndBlobsRequest + 1, // 5: buf.alpha.registry.v1alpha1.DownloadService.Download:output_type -> buf.alpha.registry.v1alpha1.DownloadResponse + 3, // 6: buf.alpha.registry.v1alpha1.DownloadService.DownloadManifestAndBlobs:output_type -> buf.alpha.registry.v1alpha1.DownloadManifestAndBlobsResponse + 5, // [5:7] is the sub-list for method output_type + 3, // [3:5] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_download_proto_init() } +func file_buf_alpha_registry_v1alpha1_download_proto_init() { + if File_buf_alpha_registry_v1alpha1_download_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_download_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_download_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_download_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_download_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_download_proto = out.File + file_buf_alpha_registry_v1alpha1_download_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_download_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_download_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/git_metadata.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/git_metadata.pb.go index a0a9d4188c..9f0c712396 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/git_metadata.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/git_metadata.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/git_metadata.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -37,7 +38,7 @@ const ( // GitIdentity is a Git user identity, typically either an author or a committer. type GitIdentity struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Name is the name of the Git identity. This is not the BSR user's username. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Email is the email of the Git identity. This is not the BSR user's email. @@ -73,11 +74,6 @@ func (x *GitIdentity) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GitIdentity.ProtoReflect.Descriptor instead. -func (*GitIdentity) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDescGZIP(), []int{0} -} - func (x *GitIdentity) GetName() string { if x != nil { return x.Name @@ -99,11 +95,55 @@ func (x *GitIdentity) GetTime() *timestamppb.Timestamp { return nil } +func (x *GitIdentity) SetName(v string) { + x.Name = v +} + +func (x *GitIdentity) SetEmail(v string) { + x.Email = v +} + +func (x *GitIdentity) SetTime(v *timestamppb.Timestamp) { + x.Time = v +} + +func (x *GitIdentity) HasTime() bool { + if x == nil { + return false + } + return x.Time != nil +} + +func (x *GitIdentity) ClearTime() { + x.Time = nil +} + +type GitIdentity_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Name is the name of the Git identity. This is not the BSR user's username. + Name string + // Email is the email of the Git identity. This is not the BSR user's email. + Email string + // Time is the time at which this identity was captured. + Time *timestamppb.Timestamp +} + +func (b0 GitIdentity_builder) Build() *GitIdentity { + m0 := &GitIdentity{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Email = b.Email + x.Time = b.Time + return m0 +} + // GitCommitInformation is the information associated with a Git commit. // This always includes the hash. // The author and/or committer user identities are included when available. type GitCommitInformation struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Hash is the SHA1 hash of the git commit. Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // Author is metadata associated with the author of the git commit. @@ -141,11 +181,6 @@ func (x *GitCommitInformation) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GitCommitInformation.ProtoReflect.Descriptor instead. -func (*GitCommitInformation) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDescGZIP(), []int{1} -} - func (x *GitCommitInformation) GetHash() string { if x != nil { return x.Hash @@ -167,6 +202,63 @@ func (x *GitCommitInformation) GetCommitter() *GitIdentity { return nil } +func (x *GitCommitInformation) SetHash(v string) { + x.Hash = v +} + +func (x *GitCommitInformation) SetAuthor(v *GitIdentity) { + x.Author = v +} + +func (x *GitCommitInformation) SetCommitter(v *GitIdentity) { + x.Committer = v +} + +func (x *GitCommitInformation) HasAuthor() bool { + if x == nil { + return false + } + return x.Author != nil +} + +func (x *GitCommitInformation) HasCommitter() bool { + if x == nil { + return false + } + return x.Committer != nil +} + +func (x *GitCommitInformation) ClearAuthor() { + x.Author = nil +} + +func (x *GitCommitInformation) ClearCommitter() { + x.Committer = nil +} + +type GitCommitInformation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Hash is the SHA1 hash of the git commit. + Hash string + // Author is metadata associated with the author of the git commit. + // This may not always be available, so it is not always populated. + Author *GitIdentity + // Committer is the metadata associated with the committer of the git commit. + // This may not always be available, so it is not always populated. + Committer *GitIdentity +} + +func (b0 GitCommitInformation_builder) Build() *GitCommitInformation { + m0 := &GitCommitInformation{} + b, x := &b0, m0 + _, _ = b, x + x.Hash = b.Hash + x.Author = b.Author + x.Committer = b.Committer + return m0 +} + var File_buf_alpha_registry_v1alpha1_git_metadata_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDesc = []byte{ @@ -216,18 +308,6 @@ var file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDesc = []byte{ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDescData = file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_git_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_buf_alpha_registry_v1alpha1_git_metadata_proto_goTypes = []any{ (*GitIdentity)(nil), // 0: buf.alpha.registry.v1alpha1.GitIdentity diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/git_metadata_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/git_metadata_protoopaque.pb.go new file mode 100644 index 0000000000..a9da17b53a --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/git_metadata_protoopaque.pb.go @@ -0,0 +1,343 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/git_metadata.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// GitIdentity is a Git user identity, typically either an author or a committer. +type GitIdentity struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + xxx_hidden_Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GitIdentity) Reset() { + *x = GitIdentity{} + mi := &file_buf_alpha_registry_v1alpha1_git_metadata_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GitIdentity) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GitIdentity) ProtoMessage() {} + +func (x *GitIdentity) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_git_metadata_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GitIdentity) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GitIdentity) GetEmail() string { + if x != nil { + return x.xxx_hidden_Email + } + return "" +} + +func (x *GitIdentity) GetTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_Time + } + return nil +} + +func (x *GitIdentity) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *GitIdentity) SetEmail(v string) { + x.xxx_hidden_Email = v +} + +func (x *GitIdentity) SetTime(v *timestamppb.Timestamp) { + x.xxx_hidden_Time = v +} + +func (x *GitIdentity) HasTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_Time != nil +} + +func (x *GitIdentity) ClearTime() { + x.xxx_hidden_Time = nil +} + +type GitIdentity_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Name is the name of the Git identity. This is not the BSR user's username. + Name string + // Email is the email of the Git identity. This is not the BSR user's email. + Email string + // Time is the time at which this identity was captured. + Time *timestamppb.Timestamp +} + +func (b0 GitIdentity_builder) Build() *GitIdentity { + m0 := &GitIdentity{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Email = b.Email + x.xxx_hidden_Time = b.Time + return m0 +} + +// GitCommitInformation is the information associated with a Git commit. +// This always includes the hash. +// The author and/or committer user identities are included when available. +type GitCommitInformation struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + xxx_hidden_Author *GitIdentity `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` + xxx_hidden_Committer *GitIdentity `protobuf:"bytes,3,opt,name=committer,proto3" json:"committer,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GitCommitInformation) Reset() { + *x = GitCommitInformation{} + mi := &file_buf_alpha_registry_v1alpha1_git_metadata_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GitCommitInformation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GitCommitInformation) ProtoMessage() {} + +func (x *GitCommitInformation) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_git_metadata_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GitCommitInformation) GetHash() string { + if x != nil { + return x.xxx_hidden_Hash + } + return "" +} + +func (x *GitCommitInformation) GetAuthor() *GitIdentity { + if x != nil { + return x.xxx_hidden_Author + } + return nil +} + +func (x *GitCommitInformation) GetCommitter() *GitIdentity { + if x != nil { + return x.xxx_hidden_Committer + } + return nil +} + +func (x *GitCommitInformation) SetHash(v string) { + x.xxx_hidden_Hash = v +} + +func (x *GitCommitInformation) SetAuthor(v *GitIdentity) { + x.xxx_hidden_Author = v +} + +func (x *GitCommitInformation) SetCommitter(v *GitIdentity) { + x.xxx_hidden_Committer = v +} + +func (x *GitCommitInformation) HasAuthor() bool { + if x == nil { + return false + } + return x.xxx_hidden_Author != nil +} + +func (x *GitCommitInformation) HasCommitter() bool { + if x == nil { + return false + } + return x.xxx_hidden_Committer != nil +} + +func (x *GitCommitInformation) ClearAuthor() { + x.xxx_hidden_Author = nil +} + +func (x *GitCommitInformation) ClearCommitter() { + x.xxx_hidden_Committer = nil +} + +type GitCommitInformation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Hash is the SHA1 hash of the git commit. + Hash string + // Author is metadata associated with the author of the git commit. + // This may not always be available, so it is not always populated. + Author *GitIdentity + // Committer is the metadata associated with the committer of the git commit. + // This may not always be available, so it is not always populated. + Committer *GitIdentity +} + +func (b0 GitCommitInformation_builder) Build() *GitCommitInformation { + m0 := &GitCommitInformation{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Hash = b.Hash + x.xxx_hidden_Author = b.Author + x.xxx_hidden_Committer = b.Committer + return m0 +} + +var File_buf_alpha_registry_v1alpha1_git_metadata_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDesc = []byte{ + 0x0a, 0x2e, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x67, 0x69, + 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x67, + 0x0a, 0x0b, 0x47, 0x69, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x14, 0x47, 0x69, 0x74, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x68, 0x61, 0x73, 0x68, 0x12, 0x40, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x47, 0x69, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x06, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x46, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x69, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x42, 0x9d, + 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x42, 0x10, 0x47, 0x69, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, + 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_git_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_buf_alpha_registry_v1alpha1_git_metadata_proto_goTypes = []any{ + (*GitIdentity)(nil), // 0: buf.alpha.registry.v1alpha1.GitIdentity + (*GitCommitInformation)(nil), // 1: buf.alpha.registry.v1alpha1.GitCommitInformation + (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp +} +var file_buf_alpha_registry_v1alpha1_git_metadata_proto_depIdxs = []int32{ + 2, // 0: buf.alpha.registry.v1alpha1.GitIdentity.time:type_name -> google.protobuf.Timestamp + 0, // 1: buf.alpha.registry.v1alpha1.GitCommitInformation.author:type_name -> buf.alpha.registry.v1alpha1.GitIdentity + 0, // 2: buf.alpha.registry.v1alpha1.GitCommitInformation.committer:type_name -> buf.alpha.registry.v1alpha1.GitIdentity + 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 + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_git_metadata_proto_init() } +func file_buf_alpha_registry_v1alpha1_git_metadata_proto_init() { + if File_buf_alpha_registry_v1alpha1_git_metadata_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_git_metadata_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_git_metadata_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_git_metadata_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_git_metadata_proto = out.File + file_buf_alpha_registry_v1alpha1_git_metadata_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_git_metadata_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_git_metadata_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/github.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/github.pb.go index 9f9b335667..bf45f0c2a9 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/github.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/github.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/github.proto +//go:build !protoopaque + package registryv1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -35,7 +36,7 @@ const ( ) type GithubAppConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -66,11 +67,6 @@ func (x *GithubAppConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GithubAppConfig.ProtoReflect.Descriptor instead. -func (*GithubAppConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_github_proto_rawDescGZIP(), []int{0} -} - func (x *GithubAppConfig) GetAppId() string { if x != nil { return x.AppId @@ -78,8 +74,26 @@ func (x *GithubAppConfig) GetAppId() string { return "" } +func (x *GithubAppConfig) SetAppId(v string) { + x.AppId = v +} + +type GithubAppConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AppId string +} + +func (b0 GithubAppConfig_builder) Build() *GithubAppConfig { + m0 := &GithubAppConfig{} + b, x := &b0, m0 + _, _ = b, x + x.AppId = b.AppId + return m0 +} + type GetGithubAppConfigRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -109,13 +123,20 @@ func (x *GetGithubAppConfigRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetGithubAppConfigRequest.ProtoReflect.Descriptor instead. -func (*GetGithubAppConfigRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_github_proto_rawDescGZIP(), []int{1} +type GetGithubAppConfigRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetGithubAppConfigRequest_builder) Build() *GetGithubAppConfigRequest { + m0 := &GetGithubAppConfigRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetGithubAppConfigResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` AppConfig *GithubAppConfig `protobuf:"bytes,1,opt,name=app_config,json=appConfig,proto3" json:"app_config,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -146,11 +167,6 @@ func (x *GetGithubAppConfigResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetGithubAppConfigResponse.ProtoReflect.Descriptor instead. -func (*GetGithubAppConfigResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_github_proto_rawDescGZIP(), []int{2} -} - func (x *GetGithubAppConfigResponse) GetAppConfig() *GithubAppConfig { if x != nil { return x.AppConfig @@ -158,6 +174,35 @@ func (x *GetGithubAppConfigResponse) GetAppConfig() *GithubAppConfig { return nil } +func (x *GetGithubAppConfigResponse) SetAppConfig(v *GithubAppConfig) { + x.AppConfig = v +} + +func (x *GetGithubAppConfigResponse) HasAppConfig() bool { + if x == nil { + return false + } + return x.AppConfig != nil +} + +func (x *GetGithubAppConfigResponse) ClearAppConfig() { + x.AppConfig = nil +} + +type GetGithubAppConfigResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AppConfig *GithubAppConfig +} + +func (b0 GetGithubAppConfigResponse_builder) Build() *GetGithubAppConfigResponse { + m0 := &GetGithubAppConfigResponse{} + b, x := &b0, m0 + _, _ = b, x + x.AppConfig = b.AppConfig + return m0 +} + var File_buf_alpha_registry_v1alpha1_github_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_github_proto_rawDesc = []byte{ @@ -207,18 +252,6 @@ var file_buf_alpha_registry_v1alpha1_github_proto_rawDesc = []byte{ 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_github_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_github_proto_rawDescData = file_buf_alpha_registry_v1alpha1_github_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_github_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_github_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_github_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_github_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_github_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_github_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_buf_alpha_registry_v1alpha1_github_proto_goTypes = []any{ (*GithubAppConfig)(nil), // 0: buf.alpha.registry.v1alpha1.GithubAppConfig diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/github_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/github_protoopaque.pb.go new file mode 100644 index 0000000000..999f848ef2 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/github_protoopaque.pb.go @@ -0,0 +1,295 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/github.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type GithubAppConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GithubAppConfig) Reset() { + *x = GithubAppConfig{} + mi := &file_buf_alpha_registry_v1alpha1_github_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GithubAppConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GithubAppConfig) ProtoMessage() {} + +func (x *GithubAppConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_github_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GithubAppConfig) GetAppId() string { + if x != nil { + return x.xxx_hidden_AppId + } + return "" +} + +func (x *GithubAppConfig) SetAppId(v string) { + x.xxx_hidden_AppId = v +} + +type GithubAppConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AppId string +} + +func (b0 GithubAppConfig_builder) Build() *GithubAppConfig { + m0 := &GithubAppConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AppId = b.AppId + return m0 +} + +type GetGithubAppConfigRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetGithubAppConfigRequest) Reset() { + *x = GetGithubAppConfigRequest{} + mi := &file_buf_alpha_registry_v1alpha1_github_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetGithubAppConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetGithubAppConfigRequest) ProtoMessage() {} + +func (x *GetGithubAppConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_github_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type GetGithubAppConfigRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetGithubAppConfigRequest_builder) Build() *GetGithubAppConfigRequest { + m0 := &GetGithubAppConfigRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetGithubAppConfigResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AppConfig *GithubAppConfig `protobuf:"bytes,1,opt,name=app_config,json=appConfig,proto3" json:"app_config,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetGithubAppConfigResponse) Reset() { + *x = GetGithubAppConfigResponse{} + mi := &file_buf_alpha_registry_v1alpha1_github_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetGithubAppConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetGithubAppConfigResponse) ProtoMessage() {} + +func (x *GetGithubAppConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_github_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetGithubAppConfigResponse) GetAppConfig() *GithubAppConfig { + if x != nil { + return x.xxx_hidden_AppConfig + } + return nil +} + +func (x *GetGithubAppConfigResponse) SetAppConfig(v *GithubAppConfig) { + x.xxx_hidden_AppConfig = v +} + +func (x *GetGithubAppConfigResponse) HasAppConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_AppConfig != nil +} + +func (x *GetGithubAppConfigResponse) ClearAppConfig() { + x.xxx_hidden_AppConfig = nil +} + +type GetGithubAppConfigResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AppConfig *GithubAppConfig +} + +func (b0 GetGithubAppConfigResponse_builder) Build() *GetGithubAppConfigResponse { + m0 := &GetGithubAppConfigResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AppConfig = b.AppConfig + return m0 +} + +var File_buf_alpha_registry_v1alpha1_github_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_github_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x22, 0x28, 0x0a, 0x0f, 0x47, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x41, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, + 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, + 0x64, 0x22, 0x1b, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x70, + 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x69, + 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x70, 0x70, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0a, + 0x61, 0x70, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x09, + 0x61, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0x9c, 0x01, 0x0a, 0x0d, 0x47, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x12, + 0x47, 0x65, 0x74, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x41, 0x70, 0x70, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x41, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x98, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0b, 0x47, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, + 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, + 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, + 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, + 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, + 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_github_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_buf_alpha_registry_v1alpha1_github_proto_goTypes = []any{ + (*GithubAppConfig)(nil), // 0: buf.alpha.registry.v1alpha1.GithubAppConfig + (*GetGithubAppConfigRequest)(nil), // 1: buf.alpha.registry.v1alpha1.GetGithubAppConfigRequest + (*GetGithubAppConfigResponse)(nil), // 2: buf.alpha.registry.v1alpha1.GetGithubAppConfigResponse +} +var file_buf_alpha_registry_v1alpha1_github_proto_depIdxs = []int32{ + 0, // 0: buf.alpha.registry.v1alpha1.GetGithubAppConfigResponse.app_config:type_name -> buf.alpha.registry.v1alpha1.GithubAppConfig + 1, // 1: buf.alpha.registry.v1alpha1.GithubService.GetGithubAppConfig:input_type -> buf.alpha.registry.v1alpha1.GetGithubAppConfigRequest + 2, // 2: buf.alpha.registry.v1alpha1.GithubService.GetGithubAppConfig:output_type -> buf.alpha.registry.v1alpha1.GetGithubAppConfigResponse + 2, // [2:3] is the sub-list for method output_type + 1, // [1:2] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_github_proto_init() } +func file_buf_alpha_registry_v1alpha1_github_proto_init() { + if File_buf_alpha_registry_v1alpha1_github_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_github_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_github_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_github_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_github_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_github_proto = out.File + file_buf_alpha_registry_v1alpha1_github_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_github_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_github_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/image.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/image.pb.go index f6c966a6c5..af4a5f0d8b 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/image.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/image.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/image.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -90,13 +91,8 @@ func (x ImageMask) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use ImageMask.Descriptor instead. -func (ImageMask) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_image_proto_rawDescGZIP(), []int{0} -} - type GetImageRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // Optional reference (if unspecified, will use the repository's default_branch). @@ -149,11 +145,6 @@ func (x *GetImageRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetImageRequest.ProtoReflect.Descriptor instead. -func (*GetImageRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_image_proto_rawDescGZIP(), []int{0} -} - func (x *GetImageRequest) GetOwner() string { if x != nil { return x.Owner @@ -203,8 +194,78 @@ func (x *GetImageRequest) GetIncludeMask() []ImageMask { return nil } +func (x *GetImageRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *GetImageRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *GetImageRequest) SetReference(v string) { + x.Reference = v +} + +func (x *GetImageRequest) SetExcludeImports(v bool) { + x.ExcludeImports = v +} + +func (x *GetImageRequest) SetExcludeSourceInfo(v bool) { + x.ExcludeSourceInfo = v +} + +func (x *GetImageRequest) SetTypes(v []string) { + x.Types = v +} + +func (x *GetImageRequest) SetIncludeMask(v []ImageMask) { + x.IncludeMask = v +} + +type GetImageRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string + // Exclude files from imported buf modules in this image. + ExcludeImports bool + // Exclude source_code_info fields from each ImageFile. + ExcludeSourceInfo bool + // When specified the returned image will only contain the necessary files and + // descriptors in those files to describe these types. Accepts messages, enums + // and services. All types must be defined in the buf module, types in + // dependencies are not accepted. + // + // At this time specifying `types` requires `exclude_source_info` to be set to + // true. + Types []string + // When not empty, the returned image's files will only include + // *DescriptorProto fields for the elements specified here. The masks are + // applied without regard for dependencies between types. For example, if + // `IMAGE_MASK_MESSAGES` is specified without `IMAGE_MASK_ENUMS` the resulting + // image will NOT contain enum definitions even if they are referenced from + // message fields. + IncludeMask []ImageMask +} + +func (b0 GetImageRequest_builder) Build() *GetImageRequest { + m0 := &GetImageRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Reference = b.Reference + x.ExcludeImports = b.ExcludeImports + x.ExcludeSourceInfo = b.ExcludeSourceInfo + x.Types = b.Types + x.IncludeMask = b.IncludeMask + return m0 +} + type GetImageResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Image *v1.Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -235,11 +296,6 @@ func (x *GetImageResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetImageResponse.ProtoReflect.Descriptor instead. -func (*GetImageResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_image_proto_rawDescGZIP(), []int{1} -} - func (x *GetImageResponse) GetImage() *v1.Image { if x != nil { return x.Image @@ -247,6 +303,35 @@ func (x *GetImageResponse) GetImage() *v1.Image { return nil } +func (x *GetImageResponse) SetImage(v *v1.Image) { + x.Image = v +} + +func (x *GetImageResponse) HasImage() bool { + if x == nil { + return false + } + return x.Image != nil +} + +func (x *GetImageResponse) ClearImage() { + x.Image = nil +} + +type GetImageResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Image *v1.Image +} + +func (b0 GetImageResponse_builder) Build() *GetImageResponse { + m0 := &GetImageResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Image = b.Image + return m0 +} + var File_buf_alpha_registry_v1alpha1_image_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_image_proto_rawDesc = []byte{ @@ -314,18 +399,6 @@ var file_buf_alpha_registry_v1alpha1_image_proto_rawDesc = []byte{ 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_image_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_image_proto_rawDescData = file_buf_alpha_registry_v1alpha1_image_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_image_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_image_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_image_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_image_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_image_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_image_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_buf_alpha_registry_v1alpha1_image_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_buf_alpha_registry_v1alpha1_image_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/image_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/image_protoopaque.pb.go new file mode 100644 index 0000000000..609fb3d9ef --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/image_protoopaque.pb.go @@ -0,0 +1,430 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/image.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + v1 "github.com/bufbuild/buf/private/gen/proto/go/buf/alpha/image/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// ImageMask is used in GetImageRequest to specify which parts of an image +// should be masked in responses. +type ImageMask int32 + +const ( + ImageMask_IMAGE_MASK_UNSPECIFIED ImageMask = 0 + // IMAGE_MASK_MESSAGES refers to ImageFile's `google.protobuf.DescriptorProto + // message_type` field. + ImageMask_IMAGE_MASK_MESSAGES ImageMask = 1 + // IMAGE_MASK_ENUMS refers to ImageFile's `google.protobuf.EnumDescriptorProto + // enum_type` field. + ImageMask_IMAGE_MASK_ENUMS ImageMask = 2 + // IMAGE_MASK_SERVICES refers to ImageFile's + // `google.protobuf.ServiceDescriptorProto service` field. + ImageMask_IMAGE_MASK_SERVICES ImageMask = 3 +) + +// Enum value maps for ImageMask. +var ( + ImageMask_name = map[int32]string{ + 0: "IMAGE_MASK_UNSPECIFIED", + 1: "IMAGE_MASK_MESSAGES", + 2: "IMAGE_MASK_ENUMS", + 3: "IMAGE_MASK_SERVICES", + } + ImageMask_value = map[string]int32{ + "IMAGE_MASK_UNSPECIFIED": 0, + "IMAGE_MASK_MESSAGES": 1, + "IMAGE_MASK_ENUMS": 2, + "IMAGE_MASK_SERVICES": 3, + } +) + +func (x ImageMask) Enum() *ImageMask { + p := new(ImageMask) + *p = x + return p +} + +func (x ImageMask) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ImageMask) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_image_proto_enumTypes[0].Descriptor() +} + +func (ImageMask) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_image_proto_enumTypes[0] +} + +func (x ImageMask) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type GetImageRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + xxx_hidden_ExcludeImports bool `protobuf:"varint,4,opt,name=exclude_imports,json=excludeImports,proto3" json:"exclude_imports,omitempty"` + xxx_hidden_ExcludeSourceInfo bool `protobuf:"varint,5,opt,name=exclude_source_info,json=excludeSourceInfo,proto3" json:"exclude_source_info,omitempty"` + xxx_hidden_Types []string `protobuf:"bytes,6,rep,name=types,proto3" json:"types,omitempty"` + xxx_hidden_IncludeMask []ImageMask `protobuf:"varint,7,rep,packed,name=include_mask,json=includeMask,proto3,enum=buf.alpha.registry.v1alpha1.ImageMask" json:"include_mask,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetImageRequest) Reset() { + *x = GetImageRequest{} + mi := &file_buf_alpha_registry_v1alpha1_image_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetImageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetImageRequest) ProtoMessage() {} + +func (x *GetImageRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_image_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetImageRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetImageRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *GetImageRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *GetImageRequest) GetExcludeImports() bool { + if x != nil { + return x.xxx_hidden_ExcludeImports + } + return false +} + +func (x *GetImageRequest) GetExcludeSourceInfo() bool { + if x != nil { + return x.xxx_hidden_ExcludeSourceInfo + } + return false +} + +func (x *GetImageRequest) GetTypes() []string { + if x != nil { + return x.xxx_hidden_Types + } + return nil +} + +func (x *GetImageRequest) GetIncludeMask() []ImageMask { + if x != nil { + return x.xxx_hidden_IncludeMask + } + return nil +} + +func (x *GetImageRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetImageRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *GetImageRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +func (x *GetImageRequest) SetExcludeImports(v bool) { + x.xxx_hidden_ExcludeImports = v +} + +func (x *GetImageRequest) SetExcludeSourceInfo(v bool) { + x.xxx_hidden_ExcludeSourceInfo = v +} + +func (x *GetImageRequest) SetTypes(v []string) { + x.xxx_hidden_Types = v +} + +func (x *GetImageRequest) SetIncludeMask(v []ImageMask) { + x.xxx_hidden_IncludeMask = v +} + +type GetImageRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string + // Exclude files from imported buf modules in this image. + ExcludeImports bool + // Exclude source_code_info fields from each ImageFile. + ExcludeSourceInfo bool + // When specified the returned image will only contain the necessary files and + // descriptors in those files to describe these types. Accepts messages, enums + // and services. All types must be defined in the buf module, types in + // dependencies are not accepted. + // + // At this time specifying `types` requires `exclude_source_info` to be set to + // true. + Types []string + // When not empty, the returned image's files will only include + // *DescriptorProto fields for the elements specified here. The masks are + // applied without regard for dependencies between types. For example, if + // `IMAGE_MASK_MESSAGES` is specified without `IMAGE_MASK_ENUMS` the resulting + // image will NOT contain enum definitions even if they are referenced from + // message fields. + IncludeMask []ImageMask +} + +func (b0 GetImageRequest_builder) Build() *GetImageRequest { + m0 := &GetImageRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Reference = b.Reference + x.xxx_hidden_ExcludeImports = b.ExcludeImports + x.xxx_hidden_ExcludeSourceInfo = b.ExcludeSourceInfo + x.xxx_hidden_Types = b.Types + x.xxx_hidden_IncludeMask = b.IncludeMask + return m0 +} + +type GetImageResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Image *v1.Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetImageResponse) Reset() { + *x = GetImageResponse{} + mi := &file_buf_alpha_registry_v1alpha1_image_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetImageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetImageResponse) ProtoMessage() {} + +func (x *GetImageResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_image_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetImageResponse) GetImage() *v1.Image { + if x != nil { + return x.xxx_hidden_Image + } + return nil +} + +func (x *GetImageResponse) SetImage(v *v1.Image) { + x.xxx_hidden_Image = v +} + +func (x *GetImageResponse) HasImage() bool { + if x == nil { + return false + } + return x.xxx_hidden_Image != nil +} + +func (x *GetImageResponse) ClearImage() { + x.xxx_hidden_Image = nil +} + +type GetImageResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Image *v1.Image +} + +func (b0 GetImageResponse_builder) Build() *GetImageResponse { + m0 := &GetImageResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Image = b.Image + return m0 +} + +var File_buf_alpha_registry_v1alpha1_image_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_image_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1e, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9f, 0x02, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6d, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x27, + 0x0a, 0x0f, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, + 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x78, 0x63, 0x6c, 0x75, + 0x64, 0x65, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x49, 0x0a, + 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x07, 0x20, + 0x03, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0b, 0x69, 0x6e, 0x63, + 0x6c, 0x75, 0x64, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x43, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x49, + 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x05, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2a, 0x6f, 0x0a, + 0x09, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x1a, 0x0a, 0x16, 0x49, 0x4d, + 0x41, 0x47, 0x45, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, + 0x4d, 0x41, 0x53, 0x4b, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x53, 0x10, 0x01, 0x12, + 0x14, 0x0a, 0x10, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x5f, 0x45, 0x4e, + 0x55, 0x4d, 0x53, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x4d, + 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x53, 0x10, 0x03, 0x32, 0x7c, + 0x0a, 0x0c, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, + 0x0a, 0x08, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x2c, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x97, 0x02, 0x0a, + 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x42, 0x0a, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, + 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, + 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, + 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, + 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, + 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, + 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, + 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_image_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_buf_alpha_registry_v1alpha1_image_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_buf_alpha_registry_v1alpha1_image_proto_goTypes = []any{ + (ImageMask)(0), // 0: buf.alpha.registry.v1alpha1.ImageMask + (*GetImageRequest)(nil), // 1: buf.alpha.registry.v1alpha1.GetImageRequest + (*GetImageResponse)(nil), // 2: buf.alpha.registry.v1alpha1.GetImageResponse + (*v1.Image)(nil), // 3: buf.alpha.image.v1.Image +} +var file_buf_alpha_registry_v1alpha1_image_proto_depIdxs = []int32{ + 0, // 0: buf.alpha.registry.v1alpha1.GetImageRequest.include_mask:type_name -> buf.alpha.registry.v1alpha1.ImageMask + 3, // 1: buf.alpha.registry.v1alpha1.GetImageResponse.image:type_name -> buf.alpha.image.v1.Image + 1, // 2: buf.alpha.registry.v1alpha1.ImageService.GetImage:input_type -> buf.alpha.registry.v1alpha1.GetImageRequest + 2, // 3: buf.alpha.registry.v1alpha1.ImageService.GetImage:output_type -> buf.alpha.registry.v1alpha1.GetImageResponse + 3, // [3:4] is the sub-list for method output_type + 2, // [2:3] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_image_proto_init() } +func file_buf_alpha_registry_v1alpha1_image_proto_init() { + if File_buf_alpha_registry_v1alpha1_image_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_image_proto_rawDesc, + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_image_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_image_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_image_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_image_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_image_proto = out.File + file_buf_alpha_registry_v1alpha1_image_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_image_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_image_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/jsonschema.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/jsonschema.pb.go index def1e1ab6f..e3fb8bdde9 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/jsonschema.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/jsonschema.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/jsonschema.proto +//go:build !protoopaque + package registryv1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -35,7 +36,7 @@ const ( ) type GetJSONSchemaRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // Optional reference (if unspecified, will use the repository's default_branch). @@ -73,11 +74,6 @@ func (x *GetJSONSchemaRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetJSONSchemaRequest.ProtoReflect.Descriptor instead. -func (*GetJSONSchemaRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDescGZIP(), []int{0} -} - func (x *GetJSONSchemaRequest) GetOwner() string { if x != nil { return x.Owner @@ -106,8 +102,48 @@ func (x *GetJSONSchemaRequest) GetTypeName() string { return "" } +func (x *GetJSONSchemaRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *GetJSONSchemaRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *GetJSONSchemaRequest) SetReference(v string) { + x.Reference = v +} + +func (x *GetJSONSchemaRequest) SetTypeName(v string) { + x.TypeName = v +} + +type GetJSONSchemaRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string + // A fully qualified name of the type to generate a JSONSchema for, e.g. + // "pkg.foo.Bar". The type needs to resolve in the referenced module or any of + // its dependencies. Currently only messages types are supported. + TypeName string +} + +func (b0 GetJSONSchemaRequest_builder) Build() *GetJSONSchemaRequest { + m0 := &GetJSONSchemaRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Reference = b.Reference + x.TypeName = b.TypeName + return m0 +} + type GetJSONSchemaResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // A json schema representing what the json encoded payload for type_name // should conform to. This schema is an approximation to be used by editors // for validation and autocompletion, not a lossless representation of the @@ -142,11 +178,6 @@ func (x *GetJSONSchemaResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetJSONSchemaResponse.ProtoReflect.Descriptor instead. -func (*GetJSONSchemaResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDescGZIP(), []int{1} -} - func (x *GetJSONSchemaResponse) GetJsonSchema() []byte { if x != nil { return x.JsonSchema @@ -154,6 +185,31 @@ func (x *GetJSONSchemaResponse) GetJsonSchema() []byte { return nil } +func (x *GetJSONSchemaResponse) SetJsonSchema(v []byte) { + if v == nil { + v = []byte{} + } + x.JsonSchema = v +} + +type GetJSONSchemaResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A json schema representing what the json encoded payload for type_name + // should conform to. This schema is an approximation to be used by editors + // for validation and autocompletion, not a lossless representation of the + // type's descriptor. + JsonSchema []byte +} + +func (b0 GetJSONSchemaResponse_builder) Build() *GetJSONSchemaResponse { + m0 := &GetJSONSchemaResponse{} + b, x := &b0, m0 + _, _ = b, x + x.JsonSchema = b.JsonSchema + return m0 +} + var File_buf_alpha_registry_v1alpha1_jsonschema_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDesc = []byte{ @@ -204,18 +260,6 @@ var file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDesc = []byte{ 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDescData = file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_jsonschema_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_buf_alpha_registry_v1alpha1_jsonschema_proto_goTypes = []any{ (*GetJSONSchemaRequest)(nil), // 0: buf.alpha.registry.v1alpha1.GetJSONSchemaRequest diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/jsonschema_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/jsonschema_protoopaque.pb.go new file mode 100644 index 0000000000..f236033acb --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/jsonschema_protoopaque.pb.go @@ -0,0 +1,293 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/jsonschema.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type GetJSONSchemaRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + xxx_hidden_TypeName string `protobuf:"bytes,4,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetJSONSchemaRequest) Reset() { + *x = GetJSONSchemaRequest{} + mi := &file_buf_alpha_registry_v1alpha1_jsonschema_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetJSONSchemaRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetJSONSchemaRequest) ProtoMessage() {} + +func (x *GetJSONSchemaRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_jsonschema_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetJSONSchemaRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetJSONSchemaRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *GetJSONSchemaRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *GetJSONSchemaRequest) GetTypeName() string { + if x != nil { + return x.xxx_hidden_TypeName + } + return "" +} + +func (x *GetJSONSchemaRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetJSONSchemaRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *GetJSONSchemaRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +func (x *GetJSONSchemaRequest) SetTypeName(v string) { + x.xxx_hidden_TypeName = v +} + +type GetJSONSchemaRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string + // A fully qualified name of the type to generate a JSONSchema for, e.g. + // "pkg.foo.Bar". The type needs to resolve in the referenced module or any of + // its dependencies. Currently only messages types are supported. + TypeName string +} + +func (b0 GetJSONSchemaRequest_builder) Build() *GetJSONSchemaRequest { + m0 := &GetJSONSchemaRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Reference = b.Reference + x.xxx_hidden_TypeName = b.TypeName + return m0 +} + +type GetJSONSchemaResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_JsonSchema []byte `protobuf:"bytes,1,opt,name=json_schema,json=jsonSchema,proto3" json:"json_schema,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetJSONSchemaResponse) Reset() { + *x = GetJSONSchemaResponse{} + mi := &file_buf_alpha_registry_v1alpha1_jsonschema_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetJSONSchemaResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetJSONSchemaResponse) ProtoMessage() {} + +func (x *GetJSONSchemaResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_jsonschema_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetJSONSchemaResponse) GetJsonSchema() []byte { + if x != nil { + return x.xxx_hidden_JsonSchema + } + return nil +} + +func (x *GetJSONSchemaResponse) SetJsonSchema(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_JsonSchema = v +} + +type GetJSONSchemaResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A json schema representing what the json encoded payload for type_name + // should conform to. This schema is an approximation to be used by editors + // for validation and autocompletion, not a lossless representation of the + // type's descriptor. + JsonSchema []byte +} + +func (b0 GetJSONSchemaResponse_builder) Build() *GetJSONSchemaResponse { + m0 := &GetJSONSchemaResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_JsonSchema = b.JsonSchema + return m0 +} + +var File_buf_alpha_registry_v1alpha1_jsonschema_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDesc = []byte{ + 0x0a, 0x2c, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6a, 0x73, + 0x6f, 0x6e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x22, 0x87, 0x01, 0x0a, 0x14, + 0x47, 0x65, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x38, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4a, 0x53, 0x4f, 0x4e, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, + 0x0a, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x6a, 0x73, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x32, + 0x90, 0x01, 0x0a, 0x11, 0x4a, 0x53, 0x4f, 0x4e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7b, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4a, 0x53, 0x4f, 0x4e, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, + 0x02, 0x01, 0x42, 0x9c, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0f, 0x4a, 0x73, 0x6f, 0x6e, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, + 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, + 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, + 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, + 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_jsonschema_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_buf_alpha_registry_v1alpha1_jsonschema_proto_goTypes = []any{ + (*GetJSONSchemaRequest)(nil), // 0: buf.alpha.registry.v1alpha1.GetJSONSchemaRequest + (*GetJSONSchemaResponse)(nil), // 1: buf.alpha.registry.v1alpha1.GetJSONSchemaResponse +} +var file_buf_alpha_registry_v1alpha1_jsonschema_proto_depIdxs = []int32{ + 0, // 0: buf.alpha.registry.v1alpha1.JSONSchemaService.GetJSONSchema:input_type -> buf.alpha.registry.v1alpha1.GetJSONSchemaRequest + 1, // 1: buf.alpha.registry.v1alpha1.JSONSchemaService.GetJSONSchema:output_type -> buf.alpha.registry.v1alpha1.GetJSONSchemaResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_jsonschema_proto_init() } +func file_buf_alpha_registry_v1alpha1_jsonschema_proto_init() { + if File_buf_alpha_registry_v1alpha1_jsonschema_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_jsonschema_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_jsonschema_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_jsonschema_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_jsonschema_proto = out.File + file_buf_alpha_registry_v1alpha1_jsonschema_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_jsonschema_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_jsonschema_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/module.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/module.pb.go index 4f05aba2c7..04255ddc45 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/module.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/module.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/module.proto +//go:build !protoopaque + package registryv1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -38,7 +39,7 @@ const ( // // It does not include a remote. type LocalModuleReference struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // either branch or commit @@ -72,11 +73,6 @@ func (x *LocalModuleReference) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LocalModuleReference.ProtoReflect.Descriptor instead. -func (*LocalModuleReference) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_module_proto_rawDescGZIP(), []int{0} -} - func (x *LocalModuleReference) GetOwner() string { if x != nil { return x.Owner @@ -98,11 +94,42 @@ func (x *LocalModuleReference) GetReference() string { return "" } +func (x *LocalModuleReference) SetOwner(v string) { + x.Owner = v +} + +func (x *LocalModuleReference) SetRepository(v string) { + x.Repository = v +} + +func (x *LocalModuleReference) SetReference(v string) { + x.Reference = v +} + +type LocalModuleReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // either branch or commit + Reference string +} + +func (b0 LocalModuleReference_builder) Build() *LocalModuleReference { + m0 := &LocalModuleReference{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Reference = b.Reference + return m0 +} + // LocalModulePin is a local module pin. // // It does not include a remote. type LocalModulePin struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` Commit string `protobuf:"bytes,4,opt,name=commit,proto3" json:"commit,omitempty"` @@ -137,11 +164,6 @@ func (x *LocalModulePin) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LocalModulePin.ProtoReflect.Descriptor instead. -func (*LocalModulePin) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_module_proto_rawDescGZIP(), []int{1} -} - func (x *LocalModulePin) GetOwner() string { if x != nil { return x.Owner @@ -170,6 +192,43 @@ func (x *LocalModulePin) GetManifestDigest() string { return "" } +func (x *LocalModulePin) SetOwner(v string) { + x.Owner = v +} + +func (x *LocalModulePin) SetRepository(v string) { + x.Repository = v +} + +func (x *LocalModulePin) SetCommit(v string) { + x.Commit = v +} + +func (x *LocalModulePin) SetManifestDigest(v string) { + x.ManifestDigest = v +} + +type LocalModulePin_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + Commit string + // Module's manifest digest. Replacement for previous b1/b3 digests. + ManifestDigest string +} + +func (b0 LocalModulePin_builder) Build() *LocalModulePin { + m0 := &LocalModulePin{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Commit = b.Commit + x.ManifestDigest = b.ManifestDigest + return m0 +} + var File_buf_alpha_registry_v1alpha1_module_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_module_proto_rawDesc = []byte{ @@ -218,18 +277,6 @@ var file_buf_alpha_registry_v1alpha1_module_proto_rawDesc = []byte{ 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_module_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_module_proto_rawDescData = file_buf_alpha_registry_v1alpha1_module_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_module_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_module_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_module_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_module_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_buf_alpha_registry_v1alpha1_module_proto_goTypes = []any{ (*LocalModuleReference)(nil), // 0: buf.alpha.registry.v1alpha1.LocalModuleReference diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/module_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/module_protoopaque.pb.go new file mode 100644 index 0000000000..4ccf8aeb54 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/module_protoopaque.pb.go @@ -0,0 +1,314 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/module.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// LocalModuleReference is a local module reference. +// +// It does not include a remote. +type LocalModuleReference struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LocalModuleReference) Reset() { + *x = LocalModuleReference{} + mi := &file_buf_alpha_registry_v1alpha1_module_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LocalModuleReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LocalModuleReference) ProtoMessage() {} + +func (x *LocalModuleReference) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_module_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *LocalModuleReference) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *LocalModuleReference) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *LocalModuleReference) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *LocalModuleReference) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *LocalModuleReference) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *LocalModuleReference) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +type LocalModuleReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // either branch or commit + Reference string +} + +func (b0 LocalModuleReference_builder) Build() *LocalModuleReference { + m0 := &LocalModuleReference{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Reference = b.Reference + return m0 +} + +// LocalModulePin is a local module pin. +// +// It does not include a remote. +type LocalModulePin struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Commit string `protobuf:"bytes,4,opt,name=commit,proto3" json:"commit,omitempty"` + xxx_hidden_ManifestDigest string `protobuf:"bytes,6,opt,name=manifest_digest,json=manifestDigest,proto3" json:"manifest_digest,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LocalModulePin) Reset() { + *x = LocalModulePin{} + mi := &file_buf_alpha_registry_v1alpha1_module_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LocalModulePin) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LocalModulePin) ProtoMessage() {} + +func (x *LocalModulePin) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_module_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *LocalModulePin) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *LocalModulePin) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *LocalModulePin) GetCommit() string { + if x != nil { + return x.xxx_hidden_Commit + } + return "" +} + +func (x *LocalModulePin) GetManifestDigest() string { + if x != nil { + return x.xxx_hidden_ManifestDigest + } + return "" +} + +func (x *LocalModulePin) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *LocalModulePin) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *LocalModulePin) SetCommit(v string) { + x.xxx_hidden_Commit = v +} + +func (x *LocalModulePin) SetManifestDigest(v string) { + x.xxx_hidden_ManifestDigest = v +} + +type LocalModulePin_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + Commit string + // Module's manifest digest. Replacement for previous b1/b3 digests. + ManifestDigest string +} + +func (b0 LocalModulePin_builder) Build() *LocalModulePin { + m0 := &LocalModulePin{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Commit = b.Commit + x.xxx_hidden_ManifestDigest = b.ManifestDigest + return m0 +} + +var File_buf_alpha_registry_v1alpha1_module_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_module_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x22, 0x6a, 0x0a, 0x14, 0x4c, 0x6f, 0x63, 0x61, 0x6c, + 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x22, 0xc8, 0x01, 0x0a, 0x0e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, + 0x5f, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6d, + 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x4a, 0x04, 0x08, + 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x4a, + 0x04, 0x08, 0x08, 0x10, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x0b, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x06, 0x64, 0x69, 0x67, 0x65, + 0x73, 0x74, 0x52, 0x0a, 0x64, 0x72, 0x61, 0x66, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x98, + 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, + 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, + 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, + 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, + 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, + 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, + 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var file_buf_alpha_registry_v1alpha1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_buf_alpha_registry_v1alpha1_module_proto_goTypes = []any{ + (*LocalModuleReference)(nil), // 0: buf.alpha.registry.v1alpha1.LocalModuleReference + (*LocalModulePin)(nil), // 1: buf.alpha.registry.v1alpha1.LocalModulePin +} +var file_buf_alpha_registry_v1alpha1_module_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_module_proto_init() } +func file_buf_alpha_registry_v1alpha1_module_proto_init() { + if File_buf_alpha_registry_v1alpha1_module_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_module_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_module_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_module_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_module_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_module_proto = out.File + file_buf_alpha_registry_v1alpha1_module_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_module_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_module_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/organization.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/organization.pb.go index 6b37bfcfb5..070e7e136e 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/organization.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/organization.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/organization.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -36,7 +37,7 @@ const ( ) type Organization struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // primary key, unique, immutable Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // immutable @@ -81,11 +82,6 @@ func (x *Organization) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Organization.ProtoReflect.Descriptor instead. -func (*Organization) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{0} -} - func (x *Organization) GetId() string { if x != nil { return x.Id @@ -135,10 +131,94 @@ func (x *Organization) GetVerificationStatus() VerificationStatus { return VerificationStatus_VERIFICATION_STATUS_UNSPECIFIED } +func (x *Organization) SetId(v string) { + x.Id = v +} + +func (x *Organization) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *Organization) SetUpdateTime(v *timestamppb.Timestamp) { + x.UpdateTime = v +} + +func (x *Organization) SetName(v string) { + x.Name = v +} + +func (x *Organization) SetDescription(v string) { + x.Description = v +} + +func (x *Organization) SetUrl(v string) { + x.Url = v +} + +func (x *Organization) SetVerificationStatus(v VerificationStatus) { + x.VerificationStatus = v +} + +func (x *Organization) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *Organization) HasUpdateTime() bool { + if x == nil { + return false + } + return x.UpdateTime != nil +} + +func (x *Organization) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *Organization) ClearUpdateTime() { + x.UpdateTime = nil +} + +type Organization_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique, immutable + Id string + // immutable + CreateTime *timestamppb.Timestamp + // mutable + UpdateTime *timestamppb.Timestamp + // unique, mutable + Name string + // description is the user configurable description of the organization. + Description string + // url is the user configurable URL in the description of the organization, + // always included the scheme and will not have a #fragment suffix. + Url string + // verification status of the organization, configurable by server admin. + VerificationStatus VerificationStatus +} + +func (b0 Organization_builder) Build() *Organization { + m0 := &Organization{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.CreateTime = b.CreateTime + x.UpdateTime = b.UpdateTime + x.Name = b.Name + x.Description = b.Description + x.Url = b.Url + x.VerificationStatus = b.VerificationStatus + return m0 +} + // OrganizationMembership is a nested structure that contains // the organization and user membership information on that organization. type OrganizationMembership struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"` OrganizationRole OrganizationRole `protobuf:"varint,2,opt,name=organization_role,json=organizationRole,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"organization_role,omitempty"` unknownFields protoimpl.UnknownFields @@ -170,11 +250,6 @@ func (x *OrganizationMembership) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OrganizationMembership.ProtoReflect.Descriptor instead. -func (*OrganizationMembership) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{1} -} - func (x *OrganizationMembership) GetOrganization() *Organization { if x != nil { return x.Organization @@ -189,8 +264,43 @@ func (x *OrganizationMembership) GetOrganizationRole() OrganizationRole { return OrganizationRole_ORGANIZATION_ROLE_UNSPECIFIED } +func (x *OrganizationMembership) SetOrganization(v *Organization) { + x.Organization = v +} + +func (x *OrganizationMembership) SetOrganizationRole(v OrganizationRole) { + x.OrganizationRole = v +} + +func (x *OrganizationMembership) HasOrganization() bool { + if x == nil { + return false + } + return x.Organization != nil +} + +func (x *OrganizationMembership) ClearOrganization() { + x.Organization = nil +} + +type OrganizationMembership_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Organization *Organization + OrganizationRole OrganizationRole +} + +func (b0 OrganizationMembership_builder) Build() *OrganizationMembership { + m0 := &OrganizationMembership{} + b, x := &b0, m0 + _, _ = b, x + x.Organization = b.Organization + x.OrganizationRole = b.OrganizationRole + return m0 +} + type GetOrganizationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -221,11 +331,6 @@ func (x *GetOrganizationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetOrganizationRequest.ProtoReflect.Descriptor instead. -func (*GetOrganizationRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{2} -} - func (x *GetOrganizationRequest) GetId() string { if x != nil { return x.Id @@ -233,8 +338,26 @@ func (x *GetOrganizationRequest) GetId() string { return "" } +func (x *GetOrganizationRequest) SetId(v string) { + x.Id = v +} + +type GetOrganizationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 GetOrganizationRequest_builder) Build() *GetOrganizationRequest { + m0 := &GetOrganizationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + type GetOrganizationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -265,11 +388,6 @@ func (x *GetOrganizationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetOrganizationResponse.ProtoReflect.Descriptor instead. -func (*GetOrganizationResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{3} -} - func (x *GetOrganizationResponse) GetOrganization() *Organization { if x != nil { return x.Organization @@ -277,8 +395,37 @@ func (x *GetOrganizationResponse) GetOrganization() *Organization { return nil } +func (x *GetOrganizationResponse) SetOrganization(v *Organization) { + x.Organization = v +} + +func (x *GetOrganizationResponse) HasOrganization() bool { + if x == nil { + return false + } + return x.Organization != nil +} + +func (x *GetOrganizationResponse) ClearOrganization() { + x.Organization = nil +} + +type GetOrganizationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Organization *Organization +} + +func (b0 GetOrganizationResponse_builder) Build() *GetOrganizationResponse { + m0 := &GetOrganizationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Organization = b.Organization + return m0 +} + type GetOrganizationByNameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -309,11 +456,6 @@ func (x *GetOrganizationByNameRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetOrganizationByNameRequest.ProtoReflect.Descriptor instead. -func (*GetOrganizationByNameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{4} -} - func (x *GetOrganizationByNameRequest) GetName() string { if x != nil { return x.Name @@ -321,8 +463,26 @@ func (x *GetOrganizationByNameRequest) GetName() string { return "" } +func (x *GetOrganizationByNameRequest) SetName(v string) { + x.Name = v +} + +type GetOrganizationByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string +} + +func (b0 GetOrganizationByNameRequest_builder) Build() *GetOrganizationByNameRequest { + m0 := &GetOrganizationByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + return m0 +} + type GetOrganizationByNameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -353,11 +513,6 @@ func (x *GetOrganizationByNameResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetOrganizationByNameResponse.ProtoReflect.Descriptor instead. -func (*GetOrganizationByNameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{5} -} - func (x *GetOrganizationByNameResponse) GetOrganization() *Organization { if x != nil { return x.Organization @@ -365,8 +520,37 @@ func (x *GetOrganizationByNameResponse) GetOrganization() *Organization { return nil } +func (x *GetOrganizationByNameResponse) SetOrganization(v *Organization) { + x.Organization = v +} + +func (x *GetOrganizationByNameResponse) HasOrganization() bool { + if x == nil { + return false + } + return x.Organization != nil +} + +func (x *GetOrganizationByNameResponse) ClearOrganization() { + x.Organization = nil +} + +type GetOrganizationByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Organization *Organization +} + +func (b0 GetOrganizationByNameResponse_builder) Build() *GetOrganizationByNameResponse { + m0 := &GetOrganizationByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Organization = b.Organization + return m0 +} + type ListOrganizationsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The first page is returned if this is empty. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` @@ -400,11 +584,6 @@ func (x *ListOrganizationsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListOrganizationsRequest.ProtoReflect.Descriptor instead. -func (*ListOrganizationsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{6} -} - func (x *ListOrganizationsRequest) GetPageSize() uint32 { if x != nil { return x.PageSize @@ -426,8 +605,39 @@ func (x *ListOrganizationsRequest) GetReverse() bool { return false } +func (x *ListOrganizationsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListOrganizationsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListOrganizationsRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListOrganizationsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListOrganizationsRequest_builder) Build() *ListOrganizationsRequest { + m0 := &ListOrganizationsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListOrganizationsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Organizations []*Organization `protobuf:"bytes,1,rep,name=organizations,proto3" json:"organizations,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -460,11 +670,6 @@ func (x *ListOrganizationsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListOrganizationsResponse.ProtoReflect.Descriptor instead. -func (*ListOrganizationsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{7} -} - func (x *ListOrganizationsResponse) GetOrganizations() []*Organization { if x != nil { return x.Organizations @@ -479,8 +684,33 @@ func (x *ListOrganizationsResponse) GetNextPageToken() string { return "" } +func (x *ListOrganizationsResponse) SetOrganizations(v []*Organization) { + x.Organizations = v +} + +func (x *ListOrganizationsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListOrganizationsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Organizations []*Organization + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListOrganizationsResponse_builder) Build() *ListOrganizationsResponse { + m0 := &ListOrganizationsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Organizations = b.Organizations + x.NextPageToken = b.NextPageToken + return m0 +} + type ListUserOrganizationsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the user whose organizations should be listed. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` @@ -516,11 +746,6 @@ func (x *ListUserOrganizationsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListUserOrganizationsRequest.ProtoReflect.Descriptor instead. -func (*ListUserOrganizationsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{8} -} - func (x *ListUserOrganizationsRequest) GetUserId() string { if x != nil { return x.UserId @@ -549,8 +774,46 @@ func (x *ListUserOrganizationsRequest) GetReverse() bool { return false } +func (x *ListUserOrganizationsRequest) SetUserId(v string) { + x.UserId = v +} + +func (x *ListUserOrganizationsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListUserOrganizationsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListUserOrganizationsRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListUserOrganizationsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the user whose organizations should be listed. + UserId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListUserOrganizationsRequest_builder) Build() *ListUserOrganizationsRequest { + m0 := &ListUserOrganizationsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.UserId = b.UserId + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListUserOrganizationsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Organizations []*OrganizationMembership `protobuf:"bytes,1,rep,name=organizations,proto3" json:"organizations,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -583,11 +846,6 @@ func (x *ListUserOrganizationsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListUserOrganizationsResponse.ProtoReflect.Descriptor instead. -func (*ListUserOrganizationsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{9} -} - func (x *ListUserOrganizationsResponse) GetOrganizations() []*OrganizationMembership { if x != nil { return x.Organizations @@ -602,8 +860,33 @@ func (x *ListUserOrganizationsResponse) GetNextPageToken() string { return "" } +func (x *ListUserOrganizationsResponse) SetOrganizations(v []*OrganizationMembership) { + x.Organizations = v +} + +func (x *ListUserOrganizationsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListUserOrganizationsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Organizations []*OrganizationMembership + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListUserOrganizationsResponse_builder) Build() *ListUserOrganizationsResponse { + m0 := &ListUserOrganizationsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Organizations = b.Organizations + x.NextPageToken = b.NextPageToken + return m0 +} + type GetUserOrganizationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the user whose membership should be retrieved. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The ID of the organization. @@ -637,11 +920,6 @@ func (x *GetUserOrganizationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUserOrganizationRequest.ProtoReflect.Descriptor instead. -func (*GetUserOrganizationRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{10} -} - func (x *GetUserOrganizationRequest) GetUserId() string { if x != nil { return x.UserId @@ -656,8 +934,34 @@ func (x *GetUserOrganizationRequest) GetOrganizationId() string { return "" } +func (x *GetUserOrganizationRequest) SetUserId(v string) { + x.UserId = v +} + +func (x *GetUserOrganizationRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +type GetUserOrganizationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the user whose membership should be retrieved. + UserId string + // The ID of the organization. + OrganizationId string +} + +func (b0 GetUserOrganizationRequest_builder) Build() *GetUserOrganizationRequest { + m0 := &GetUserOrganizationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.UserId = b.UserId + x.OrganizationId = b.OrganizationId + return m0 +} + type GetUserOrganizationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` OrganizationMembership *OrganizationMembership `protobuf:"bytes,1,opt,name=organization_membership,json=organizationMembership,proto3" json:"organization_membership,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -688,11 +992,6 @@ func (x *GetUserOrganizationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUserOrganizationResponse.ProtoReflect.Descriptor instead. -func (*GetUserOrganizationResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{11} -} - func (x *GetUserOrganizationResponse) GetOrganizationMembership() *OrganizationMembership { if x != nil { return x.OrganizationMembership @@ -700,8 +999,37 @@ func (x *GetUserOrganizationResponse) GetOrganizationMembership() *OrganizationM return nil } +func (x *GetUserOrganizationResponse) SetOrganizationMembership(v *OrganizationMembership) { + x.OrganizationMembership = v +} + +func (x *GetUserOrganizationResponse) HasOrganizationMembership() bool { + if x == nil { + return false + } + return x.OrganizationMembership != nil +} + +func (x *GetUserOrganizationResponse) ClearOrganizationMembership() { + x.OrganizationMembership = nil +} + +type GetUserOrganizationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + OrganizationMembership *OrganizationMembership +} + +func (b0 GetUserOrganizationResponse_builder) Build() *GetUserOrganizationResponse { + m0 := &GetUserOrganizationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationMembership = b.OrganizationMembership + return m0 +} + type CreateOrganizationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Must be unique across organizations. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields @@ -733,11 +1061,6 @@ func (x *CreateOrganizationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateOrganizationRequest.ProtoReflect.Descriptor instead. -func (*CreateOrganizationRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{12} -} - func (x *CreateOrganizationRequest) GetName() string { if x != nil { return x.Name @@ -745,8 +1068,27 @@ func (x *CreateOrganizationRequest) GetName() string { return "" } +func (x *CreateOrganizationRequest) SetName(v string) { + x.Name = v +} + +type CreateOrganizationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Must be unique across organizations. + Name string +} + +func (b0 CreateOrganizationRequest_builder) Build() *CreateOrganizationRequest { + m0 := &CreateOrganizationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + return m0 +} + type CreateOrganizationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -777,11 +1119,6 @@ func (x *CreateOrganizationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateOrganizationResponse.ProtoReflect.Descriptor instead. -func (*CreateOrganizationResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{13} -} - func (x *CreateOrganizationResponse) GetOrganization() *Organization { if x != nil { return x.Organization @@ -789,8 +1126,37 @@ func (x *CreateOrganizationResponse) GetOrganization() *Organization { return nil } +func (x *CreateOrganizationResponse) SetOrganization(v *Organization) { + x.Organization = v +} + +func (x *CreateOrganizationResponse) HasOrganization() bool { + if x == nil { + return false + } + return x.Organization != nil +} + +func (x *CreateOrganizationResponse) ClearOrganization() { + x.Organization = nil +} + +type CreateOrganizationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Organization *Organization +} + +func (b0 CreateOrganizationResponse_builder) Build() *CreateOrganizationResponse { + m0 := &CreateOrganizationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Organization = b.Organization + return m0 +} + type DeleteOrganizationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -821,11 +1187,6 @@ func (x *DeleteOrganizationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteOrganizationRequest.ProtoReflect.Descriptor instead. -func (*DeleteOrganizationRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{14} -} - func (x *DeleteOrganizationRequest) GetId() string { if x != nil { return x.Id @@ -833,8 +1194,26 @@ func (x *DeleteOrganizationRequest) GetId() string { return "" } +func (x *DeleteOrganizationRequest) SetId(v string) { + x.Id = v +} + +type DeleteOrganizationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 DeleteOrganizationRequest_builder) Build() *DeleteOrganizationRequest { + m0 := &DeleteOrganizationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + type DeleteOrganizationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -864,13 +1243,20 @@ func (x *DeleteOrganizationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteOrganizationResponse.ProtoReflect.Descriptor instead. -func (*DeleteOrganizationResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{15} +type DeleteOrganizationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteOrganizationResponse_builder) Build() *DeleteOrganizationResponse { + m0 := &DeleteOrganizationResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type DeleteOrganizationByNameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -901,11 +1287,6 @@ func (x *DeleteOrganizationByNameRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteOrganizationByNameRequest.ProtoReflect.Descriptor instead. -func (*DeleteOrganizationByNameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{16} -} - func (x *DeleteOrganizationByNameRequest) GetName() string { if x != nil { return x.Name @@ -913,8 +1294,26 @@ func (x *DeleteOrganizationByNameRequest) GetName() string { return "" } +func (x *DeleteOrganizationByNameRequest) SetName(v string) { + x.Name = v +} + +type DeleteOrganizationByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string +} + +func (b0 DeleteOrganizationByNameRequest_builder) Build() *DeleteOrganizationByNameRequest { + m0 := &DeleteOrganizationByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + return m0 +} + type DeleteOrganizationByNameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -944,13 +1343,20 @@ func (x *DeleteOrganizationByNameResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteOrganizationByNameResponse.ProtoReflect.Descriptor instead. -func (*DeleteOrganizationByNameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{17} +type DeleteOrganizationByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteOrganizationByNameResponse_builder) Build() *DeleteOrganizationByNameResponse { + m0 := &DeleteOrganizationByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type AddOrganizationMemberRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which the user will be added to. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // The ID of the user for which to be added to the organization. @@ -986,11 +1392,6 @@ func (x *AddOrganizationMemberRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddOrganizationMemberRequest.ProtoReflect.Descriptor instead. -func (*AddOrganizationMemberRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{18} -} - func (x *AddOrganizationMemberRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1012,8 +1413,41 @@ func (x *AddOrganizationMemberRequest) GetOrganizationRole() OrganizationRole { return OrganizationRole_ORGANIZATION_ROLE_UNSPECIFIED } +func (x *AddOrganizationMemberRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *AddOrganizationMemberRequest) SetUserId(v string) { + x.UserId = v +} + +func (x *AddOrganizationMemberRequest) SetOrganizationRole(v OrganizationRole) { + x.OrganizationRole = v +} + +type AddOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which the user will be added to. + OrganizationId string + // The ID of the user for which to be added to the organization. + UserId string + // The new role of the user in the organization. + OrganizationRole OrganizationRole +} + +func (b0 AddOrganizationMemberRequest_builder) Build() *AddOrganizationMemberRequest { + m0 := &AddOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.UserId = b.UserId + x.OrganizationRole = b.OrganizationRole + return m0 +} + type AddOrganizationMemberResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1043,13 +1477,20 @@ func (x *AddOrganizationMemberResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddOrganizationMemberResponse.ProtoReflect.Descriptor instead. -func (*AddOrganizationMemberResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{19} +type AddOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 AddOrganizationMemberResponse_builder) Build() *AddOrganizationMemberResponse { + m0 := &AddOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type UpdateOrganizationMemberRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which the member belongs to. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // The ID of the user for which to be updated the role. @@ -1085,11 +1526,6 @@ func (x *UpdateOrganizationMemberRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateOrganizationMemberRequest.ProtoReflect.Descriptor instead. -func (*UpdateOrganizationMemberRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{20} -} - func (x *UpdateOrganizationMemberRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1111,8 +1547,41 @@ func (x *UpdateOrganizationMemberRequest) GetOrganizationRole() OrganizationRole return OrganizationRole_ORGANIZATION_ROLE_UNSPECIFIED } +func (x *UpdateOrganizationMemberRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *UpdateOrganizationMemberRequest) SetUserId(v string) { + x.UserId = v +} + +func (x *UpdateOrganizationMemberRequest) SetOrganizationRole(v OrganizationRole) { + x.OrganizationRole = v +} + +type UpdateOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which the member belongs to. + OrganizationId string + // The ID of the user for which to be updated the role. + UserId string + // The new role of the user in the organization. + OrganizationRole OrganizationRole +} + +func (b0 UpdateOrganizationMemberRequest_builder) Build() *UpdateOrganizationMemberRequest { + m0 := &UpdateOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.UserId = b.UserId + x.OrganizationRole = b.OrganizationRole + return m0 +} + type UpdateOrganizationMemberResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1142,13 +1611,20 @@ func (x *UpdateOrganizationMemberResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateOrganizationMemberResponse.ProtoReflect.Descriptor instead. -func (*UpdateOrganizationMemberResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{21} +type UpdateOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateOrganizationMemberResponse_builder) Build() *UpdateOrganizationMemberResponse { + m0 := &UpdateOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type RemoveOrganizationMemberRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which the member belongs to. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // The ID of the user for which to be removed the role. @@ -1182,11 +1658,6 @@ func (x *RemoveOrganizationMemberRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveOrganizationMemberRequest.ProtoReflect.Descriptor instead. -func (*RemoveOrganizationMemberRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{22} -} - func (x *RemoveOrganizationMemberRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1201,8 +1672,34 @@ func (x *RemoveOrganizationMemberRequest) GetUserId() string { return "" } +func (x *RemoveOrganizationMemberRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *RemoveOrganizationMemberRequest) SetUserId(v string) { + x.UserId = v +} + +type RemoveOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which the member belongs to. + OrganizationId string + // The ID of the user for which to be removed the role. + UserId string +} + +func (b0 RemoveOrganizationMemberRequest_builder) Build() *RemoveOrganizationMemberRequest { + m0 := &RemoveOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.UserId = b.UserId + return m0 +} + type RemoveOrganizationMemberResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1232,13 +1729,20 @@ func (x *RemoveOrganizationMemberResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveOrganizationMemberResponse.ProtoReflect.Descriptor instead. -func (*RemoveOrganizationMemberResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{23} +type RemoveOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RemoveOrganizationMemberResponse_builder) Build() *RemoveOrganizationMemberResponse { + m0 := &RemoveOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type SetOrganizationMemberRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which the user's role will be set. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // The ID of the user whose role will be set. @@ -1275,11 +1779,6 @@ func (x *SetOrganizationMemberRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetOrganizationMemberRequest.ProtoReflect.Descriptor instead. -func (*SetOrganizationMemberRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{24} -} - func (x *SetOrganizationMemberRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1301,8 +1800,42 @@ func (x *SetOrganizationMemberRequest) GetOrganizationRole() OrganizationRole { return OrganizationRole_ORGANIZATION_ROLE_UNSPECIFIED } +func (x *SetOrganizationMemberRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *SetOrganizationMemberRequest) SetUserId(v string) { + x.UserId = v +} + +func (x *SetOrganizationMemberRequest) SetOrganizationRole(v OrganizationRole) { + x.OrganizationRole = v +} + +type SetOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which the user's role will be set. + OrganizationId string + // The ID of the user whose role will be set. + UserId string + // The role to assign to the user. + // Setting UNSPECIFIED means removing the user's role. + OrganizationRole OrganizationRole +} + +func (b0 SetOrganizationMemberRequest_builder) Build() *SetOrganizationMemberRequest { + m0 := &SetOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.UserId = b.UserId + x.OrganizationRole = b.OrganizationRole + return m0 +} + type SetOrganizationMemberResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1332,13 +1865,20 @@ func (x *SetOrganizationMemberResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetOrganizationMemberResponse.ProtoReflect.Descriptor instead. -func (*SetOrganizationMemberResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{25} +type SetOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SetOrganizationMemberResponse_builder) Build() *SetOrganizationMemberResponse { + m0 := &SetOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetOrganizationSettingsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which to get the settings. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -1370,11 +1910,6 @@ func (x *GetOrganizationSettingsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetOrganizationSettingsRequest.ProtoReflect.Descriptor instead. -func (*GetOrganizationSettingsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{26} -} - func (x *GetOrganizationSettingsRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1382,8 +1917,27 @@ func (x *GetOrganizationSettingsRequest) GetOrganizationId() string { return "" } +func (x *GetOrganizationSettingsRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +type GetOrganizationSettingsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to get the settings. + OrganizationId string +} + +func (b0 GetOrganizationSettingsRequest_builder) Build() *GetOrganizationSettingsRequest { + m0 := &GetOrganizationSettingsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + return m0 +} + type GetOrganizationSettingsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryBaseRole RepositoryRole `protobuf:"varint,1,opt,name=repository_base_role,json=repositoryBaseRole,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"repository_base_role,omitempty"` // The number of members in the organization. MembersCount uint32 `protobuf:"varint,4,opt,name=members_count,json=membersCount,proto3" json:"members_count,omitempty"` @@ -1418,11 +1972,6 @@ func (x *GetOrganizationSettingsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetOrganizationSettingsResponse.ProtoReflect.Descriptor instead. -func (*GetOrganizationSettingsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{27} -} - func (x *GetOrganizationSettingsResponse) GetRepositoryBaseRole() RepositoryRole { if x != nil { return x.RepositoryBaseRole @@ -1444,8 +1993,40 @@ func (x *GetOrganizationSettingsResponse) GetIdpGroups() []string { return nil } +func (x *GetOrganizationSettingsResponse) SetRepositoryBaseRole(v RepositoryRole) { + x.RepositoryBaseRole = v +} + +func (x *GetOrganizationSettingsResponse) SetMembersCount(v uint32) { + x.MembersCount = v +} + +func (x *GetOrganizationSettingsResponse) SetIdpGroups(v []string) { + x.IdpGroups = v +} + +type GetOrganizationSettingsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryBaseRole RepositoryRole + // The number of members in the organization. + MembersCount uint32 + // The IdP groups associated with the organization. + IdpGroups []string +} + +func (b0 GetOrganizationSettingsResponse_builder) Build() *GetOrganizationSettingsResponse { + m0 := &GetOrganizationSettingsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryBaseRole = b.RepositoryBaseRole + x.MembersCount = b.MembersCount + x.IdpGroups = b.IdpGroups + return m0 +} + type UpdateOrganizationSettingsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which to update the base roles. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // optional, no update to this base role will be made if this is unspecified. @@ -1483,11 +2064,6 @@ func (x *UpdateOrganizationSettingsRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use UpdateOrganizationSettingsRequest.ProtoReflect.Descriptor instead. -func (*UpdateOrganizationSettingsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{28} -} - func (x *UpdateOrganizationSettingsRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1516,8 +2092,70 @@ func (x *UpdateOrganizationSettingsRequest) GetUrl() string { return "" } +func (x *UpdateOrganizationSettingsRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *UpdateOrganizationSettingsRequest) SetRepositoryBaseRole(v RepositoryRole) { + x.RepositoryBaseRole = v +} + +func (x *UpdateOrganizationSettingsRequest) SetDescription(v string) { + x.Description = &v +} + +func (x *UpdateOrganizationSettingsRequest) SetUrl(v string) { + x.Url = &v +} + +func (x *UpdateOrganizationSettingsRequest) HasDescription() bool { + if x == nil { + return false + } + return x.Description != nil +} + +func (x *UpdateOrganizationSettingsRequest) HasUrl() bool { + if x == nil { + return false + } + return x.Url != nil +} + +func (x *UpdateOrganizationSettingsRequest) ClearDescription() { + x.Description = nil +} + +func (x *UpdateOrganizationSettingsRequest) ClearUrl() { + x.Url = nil +} + +type UpdateOrganizationSettingsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to update the base roles. + OrganizationId string + // optional, no update to this base role will be made if this is unspecified. + RepositoryBaseRole RepositoryRole + // optional, update to description will only be made when this is present + Description *string + // optional, update to url will only be made when this is present + Url *string +} + +func (b0 UpdateOrganizationSettingsRequest_builder) Build() *UpdateOrganizationSettingsRequest { + m0 := &UpdateOrganizationSettingsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.RepositoryBaseRole = b.RepositoryBaseRole + x.Description = b.Description + x.Url = b.Url + return m0 +} + type UpdateOrganizationSettingsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1547,13 +2185,20 @@ func (x *UpdateOrganizationSettingsResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use UpdateOrganizationSettingsResponse.ProtoReflect.Descriptor instead. -func (*UpdateOrganizationSettingsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{29} +type UpdateOrganizationSettingsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateOrganizationSettingsResponse_builder) Build() *UpdateOrganizationSettingsResponse { + m0 := &UpdateOrganizationSettingsResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type AddOrganizationGroupRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which to add the group. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // The name of the group to add. @@ -1587,11 +2232,6 @@ func (x *AddOrganizationGroupRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddOrganizationGroupRequest.ProtoReflect.Descriptor instead. -func (*AddOrganizationGroupRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{30} -} - func (x *AddOrganizationGroupRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1606,8 +2246,34 @@ func (x *AddOrganizationGroupRequest) GetGroupName() string { return "" } +func (x *AddOrganizationGroupRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *AddOrganizationGroupRequest) SetGroupName(v string) { + x.GroupName = v +} + +type AddOrganizationGroupRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to add the group. + OrganizationId string + // The name of the group to add. + GroupName string +} + +func (b0 AddOrganizationGroupRequest_builder) Build() *AddOrganizationGroupRequest { + m0 := &AddOrganizationGroupRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.GroupName = b.GroupName + return m0 +} + type AddOrganizationGroupResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1637,13 +2303,20 @@ func (x *AddOrganizationGroupResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddOrganizationGroupResponse.ProtoReflect.Descriptor instead. -func (*AddOrganizationGroupResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{31} +type AddOrganizationGroupResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 AddOrganizationGroupResponse_builder) Build() *AddOrganizationGroupResponse { + m0 := &AddOrganizationGroupResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type RemoveOrganizationGroupRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization for which to remove the group. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // The name of the group to remove. @@ -1677,11 +2350,6 @@ func (x *RemoveOrganizationGroupRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveOrganizationGroupRequest.ProtoReflect.Descriptor instead. -func (*RemoveOrganizationGroupRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{32} -} - func (x *RemoveOrganizationGroupRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1696,8 +2364,34 @@ func (x *RemoveOrganizationGroupRequest) GetGroupName() string { return "" } +func (x *RemoveOrganizationGroupRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *RemoveOrganizationGroupRequest) SetGroupName(v string) { + x.GroupName = v +} + +type RemoveOrganizationGroupRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to remove the group. + OrganizationId string + // The name of the group to remove. + GroupName string +} + +func (b0 RemoveOrganizationGroupRequest_builder) Build() *RemoveOrganizationGroupRequest { + m0 := &RemoveOrganizationGroupRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.GroupName = b.GroupName + return m0 +} + type RemoveOrganizationGroupResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1727,9 +2421,16 @@ func (x *RemoveOrganizationGroupResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveOrganizationGroupResponse.ProtoReflect.Descriptor instead. -func (*RemoveOrganizationGroupResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP(), []int{33} +type RemoveOrganizationGroupResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RemoveOrganizationGroupResponse_builder) Build() *RemoveOrganizationGroupResponse { + m0 := &RemoveOrganizationGroupResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } var File_buf_alpha_registry_v1alpha1_organization_proto protoreflect.FileDescriptor @@ -2153,18 +2854,6 @@ var file_buf_alpha_registry_v1alpha1_organization_proto_rawDesc = []byte{ 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_organization_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_organization_proto_rawDescData = file_buf_alpha_registry_v1alpha1_organization_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_organization_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_organization_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_organization_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_organization_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_organization_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes = make([]protoimpl.MessageInfo, 34) var file_buf_alpha_registry_v1alpha1_organization_proto_goTypes = []any{ (*Organization)(nil), // 0: buf.alpha.registry.v1alpha1.Organization diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/organization_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/organization_protoopaque.pb.go new file mode 100644 index 0000000000..df8754b514 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/organization_protoopaque.pb.go @@ -0,0 +1,2963 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/organization.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Organization struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + xxx_hidden_UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + xxx_hidden_Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"` + xxx_hidden_VerificationStatus VerificationStatus `protobuf:"varint,7,opt,name=verification_status,json=verificationStatus,proto3,enum=buf.alpha.registry.v1alpha1.VerificationStatus" json:"verification_status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Organization) Reset() { + *x = Organization{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Organization) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Organization) ProtoMessage() {} + +func (x *Organization) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Organization) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *Organization) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *Organization) GetUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_UpdateTime + } + return nil +} + +func (x *Organization) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Organization) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *Organization) GetUrl() string { + if x != nil { + return x.xxx_hidden_Url + } + return "" +} + +func (x *Organization) GetVerificationStatus() VerificationStatus { + if x != nil { + return x.xxx_hidden_VerificationStatus + } + return VerificationStatus_VERIFICATION_STATUS_UNSPECIFIED +} + +func (x *Organization) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *Organization) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *Organization) SetUpdateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_UpdateTime = v +} + +func (x *Organization) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *Organization) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *Organization) SetUrl(v string) { + x.xxx_hidden_Url = v +} + +func (x *Organization) SetVerificationStatus(v VerificationStatus) { + x.xxx_hidden_VerificationStatus = v +} + +func (x *Organization) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *Organization) HasUpdateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateTime != nil +} + +func (x *Organization) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *Organization) ClearUpdateTime() { + x.xxx_hidden_UpdateTime = nil +} + +type Organization_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique, immutable + Id string + // immutable + CreateTime *timestamppb.Timestamp + // mutable + UpdateTime *timestamppb.Timestamp + // unique, mutable + Name string + // description is the user configurable description of the organization. + Description string + // url is the user configurable URL in the description of the organization, + // always included the scheme and will not have a #fragment suffix. + Url string + // verification status of the organization, configurable by server admin. + VerificationStatus VerificationStatus +} + +func (b0 Organization_builder) Build() *Organization { + m0 := &Organization{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_UpdateTime = b.UpdateTime + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Url = b.Url + x.xxx_hidden_VerificationStatus = b.VerificationStatus + return m0 +} + +// OrganizationMembership is a nested structure that contains +// the organization and user membership information on that organization. +type OrganizationMembership struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"` + xxx_hidden_OrganizationRole OrganizationRole `protobuf:"varint,2,opt,name=organization_role,json=organizationRole,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"organization_role,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OrganizationMembership) Reset() { + *x = OrganizationMembership{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrganizationMembership) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationMembership) ProtoMessage() {} + +func (x *OrganizationMembership) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *OrganizationMembership) GetOrganization() *Organization { + if x != nil { + return x.xxx_hidden_Organization + } + return nil +} + +func (x *OrganizationMembership) GetOrganizationRole() OrganizationRole { + if x != nil { + return x.xxx_hidden_OrganizationRole + } + return OrganizationRole_ORGANIZATION_ROLE_UNSPECIFIED +} + +func (x *OrganizationMembership) SetOrganization(v *Organization) { + x.xxx_hidden_Organization = v +} + +func (x *OrganizationMembership) SetOrganizationRole(v OrganizationRole) { + x.xxx_hidden_OrganizationRole = v +} + +func (x *OrganizationMembership) HasOrganization() bool { + if x == nil { + return false + } + return x.xxx_hidden_Organization != nil +} + +func (x *OrganizationMembership) ClearOrganization() { + x.xxx_hidden_Organization = nil +} + +type OrganizationMembership_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Organization *Organization + OrganizationRole OrganizationRole +} + +func (b0 OrganizationMembership_builder) Build() *OrganizationMembership { + m0 := &OrganizationMembership{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Organization = b.Organization + x.xxx_hidden_OrganizationRole = b.OrganizationRole + return m0 +} + +type GetOrganizationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetOrganizationRequest) Reset() { + *x = GetOrganizationRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetOrganizationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrganizationRequest) ProtoMessage() {} + +func (x *GetOrganizationRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetOrganizationRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *GetOrganizationRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +type GetOrganizationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 GetOrganizationRequest_builder) Build() *GetOrganizationRequest { + m0 := &GetOrganizationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +type GetOrganizationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetOrganizationResponse) Reset() { + *x = GetOrganizationResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetOrganizationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrganizationResponse) ProtoMessage() {} + +func (x *GetOrganizationResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetOrganizationResponse) GetOrganization() *Organization { + if x != nil { + return x.xxx_hidden_Organization + } + return nil +} + +func (x *GetOrganizationResponse) SetOrganization(v *Organization) { + x.xxx_hidden_Organization = v +} + +func (x *GetOrganizationResponse) HasOrganization() bool { + if x == nil { + return false + } + return x.xxx_hidden_Organization != nil +} + +func (x *GetOrganizationResponse) ClearOrganization() { + x.xxx_hidden_Organization = nil +} + +type GetOrganizationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Organization *Organization +} + +func (b0 GetOrganizationResponse_builder) Build() *GetOrganizationResponse { + m0 := &GetOrganizationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Organization = b.Organization + return m0 +} + +type GetOrganizationByNameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetOrganizationByNameRequest) Reset() { + *x = GetOrganizationByNameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetOrganizationByNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrganizationByNameRequest) ProtoMessage() {} + +func (x *GetOrganizationByNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetOrganizationByNameRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GetOrganizationByNameRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +type GetOrganizationByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string +} + +func (b0 GetOrganizationByNameRequest_builder) Build() *GetOrganizationByNameRequest { + m0 := &GetOrganizationByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + return m0 +} + +type GetOrganizationByNameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetOrganizationByNameResponse) Reset() { + *x = GetOrganizationByNameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetOrganizationByNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrganizationByNameResponse) ProtoMessage() {} + +func (x *GetOrganizationByNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetOrganizationByNameResponse) GetOrganization() *Organization { + if x != nil { + return x.xxx_hidden_Organization + } + return nil +} + +func (x *GetOrganizationByNameResponse) SetOrganization(v *Organization) { + x.xxx_hidden_Organization = v +} + +func (x *GetOrganizationByNameResponse) HasOrganization() bool { + if x == nil { + return false + } + return x.xxx_hidden_Organization != nil +} + +func (x *GetOrganizationByNameResponse) ClearOrganization() { + x.xxx_hidden_Organization = nil +} + +type GetOrganizationByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Organization *Organization +} + +func (b0 GetOrganizationByNameResponse_builder) Build() *GetOrganizationByNameResponse { + m0 := &GetOrganizationByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Organization = b.Organization + return m0 +} + +type ListOrganizationsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,3,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListOrganizationsRequest) Reset() { + *x = ListOrganizationsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListOrganizationsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOrganizationsRequest) ProtoMessage() {} + +func (x *ListOrganizationsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListOrganizationsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListOrganizationsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListOrganizationsRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListOrganizationsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListOrganizationsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListOrganizationsRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListOrganizationsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListOrganizationsRequest_builder) Build() *ListOrganizationsRequest { + m0 := &ListOrganizationsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListOrganizationsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Organizations *[]*Organization `protobuf:"bytes,1,rep,name=organizations,proto3" json:"organizations,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListOrganizationsResponse) Reset() { + *x = ListOrganizationsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListOrganizationsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOrganizationsResponse) ProtoMessage() {} + +func (x *ListOrganizationsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListOrganizationsResponse) GetOrganizations() []*Organization { + if x != nil { + if x.xxx_hidden_Organizations != nil { + return *x.xxx_hidden_Organizations + } + } + return nil +} + +func (x *ListOrganizationsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListOrganizationsResponse) SetOrganizations(v []*Organization) { + x.xxx_hidden_Organizations = &v +} + +func (x *ListOrganizationsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListOrganizationsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Organizations []*Organization + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListOrganizationsResponse_builder) Build() *ListOrganizationsResponse { + m0 := &ListOrganizationsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Organizations = &b.Organizations + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListUserOrganizationsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,4,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUserOrganizationsRequest) Reset() { + *x = ListUserOrganizationsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUserOrganizationsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserOrganizationsRequest) ProtoMessage() {} + +func (x *ListUserOrganizationsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListUserOrganizationsRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *ListUserOrganizationsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListUserOrganizationsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListUserOrganizationsRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListUserOrganizationsRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +func (x *ListUserOrganizationsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListUserOrganizationsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListUserOrganizationsRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListUserOrganizationsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the user whose organizations should be listed. + UserId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListUserOrganizationsRequest_builder) Build() *ListUserOrganizationsRequest { + m0 := &ListUserOrganizationsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UserId = b.UserId + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListUserOrganizationsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Organizations *[]*OrganizationMembership `protobuf:"bytes,1,rep,name=organizations,proto3" json:"organizations,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUserOrganizationsResponse) Reset() { + *x = ListUserOrganizationsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUserOrganizationsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserOrganizationsResponse) ProtoMessage() {} + +func (x *ListUserOrganizationsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListUserOrganizationsResponse) GetOrganizations() []*OrganizationMembership { + if x != nil { + if x.xxx_hidden_Organizations != nil { + return *x.xxx_hidden_Organizations + } + } + return nil +} + +func (x *ListUserOrganizationsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListUserOrganizationsResponse) SetOrganizations(v []*OrganizationMembership) { + x.xxx_hidden_Organizations = &v +} + +func (x *ListUserOrganizationsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListUserOrganizationsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Organizations []*OrganizationMembership + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListUserOrganizationsResponse_builder) Build() *ListUserOrganizationsResponse { + m0 := &ListUserOrganizationsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Organizations = &b.Organizations + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type GetUserOrganizationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + xxx_hidden_OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUserOrganizationRequest) Reset() { + *x = GetUserOrganizationRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUserOrganizationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserOrganizationRequest) ProtoMessage() {} + +func (x *GetUserOrganizationRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetUserOrganizationRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *GetUserOrganizationRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *GetUserOrganizationRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +func (x *GetUserOrganizationRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +type GetUserOrganizationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the user whose membership should be retrieved. + UserId string + // The ID of the organization. + OrganizationId string +} + +func (b0 GetUserOrganizationRequest_builder) Build() *GetUserOrganizationRequest { + m0 := &GetUserOrganizationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UserId = b.UserId + x.xxx_hidden_OrganizationId = b.OrganizationId + return m0 +} + +type GetUserOrganizationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationMembership *OrganizationMembership `protobuf:"bytes,1,opt,name=organization_membership,json=organizationMembership,proto3" json:"organization_membership,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUserOrganizationResponse) Reset() { + *x = GetUserOrganizationResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUserOrganizationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserOrganizationResponse) ProtoMessage() {} + +func (x *GetUserOrganizationResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetUserOrganizationResponse) GetOrganizationMembership() *OrganizationMembership { + if x != nil { + return x.xxx_hidden_OrganizationMembership + } + return nil +} + +func (x *GetUserOrganizationResponse) SetOrganizationMembership(v *OrganizationMembership) { + x.xxx_hidden_OrganizationMembership = v +} + +func (x *GetUserOrganizationResponse) HasOrganizationMembership() bool { + if x == nil { + return false + } + return x.xxx_hidden_OrganizationMembership != nil +} + +func (x *GetUserOrganizationResponse) ClearOrganizationMembership() { + x.xxx_hidden_OrganizationMembership = nil +} + +type GetUserOrganizationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + OrganizationMembership *OrganizationMembership +} + +func (b0 GetUserOrganizationResponse_builder) Build() *GetUserOrganizationResponse { + m0 := &GetUserOrganizationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationMembership = b.OrganizationMembership + return m0 +} + +type CreateOrganizationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateOrganizationRequest) Reset() { + *x = CreateOrganizationRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateOrganizationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateOrganizationRequest) ProtoMessage() {} + +func (x *CreateOrganizationRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateOrganizationRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *CreateOrganizationRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +type CreateOrganizationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Must be unique across organizations. + Name string +} + +func (b0 CreateOrganizationRequest_builder) Build() *CreateOrganizationRequest { + m0 := &CreateOrganizationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + return m0 +} + +type CreateOrganizationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateOrganizationResponse) Reset() { + *x = CreateOrganizationResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateOrganizationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateOrganizationResponse) ProtoMessage() {} + +func (x *CreateOrganizationResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateOrganizationResponse) GetOrganization() *Organization { + if x != nil { + return x.xxx_hidden_Organization + } + return nil +} + +func (x *CreateOrganizationResponse) SetOrganization(v *Organization) { + x.xxx_hidden_Organization = v +} + +func (x *CreateOrganizationResponse) HasOrganization() bool { + if x == nil { + return false + } + return x.xxx_hidden_Organization != nil +} + +func (x *CreateOrganizationResponse) ClearOrganization() { + x.xxx_hidden_Organization = nil +} + +type CreateOrganizationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Organization *Organization +} + +func (b0 CreateOrganizationResponse_builder) Build() *CreateOrganizationResponse { + m0 := &CreateOrganizationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Organization = b.Organization + return m0 +} + +type DeleteOrganizationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteOrganizationRequest) Reset() { + *x = DeleteOrganizationRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteOrganizationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOrganizationRequest) ProtoMessage() {} + +func (x *DeleteOrganizationRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteOrganizationRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *DeleteOrganizationRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +type DeleteOrganizationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 DeleteOrganizationRequest_builder) Build() *DeleteOrganizationRequest { + m0 := &DeleteOrganizationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +type DeleteOrganizationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteOrganizationResponse) Reset() { + *x = DeleteOrganizationResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteOrganizationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOrganizationResponse) ProtoMessage() {} + +func (x *DeleteOrganizationResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteOrganizationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteOrganizationResponse_builder) Build() *DeleteOrganizationResponse { + m0 := &DeleteOrganizationResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type DeleteOrganizationByNameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteOrganizationByNameRequest) Reset() { + *x = DeleteOrganizationByNameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteOrganizationByNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOrganizationByNameRequest) ProtoMessage() {} + +func (x *DeleteOrganizationByNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteOrganizationByNameRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *DeleteOrganizationByNameRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +type DeleteOrganizationByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string +} + +func (b0 DeleteOrganizationByNameRequest_builder) Build() *DeleteOrganizationByNameRequest { + m0 := &DeleteOrganizationByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + return m0 +} + +type DeleteOrganizationByNameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteOrganizationByNameResponse) Reset() { + *x = DeleteOrganizationByNameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteOrganizationByNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOrganizationByNameResponse) ProtoMessage() {} + +func (x *DeleteOrganizationByNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteOrganizationByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteOrganizationByNameResponse_builder) Build() *DeleteOrganizationByNameResponse { + m0 := &DeleteOrganizationByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type AddOrganizationMemberRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + xxx_hidden_OrganizationRole OrganizationRole `protobuf:"varint,3,opt,name=organization_role,json=organizationRole,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"organization_role,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AddOrganizationMemberRequest) Reset() { + *x = AddOrganizationMemberRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AddOrganizationMemberRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddOrganizationMemberRequest) ProtoMessage() {} + +func (x *AddOrganizationMemberRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *AddOrganizationMemberRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *AddOrganizationMemberRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *AddOrganizationMemberRequest) GetOrganizationRole() OrganizationRole { + if x != nil { + return x.xxx_hidden_OrganizationRole + } + return OrganizationRole_ORGANIZATION_ROLE_UNSPECIFIED +} + +func (x *AddOrganizationMemberRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *AddOrganizationMemberRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +func (x *AddOrganizationMemberRequest) SetOrganizationRole(v OrganizationRole) { + x.xxx_hidden_OrganizationRole = v +} + +type AddOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which the user will be added to. + OrganizationId string + // The ID of the user for which to be added to the organization. + UserId string + // The new role of the user in the organization. + OrganizationRole OrganizationRole +} + +func (b0 AddOrganizationMemberRequest_builder) Build() *AddOrganizationMemberRequest { + m0 := &AddOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_UserId = b.UserId + x.xxx_hidden_OrganizationRole = b.OrganizationRole + return m0 +} + +type AddOrganizationMemberResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AddOrganizationMemberResponse) Reset() { + *x = AddOrganizationMemberResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AddOrganizationMemberResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddOrganizationMemberResponse) ProtoMessage() {} + +func (x *AddOrganizationMemberResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type AddOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 AddOrganizationMemberResponse_builder) Build() *AddOrganizationMemberResponse { + m0 := &AddOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type UpdateOrganizationMemberRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + xxx_hidden_OrganizationRole OrganizationRole `protobuf:"varint,3,opt,name=organization_role,json=organizationRole,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"organization_role,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateOrganizationMemberRequest) Reset() { + *x = UpdateOrganizationMemberRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateOrganizationMemberRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateOrganizationMemberRequest) ProtoMessage() {} + +func (x *UpdateOrganizationMemberRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateOrganizationMemberRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *UpdateOrganizationMemberRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *UpdateOrganizationMemberRequest) GetOrganizationRole() OrganizationRole { + if x != nil { + return x.xxx_hidden_OrganizationRole + } + return OrganizationRole_ORGANIZATION_ROLE_UNSPECIFIED +} + +func (x *UpdateOrganizationMemberRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *UpdateOrganizationMemberRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +func (x *UpdateOrganizationMemberRequest) SetOrganizationRole(v OrganizationRole) { + x.xxx_hidden_OrganizationRole = v +} + +type UpdateOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which the member belongs to. + OrganizationId string + // The ID of the user for which to be updated the role. + UserId string + // The new role of the user in the organization. + OrganizationRole OrganizationRole +} + +func (b0 UpdateOrganizationMemberRequest_builder) Build() *UpdateOrganizationMemberRequest { + m0 := &UpdateOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_UserId = b.UserId + x.xxx_hidden_OrganizationRole = b.OrganizationRole + return m0 +} + +type UpdateOrganizationMemberResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateOrganizationMemberResponse) Reset() { + *x = UpdateOrganizationMemberResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateOrganizationMemberResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateOrganizationMemberResponse) ProtoMessage() {} + +func (x *UpdateOrganizationMemberResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UpdateOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateOrganizationMemberResponse_builder) Build() *UpdateOrganizationMemberResponse { + m0 := &UpdateOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type RemoveOrganizationMemberRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RemoveOrganizationMemberRequest) Reset() { + *x = RemoveOrganizationMemberRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RemoveOrganizationMemberRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveOrganizationMemberRequest) ProtoMessage() {} + +func (x *RemoveOrganizationMemberRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RemoveOrganizationMemberRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *RemoveOrganizationMemberRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *RemoveOrganizationMemberRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *RemoveOrganizationMemberRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +type RemoveOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which the member belongs to. + OrganizationId string + // The ID of the user for which to be removed the role. + UserId string +} + +func (b0 RemoveOrganizationMemberRequest_builder) Build() *RemoveOrganizationMemberRequest { + m0 := &RemoveOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_UserId = b.UserId + return m0 +} + +type RemoveOrganizationMemberResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RemoveOrganizationMemberResponse) Reset() { + *x = RemoveOrganizationMemberResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RemoveOrganizationMemberResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveOrganizationMemberResponse) ProtoMessage() {} + +func (x *RemoveOrganizationMemberResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RemoveOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RemoveOrganizationMemberResponse_builder) Build() *RemoveOrganizationMemberResponse { + m0 := &RemoveOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type SetOrganizationMemberRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + xxx_hidden_OrganizationRole OrganizationRole `protobuf:"varint,3,opt,name=organization_role,json=organizationRole,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"organization_role,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetOrganizationMemberRequest) Reset() { + *x = SetOrganizationMemberRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetOrganizationMemberRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetOrganizationMemberRequest) ProtoMessage() {} + +func (x *SetOrganizationMemberRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetOrganizationMemberRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *SetOrganizationMemberRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *SetOrganizationMemberRequest) GetOrganizationRole() OrganizationRole { + if x != nil { + return x.xxx_hidden_OrganizationRole + } + return OrganizationRole_ORGANIZATION_ROLE_UNSPECIFIED +} + +func (x *SetOrganizationMemberRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *SetOrganizationMemberRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +func (x *SetOrganizationMemberRequest) SetOrganizationRole(v OrganizationRole) { + x.xxx_hidden_OrganizationRole = v +} + +type SetOrganizationMemberRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which the user's role will be set. + OrganizationId string + // The ID of the user whose role will be set. + UserId string + // The role to assign to the user. + // Setting UNSPECIFIED means removing the user's role. + OrganizationRole OrganizationRole +} + +func (b0 SetOrganizationMemberRequest_builder) Build() *SetOrganizationMemberRequest { + m0 := &SetOrganizationMemberRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_UserId = b.UserId + x.xxx_hidden_OrganizationRole = b.OrganizationRole + return m0 +} + +type SetOrganizationMemberResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetOrganizationMemberResponse) Reset() { + *x = SetOrganizationMemberResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetOrganizationMemberResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetOrganizationMemberResponse) ProtoMessage() {} + +func (x *SetOrganizationMemberResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type SetOrganizationMemberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SetOrganizationMemberResponse_builder) Build() *SetOrganizationMemberResponse { + m0 := &SetOrganizationMemberResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetOrganizationSettingsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetOrganizationSettingsRequest) Reset() { + *x = GetOrganizationSettingsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetOrganizationSettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrganizationSettingsRequest) ProtoMessage() {} + +func (x *GetOrganizationSettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetOrganizationSettingsRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *GetOrganizationSettingsRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +type GetOrganizationSettingsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to get the settings. + OrganizationId string +} + +func (b0 GetOrganizationSettingsRequest_builder) Build() *GetOrganizationSettingsRequest { + m0 := &GetOrganizationSettingsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + return m0 +} + +type GetOrganizationSettingsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryBaseRole RepositoryRole `protobuf:"varint,1,opt,name=repository_base_role,json=repositoryBaseRole,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"repository_base_role,omitempty"` + xxx_hidden_MembersCount uint32 `protobuf:"varint,4,opt,name=members_count,json=membersCount,proto3" json:"members_count,omitempty"` + xxx_hidden_IdpGroups []string `protobuf:"bytes,5,rep,name=idp_groups,json=idpGroups,proto3" json:"idp_groups,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetOrganizationSettingsResponse) Reset() { + *x = GetOrganizationSettingsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetOrganizationSettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrganizationSettingsResponse) ProtoMessage() {} + +func (x *GetOrganizationSettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetOrganizationSettingsResponse) GetRepositoryBaseRole() RepositoryRole { + if x != nil { + return x.xxx_hidden_RepositoryBaseRole + } + return RepositoryRole_REPOSITORY_ROLE_UNSPECIFIED +} + +func (x *GetOrganizationSettingsResponse) GetMembersCount() uint32 { + if x != nil { + return x.xxx_hidden_MembersCount + } + return 0 +} + +func (x *GetOrganizationSettingsResponse) GetIdpGroups() []string { + if x != nil { + return x.xxx_hidden_IdpGroups + } + return nil +} + +func (x *GetOrganizationSettingsResponse) SetRepositoryBaseRole(v RepositoryRole) { + x.xxx_hidden_RepositoryBaseRole = v +} + +func (x *GetOrganizationSettingsResponse) SetMembersCount(v uint32) { + x.xxx_hidden_MembersCount = v +} + +func (x *GetOrganizationSettingsResponse) SetIdpGroups(v []string) { + x.xxx_hidden_IdpGroups = v +} + +type GetOrganizationSettingsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryBaseRole RepositoryRole + // The number of members in the organization. + MembersCount uint32 + // The IdP groups associated with the organization. + IdpGroups []string +} + +func (b0 GetOrganizationSettingsResponse_builder) Build() *GetOrganizationSettingsResponse { + m0 := &GetOrganizationSettingsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryBaseRole = b.RepositoryBaseRole + x.xxx_hidden_MembersCount = b.MembersCount + x.xxx_hidden_IdpGroups = b.IdpGroups + return m0 +} + +type UpdateOrganizationSettingsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_RepositoryBaseRole RepositoryRole `protobuf:"varint,2,opt,name=repository_base_role,json=repositoryBaseRole,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"repository_base_role,omitempty"` + xxx_hidden_Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"` + xxx_hidden_Url *string `protobuf:"bytes,6,opt,name=url,proto3,oneof" json:"url,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateOrganizationSettingsRequest) Reset() { + *x = UpdateOrganizationSettingsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateOrganizationSettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateOrganizationSettingsRequest) ProtoMessage() {} + +func (x *UpdateOrganizationSettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateOrganizationSettingsRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *UpdateOrganizationSettingsRequest) GetRepositoryBaseRole() RepositoryRole { + if x != nil { + return x.xxx_hidden_RepositoryBaseRole + } + return RepositoryRole_REPOSITORY_ROLE_UNSPECIFIED +} + +func (x *UpdateOrganizationSettingsRequest) GetDescription() string { + if x != nil { + if x.xxx_hidden_Description != nil { + return *x.xxx_hidden_Description + } + return "" + } + return "" +} + +func (x *UpdateOrganizationSettingsRequest) GetUrl() string { + if x != nil { + if x.xxx_hidden_Url != nil { + return *x.xxx_hidden_Url + } + return "" + } + return "" +} + +func (x *UpdateOrganizationSettingsRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *UpdateOrganizationSettingsRequest) SetRepositoryBaseRole(v RepositoryRole) { + x.xxx_hidden_RepositoryBaseRole = v +} + +func (x *UpdateOrganizationSettingsRequest) SetDescription(v string) { + x.xxx_hidden_Description = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 4) +} + +func (x *UpdateOrganizationSettingsRequest) SetUrl(v string) { + x.xxx_hidden_Url = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 3, 4) +} + +func (x *UpdateOrganizationSettingsRequest) HasDescription() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 2) +} + +func (x *UpdateOrganizationSettingsRequest) HasUrl() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 3) +} + +func (x *UpdateOrganizationSettingsRequest) ClearDescription() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2) + x.xxx_hidden_Description = nil +} + +func (x *UpdateOrganizationSettingsRequest) ClearUrl() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 3) + x.xxx_hidden_Url = nil +} + +type UpdateOrganizationSettingsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to update the base roles. + OrganizationId string + // optional, no update to this base role will be made if this is unspecified. + RepositoryBaseRole RepositoryRole + // optional, update to description will only be made when this is present + Description *string + // optional, update to url will only be made when this is present + Url *string +} + +func (b0 UpdateOrganizationSettingsRequest_builder) Build() *UpdateOrganizationSettingsRequest { + m0 := &UpdateOrganizationSettingsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_RepositoryBaseRole = b.RepositoryBaseRole + if b.Description != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 4) + x.xxx_hidden_Description = b.Description + } + if b.Url != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 3, 4) + x.xxx_hidden_Url = b.Url + } + return m0 +} + +type UpdateOrganizationSettingsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateOrganizationSettingsResponse) Reset() { + *x = UpdateOrganizationSettingsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateOrganizationSettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateOrganizationSettingsResponse) ProtoMessage() {} + +func (x *UpdateOrganizationSettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UpdateOrganizationSettingsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateOrganizationSettingsResponse_builder) Build() *UpdateOrganizationSettingsResponse { + m0 := &UpdateOrganizationSettingsResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type AddOrganizationGroupRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AddOrganizationGroupRequest) Reset() { + *x = AddOrganizationGroupRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AddOrganizationGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddOrganizationGroupRequest) ProtoMessage() {} + +func (x *AddOrganizationGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *AddOrganizationGroupRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *AddOrganizationGroupRequest) GetGroupName() string { + if x != nil { + return x.xxx_hidden_GroupName + } + return "" +} + +func (x *AddOrganizationGroupRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *AddOrganizationGroupRequest) SetGroupName(v string) { + x.xxx_hidden_GroupName = v +} + +type AddOrganizationGroupRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to add the group. + OrganizationId string + // The name of the group to add. + GroupName string +} + +func (b0 AddOrganizationGroupRequest_builder) Build() *AddOrganizationGroupRequest { + m0 := &AddOrganizationGroupRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_GroupName = b.GroupName + return m0 +} + +type AddOrganizationGroupResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AddOrganizationGroupResponse) Reset() { + *x = AddOrganizationGroupResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AddOrganizationGroupResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddOrganizationGroupResponse) ProtoMessage() {} + +func (x *AddOrganizationGroupResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type AddOrganizationGroupResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 AddOrganizationGroupResponse_builder) Build() *AddOrganizationGroupResponse { + m0 := &AddOrganizationGroupResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type RemoveOrganizationGroupRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RemoveOrganizationGroupRequest) Reset() { + *x = RemoveOrganizationGroupRequest{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RemoveOrganizationGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveOrganizationGroupRequest) ProtoMessage() {} + +func (x *RemoveOrganizationGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RemoveOrganizationGroupRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *RemoveOrganizationGroupRequest) GetGroupName() string { + if x != nil { + return x.xxx_hidden_GroupName + } + return "" +} + +func (x *RemoveOrganizationGroupRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *RemoveOrganizationGroupRequest) SetGroupName(v string) { + x.xxx_hidden_GroupName = v +} + +type RemoveOrganizationGroupRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization for which to remove the group. + OrganizationId string + // The name of the group to remove. + GroupName string +} + +func (b0 RemoveOrganizationGroupRequest_builder) Build() *RemoveOrganizationGroupRequest { + m0 := &RemoveOrganizationGroupRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_GroupName = b.GroupName + return m0 +} + +type RemoveOrganizationGroupResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RemoveOrganizationGroupResponse) Reset() { + *x = RemoveOrganizationGroupResponse{} + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RemoveOrganizationGroupResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveOrganizationGroupResponse) ProtoMessage() {} + +func (x *RemoveOrganizationGroupResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RemoveOrganizationGroupResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RemoveOrganizationGroupResponse_builder) Build() *RemoveOrganizationGroupResponse { + m0 := &RemoveOrganizationGroupResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_buf_alpha_registry_v1alpha1_organization_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_organization_proto_rawDesc = []byte{ + 0x0a, 0x2e, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x26, 0x62, + 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x35, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x02, + 0x0a, 0x0c, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3b, + 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 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, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, + 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, + 0x12, 0x60, 0x0a, 0x13, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x12, + 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x22, 0xc3, 0x01, 0x0a, 0x16, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x4d, 0x0a, + 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5a, 0x0a, 0x11, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x6c, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x10, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x28, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x22, 0x68, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, + 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x32, 0x0a, 0x1c, + 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, + 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x6e, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x70, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, + 0x72, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, + 0x73, 0x65, 0x22, 0x94, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4f, 0x0a, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, + 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8d, 0x01, 0x0a, 0x1c, 0x4c, 0x69, + 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x1d, 0x4c, 0x69, + 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x0d, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5e, + 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x8b, + 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, + 0x0a, 0x17, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x73, 0x68, 0x69, 0x70, 0x52, 0x16, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x22, 0x2f, 0x0a, 0x19, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6b, 0x0a, + 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2b, 0x0a, 0x19, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x1c, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x0a, 0x1f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x4e, 0x61, 0x6d, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x22, 0x0a, 0x20, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0xbc, 0x01, 0x0a, 0x1c, 0x41, 0x64, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x5a, 0x0a, 0x11, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x10, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x22, + 0x1f, 0x0a, 0x1d, 0x41, 0x64, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0xbf, 0x01, 0x0a, 0x1f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, + 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x5a, 0x0a, 0x11, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, + 0x52, 0x10, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, + 0x6c, 0x65, 0x22, 0x22, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x0a, 0x1f, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x22, 0x0a, 0x20, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0xbc, 0x01, 0x0a, 0x1c, 0x53, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x5a, 0x0a, 0x11, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x10, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x1f, + 0x0a, 0x1d, 0x53, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x49, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xf6, 0x01, 0x0a, 0x1f, 0x47, + 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, + 0x0a, 0x14, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x62, 0x61, 0x73, + 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x12, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x61, 0x73, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x23, 0x0a, + 0x0d, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x64, 0x70, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x69, 0x64, 0x70, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x73, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x52, 0x10, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x52, + 0x12, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x72, + 0x6f, 0x6c, 0x65, 0x22, 0xb3, 0x02, 0x0a, 0x21, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x5d, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x12, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x61, 0x73, 0x65, 0x52, 0x6f, 0x6c, + 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x88, 0x01, 0x01, 0x42, + 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, + 0x06, 0x0a, 0x04, 0x5f, 0x75, 0x72, 0x6c, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, + 0x04, 0x10, 0x05, 0x52, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x62, 0x61, 0x73, 0x65, + 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x52, 0x12, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, + 0x62, 0x61, 0x73, 0x65, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x24, 0x0a, 0x22, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x65, 0x0a, 0x1b, 0x41, 0x64, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, + 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x1e, 0x0a, 0x1c, 0x41, 0x64, 0x64, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x68, 0x0a, 0x1e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, + 0x22, 0x21, 0x0a, 0x1f, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x32, 0xe3, 0x12, 0x0a, 0x13, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x0f, + 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, + 0x93, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x87, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, + 0x93, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x39, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, + 0x72, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x8a, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, + 0x02, 0x02, 0x12, 0x8a, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, + 0x9c, 0x01, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x4e, + 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x79, 0x4e, 0x61, 0x6d, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0x93, + 0x01, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x39, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x41, 0x64, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x03, 0x90, 0x02, 0x02, 0x12, 0x97, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x12, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x3d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9c, + 0x01, 0x0a, 0x18, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x3c, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0x8e, 0x01, + 0x0a, 0x15, 0x53, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x39, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x53, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x99, + 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x3b, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x9d, 0x01, 0x0a, 0x1a, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x3e, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x14, 0x41, + 0x64, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x12, 0x38, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x41, 0x64, 0x64, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0x99, 0x01, + 0x0a, 0x17, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3b, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x42, 0x9e, 0x02, 0x0a, 0x1f, 0x63, 0x6f, + 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x11, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, + 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, + 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, + 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, + 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, + 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes = make([]protoimpl.MessageInfo, 34) +var file_buf_alpha_registry_v1alpha1_organization_proto_goTypes = []any{ + (*Organization)(nil), // 0: buf.alpha.registry.v1alpha1.Organization + (*OrganizationMembership)(nil), // 1: buf.alpha.registry.v1alpha1.OrganizationMembership + (*GetOrganizationRequest)(nil), // 2: buf.alpha.registry.v1alpha1.GetOrganizationRequest + (*GetOrganizationResponse)(nil), // 3: buf.alpha.registry.v1alpha1.GetOrganizationResponse + (*GetOrganizationByNameRequest)(nil), // 4: buf.alpha.registry.v1alpha1.GetOrganizationByNameRequest + (*GetOrganizationByNameResponse)(nil), // 5: buf.alpha.registry.v1alpha1.GetOrganizationByNameResponse + (*ListOrganizationsRequest)(nil), // 6: buf.alpha.registry.v1alpha1.ListOrganizationsRequest + (*ListOrganizationsResponse)(nil), // 7: buf.alpha.registry.v1alpha1.ListOrganizationsResponse + (*ListUserOrganizationsRequest)(nil), // 8: buf.alpha.registry.v1alpha1.ListUserOrganizationsRequest + (*ListUserOrganizationsResponse)(nil), // 9: buf.alpha.registry.v1alpha1.ListUserOrganizationsResponse + (*GetUserOrganizationRequest)(nil), // 10: buf.alpha.registry.v1alpha1.GetUserOrganizationRequest + (*GetUserOrganizationResponse)(nil), // 11: buf.alpha.registry.v1alpha1.GetUserOrganizationResponse + (*CreateOrganizationRequest)(nil), // 12: buf.alpha.registry.v1alpha1.CreateOrganizationRequest + (*CreateOrganizationResponse)(nil), // 13: buf.alpha.registry.v1alpha1.CreateOrganizationResponse + (*DeleteOrganizationRequest)(nil), // 14: buf.alpha.registry.v1alpha1.DeleteOrganizationRequest + (*DeleteOrganizationResponse)(nil), // 15: buf.alpha.registry.v1alpha1.DeleteOrganizationResponse + (*DeleteOrganizationByNameRequest)(nil), // 16: buf.alpha.registry.v1alpha1.DeleteOrganizationByNameRequest + (*DeleteOrganizationByNameResponse)(nil), // 17: buf.alpha.registry.v1alpha1.DeleteOrganizationByNameResponse + (*AddOrganizationMemberRequest)(nil), // 18: buf.alpha.registry.v1alpha1.AddOrganizationMemberRequest + (*AddOrganizationMemberResponse)(nil), // 19: buf.alpha.registry.v1alpha1.AddOrganizationMemberResponse + (*UpdateOrganizationMemberRequest)(nil), // 20: buf.alpha.registry.v1alpha1.UpdateOrganizationMemberRequest + (*UpdateOrganizationMemberResponse)(nil), // 21: buf.alpha.registry.v1alpha1.UpdateOrganizationMemberResponse + (*RemoveOrganizationMemberRequest)(nil), // 22: buf.alpha.registry.v1alpha1.RemoveOrganizationMemberRequest + (*RemoveOrganizationMemberResponse)(nil), // 23: buf.alpha.registry.v1alpha1.RemoveOrganizationMemberResponse + (*SetOrganizationMemberRequest)(nil), // 24: buf.alpha.registry.v1alpha1.SetOrganizationMemberRequest + (*SetOrganizationMemberResponse)(nil), // 25: buf.alpha.registry.v1alpha1.SetOrganizationMemberResponse + (*GetOrganizationSettingsRequest)(nil), // 26: buf.alpha.registry.v1alpha1.GetOrganizationSettingsRequest + (*GetOrganizationSettingsResponse)(nil), // 27: buf.alpha.registry.v1alpha1.GetOrganizationSettingsResponse + (*UpdateOrganizationSettingsRequest)(nil), // 28: buf.alpha.registry.v1alpha1.UpdateOrganizationSettingsRequest + (*UpdateOrganizationSettingsResponse)(nil), // 29: buf.alpha.registry.v1alpha1.UpdateOrganizationSettingsResponse + (*AddOrganizationGroupRequest)(nil), // 30: buf.alpha.registry.v1alpha1.AddOrganizationGroupRequest + (*AddOrganizationGroupResponse)(nil), // 31: buf.alpha.registry.v1alpha1.AddOrganizationGroupResponse + (*RemoveOrganizationGroupRequest)(nil), // 32: buf.alpha.registry.v1alpha1.RemoveOrganizationGroupRequest + (*RemoveOrganizationGroupResponse)(nil), // 33: buf.alpha.registry.v1alpha1.RemoveOrganizationGroupResponse + (*timestamppb.Timestamp)(nil), // 34: google.protobuf.Timestamp + (VerificationStatus)(0), // 35: buf.alpha.registry.v1alpha1.VerificationStatus + (OrganizationRole)(0), // 36: buf.alpha.registry.v1alpha1.OrganizationRole + (RepositoryRole)(0), // 37: buf.alpha.registry.v1alpha1.RepositoryRole +} +var file_buf_alpha_registry_v1alpha1_organization_proto_depIdxs = []int32{ + 34, // 0: buf.alpha.registry.v1alpha1.Organization.create_time:type_name -> google.protobuf.Timestamp + 34, // 1: buf.alpha.registry.v1alpha1.Organization.update_time:type_name -> google.protobuf.Timestamp + 35, // 2: buf.alpha.registry.v1alpha1.Organization.verification_status:type_name -> buf.alpha.registry.v1alpha1.VerificationStatus + 0, // 3: buf.alpha.registry.v1alpha1.OrganizationMembership.organization:type_name -> buf.alpha.registry.v1alpha1.Organization + 36, // 4: buf.alpha.registry.v1alpha1.OrganizationMembership.organization_role:type_name -> buf.alpha.registry.v1alpha1.OrganizationRole + 0, // 5: buf.alpha.registry.v1alpha1.GetOrganizationResponse.organization:type_name -> buf.alpha.registry.v1alpha1.Organization + 0, // 6: buf.alpha.registry.v1alpha1.GetOrganizationByNameResponse.organization:type_name -> buf.alpha.registry.v1alpha1.Organization + 0, // 7: buf.alpha.registry.v1alpha1.ListOrganizationsResponse.organizations:type_name -> buf.alpha.registry.v1alpha1.Organization + 1, // 8: buf.alpha.registry.v1alpha1.ListUserOrganizationsResponse.organizations:type_name -> buf.alpha.registry.v1alpha1.OrganizationMembership + 1, // 9: buf.alpha.registry.v1alpha1.GetUserOrganizationResponse.organization_membership:type_name -> buf.alpha.registry.v1alpha1.OrganizationMembership + 0, // 10: buf.alpha.registry.v1alpha1.CreateOrganizationResponse.organization:type_name -> buf.alpha.registry.v1alpha1.Organization + 36, // 11: buf.alpha.registry.v1alpha1.AddOrganizationMemberRequest.organization_role:type_name -> buf.alpha.registry.v1alpha1.OrganizationRole + 36, // 12: buf.alpha.registry.v1alpha1.UpdateOrganizationMemberRequest.organization_role:type_name -> buf.alpha.registry.v1alpha1.OrganizationRole + 36, // 13: buf.alpha.registry.v1alpha1.SetOrganizationMemberRequest.organization_role:type_name -> buf.alpha.registry.v1alpha1.OrganizationRole + 37, // 14: buf.alpha.registry.v1alpha1.GetOrganizationSettingsResponse.repository_base_role:type_name -> buf.alpha.registry.v1alpha1.RepositoryRole + 37, // 15: buf.alpha.registry.v1alpha1.UpdateOrganizationSettingsRequest.repository_base_role:type_name -> buf.alpha.registry.v1alpha1.RepositoryRole + 2, // 16: buf.alpha.registry.v1alpha1.OrganizationService.GetOrganization:input_type -> buf.alpha.registry.v1alpha1.GetOrganizationRequest + 4, // 17: buf.alpha.registry.v1alpha1.OrganizationService.GetOrganizationByName:input_type -> buf.alpha.registry.v1alpha1.GetOrganizationByNameRequest + 6, // 18: buf.alpha.registry.v1alpha1.OrganizationService.ListOrganizations:input_type -> buf.alpha.registry.v1alpha1.ListOrganizationsRequest + 8, // 19: buf.alpha.registry.v1alpha1.OrganizationService.ListUserOrganizations:input_type -> buf.alpha.registry.v1alpha1.ListUserOrganizationsRequest + 10, // 20: buf.alpha.registry.v1alpha1.OrganizationService.GetUserOrganization:input_type -> buf.alpha.registry.v1alpha1.GetUserOrganizationRequest + 12, // 21: buf.alpha.registry.v1alpha1.OrganizationService.CreateOrganization:input_type -> buf.alpha.registry.v1alpha1.CreateOrganizationRequest + 14, // 22: buf.alpha.registry.v1alpha1.OrganizationService.DeleteOrganization:input_type -> buf.alpha.registry.v1alpha1.DeleteOrganizationRequest + 16, // 23: buf.alpha.registry.v1alpha1.OrganizationService.DeleteOrganizationByName:input_type -> buf.alpha.registry.v1alpha1.DeleteOrganizationByNameRequest + 18, // 24: buf.alpha.registry.v1alpha1.OrganizationService.AddOrganizationMember:input_type -> buf.alpha.registry.v1alpha1.AddOrganizationMemberRequest + 20, // 25: buf.alpha.registry.v1alpha1.OrganizationService.UpdateOrganizationMember:input_type -> buf.alpha.registry.v1alpha1.UpdateOrganizationMemberRequest + 22, // 26: buf.alpha.registry.v1alpha1.OrganizationService.RemoveOrganizationMember:input_type -> buf.alpha.registry.v1alpha1.RemoveOrganizationMemberRequest + 24, // 27: buf.alpha.registry.v1alpha1.OrganizationService.SetOrganizationMember:input_type -> buf.alpha.registry.v1alpha1.SetOrganizationMemberRequest + 26, // 28: buf.alpha.registry.v1alpha1.OrganizationService.GetOrganizationSettings:input_type -> buf.alpha.registry.v1alpha1.GetOrganizationSettingsRequest + 28, // 29: buf.alpha.registry.v1alpha1.OrganizationService.UpdateOrganizationSettings:input_type -> buf.alpha.registry.v1alpha1.UpdateOrganizationSettingsRequest + 30, // 30: buf.alpha.registry.v1alpha1.OrganizationService.AddOrganizationGroup:input_type -> buf.alpha.registry.v1alpha1.AddOrganizationGroupRequest + 32, // 31: buf.alpha.registry.v1alpha1.OrganizationService.RemoveOrganizationGroup:input_type -> buf.alpha.registry.v1alpha1.RemoveOrganizationGroupRequest + 3, // 32: buf.alpha.registry.v1alpha1.OrganizationService.GetOrganization:output_type -> buf.alpha.registry.v1alpha1.GetOrganizationResponse + 5, // 33: buf.alpha.registry.v1alpha1.OrganizationService.GetOrganizationByName:output_type -> buf.alpha.registry.v1alpha1.GetOrganizationByNameResponse + 7, // 34: buf.alpha.registry.v1alpha1.OrganizationService.ListOrganizations:output_type -> buf.alpha.registry.v1alpha1.ListOrganizationsResponse + 9, // 35: buf.alpha.registry.v1alpha1.OrganizationService.ListUserOrganizations:output_type -> buf.alpha.registry.v1alpha1.ListUserOrganizationsResponse + 11, // 36: buf.alpha.registry.v1alpha1.OrganizationService.GetUserOrganization:output_type -> buf.alpha.registry.v1alpha1.GetUserOrganizationResponse + 13, // 37: buf.alpha.registry.v1alpha1.OrganizationService.CreateOrganization:output_type -> buf.alpha.registry.v1alpha1.CreateOrganizationResponse + 15, // 38: buf.alpha.registry.v1alpha1.OrganizationService.DeleteOrganization:output_type -> buf.alpha.registry.v1alpha1.DeleteOrganizationResponse + 17, // 39: buf.alpha.registry.v1alpha1.OrganizationService.DeleteOrganizationByName:output_type -> buf.alpha.registry.v1alpha1.DeleteOrganizationByNameResponse + 19, // 40: buf.alpha.registry.v1alpha1.OrganizationService.AddOrganizationMember:output_type -> buf.alpha.registry.v1alpha1.AddOrganizationMemberResponse + 21, // 41: buf.alpha.registry.v1alpha1.OrganizationService.UpdateOrganizationMember:output_type -> buf.alpha.registry.v1alpha1.UpdateOrganizationMemberResponse + 23, // 42: buf.alpha.registry.v1alpha1.OrganizationService.RemoveOrganizationMember:output_type -> buf.alpha.registry.v1alpha1.RemoveOrganizationMemberResponse + 25, // 43: buf.alpha.registry.v1alpha1.OrganizationService.SetOrganizationMember:output_type -> buf.alpha.registry.v1alpha1.SetOrganizationMemberResponse + 27, // 44: buf.alpha.registry.v1alpha1.OrganizationService.GetOrganizationSettings:output_type -> buf.alpha.registry.v1alpha1.GetOrganizationSettingsResponse + 29, // 45: buf.alpha.registry.v1alpha1.OrganizationService.UpdateOrganizationSettings:output_type -> buf.alpha.registry.v1alpha1.UpdateOrganizationSettingsResponse + 31, // 46: buf.alpha.registry.v1alpha1.OrganizationService.AddOrganizationGroup:output_type -> buf.alpha.registry.v1alpha1.AddOrganizationGroupResponse + 33, // 47: buf.alpha.registry.v1alpha1.OrganizationService.RemoveOrganizationGroup:output_type -> buf.alpha.registry.v1alpha1.RemoveOrganizationGroupResponse + 32, // [32:48] is the sub-list for method output_type + 16, // [16:32] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_organization_proto_init() } +func file_buf_alpha_registry_v1alpha1_organization_proto_init() { + if File_buf_alpha_registry_v1alpha1_organization_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_role_proto_init() + file_buf_alpha_registry_v1alpha1_verification_status_proto_init() + file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes[28].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_organization_proto_rawDesc, + NumEnums: 0, + NumMessages: 34, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_organization_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_organization_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_organization_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_organization_proto = out.File + file_buf_alpha_registry_v1alpha1_organization_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_organization_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_organization_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/owner.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/owner.pb.go index dc325e6ac1..30db800d9f 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/owner.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/owner.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/owner.proto +//go:build !protoopaque + package registryv1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -35,7 +36,7 @@ const ( ) type Owner struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Owner: // // *Owner_User @@ -70,11 +71,6 @@ func (x *Owner) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Owner.ProtoReflect.Descriptor instead. -func (*Owner) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_owner_proto_rawDescGZIP(), []int{0} -} - func (x *Owner) GetOwner() isOwner_Owner { if x != nil { return x.Owner @@ -100,6 +96,113 @@ func (x *Owner) GetOrganization() *Organization { return nil } +func (x *Owner) SetUser(v *User) { + if v == nil { + x.Owner = nil + return + } + x.Owner = &Owner_User{v} +} + +func (x *Owner) SetOrganization(v *Organization) { + if v == nil { + x.Owner = nil + return + } + x.Owner = &Owner_Organization{v} +} + +func (x *Owner) HasOwner() bool { + if x == nil { + return false + } + return x.Owner != nil +} + +func (x *Owner) HasUser() bool { + if x == nil { + return false + } + _, ok := x.Owner.(*Owner_User) + return ok +} + +func (x *Owner) HasOrganization() bool { + if x == nil { + return false + } + _, ok := x.Owner.(*Owner_Organization) + return ok +} + +func (x *Owner) ClearOwner() { + x.Owner = nil +} + +func (x *Owner) ClearUser() { + if _, ok := x.Owner.(*Owner_User); ok { + x.Owner = nil + } +} + +func (x *Owner) ClearOrganization() { + if _, ok := x.Owner.(*Owner_Organization); ok { + x.Owner = nil + } +} + +const Owner_Owner_not_set_case case_Owner_Owner = 0 +const Owner_User_case case_Owner_Owner = 1 +const Owner_Organization_case case_Owner_Owner = 2 + +func (x *Owner) WhichOwner() case_Owner_Owner { + if x == nil { + return Owner_Owner_not_set_case + } + switch x.Owner.(type) { + case *Owner_User: + return Owner_User_case + case *Owner_Organization: + return Owner_Organization_case + default: + return Owner_Owner_not_set_case + } +} + +type Owner_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Owner: + // The requested owner is a `User`. + User *User + // The requested owner is a `Organization`. + Organization *Organization + // -- end of Owner +} + +func (b0 Owner_builder) Build() *Owner { + m0 := &Owner{} + b, x := &b0, m0 + _, _ = b, x + if b.User != nil { + x.Owner = &Owner_User{b.User} + } + if b.Organization != nil { + x.Owner = &Owner_Organization{b.Organization} + } + return m0 +} + +type case_Owner_Owner protoreflect.FieldNumber + +func (x case_Owner_Owner) String() string { + md := file_buf_alpha_registry_v1alpha1_owner_proto_msgTypes[0].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isOwner_Owner interface { isOwner_Owner() } @@ -119,7 +222,7 @@ func (*Owner_User) isOwner_Owner() {} func (*Owner_Organization) isOwner_Owner() {} type GetOwnerByNameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Name of the requested owner. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields @@ -151,11 +254,6 @@ func (x *GetOwnerByNameRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetOwnerByNameRequest.ProtoReflect.Descriptor instead. -func (*GetOwnerByNameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_owner_proto_rawDescGZIP(), []int{1} -} - func (x *GetOwnerByNameRequest) GetName() string { if x != nil { return x.Name @@ -163,8 +261,27 @@ func (x *GetOwnerByNameRequest) GetName() string { return "" } +func (x *GetOwnerByNameRequest) SetName(v string) { + x.Name = v +} + +type GetOwnerByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Name of the requested owner. + Name string +} + +func (b0 GetOwnerByNameRequest_builder) Build() *GetOwnerByNameRequest { + m0 := &GetOwnerByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + return m0 +} + type GetOwnerByNameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner *Owner `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -195,11 +312,6 @@ func (x *GetOwnerByNameResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetOwnerByNameResponse.ProtoReflect.Descriptor instead. -func (*GetOwnerByNameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_owner_proto_rawDescGZIP(), []int{2} -} - func (x *GetOwnerByNameResponse) GetOwner() *Owner { if x != nil { return x.Owner @@ -207,6 +319,35 @@ func (x *GetOwnerByNameResponse) GetOwner() *Owner { return nil } +func (x *GetOwnerByNameResponse) SetOwner(v *Owner) { + x.Owner = v +} + +func (x *GetOwnerByNameResponse) HasOwner() bool { + if x == nil { + return false + } + return x.Owner != nil +} + +func (x *GetOwnerByNameResponse) ClearOwner() { + x.Owner = nil +} + +type GetOwnerByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner *Owner +} + +func (b0 GetOwnerByNameResponse_builder) Build() *GetOwnerByNameResponse { + m0 := &GetOwnerByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + return m0 +} + var File_buf_alpha_registry_v1alpha1_owner_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_owner_proto_rawDesc = []byte{ @@ -267,18 +408,6 @@ var file_buf_alpha_registry_v1alpha1_owner_proto_rawDesc = []byte{ 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_owner_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_owner_proto_rawDescData = file_buf_alpha_registry_v1alpha1_owner_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_owner_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_owner_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_owner_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_owner_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_owner_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_owner_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_buf_alpha_registry_v1alpha1_owner_proto_goTypes = []any{ (*Owner)(nil), // 0: buf.alpha.registry.v1alpha1.Owner diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/owner_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/owner_protoopaque.pb.go new file mode 100644 index 0000000000..72d0cee5b1 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/owner_protoopaque.pb.go @@ -0,0 +1,449 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/owner.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Owner struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner isOwner_Owner `protobuf_oneof:"owner"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Owner) Reset() { + *x = Owner{} + mi := &file_buf_alpha_registry_v1alpha1_owner_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Owner) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Owner) ProtoMessage() {} + +func (x *Owner) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_owner_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Owner) GetUser() *User { + if x != nil { + if x, ok := x.xxx_hidden_Owner.(*owner_User); ok { + return x.User + } + } + return nil +} + +func (x *Owner) GetOrganization() *Organization { + if x != nil { + if x, ok := x.xxx_hidden_Owner.(*owner_Organization); ok { + return x.Organization + } + } + return nil +} + +func (x *Owner) SetUser(v *User) { + if v == nil { + x.xxx_hidden_Owner = nil + return + } + x.xxx_hidden_Owner = &owner_User{v} +} + +func (x *Owner) SetOrganization(v *Organization) { + if v == nil { + x.xxx_hidden_Owner = nil + return + } + x.xxx_hidden_Owner = &owner_Organization{v} +} + +func (x *Owner) HasOwner() bool { + if x == nil { + return false + } + return x.xxx_hidden_Owner != nil +} + +func (x *Owner) HasUser() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Owner.(*owner_User) + return ok +} + +func (x *Owner) HasOrganization() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Owner.(*owner_Organization) + return ok +} + +func (x *Owner) ClearOwner() { + x.xxx_hidden_Owner = nil +} + +func (x *Owner) ClearUser() { + if _, ok := x.xxx_hidden_Owner.(*owner_User); ok { + x.xxx_hidden_Owner = nil + } +} + +func (x *Owner) ClearOrganization() { + if _, ok := x.xxx_hidden_Owner.(*owner_Organization); ok { + x.xxx_hidden_Owner = nil + } +} + +const Owner_Owner_not_set_case case_Owner_Owner = 0 +const Owner_User_case case_Owner_Owner = 1 +const Owner_Organization_case case_Owner_Owner = 2 + +func (x *Owner) WhichOwner() case_Owner_Owner { + if x == nil { + return Owner_Owner_not_set_case + } + switch x.xxx_hidden_Owner.(type) { + case *owner_User: + return Owner_User_case + case *owner_Organization: + return Owner_Organization_case + default: + return Owner_Owner_not_set_case + } +} + +type Owner_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Owner: + // The requested owner is a `User`. + User *User + // The requested owner is a `Organization`. + Organization *Organization + // -- end of xxx_hidden_Owner +} + +func (b0 Owner_builder) Build() *Owner { + m0 := &Owner{} + b, x := &b0, m0 + _, _ = b, x + if b.User != nil { + x.xxx_hidden_Owner = &owner_User{b.User} + } + if b.Organization != nil { + x.xxx_hidden_Owner = &owner_Organization{b.Organization} + } + return m0 +} + +type case_Owner_Owner protoreflect.FieldNumber + +func (x case_Owner_Owner) String() string { + md := file_buf_alpha_registry_v1alpha1_owner_proto_msgTypes[0].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isOwner_Owner interface { + isOwner_Owner() +} + +type owner_User struct { + // The requested owner is a `User`. + User *User `protobuf:"bytes,1,opt,name=user,proto3,oneof"` +} + +type owner_Organization struct { + // The requested owner is a `Organization`. + Organization *Organization `protobuf:"bytes,2,opt,name=organization,proto3,oneof"` +} + +func (*owner_User) isOwner_Owner() {} + +func (*owner_Organization) isOwner_Owner() {} + +type GetOwnerByNameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetOwnerByNameRequest) Reset() { + *x = GetOwnerByNameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_owner_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetOwnerByNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOwnerByNameRequest) ProtoMessage() {} + +func (x *GetOwnerByNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_owner_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetOwnerByNameRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GetOwnerByNameRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +type GetOwnerByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Name of the requested owner. + Name string +} + +func (b0 GetOwnerByNameRequest_builder) Build() *GetOwnerByNameRequest { + m0 := &GetOwnerByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + return m0 +} + +type GetOwnerByNameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner *Owner `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetOwnerByNameResponse) Reset() { + *x = GetOwnerByNameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_owner_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetOwnerByNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOwnerByNameResponse) ProtoMessage() {} + +func (x *GetOwnerByNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_owner_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetOwnerByNameResponse) GetOwner() *Owner { + if x != nil { + return x.xxx_hidden_Owner + } + return nil +} + +func (x *GetOwnerByNameResponse) SetOwner(v *Owner) { + x.xxx_hidden_Owner = v +} + +func (x *GetOwnerByNameResponse) HasOwner() bool { + if x == nil { + return false + } + return x.xxx_hidden_Owner != nil +} + +func (x *GetOwnerByNameResponse) ClearOwner() { + x.xxx_hidden_Owner = nil +} + +type GetOwnerByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner *Owner +} + +func (b0 GetOwnerByNameResponse_builder) Build() *GetOwnerByNameResponse { + m0 := &GetOwnerByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + return m0 +} + +var File_buf_alpha_registry_v1alpha1_owner_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_owner_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x2e, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9a, + 0x01, 0x0a, 0x05, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x48, 0x00, 0x52, 0x04, 0x75, 0x73, 0x65, + 0x72, 0x12, 0x4f, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x42, 0x07, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x2b, 0x0a, 0x15, 0x47, + 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x52, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4f, + 0x77, 0x6e, 0x65, 0x72, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x38, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x32, 0x8e, 0x01, 0x0a, + 0x0c, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7e, 0x0a, + 0x0e, 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x97, 0x02, + 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x42, 0x0a, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, + 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, + 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, + 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, + 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, + 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_owner_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_buf_alpha_registry_v1alpha1_owner_proto_goTypes = []any{ + (*Owner)(nil), // 0: buf.alpha.registry.v1alpha1.Owner + (*GetOwnerByNameRequest)(nil), // 1: buf.alpha.registry.v1alpha1.GetOwnerByNameRequest + (*GetOwnerByNameResponse)(nil), // 2: buf.alpha.registry.v1alpha1.GetOwnerByNameResponse + (*User)(nil), // 3: buf.alpha.registry.v1alpha1.User + (*Organization)(nil), // 4: buf.alpha.registry.v1alpha1.Organization +} +var file_buf_alpha_registry_v1alpha1_owner_proto_depIdxs = []int32{ + 3, // 0: buf.alpha.registry.v1alpha1.Owner.user:type_name -> buf.alpha.registry.v1alpha1.User + 4, // 1: buf.alpha.registry.v1alpha1.Owner.organization:type_name -> buf.alpha.registry.v1alpha1.Organization + 0, // 2: buf.alpha.registry.v1alpha1.GetOwnerByNameResponse.owner:type_name -> buf.alpha.registry.v1alpha1.Owner + 1, // 3: buf.alpha.registry.v1alpha1.OwnerService.GetOwnerByName:input_type -> buf.alpha.registry.v1alpha1.GetOwnerByNameRequest + 2, // 4: buf.alpha.registry.v1alpha1.OwnerService.GetOwnerByName:output_type -> buf.alpha.registry.v1alpha1.GetOwnerByNameResponse + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_owner_proto_init() } +func file_buf_alpha_registry_v1alpha1_owner_proto_init() { + if File_buf_alpha_registry_v1alpha1_owner_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_organization_proto_init() + file_buf_alpha_registry_v1alpha1_user_proto_init() + file_buf_alpha_registry_v1alpha1_owner_proto_msgTypes[0].OneofWrappers = []any{ + (*owner_User)(nil), + (*owner_Organization)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_owner_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_owner_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_owner_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_owner_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_owner_proto = out.File + file_buf_alpha_registry_v1alpha1_owner_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_owner_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_owner_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/plugin_curation.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/plugin_curation.pb.go index fddbdd9807..202968f20b 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/plugin_curation.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/plugin_curation.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/plugin_curation.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -27,7 +29,6 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" pluginpb "google.golang.org/protobuf/types/pluginpb" reflect "reflect" - sync "sync" ) const ( @@ -83,11 +84,6 @@ func (x CuratedPluginVisibility) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use CuratedPluginVisibility.Descriptor instead. -func (CuratedPluginVisibility) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{0} -} - // The supported plugin registries for curated plugins. type PluginRegistryType int32 @@ -151,11 +147,6 @@ func (x PluginRegistryType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use PluginRegistryType.Descriptor instead. -func (PluginRegistryType) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{1} -} - // PluginLanguage is used to specify the output languages a plugin supports. type PluginLanguage int32 @@ -243,11 +234,6 @@ func (x PluginLanguage) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use PluginLanguage.Descriptor instead. -func (PluginLanguage) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{2} -} - // NPMImportStyle is used to specify the import style the plugin supports. type NPMImportStyle int32 @@ -293,11 +279,6 @@ func (x NPMImportStyle) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use NPMImportStyle.Descriptor instead. -func (NPMImportStyle) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{3} -} - // SwiftPlatformType is used to specify the platform type for a Swift plugins minimum compatible version. type SwiftPlatformType int32 @@ -349,11 +330,6 @@ func (x SwiftPlatformType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use SwiftPlatformType.Descriptor instead. -func (SwiftPlatformType) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{4} -} - // PythonPackageType is used to specify the package type for a Python Generated SDK. type PythonPackageType int32 @@ -402,11 +378,6 @@ func (x PythonPackageType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use PythonPackageType.Descriptor instead. -func (PythonPackageType) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{5} -} - // DotnetTargetFramework specifies the target framework for dotnet plugins. // This is not meant to be an exhaustive list - most plugins should target a // netstandard version. @@ -488,14 +459,9 @@ func (x DotnetTargetFramework) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use DotnetTargetFramework.Descriptor instead. -func (DotnetTargetFramework) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{6} -} - // GoConfig is the configuration for a Go plugin. type GoConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Optionally define the runtime libraries for the plugin. RuntimeLibraries []*GoConfig_RuntimeLibrary `protobuf:"bytes,1,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` // The minimum Go version required by the plugin. @@ -537,11 +503,6 @@ func (x *GoConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GoConfig.ProtoReflect.Descriptor instead. -func (*GoConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{0} -} - func (x *GoConfig) GetRuntimeLibraries() []*GoConfig_RuntimeLibrary { if x != nil { return x.RuntimeLibraries @@ -563,9 +524,48 @@ func (x *GoConfig) GetBasePlugin() string { return "" } +func (x *GoConfig) SetRuntimeLibraries(v []*GoConfig_RuntimeLibrary) { + x.RuntimeLibraries = v +} + +func (x *GoConfig) SetMinimumVersion(v string) { + x.MinimumVersion = v +} + +func (x *GoConfig) SetBasePlugin(v string) { + x.BasePlugin = v +} + +type GoConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Optionally define the runtime libraries for the plugin. + RuntimeLibraries []*GoConfig_RuntimeLibrary + // The minimum Go version required by the plugin. + MinimumVersion string + // Optionally specifies an alternate base plugin like "remote/org/go-multi" instead of the default + // "remote/protocolbuffers/go". If provided, the name must match one of the plugin dependencies in + // the top-level deps field. + // + // This affects how imports are resolved - the specified plugin's import path will be used as the + // base path for all generated code, replacing the default protocolbuffers/go import paths. Used + // when depending on non-default BSR plugins. + BasePlugin string +} + +func (b0 GoConfig_builder) Build() *GoConfig { + m0 := &GoConfig{} + b, x := &b0, m0 + _, _ = b, x + x.RuntimeLibraries = b.RuntimeLibraries + x.MinimumVersion = b.MinimumVersion + x.BasePlugin = b.BasePlugin + return m0 +} + // NPMConfig is the configuration for a JavaScript NPM plugin. type NPMConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Optionally define the runtime libraries for the plugin. RuntimeLibraries []*NPMConfig_RuntimeLibrary `protobuf:"bytes,1,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` // Optionally define a configuration for rewriting import paths, a feature mainly @@ -608,11 +608,6 @@ func (x *NPMConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NPMConfig.ProtoReflect.Descriptor instead. -func (*NPMConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{1} -} - func (x *NPMConfig) GetRuntimeLibraries() []*NPMConfig_RuntimeLibrary { if x != nil { return x.RuntimeLibraries @@ -634,9 +629,49 @@ func (x *NPMConfig) GetImportStyle() NPMImportStyle { return NPMImportStyle_NPM_IMPORT_STYLE_UNSPECIFIED } +func (x *NPMConfig) SetRuntimeLibraries(v []*NPMConfig_RuntimeLibrary) { + x.RuntimeLibraries = v +} + +func (x *NPMConfig) SetRewriteImportPathSuffix(v string) { + x.RewriteImportPathSuffix = v +} + +func (x *NPMConfig) SetImportStyle(v NPMImportStyle) { + x.ImportStyle = v +} + +type NPMConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Optionally define the runtime libraries for the plugin. + RuntimeLibraries []*NPMConfig_RuntimeLibrary + // Optionally define a configuration for rewriting import paths, a feature mainly + // used for remote code generation in the BSR npm registry, which makes it possible + // to serve the output of a BSR module and a plugin in an individual package. + // + // All plugins based on @bufbuild/protoplugin support the option "rewrite_imports". + // Setting this value, i.e. "connectweb.js" or "pb.js", informs the BSR npm registry + // that the plugin supports import rewrites with the given import suffix. + RewriteImportPathSuffix string + // The import style used for the "type" field in the package.json file. + // This exists to support legacy plugins that require "commonjs" support. + ImportStyle NPMImportStyle +} + +func (b0 NPMConfig_builder) Build() *NPMConfig { + m0 := &NPMConfig{} + b, x := &b0, m0 + _, _ = b, x + x.RuntimeLibraries = b.RuntimeLibraries + x.RewriteImportPathSuffix = b.RewriteImportPathSuffix + x.ImportStyle = b.ImportStyle + return m0 +} + // MavenConfig is the configuration for a Maven plugin. type MavenConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Optionally define the runtime libraries for the plugin. RuntimeLibraries []*MavenConfig_RuntimeLibrary `protobuf:"bytes,1,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` // Settings for the Java/Kotlin compiler used to compile the generated code. @@ -672,11 +707,6 @@ func (x *MavenConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MavenConfig.ProtoReflect.Descriptor instead. -func (*MavenConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{2} -} - func (x *MavenConfig) GetRuntimeLibraries() []*MavenConfig_RuntimeLibrary { if x != nil { return x.RuntimeLibraries @@ -698,9 +728,53 @@ func (x *MavenConfig) GetAdditionalRuntimes() []*MavenConfig_RuntimeConfig { return nil } +func (x *MavenConfig) SetRuntimeLibraries(v []*MavenConfig_RuntimeLibrary) { + x.RuntimeLibraries = v +} + +func (x *MavenConfig) SetCompiler(v *MavenConfig_CompilerConfig) { + x.Compiler = v +} + +func (x *MavenConfig) SetAdditionalRuntimes(v []*MavenConfig_RuntimeConfig) { + x.AdditionalRuntimes = v +} + +func (x *MavenConfig) HasCompiler() bool { + if x == nil { + return false + } + return x.Compiler != nil +} + +func (x *MavenConfig) ClearCompiler() { + x.Compiler = nil +} + +type MavenConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Optionally define the runtime libraries for the plugin. + RuntimeLibraries []*MavenConfig_RuntimeLibrary + // Settings for the Java/Kotlin compiler used to compile the generated code. + Compiler *MavenConfig_CompilerConfig + // Optional additional runtimes supported by the plugin. + AdditionalRuntimes []*MavenConfig_RuntimeConfig +} + +func (b0 MavenConfig_builder) Build() *MavenConfig { + m0 := &MavenConfig{} + b, x := &b0, m0 + _, _ = b, x + x.RuntimeLibraries = b.RuntimeLibraries + x.Compiler = b.Compiler + x.AdditionalRuntimes = b.AdditionalRuntimes + return m0 +} + // NugetConfig is the configuration for a NuGet C# plugin. type NugetConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Target frameworks to build. At least one target framework is required. TargetFrameworks []DotnetTargetFramework `protobuf:"varint,1,rep,packed,name=target_frameworks,json=targetFrameworks,proto3,enum=buf.alpha.registry.v1alpha1.DotnetTargetFramework" json:"target_frameworks,omitempty"` // Optional runtime libraries required by the plugin's generated code. @@ -734,11 +808,6 @@ func (x *NugetConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NugetConfig.ProtoReflect.Descriptor instead. -func (*NugetConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{3} -} - func (x *NugetConfig) GetTargetFrameworks() []DotnetTargetFramework { if x != nil { return x.TargetFrameworks @@ -753,9 +822,35 @@ func (x *NugetConfig) GetRuntimeLibraries() []*NugetConfig_RuntimeLibrary { return nil } +func (x *NugetConfig) SetTargetFrameworks(v []DotnetTargetFramework) { + x.TargetFrameworks = v +} + +func (x *NugetConfig) SetRuntimeLibraries(v []*NugetConfig_RuntimeLibrary) { + x.RuntimeLibraries = v +} + +type NugetConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Target frameworks to build. At least one target framework is required. + TargetFrameworks []DotnetTargetFramework + // Optional runtime libraries required by the plugin's generated code. + RuntimeLibraries []*NugetConfig_RuntimeLibrary +} + +func (b0 NugetConfig_builder) Build() *NugetConfig { + m0 := &NugetConfig{} + b, x := &b0, m0 + _, _ = b, x + x.TargetFrameworks = b.TargetFrameworks + x.RuntimeLibraries = b.RuntimeLibraries + return m0 +} + // CmakeConfig is the configuration for a Cmake C++ plugin. type CmakeConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -785,13 +880,20 @@ func (x *CmakeConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CmakeConfig.ProtoReflect.Descriptor instead. -func (*CmakeConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{4} +type CmakeConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 CmakeConfig_builder) Build() *CmakeConfig { + m0 := &CmakeConfig{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type SwiftConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Optionally define the runtime libraries for the plugin. RuntimeLibraries []*SwiftConfig_RuntimeLibrary `protobuf:"bytes,1,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` unknownFields protoimpl.UnknownFields @@ -823,11 +925,6 @@ func (x *SwiftConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SwiftConfig.ProtoReflect.Descriptor instead. -func (*SwiftConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{5} -} - func (x *SwiftConfig) GetRuntimeLibraries() []*SwiftConfig_RuntimeLibrary { if x != nil { return x.RuntimeLibraries @@ -835,8 +932,27 @@ func (x *SwiftConfig) GetRuntimeLibraries() []*SwiftConfig_RuntimeLibrary { return nil } +func (x *SwiftConfig) SetRuntimeLibraries(v []*SwiftConfig_RuntimeLibrary) { + x.RuntimeLibraries = v +} + +type SwiftConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Optionally define the runtime libraries for the plugin. + RuntimeLibraries []*SwiftConfig_RuntimeLibrary +} + +func (b0 SwiftConfig_builder) Build() *SwiftConfig { + m0 := &SwiftConfig{} + b, x := &b0, m0 + _, _ = b, x + x.RuntimeLibraries = b.RuntimeLibraries + return m0 +} + type PythonConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RuntimeLibraries []*PythonConfig_RuntimeLibrary `protobuf:"bytes,1,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` // requires_python is a PEP 440 Version Specifier that specifies the value of // the `Requires-Python` field in a metadata file. @@ -876,11 +992,6 @@ func (x *PythonConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PythonConfig.ProtoReflect.Descriptor instead. -func (*PythonConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{6} -} - func (x *PythonConfig) GetRuntimeLibraries() []*PythonConfig_RuntimeLibrary { if x != nil { return x.RuntimeLibraries @@ -902,9 +1013,46 @@ func (x *PythonConfig) GetPackageType() PythonPackageType { return PythonPackageType_PYTHON_PACKAGE_TYPE_UNSPECIFIED } +func (x *PythonConfig) SetRuntimeLibraries(v []*PythonConfig_RuntimeLibrary) { + x.RuntimeLibraries = v +} + +func (x *PythonConfig) SetRequiresPython(v string) { + x.RequiresPython = v +} + +func (x *PythonConfig) SetPackageType(v PythonPackageType) { + x.PackageType = v +} + +type PythonConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RuntimeLibraries []*PythonConfig_RuntimeLibrary + // requires_python is a PEP 440 Version Specifier that specifies the value of + // the `Requires-Python` field in a metadata file. + // + // Ref: + // - https://packaging.python.org/en/latest/specifications/core-metadata/#requires-python + // - https://peps.python.org/pep-0440/ + RequiresPython string + // package_type is the PythonPackageType that this plugin generates. + PackageType PythonPackageType +} + +func (b0 PythonConfig_builder) Build() *PythonConfig { + m0 := &PythonConfig{} + b, x := &b0, m0 + _, _ = b, x + x.RuntimeLibraries = b.RuntimeLibraries + x.RequiresPython = b.RequiresPython + x.PackageType = b.PackageType + return m0 +} + // CargoConfig specifies the Cargo Registry configuration for a Rust plugin. type CargoConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // rust_version specifies the minimum supported Rust version (MSRV) for the generated crate. // Ref: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field RustVersion string `protobuf:"bytes,1,opt,name=rust_version,json=rustVersion,proto3" json:"rust_version,omitempty"` @@ -939,11 +1087,6 @@ func (x *CargoConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CargoConfig.ProtoReflect.Descriptor instead. -func (*CargoConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{7} -} - func (x *CargoConfig) GetRustVersion() string { if x != nil { return x.RustVersion @@ -958,9 +1101,36 @@ func (x *CargoConfig) GetRuntimeLibraries() []*CargoConfig_RuntimeLibrary { return nil } +func (x *CargoConfig) SetRustVersion(v string) { + x.RustVersion = v +} + +func (x *CargoConfig) SetRuntimeLibraries(v []*CargoConfig_RuntimeLibrary) { + x.RuntimeLibraries = v +} + +type CargoConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // rust_version specifies the minimum supported Rust version (MSRV) for the generated crate. + // Ref: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field + RustVersion string + // runtime_libraries specifies the runtime dependencies for the generated crate. Optional. + RuntimeLibraries []*CargoConfig_RuntimeLibrary +} + +func (b0 CargoConfig_builder) Build() *CargoConfig { + m0 := &CargoConfig{} + b, x := &b0, m0 + _, _ = b, x + x.RustVersion = b.RustVersion + x.RuntimeLibraries = b.RuntimeLibraries + return m0 +} + // RegistryConfig is the configuration for the remote registry of a plugin. type RegistryConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to RegistryConfig: // // *RegistryConfig_GoConfig @@ -1004,11 +1174,6 @@ func (x *RegistryConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RegistryConfig.ProtoReflect.Descriptor instead. -func (*RegistryConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{8} -} - func (x *RegistryConfig) GetRegistryConfig() isRegistryConfig_RegistryConfig { if x != nil { return x.RegistryConfig @@ -1095,6 +1260,293 @@ func (x *RegistryConfig) GetOptions() []string { return nil } +func (x *RegistryConfig) SetGoConfig(v *GoConfig) { + if v == nil { + x.RegistryConfig = nil + return + } + x.RegistryConfig = &RegistryConfig_GoConfig{v} +} + +func (x *RegistryConfig) SetNpmConfig(v *NPMConfig) { + if v == nil { + x.RegistryConfig = nil + return + } + x.RegistryConfig = &RegistryConfig_NpmConfig{v} +} + +func (x *RegistryConfig) SetMavenConfig(v *MavenConfig) { + if v == nil { + x.RegistryConfig = nil + return + } + x.RegistryConfig = &RegistryConfig_MavenConfig{v} +} + +func (x *RegistryConfig) SetSwiftConfig(v *SwiftConfig) { + if v == nil { + x.RegistryConfig = nil + return + } + x.RegistryConfig = &RegistryConfig_SwiftConfig{v} +} + +func (x *RegistryConfig) SetPythonConfig(v *PythonConfig) { + if v == nil { + x.RegistryConfig = nil + return + } + x.RegistryConfig = &RegistryConfig_PythonConfig{v} +} + +func (x *RegistryConfig) SetCargoConfig(v *CargoConfig) { + if v == nil { + x.RegistryConfig = nil + return + } + x.RegistryConfig = &RegistryConfig_CargoConfig{v} +} + +func (x *RegistryConfig) SetNugetConfig(v *NugetConfig) { + if v == nil { + x.RegistryConfig = nil + return + } + x.RegistryConfig = &RegistryConfig_NugetConfig{v} +} + +func (x *RegistryConfig) SetCmakeConfig(v *CmakeConfig) { + if v == nil { + x.RegistryConfig = nil + return + } + x.RegistryConfig = &RegistryConfig_CmakeConfig{v} +} + +func (x *RegistryConfig) SetOptions(v []string) { + x.Options = v +} + +func (x *RegistryConfig) HasRegistryConfig() bool { + if x == nil { + return false + } + return x.RegistryConfig != nil +} + +func (x *RegistryConfig) HasGoConfig() bool { + if x == nil { + return false + } + _, ok := x.RegistryConfig.(*RegistryConfig_GoConfig) + return ok +} + +func (x *RegistryConfig) HasNpmConfig() bool { + if x == nil { + return false + } + _, ok := x.RegistryConfig.(*RegistryConfig_NpmConfig) + return ok +} + +func (x *RegistryConfig) HasMavenConfig() bool { + if x == nil { + return false + } + _, ok := x.RegistryConfig.(*RegistryConfig_MavenConfig) + return ok +} + +func (x *RegistryConfig) HasSwiftConfig() bool { + if x == nil { + return false + } + _, ok := x.RegistryConfig.(*RegistryConfig_SwiftConfig) + return ok +} + +func (x *RegistryConfig) HasPythonConfig() bool { + if x == nil { + return false + } + _, ok := x.RegistryConfig.(*RegistryConfig_PythonConfig) + return ok +} + +func (x *RegistryConfig) HasCargoConfig() bool { + if x == nil { + return false + } + _, ok := x.RegistryConfig.(*RegistryConfig_CargoConfig) + return ok +} + +func (x *RegistryConfig) HasNugetConfig() bool { + if x == nil { + return false + } + _, ok := x.RegistryConfig.(*RegistryConfig_NugetConfig) + return ok +} + +func (x *RegistryConfig) HasCmakeConfig() bool { + if x == nil { + return false + } + _, ok := x.RegistryConfig.(*RegistryConfig_CmakeConfig) + return ok +} + +func (x *RegistryConfig) ClearRegistryConfig() { + x.RegistryConfig = nil +} + +func (x *RegistryConfig) ClearGoConfig() { + if _, ok := x.RegistryConfig.(*RegistryConfig_GoConfig); ok { + x.RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearNpmConfig() { + if _, ok := x.RegistryConfig.(*RegistryConfig_NpmConfig); ok { + x.RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearMavenConfig() { + if _, ok := x.RegistryConfig.(*RegistryConfig_MavenConfig); ok { + x.RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearSwiftConfig() { + if _, ok := x.RegistryConfig.(*RegistryConfig_SwiftConfig); ok { + x.RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearPythonConfig() { + if _, ok := x.RegistryConfig.(*RegistryConfig_PythonConfig); ok { + x.RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearCargoConfig() { + if _, ok := x.RegistryConfig.(*RegistryConfig_CargoConfig); ok { + x.RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearNugetConfig() { + if _, ok := x.RegistryConfig.(*RegistryConfig_NugetConfig); ok { + x.RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearCmakeConfig() { + if _, ok := x.RegistryConfig.(*RegistryConfig_CmakeConfig); ok { + x.RegistryConfig = nil + } +} + +const RegistryConfig_RegistryConfig_not_set_case case_RegistryConfig_RegistryConfig = 0 +const RegistryConfig_GoConfig_case case_RegistryConfig_RegistryConfig = 1 +const RegistryConfig_NpmConfig_case case_RegistryConfig_RegistryConfig = 2 +const RegistryConfig_MavenConfig_case case_RegistryConfig_RegistryConfig = 3 +const RegistryConfig_SwiftConfig_case case_RegistryConfig_RegistryConfig = 4 +const RegistryConfig_PythonConfig_case case_RegistryConfig_RegistryConfig = 5 +const RegistryConfig_CargoConfig_case case_RegistryConfig_RegistryConfig = 6 +const RegistryConfig_NugetConfig_case case_RegistryConfig_RegistryConfig = 7 +const RegistryConfig_CmakeConfig_case case_RegistryConfig_RegistryConfig = 8 + +func (x *RegistryConfig) WhichRegistryConfig() case_RegistryConfig_RegistryConfig { + if x == nil { + return RegistryConfig_RegistryConfig_not_set_case + } + switch x.RegistryConfig.(type) { + case *RegistryConfig_GoConfig: + return RegistryConfig_GoConfig_case + case *RegistryConfig_NpmConfig: + return RegistryConfig_NpmConfig_case + case *RegistryConfig_MavenConfig: + return RegistryConfig_MavenConfig_case + case *RegistryConfig_SwiftConfig: + return RegistryConfig_SwiftConfig_case + case *RegistryConfig_PythonConfig: + return RegistryConfig_PythonConfig_case + case *RegistryConfig_CargoConfig: + return RegistryConfig_CargoConfig_case + case *RegistryConfig_NugetConfig: + return RegistryConfig_NugetConfig_case + case *RegistryConfig_CmakeConfig: + return RegistryConfig_CmakeConfig_case + default: + return RegistryConfig_RegistryConfig_not_set_case + } +} + +type RegistryConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof RegistryConfig: + GoConfig *GoConfig + NpmConfig *NPMConfig + MavenConfig *MavenConfig + SwiftConfig *SwiftConfig + PythonConfig *PythonConfig + CargoConfig *CargoConfig + NugetConfig *NugetConfig + CmakeConfig *CmakeConfig + // -- end of RegistryConfig + // The options to pass to the plugin. These will + // be merged into a single, comma-separated string. + Options []string +} + +func (b0 RegistryConfig_builder) Build() *RegistryConfig { + m0 := &RegistryConfig{} + b, x := &b0, m0 + _, _ = b, x + if b.GoConfig != nil { + x.RegistryConfig = &RegistryConfig_GoConfig{b.GoConfig} + } + if b.NpmConfig != nil { + x.RegistryConfig = &RegistryConfig_NpmConfig{b.NpmConfig} + } + if b.MavenConfig != nil { + x.RegistryConfig = &RegistryConfig_MavenConfig{b.MavenConfig} + } + if b.SwiftConfig != nil { + x.RegistryConfig = &RegistryConfig_SwiftConfig{b.SwiftConfig} + } + if b.PythonConfig != nil { + x.RegistryConfig = &RegistryConfig_PythonConfig{b.PythonConfig} + } + if b.CargoConfig != nil { + x.RegistryConfig = &RegistryConfig_CargoConfig{b.CargoConfig} + } + if b.NugetConfig != nil { + x.RegistryConfig = &RegistryConfig_NugetConfig{b.NugetConfig} + } + if b.CmakeConfig != nil { + x.RegistryConfig = &RegistryConfig_CmakeConfig{b.CmakeConfig} + } + x.Options = b.Options + return m0 +} + +type case_RegistryConfig_RegistryConfig protoreflect.FieldNumber + +func (x case_RegistryConfig_RegistryConfig) String() string { + md := file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[8].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isRegistryConfig_RegistryConfig interface { isRegistryConfig_RegistryConfig() } @@ -1148,7 +1600,7 @@ func (*RegistryConfig_NugetConfig) isRegistryConfig_RegistryConfig() {} func (*RegistryConfig_CmakeConfig) isRegistryConfig_RegistryConfig() {} type CuratedPluginReference struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the plugin, i.e. "library". Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // The name of the plugin, i.e. "connect-go". @@ -1186,11 +1638,6 @@ func (x *CuratedPluginReference) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CuratedPluginReference.ProtoReflect.Descriptor instead. -func (*CuratedPluginReference) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{9} -} - func (x *CuratedPluginReference) GetOwner() string { if x != nil { return x.Owner @@ -1219,9 +1666,49 @@ func (x *CuratedPluginReference) GetRevision() uint32 { return 0 } +func (x *CuratedPluginReference) SetOwner(v string) { + x.Owner = v +} + +func (x *CuratedPluginReference) SetName(v string) { + x.Name = v +} + +func (x *CuratedPluginReference) SetVersion(v string) { + x.Version = v +} + +func (x *CuratedPluginReference) SetRevision(v uint32) { + x.Revision = v +} + +type CuratedPluginReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the plugin, i.e. "library". + Owner string + // The name of the plugin, i.e. "connect-go". + Name string + // Semver-formatted plugin version. + Version string + // The revision for this plugin version. + Revision uint32 +} + +func (b0 CuratedPluginReference_builder) Build() *CuratedPluginReference { + m0 := &CuratedPluginReference{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Name = b.Name + x.Version = b.Version + x.Revision = b.Revision + return m0 +} + // CuratedPlugin represents a protoc plugin curated by Buf, such as protoc-gen-go. type CuratedPlugin struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the plugin, which uniquely identifies the plugin. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The owner of the plugin, i.e. "library". @@ -1299,11 +1786,6 @@ func (x *CuratedPlugin) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CuratedPlugin.ProtoReflect.Descriptor instead. -func (*CuratedPlugin) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{10} -} - func (x *CuratedPlugin) GetId() string { if x != nil { return x.Id @@ -1458,9 +1940,201 @@ func (x *CuratedPlugin) GetCollections() []*PluginCollection { return nil } +func (x *CuratedPlugin) SetId(v string) { + x.Id = v +} + +func (x *CuratedPlugin) SetOwner(v string) { + x.Owner = v +} + +func (x *CuratedPlugin) SetName(v string) { + x.Name = v +} + +func (x *CuratedPlugin) SetRegistryType(v PluginRegistryType) { + x.RegistryType = v +} + +func (x *CuratedPlugin) SetVersion(v string) { + x.Version = v +} + +func (x *CuratedPlugin) SetContainerImageDigest(v string) { + x.ContainerImageDigest = v +} + +func (x *CuratedPlugin) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *CuratedPlugin) SetDependencies(v []*CuratedPluginReference) { + x.Dependencies = v +} + +func (x *CuratedPlugin) SetSourceUrl(v string) { + x.SourceUrl = v +} + +func (x *CuratedPlugin) SetDescription(v string) { + x.Description = v +} + +func (x *CuratedPlugin) SetRegistryConfig(v *RegistryConfig) { + x.RegistryConfig = v +} + +func (x *CuratedPlugin) SetRevision(v uint32) { + x.Revision = v +} + +func (x *CuratedPlugin) SetOutputLanguages(v []PluginLanguage) { + x.OutputLanguages = v +} + +func (x *CuratedPlugin) SetSpdxLicenseId(v string) { + x.SpdxLicenseId = v +} + +func (x *CuratedPlugin) SetLicenseUrl(v string) { + x.LicenseUrl = v +} + +func (x *CuratedPlugin) SetVerified(v bool) { + x.Verified = v +} + +func (x *CuratedPlugin) SetVisibility(v CuratedPluginVisibility) { + x.Visibility = v +} + +func (x *CuratedPlugin) SetDeprecated(v bool) { + x.Deprecated = v +} + +func (x *CuratedPlugin) SetDeprecationMessage(v string) { + x.DeprecationMessage = v +} + +func (x *CuratedPlugin) SetIntegrationGuideUrl(v string) { + x.IntegrationGuideUrl = v +} + +func (x *CuratedPlugin) SetDoc(v string) { + x.Doc = v +} + +func (x *CuratedPlugin) SetCollections(v []*PluginCollection) { + x.Collections = v +} + +func (x *CuratedPlugin) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *CuratedPlugin) HasRegistryConfig() bool { + if x == nil { + return false + } + return x.RegistryConfig != nil +} + +func (x *CuratedPlugin) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *CuratedPlugin) ClearRegistryConfig() { + x.RegistryConfig = nil +} + +type CuratedPlugin_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the plugin, which uniquely identifies the plugin. + Id string + // The owner of the plugin, i.e. "library". + Owner string + // The name of the plugin, i.e. "connect-go". + Name string + // The optional registry type of the plugin. + RegistryType PluginRegistryType + // Semver-formatted plugin version. + Version string + // The full container image digest associated with this plugin version including + // the algorithm. + // Ref: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests + ContainerImageDigest string + // The creation time of the plugin. + CreateTime *timestamppb.Timestamp + // List of plugin dependencies. + Dependencies []*CuratedPluginReference + // Optionally specify the URL leading to the source code of the plugin, if available. + SourceUrl string + // Optionally specify a brief description of the plugin functionality. + Description string + // The configuration for the remote registry of the plugin. + RegistryConfig *RegistryConfig + // The revision for this plugin version. + Revision uint32 + // The output languages supported by the plugin. + OutputLanguages []PluginLanguage + // spdx_license_id is the license of the plugin, which should be one of the identifiers + // defined in https://spdx.org/licenses + SpdxLicenseId string + // license_url specifies an optional URL for the plugin's license (if not using a standard spdx_license_id). + LicenseUrl string + // verified indicates the plugin has been verified. Verification is a property + // of the BSR and cannot be set by end-users. + Verified bool + // Visibility indicates whether the plugin is public or private. + Visibility CuratedPluginVisibility + // Deprecated indicates whether the plugin is deprecated. + Deprecated bool + // Optionally specify a message to be displayed when the plugin is deprecated. + DeprecationMessage string + // The URL leading to the integration guide of the plugin, if available. + IntegrationGuideUrl string + // The configurable documentation of the Plugin. + Doc string + // The collections the Plugin belongs to. + Collections []*PluginCollection +} + +func (b0 CuratedPlugin_builder) Build() *CuratedPlugin { + m0 := &CuratedPlugin{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Owner = b.Owner + x.Name = b.Name + x.RegistryType = b.RegistryType + x.Version = b.Version + x.ContainerImageDigest = b.ContainerImageDigest + x.CreateTime = b.CreateTime + x.Dependencies = b.Dependencies + x.SourceUrl = b.SourceUrl + x.Description = b.Description + x.RegistryConfig = b.RegistryConfig + x.Revision = b.Revision + x.OutputLanguages = b.OutputLanguages + x.SpdxLicenseId = b.SpdxLicenseId + x.LicenseUrl = b.LicenseUrl + x.Verified = b.Verified + x.Visibility = b.Visibility + x.Deprecated = b.Deprecated + x.DeprecationMessage = b.DeprecationMessage + x.IntegrationGuideUrl = b.IntegrationGuideUrl + x.Doc = b.Doc + x.Collections = b.Collections + return m0 +} + // Plugin collections group related plugins, organizing them by functionality or ecosystem. type PluginCollection struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The name of the collection. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields @@ -1492,11 +2166,6 @@ func (x *PluginCollection) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PluginCollection.ProtoReflect.Descriptor instead. -func (*PluginCollection) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{11} -} - func (x *PluginCollection) GetName() string { if x != nil { return x.Name @@ -1504,8 +2173,27 @@ func (x *PluginCollection) GetName() string { return "" } +func (x *PluginCollection) SetName(v string) { + x.Name = v +} + +type PluginCollection_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the collection. + Name string +} + +func (b0 PluginCollection_builder) Build() *PluginCollection { + m0 := &PluginCollection{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + return m0 +} + type GenerateCodeRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The image to run plugins against to generate the desired file outputs. // // All image files that are not imports and not well-known types will be generated. @@ -1550,11 +2238,6 @@ func (x *GenerateCodeRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GenerateCodeRequest.ProtoReflect.Descriptor instead. -func (*GenerateCodeRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{12} -} - func (x *GenerateCodeRequest) GetImage() *v1.Image { if x != nil { return x.Image @@ -1583,8 +2266,66 @@ func (x *GenerateCodeRequest) GetIncludeWellKnownTypes() bool { return false } +func (x *GenerateCodeRequest) SetImage(v *v1.Image) { + x.Image = v +} + +func (x *GenerateCodeRequest) SetRequests(v []*PluginGenerationRequest) { + x.Requests = v +} + +func (x *GenerateCodeRequest) SetIncludeImports(v bool) { + x.IncludeImports = v +} + +func (x *GenerateCodeRequest) SetIncludeWellKnownTypes(v bool) { + x.IncludeWellKnownTypes = v +} + +func (x *GenerateCodeRequest) HasImage() bool { + if x == nil { + return false + } + return x.Image != nil +} + +func (x *GenerateCodeRequest) ClearImage() { + x.Image = nil +} + +type GenerateCodeRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The image to run plugins against to generate the desired file outputs. + // + // All image files that are not imports and not well-known types will be generated. + // If you want to filter what files are generated, modify the image. + // If you want to include imports, set include_imports. + Image *v1.Image + Requests []*PluginGenerationRequest + // Include imports from the Image in generation. If include_imports is also set + // in one of requests, use the request's value for that plugin. + IncludeImports bool + // Include Well-Known Types from the Image in generation. + // + // include_imports must be set if include_well_known_types is set. If include_well_known_types + // is also set in one of requests, use the request's value for that plugin. + IncludeWellKnownTypes bool +} + +func (b0 GenerateCodeRequest_builder) Build() *GenerateCodeRequest { + m0 := &GenerateCodeRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Image = b.Image + x.Requests = b.Requests + x.IncludeImports = b.IncludeImports + x.IncludeWellKnownTypes = b.IncludeWellKnownTypes + return m0 +} + type GenerateCodeResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Responses from each plugin execution. // The order of each response matches the order in the GenerateCodeRequest. Responses []*PluginGenerationResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` @@ -1617,11 +2358,6 @@ func (x *GenerateCodeResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GenerateCodeResponse.ProtoReflect.Descriptor instead. -func (*GenerateCodeResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{13} -} - func (x *GenerateCodeResponse) GetResponses() []*PluginGenerationResponse { if x != nil { return x.Responses @@ -1629,9 +2365,29 @@ func (x *GenerateCodeResponse) GetResponses() []*PluginGenerationResponse { return nil } +func (x *GenerateCodeResponse) SetResponses(v []*PluginGenerationResponse) { + x.Responses = v +} + +type GenerateCodeResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Responses from each plugin execution. + // The order of each response matches the order in the GenerateCodeRequest. + Responses []*PluginGenerationResponse +} + +func (b0 GenerateCodeResponse_builder) Build() *GenerateCodeResponse { + m0 := &GenerateCodeResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Responses = b.Responses + return m0 +} + // Request for performing code generation using the specified plugin. type PluginGenerationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The plugin to execute. PluginReference *CuratedPluginReference `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` // The options to pass to the plugin. These will @@ -1672,11 +2428,6 @@ func (x *PluginGenerationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PluginGenerationRequest.ProtoReflect.Descriptor instead. -func (*PluginGenerationRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{14} -} - func (x *PluginGenerationRequest) GetPluginReference() *CuratedPluginReference { if x != nil { return x.PluginReference @@ -1705,9 +2456,85 @@ func (x *PluginGenerationRequest) GetIncludeWellKnownTypes() bool { return false } +func (x *PluginGenerationRequest) SetPluginReference(v *CuratedPluginReference) { + x.PluginReference = v +} + +func (x *PluginGenerationRequest) SetOptions(v []string) { + x.Options = v +} + +func (x *PluginGenerationRequest) SetIncludeImports(v bool) { + x.IncludeImports = &v +} + +func (x *PluginGenerationRequest) SetIncludeWellKnownTypes(v bool) { + x.IncludeWellKnownTypes = &v +} + +func (x *PluginGenerationRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.PluginReference != nil +} + +func (x *PluginGenerationRequest) HasIncludeImports() bool { + if x == nil { + return false + } + return x.IncludeImports != nil +} + +func (x *PluginGenerationRequest) HasIncludeWellKnownTypes() bool { + if x == nil { + return false + } + return x.IncludeWellKnownTypes != nil +} + +func (x *PluginGenerationRequest) ClearPluginReference() { + x.PluginReference = nil +} + +func (x *PluginGenerationRequest) ClearIncludeImports() { + x.IncludeImports = nil +} + +func (x *PluginGenerationRequest) ClearIncludeWellKnownTypes() { + x.IncludeWellKnownTypes = nil +} + +type PluginGenerationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin to execute. + PluginReference *CuratedPluginReference + // The options to pass to the plugin. These will + // be merged into a single, comma-separated string. + Options []string + // Include imports from the Image in generation. + IncludeImports *bool + // Include Well-Known Types from the Image in generation. + // + // include_imports must be set if include_well_known_types is set. + IncludeWellKnownTypes *bool +} + +func (b0 PluginGenerationRequest_builder) Build() *PluginGenerationRequest { + m0 := &PluginGenerationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PluginReference = b.PluginReference + x.Options = b.Options + x.IncludeImports = b.IncludeImports + x.IncludeWellKnownTypes = b.IncludeWellKnownTypes + return m0 +} + // Response from code generation for a given plugin. type PluginGenerationResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Generated code from the plugin. Response *pluginpb.CodeGeneratorResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` unknownFields protoimpl.UnknownFields @@ -1739,11 +2566,6 @@ func (x *PluginGenerationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PluginGenerationResponse.ProtoReflect.Descriptor instead. -func (*PluginGenerationResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{15} -} - func (x *PluginGenerationResponse) GetResponse() *pluginpb.CodeGeneratorResponse { if x != nil { return x.Response @@ -1751,8 +2573,38 @@ func (x *PluginGenerationResponse) GetResponse() *pluginpb.CodeGeneratorResponse return nil } +func (x *PluginGenerationResponse) SetResponse(v *pluginpb.CodeGeneratorResponse) { + x.Response = v +} + +func (x *PluginGenerationResponse) HasResponse() bool { + if x == nil { + return false + } + return x.Response != nil +} + +func (x *PluginGenerationResponse) ClearResponse() { + x.Response = nil +} + +type PluginGenerationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Generated code from the plugin. + Response *pluginpb.CodeGeneratorResponse +} + +func (b0 PluginGenerationResponse_builder) Build() *PluginGenerationResponse { + m0 := &PluginGenerationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Response = b.Response + return m0 +} + type DeleteCuratedPluginRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the plugin to delete. Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // The name of the plugin to delete. @@ -1789,11 +2641,6 @@ func (x *DeleteCuratedPluginRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteCuratedPluginRequest.ProtoReflect.Descriptor instead. -func (*DeleteCuratedPluginRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{16} -} - func (x *DeleteCuratedPluginRequest) GetOwner() string { if x != nil { return x.Owner @@ -1815,8 +2662,42 @@ func (x *DeleteCuratedPluginRequest) GetVersion() string { return "" } +func (x *DeleteCuratedPluginRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *DeleteCuratedPluginRequest) SetName(v string) { + x.Name = v +} + +func (x *DeleteCuratedPluginRequest) SetVersion(v string) { + x.Version = v +} + +type DeleteCuratedPluginRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the plugin to delete. + Owner string + // The name of the plugin to delete. + Name string + // Version is the plugin version and is optional. If this field is not set then delete all versions, + // otherwise delete only the specified version which includes all revisions. + Version string +} + +func (b0 DeleteCuratedPluginRequest_builder) Build() *DeleteCuratedPluginRequest { + m0 := &DeleteCuratedPluginRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Name = b.Name + x.Version = b.Version + return m0 +} + type DeleteCuratedPluginResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1846,13 +2727,20 @@ func (x *DeleteCuratedPluginResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteCuratedPluginResponse.ProtoReflect.Descriptor instead. -func (*DeleteCuratedPluginResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{17} +type DeleteCuratedPluginResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteCuratedPluginResponse_builder) Build() *DeleteCuratedPluginResponse { + m0 := &DeleteCuratedPluginResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type CreateCuratedPluginRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the plugin, i.e. "library". Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // The name of the plugin, i.e. "connect-go". @@ -1917,11 +2805,6 @@ func (x *CreateCuratedPluginRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateCuratedPluginRequest.ProtoReflect.Descriptor instead. -func (*CreateCuratedPluginRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{18} -} - func (x *CreateCuratedPluginRequest) GetOwner() string { if x != nil { return x.Owner @@ -2034,8 +2917,146 @@ func (x *CreateCuratedPluginRequest) GetDeprecated() bool { return false } +func (x *CreateCuratedPluginRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *CreateCuratedPluginRequest) SetName(v string) { + x.Name = v +} + +func (x *CreateCuratedPluginRequest) SetRegistryType(v PluginRegistryType) { + x.RegistryType = v +} + +func (x *CreateCuratedPluginRequest) SetVersion(v string) { + x.Version = v +} + +func (x *CreateCuratedPluginRequest) SetContainerImageDigest(v string) { + x.ContainerImageDigest = v +} + +func (x *CreateCuratedPluginRequest) SetDependencies(v []*CuratedPluginReference) { + x.Dependencies = v +} + +func (x *CreateCuratedPluginRequest) SetSourceUrl(v string) { + x.SourceUrl = v +} + +func (x *CreateCuratedPluginRequest) SetDescription(v string) { + x.Description = v +} + +func (x *CreateCuratedPluginRequest) SetRegistryConfig(v *RegistryConfig) { + x.RegistryConfig = v +} + +func (x *CreateCuratedPluginRequest) SetRevision(v uint32) { + x.Revision = v +} + +func (x *CreateCuratedPluginRequest) SetOutputLanguages(v []PluginLanguage) { + x.OutputLanguages = v +} + +func (x *CreateCuratedPluginRequest) SetSpdxLicenseId(v string) { + x.SpdxLicenseId = v +} + +func (x *CreateCuratedPluginRequest) SetLicenseUrl(v string) { + x.LicenseUrl = v +} + +func (x *CreateCuratedPluginRequest) SetVisibility(v CuratedPluginVisibility) { + x.Visibility = v +} + +func (x *CreateCuratedPluginRequest) SetIntegrationGuideUrl(v string) { + x.IntegrationGuideUrl = v +} + +func (x *CreateCuratedPluginRequest) SetDeprecated(v bool) { + x.Deprecated = v +} + +func (x *CreateCuratedPluginRequest) HasRegistryConfig() bool { + if x == nil { + return false + } + return x.RegistryConfig != nil +} + +func (x *CreateCuratedPluginRequest) ClearRegistryConfig() { + x.RegistryConfig = nil +} + +type CreateCuratedPluginRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the plugin, i.e. "library". + Owner string + // The name of the plugin, i.e. "connect-go". + Name string + // The optional registry type of the plugin. + RegistryType PluginRegistryType + // Semver-formatted plugin version. + Version string + // The full container image digest associated with this plugin version including + // the algorithm. + // Ref: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests + ContainerImageDigest string + // List of plugin dependencies. + Dependencies []*CuratedPluginReference + // The URL leading to the source code of the plugin, if available. + SourceUrl string + // A brief description of the plugin functionality. + Description string + // The configuration for the remote registry of the plugin. + RegistryConfig *RegistryConfig + // The revision for this plugin version. + Revision uint32 + // The output languages supported by the plugin. + OutputLanguages []PluginLanguage + // spdx_license_id is the license of the plugin, which should be one of the identifiers + // defined in https://spdx.org/licenses + SpdxLicenseId string + // license_url specifies an optional URL for the plugin's license (if not using a standard spdx_license_id). + LicenseUrl string + // Visibility indicates whether the plugin is public or private. + Visibility CuratedPluginVisibility + // The URL leading to the integration guide of the plugin, if available. + IntegrationGuideUrl string + // The deprecation status of the plugin. + Deprecated bool +} + +func (b0 CreateCuratedPluginRequest_builder) Build() *CreateCuratedPluginRequest { + m0 := &CreateCuratedPluginRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Name = b.Name + x.RegistryType = b.RegistryType + x.Version = b.Version + x.ContainerImageDigest = b.ContainerImageDigest + x.Dependencies = b.Dependencies + x.SourceUrl = b.SourceUrl + x.Description = b.Description + x.RegistryConfig = b.RegistryConfig + x.Revision = b.Revision + x.OutputLanguages = b.OutputLanguages + x.SpdxLicenseId = b.SpdxLicenseId + x.LicenseUrl = b.LicenseUrl + x.Visibility = b.Visibility + x.IntegrationGuideUrl = b.IntegrationGuideUrl + x.Deprecated = b.Deprecated + return m0 +} + type CreateCuratedPluginResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The created plugin. Configuration *CuratedPlugin `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"` unknownFields protoimpl.UnknownFields @@ -2067,11 +3088,6 @@ func (x *CreateCuratedPluginResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateCuratedPluginResponse.ProtoReflect.Descriptor instead. -func (*CreateCuratedPluginResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{19} -} - func (x *CreateCuratedPluginResponse) GetConfiguration() *CuratedPlugin { if x != nil { return x.Configuration @@ -2079,8 +3095,38 @@ func (x *CreateCuratedPluginResponse) GetConfiguration() *CuratedPlugin { return nil } +func (x *CreateCuratedPluginResponse) SetConfiguration(v *CuratedPlugin) { + x.Configuration = v +} + +func (x *CreateCuratedPluginResponse) HasConfiguration() bool { + if x == nil { + return false + } + return x.Configuration != nil +} + +func (x *CreateCuratedPluginResponse) ClearConfiguration() { + x.Configuration = nil +} + +type CreateCuratedPluginResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The created plugin. + Configuration *CuratedPlugin +} + +func (b0 CreateCuratedPluginResponse_builder) Build() *CreateCuratedPluginResponse { + m0 := &CreateCuratedPluginResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Configuration = b.Configuration + return m0 +} + type ListCuratedPluginsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The first page is returned if this is empty. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` @@ -2118,11 +3164,6 @@ func (x *ListCuratedPluginsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListCuratedPluginsRequest.ProtoReflect.Descriptor instead. -func (*ListCuratedPluginsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{20} -} - func (x *ListCuratedPluginsRequest) GetPageSize() uint32 { if x != nil { return x.PageSize @@ -2158,8 +3199,53 @@ func (x *ListCuratedPluginsRequest) GetIncludeDeprecated() bool { return false } +func (x *ListCuratedPluginsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListCuratedPluginsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListCuratedPluginsRequest) SetReverse(v bool) { + x.Reverse = v +} + +func (x *ListCuratedPluginsRequest) SetSupportsRemotePackages(v bool) { + x.SupportsRemotePackages = v +} + +func (x *ListCuratedPluginsRequest) SetIncludeDeprecated(v bool) { + x.IncludeDeprecated = v +} + +type ListCuratedPluginsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool + // If true, will only return plugins which support remote packages (registry_type is set). + SupportsRemotePackages bool + // If true, will include deprecated plugins. + IncludeDeprecated bool +} + +func (b0 ListCuratedPluginsRequest_builder) Build() *ListCuratedPluginsRequest { + m0 := &ListCuratedPluginsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + x.SupportsRemotePackages = b.SupportsRemotePackages + x.IncludeDeprecated = b.IncludeDeprecated + return m0 +} + type ListCuratedPluginsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Plugins []*CuratedPlugin `protobuf:"bytes,1,rep,name=plugins,proto3" json:"plugins,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -2192,11 +3278,6 @@ func (x *ListCuratedPluginsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListCuratedPluginsResponse.ProtoReflect.Descriptor instead. -func (*ListCuratedPluginsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{21} -} - func (x *ListCuratedPluginsResponse) GetPlugins() []*CuratedPlugin { if x != nil { return x.Plugins @@ -2211,8 +3292,33 @@ func (x *ListCuratedPluginsResponse) GetNextPageToken() string { return "" } +func (x *ListCuratedPluginsResponse) SetPlugins(v []*CuratedPlugin) { + x.Plugins = v +} + +func (x *ListCuratedPluginsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListCuratedPluginsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Plugins []*CuratedPlugin + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListCuratedPluginsResponse_builder) Build() *ListCuratedPluginsResponse { + m0 := &ListCuratedPluginsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Plugins = b.Plugins + x.NextPageToken = b.NextPageToken + return m0 +} + type GetLatestCuratedPluginRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the plugin, i.e. "library". Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // The name of the plugin, i.e. "connect-go". @@ -2256,11 +3362,6 @@ func (x *GetLatestCuratedPluginRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetLatestCuratedPluginRequest.ProtoReflect.Descriptor instead. -func (*GetLatestCuratedPluginRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{22} -} - func (x *GetLatestCuratedPluginRequest) GetOwner() string { if x != nil { return x.Owner @@ -2282,22 +3383,73 @@ func (x *GetLatestCuratedPluginRequest) GetVersion() string { return "" } -func (x *GetLatestCuratedPluginRequest) GetRevision() uint32 { - if x != nil { - return x.Revision - } - return 0 +func (x *GetLatestCuratedPluginRequest) GetRevision() uint32 { + if x != nil { + return x.Revision + } + return 0 +} + +func (x *GetLatestCuratedPluginRequest) GetSupportsRemotePackages() bool { + if x != nil { + return x.SupportsRemotePackages + } + return false +} + +func (x *GetLatestCuratedPluginRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *GetLatestCuratedPluginRequest) SetName(v string) { + x.Name = v +} + +func (x *GetLatestCuratedPluginRequest) SetVersion(v string) { + x.Version = v +} + +func (x *GetLatestCuratedPluginRequest) SetRevision(v uint32) { + x.Revision = v +} + +func (x *GetLatestCuratedPluginRequest) SetSupportsRemotePackages(v bool) { + x.SupportsRemotePackages = v +} + +type GetLatestCuratedPluginRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the plugin, i.e. "library". + Owner string + // The name of the plugin, i.e. "connect-go". + Name string + // Both version (semver-formatted) and revision are optional, which means + // return the latest plugin. + // If version is set, but revision is omitted, then return the latest + // revision for that version. + // If version and revision are both set, return specific plugin. + // It is an error to set a revision without a corresponding version. + Version string + Revision uint32 + // If true, will only return versions (and revisions) which support remote packages (registry_type is set). + SupportsRemotePackages bool } -func (x *GetLatestCuratedPluginRequest) GetSupportsRemotePackages() bool { - if x != nil { - return x.SupportsRemotePackages - } - return false +func (b0 GetLatestCuratedPluginRequest_builder) Build() *GetLatestCuratedPluginRequest { + m0 := &GetLatestCuratedPluginRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Name = b.Name + x.Version = b.Version + x.Revision = b.Revision + x.SupportsRemotePackages = b.SupportsRemotePackages + return m0 } type GetLatestCuratedPluginResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Plugin *CuratedPlugin `protobuf:"bytes,1,opt,name=plugin,proto3" json:"plugin,omitempty"` // versions is a semver-sorted list in descending order. Versions []*CuratedPluginVersionRevisions `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"` @@ -2330,11 +3482,6 @@ func (x *GetLatestCuratedPluginResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetLatestCuratedPluginResponse.ProtoReflect.Descriptor instead. -func (*GetLatestCuratedPluginResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{23} -} - func (x *GetLatestCuratedPluginResponse) GetPlugin() *CuratedPlugin { if x != nil { return x.Plugin @@ -2349,8 +3496,44 @@ func (x *GetLatestCuratedPluginResponse) GetVersions() []*CuratedPluginVersionRe return nil } +func (x *GetLatestCuratedPluginResponse) SetPlugin(v *CuratedPlugin) { + x.Plugin = v +} + +func (x *GetLatestCuratedPluginResponse) SetVersions(v []*CuratedPluginVersionRevisions) { + x.Versions = v +} + +func (x *GetLatestCuratedPluginResponse) HasPlugin() bool { + if x == nil { + return false + } + return x.Plugin != nil +} + +func (x *GetLatestCuratedPluginResponse) ClearPlugin() { + x.Plugin = nil +} + +type GetLatestCuratedPluginResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Plugin *CuratedPlugin + // versions is a semver-sorted list in descending order. + Versions []*CuratedPluginVersionRevisions +} + +func (b0 GetLatestCuratedPluginResponse_builder) Build() *GetLatestCuratedPluginResponse { + m0 := &GetLatestCuratedPluginResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Plugin = b.Plugin + x.Versions = b.Versions + return m0 +} + type CuratedPluginVersionRevisions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // revisions is a sorted list in descending order. Revisions []uint32 `protobuf:"varint,2,rep,packed,name=revisions,proto3" json:"revisions,omitempty"` @@ -2383,11 +3566,6 @@ func (x *CuratedPluginVersionRevisions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CuratedPluginVersionRevisions.ProtoReflect.Descriptor instead. -func (*CuratedPluginVersionRevisions) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{24} -} - func (x *CuratedPluginVersionRevisions) GetVersion() string { if x != nil { return x.Version @@ -2402,9 +3580,34 @@ func (x *CuratedPluginVersionRevisions) GetRevisions() []uint32 { return nil } +func (x *CuratedPluginVersionRevisions) SetVersion(v string) { + x.Version = v +} + +func (x *CuratedPluginVersionRevisions) SetRevisions(v []uint32) { + x.Revisions = v +} + +type CuratedPluginVersionRevisions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Version string + // revisions is a sorted list in descending order. + Revisions []uint32 +} + +func (b0 CuratedPluginVersionRevisions_builder) Build() *CuratedPluginVersionRevisions { + m0 := &CuratedPluginVersionRevisions{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + x.Revisions = b.Revisions + return m0 +} + // RuntimeLibrary describes the runtime library dependency of the generated code. type GoConfig_RuntimeLibrary struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The name of the runtime library module, i.e. "google.golang.org/protobuf". Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // The version of the runtime library, i.e. "v1.27.1". @@ -2438,11 +3641,6 @@ func (x *GoConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GoConfig_RuntimeLibrary.ProtoReflect.Descriptor instead. -func (*GoConfig_RuntimeLibrary) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{0, 0} -} - func (x *GoConfig_RuntimeLibrary) GetModule() string { if x != nil { return x.Module @@ -2457,9 +3655,35 @@ func (x *GoConfig_RuntimeLibrary) GetVersion() string { return "" } +func (x *GoConfig_RuntimeLibrary) SetModule(v string) { + x.Module = v +} + +func (x *GoConfig_RuntimeLibrary) SetVersion(v string) { + x.Version = v +} + +type GoConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the runtime library module, i.e. "google.golang.org/protobuf". + Module string + // The version of the runtime library, i.e. "v1.27.1". + Version string +} + +func (b0 GoConfig_RuntimeLibrary_builder) Build() *GoConfig_RuntimeLibrary { + m0 := &GoConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.Module = b.Module + x.Version = b.Version + return m0 +} + // RuntimeLibrary describes the runtime library dependency of the generated code. type NPMConfig_RuntimeLibrary struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The name of the runtime library package, i.e. "@grpc/grpc-js". Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"` // The version of the runtime library, i.e. "^1.27.1". @@ -2493,11 +3717,6 @@ func (x *NPMConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NPMConfig_RuntimeLibrary.ProtoReflect.Descriptor instead. -func (*NPMConfig_RuntimeLibrary) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{1, 0} -} - func (x *NPMConfig_RuntimeLibrary) GetPackage() string { if x != nil { return x.Package @@ -2512,9 +3731,35 @@ func (x *NPMConfig_RuntimeLibrary) GetVersion() string { return "" } +func (x *NPMConfig_RuntimeLibrary) SetPackage(v string) { + x.Package = v +} + +func (x *NPMConfig_RuntimeLibrary) SetVersion(v string) { + x.Version = v +} + +type NPMConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the runtime library package, i.e. "@grpc/grpc-js". + Package string + // The version of the runtime library, i.e. "^1.27.1". + Version string +} + +func (b0 NPMConfig_RuntimeLibrary_builder) Build() *NPMConfig_RuntimeLibrary { + m0 := &NPMConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.Package = b.Package + x.Version = b.Version + return m0 +} + // RuntimeLibrary describes a runtime dependency of the generated code. type MavenConfig_RuntimeLibrary struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` @@ -2549,11 +3794,6 @@ func (x *MavenConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MavenConfig_RuntimeLibrary.ProtoReflect.Descriptor instead. -func (*MavenConfig_RuntimeLibrary) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{2, 0} -} - func (x *MavenConfig_RuntimeLibrary) GetGroupId() string { if x != nil { return x.GroupId @@ -2589,9 +3829,51 @@ func (x *MavenConfig_RuntimeLibrary) GetExtension() string { return "" } +func (x *MavenConfig_RuntimeLibrary) SetGroupId(v string) { + x.GroupId = v +} + +func (x *MavenConfig_RuntimeLibrary) SetArtifactId(v string) { + x.ArtifactId = v +} + +func (x *MavenConfig_RuntimeLibrary) SetVersion(v string) { + x.Version = v +} + +func (x *MavenConfig_RuntimeLibrary) SetClassifier(v string) { + x.Classifier = v +} + +func (x *MavenConfig_RuntimeLibrary) SetExtension(v string) { + x.Extension = v +} + +type MavenConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + GroupId string + ArtifactId string + Version string + Classifier string + Extension string +} + +func (b0 MavenConfig_RuntimeLibrary_builder) Build() *MavenConfig_RuntimeLibrary { + m0 := &MavenConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.GroupId = b.GroupId + x.ArtifactId = b.ArtifactId + x.Version = b.Version + x.Classifier = b.Classifier + x.Extension = b.Extension + return m0 +} + // CompilerConfig contains configuration for the Java and/or Kotlin compiler used when compiling the generated code. type MavenConfig_CompilerConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Java *MavenConfig_CompilerJavaConfig `protobuf:"bytes,1,opt,name=java,proto3" json:"java,omitempty"` Kotlin *MavenConfig_CompilerKotlinConfig `protobuf:"bytes,2,opt,name=kotlin,proto3" json:"kotlin,omitempty"` unknownFields protoimpl.UnknownFields @@ -2623,11 +3905,6 @@ func (x *MavenConfig_CompilerConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MavenConfig_CompilerConfig.ProtoReflect.Descriptor instead. -func (*MavenConfig_CompilerConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{2, 1} -} - func (x *MavenConfig_CompilerConfig) GetJava() *MavenConfig_CompilerJavaConfig { if x != nil { return x.Java @@ -2642,9 +3919,55 @@ func (x *MavenConfig_CompilerConfig) GetKotlin() *MavenConfig_CompilerKotlinConf return nil } +func (x *MavenConfig_CompilerConfig) SetJava(v *MavenConfig_CompilerJavaConfig) { + x.Java = v +} + +func (x *MavenConfig_CompilerConfig) SetKotlin(v *MavenConfig_CompilerKotlinConfig) { + x.Kotlin = v +} + +func (x *MavenConfig_CompilerConfig) HasJava() bool { + if x == nil { + return false + } + return x.Java != nil +} + +func (x *MavenConfig_CompilerConfig) HasKotlin() bool { + if x == nil { + return false + } + return x.Kotlin != nil +} + +func (x *MavenConfig_CompilerConfig) ClearJava() { + x.Java = nil +} + +func (x *MavenConfig_CompilerConfig) ClearKotlin() { + x.Kotlin = nil +} + +type MavenConfig_CompilerConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Java *MavenConfig_CompilerJavaConfig + Kotlin *MavenConfig_CompilerKotlinConfig +} + +func (b0 MavenConfig_CompilerConfig_builder) Build() *MavenConfig_CompilerConfig { + m0 := &MavenConfig_CompilerConfig{} + b, x := &b0, m0 + _, _ = b, x + x.Java = b.Java + x.Kotlin = b.Kotlin + return m0 +} + // CompilerJavaConfig contains settings for the Java compiler. type MavenConfig_CompilerJavaConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // File encoding (default: UTF-8). Encoding string `protobuf:"bytes,1,opt,name=encoding,proto3" json:"encoding,omitempty"` // Release version (default: 8). @@ -2682,11 +4005,6 @@ func (x *MavenConfig_CompilerJavaConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MavenConfig_CompilerJavaConfig.ProtoReflect.Descriptor instead. -func (*MavenConfig_CompilerJavaConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{2, 2} -} - func (x *MavenConfig_CompilerJavaConfig) GetEncoding() string { if x != nil { return x.Encoding @@ -2715,9 +4033,49 @@ func (x *MavenConfig_CompilerJavaConfig) GetTarget() int32 { return 0 } +func (x *MavenConfig_CompilerJavaConfig) SetEncoding(v string) { + x.Encoding = v +} + +func (x *MavenConfig_CompilerJavaConfig) SetRelease(v int32) { + x.Release = v +} + +func (x *MavenConfig_CompilerJavaConfig) SetSource(v int32) { + x.Source = v +} + +func (x *MavenConfig_CompilerJavaConfig) SetTarget(v int32) { + x.Target = v +} + +type MavenConfig_CompilerJavaConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // File encoding (default: UTF-8). + Encoding string + // Release version (default: 8). + Release int32 + // Source version (default: 8). + Source int32 + // Target version (default: 8). + Target int32 +} + +func (b0 MavenConfig_CompilerJavaConfig_builder) Build() *MavenConfig_CompilerJavaConfig { + m0 := &MavenConfig_CompilerJavaConfig{} + b, x := &b0, m0 + _, _ = b, x + x.Encoding = b.Encoding + x.Release = b.Release + x.Source = b.Source + x.Target = b.Target + return m0 +} + // CompilerKotlinConfig contains settings for the Kotlin compiler. type MavenConfig_CompilerKotlinConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Version of the Kotlin compiler used to compile the generated code. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // Version of the Kotlin API to target. @@ -2755,11 +4113,6 @@ func (x *MavenConfig_CompilerKotlinConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MavenConfig_CompilerKotlinConfig.ProtoReflect.Descriptor instead. -func (*MavenConfig_CompilerKotlinConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{2, 3} -} - func (x *MavenConfig_CompilerKotlinConfig) GetVersion() string { if x != nil { return x.Version @@ -2788,10 +4141,50 @@ func (x *MavenConfig_CompilerKotlinConfig) GetLanguageVersion() string { return "" } +func (x *MavenConfig_CompilerKotlinConfig) SetVersion(v string) { + x.Version = v +} + +func (x *MavenConfig_CompilerKotlinConfig) SetApiVersion(v string) { + x.ApiVersion = v +} + +func (x *MavenConfig_CompilerKotlinConfig) SetJvmTarget(v string) { + x.JvmTarget = v +} + +func (x *MavenConfig_CompilerKotlinConfig) SetLanguageVersion(v string) { + x.LanguageVersion = v +} + +type MavenConfig_CompilerKotlinConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Version of the Kotlin compiler used to compile the generated code. + Version string + // Version of the Kotlin API to target. + ApiVersion string + // Target version of the JVM bytecode (default: 1.8). + JvmTarget string + // Kotlin language version used for source compatibility. + LanguageVersion string +} + +func (b0 MavenConfig_CompilerKotlinConfig_builder) Build() *MavenConfig_CompilerKotlinConfig { + m0 := &MavenConfig_CompilerKotlinConfig{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + x.ApiVersion = b.ApiVersion + x.JvmTarget = b.JvmTarget + x.LanguageVersion = b.LanguageVersion + return m0 +} + // RuntimeConfig allows configuring additional runtimes (like the 'lite' runtime). // They can use different runtime dependencies and plugin options. type MavenConfig_RuntimeConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` RuntimeLibraries []*MavenConfig_RuntimeLibrary `protobuf:"bytes,2,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` // The options to pass to the plugin. These will @@ -2826,11 +4219,6 @@ func (x *MavenConfig_RuntimeConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MavenConfig_RuntimeConfig.ProtoReflect.Descriptor instead. -func (*MavenConfig_RuntimeConfig) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{2, 4} -} - func (x *MavenConfig_RuntimeConfig) GetName() string { if x != nil { return x.Name @@ -2852,10 +4240,42 @@ func (x *MavenConfig_RuntimeConfig) GetOptions() []string { return nil } +func (x *MavenConfig_RuntimeConfig) SetName(v string) { + x.Name = v +} + +func (x *MavenConfig_RuntimeConfig) SetRuntimeLibraries(v []*MavenConfig_RuntimeLibrary) { + x.RuntimeLibraries = v +} + +func (x *MavenConfig_RuntimeConfig) SetOptions(v []string) { + x.Options = v +} + +type MavenConfig_RuntimeConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + RuntimeLibraries []*MavenConfig_RuntimeLibrary + // The options to pass to the plugin. These will + // be merged into a single, comma-separated string. + Options []string +} + +func (b0 MavenConfig_RuntimeConfig_builder) Build() *MavenConfig_RuntimeConfig { + m0 := &MavenConfig_RuntimeConfig{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.RuntimeLibraries = b.RuntimeLibraries + x.Options = b.Options + return m0 +} + // RuntimeLibrary describes a NuGet package dependency of the generated code. // Ref: https://learn.microsoft.com/en-us/dotnet/core/tools/dependencies#the-packagereference-element type NugetConfig_RuntimeLibrary struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The name of the NuGet package (also known as the package ID). Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The version of the NuGet package (supports ranges). @@ -2893,11 +4313,6 @@ func (x *NugetConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NugetConfig_RuntimeLibrary.ProtoReflect.Descriptor instead. -func (*NugetConfig_RuntimeLibrary) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{3, 0} -} - func (x *NugetConfig_RuntimeLibrary) GetName() string { if x != nil { return x.Name @@ -2919,9 +4334,44 @@ func (x *NugetConfig_RuntimeLibrary) GetTargetFrameworks() []DotnetTargetFramewo return nil } +func (x *NugetConfig_RuntimeLibrary) SetName(v string) { + x.Name = v +} + +func (x *NugetConfig_RuntimeLibrary) SetVersion(v string) { + x.Version = v +} + +func (x *NugetConfig_RuntimeLibrary) SetTargetFrameworks(v []DotnetTargetFramework) { + x.TargetFrameworks = v +} + +type NugetConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the NuGet package (also known as the package ID). + Name string + // The version of the NuGet package (supports ranges). + // Ref: https://learn.microsoft.com/en-us/nuget/concepts/package-versioning#version-ranges + Version string + // Optional target frameworks. If specified, these dependencies will be + // conditionally added when building for the specified target framework. + TargetFrameworks []DotnetTargetFramework +} + +func (b0 NugetConfig_RuntimeLibrary_builder) Build() *NugetConfig_RuntimeLibrary { + m0 := &NugetConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Version = b.Version + x.TargetFrameworks = b.TargetFrameworks + return m0 +} + // RuntimeLibrary describes a runtime library dependency of the generated code. type SwiftConfig_RuntimeLibrary struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The source of the runtime library package, e.g. https://github.com/apple/swift-protobuf.git. Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // The name of the runtime library package, e.g. "swift-protobuf". @@ -2963,11 +4413,6 @@ func (x *SwiftConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SwiftConfig_RuntimeLibrary.ProtoReflect.Descriptor instead. -func (*SwiftConfig_RuntimeLibrary) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{5, 0} -} - func (x *SwiftConfig_RuntimeLibrary) GetSource() string { if x != nil { return x.Source @@ -3010,9 +4455,63 @@ func (x *SwiftConfig_RuntimeLibrary) GetSwiftVersions() []string { return nil } +func (x *SwiftConfig_RuntimeLibrary) SetSource(v string) { + x.Source = v +} + +func (x *SwiftConfig_RuntimeLibrary) SetPackage(v string) { + x.Package = v +} + +func (x *SwiftConfig_RuntimeLibrary) SetVersion(v string) { + x.Version = v +} + +func (x *SwiftConfig_RuntimeLibrary) SetProducts(v []string) { + x.Products = v +} + +func (x *SwiftConfig_RuntimeLibrary) SetPlatforms(v []*SwiftConfig_RuntimeLibrary_Platform) { + x.Platforms = v +} + +func (x *SwiftConfig_RuntimeLibrary) SetSwiftVersions(v []string) { + x.SwiftVersions = v +} + +type SwiftConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The source of the runtime library package, e.g. https://github.com/apple/swift-protobuf.git. + Source string + // The name of the runtime library package, e.g. "swift-protobuf". + Package string + // The version of the runtime library, e.g. "1.21.0". + Version string + // The products exported by the runtime library, e.g. "SwiftProtobuf". + Products []string + // The minimum compatible platform versions of the runtime library. + Platforms []*SwiftConfig_RuntimeLibrary_Platform + // The supported Swift language versions of the runtime library, e.g. ".v5". + SwiftVersions []string +} + +func (b0 SwiftConfig_RuntimeLibrary_builder) Build() *SwiftConfig_RuntimeLibrary { + m0 := &SwiftConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.Source = b.Source + x.Package = b.Package + x.Version = b.Version + x.Products = b.Products + x.Platforms = b.Platforms + x.SwiftVersions = b.SwiftVersions + return m0 +} + // The minimum compatible platform versions of the runtime library. type SwiftConfig_RuntimeLibrary_Platform struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The name of the platform. Name SwiftPlatformType `protobuf:"varint,1,opt,name=name,proto3,enum=buf.alpha.registry.v1alpha1.SwiftPlatformType" json:"name,omitempty"` // The minimum compatible version of the platform. @@ -3046,11 +4545,6 @@ func (x *SwiftConfig_RuntimeLibrary_Platform) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use SwiftConfig_RuntimeLibrary_Platform.ProtoReflect.Descriptor instead. -func (*SwiftConfig_RuntimeLibrary_Platform) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{5, 0, 0} -} - func (x *SwiftConfig_RuntimeLibrary_Platform) GetName() SwiftPlatformType { if x != nil { return x.Name @@ -3065,8 +4559,34 @@ func (x *SwiftConfig_RuntimeLibrary_Platform) GetVersion() string { return "" } +func (x *SwiftConfig_RuntimeLibrary_Platform) SetName(v SwiftPlatformType) { + x.Name = v +} + +func (x *SwiftConfig_RuntimeLibrary_Platform) SetVersion(v string) { + x.Version = v +} + +type SwiftConfig_RuntimeLibrary_Platform_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the platform. + Name SwiftPlatformType + // The minimum compatible version of the platform. + Version string +} + +func (b0 SwiftConfig_RuntimeLibrary_Platform_builder) Build() *SwiftConfig_RuntimeLibrary_Platform { + m0 := &SwiftConfig_RuntimeLibrary_Platform{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Version = b.Version + return m0 +} + type PythonConfig_RuntimeLibrary struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // dependency_specification is a PEP 508 Dependency Specification. // Ref: https://peps.python.org/pep-0508/ DependencySpecification string `protobuf:"bytes,1,opt,name=dependency_specification,json=dependencySpecification,proto3" json:"dependency_specification,omitempty"` @@ -3099,11 +4619,6 @@ func (x *PythonConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PythonConfig_RuntimeLibrary.ProtoReflect.Descriptor instead. -func (*PythonConfig_RuntimeLibrary) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{6, 0} -} - func (x *PythonConfig_RuntimeLibrary) GetDependencySpecification() string { if x != nil { return x.DependencySpecification @@ -3111,12 +4626,32 @@ func (x *PythonConfig_RuntimeLibrary) GetDependencySpecification() string { return "" } +func (x *PythonConfig_RuntimeLibrary) SetDependencySpecification(v string) { + x.DependencySpecification = v +} + +type PythonConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // dependency_specification is a PEP 508 Dependency Specification. + // Ref: https://peps.python.org/pep-0508/ + DependencySpecification string +} + +func (b0 PythonConfig_RuntimeLibrary_builder) Build() *PythonConfig_RuntimeLibrary { + m0 := &PythonConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.DependencySpecification = b.DependencySpecification + return m0 +} + // RuntimeLibrary specifies a runtime dependency for a generated crate. // It is the subset of a full Cargo dependency specification, which contains // fields that are irrelevant for Generated SDKs. // Ref: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html type CargoConfig_RuntimeLibrary struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // name specifies the name of the dependency. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // version_requirement specifies the version requirement of the dependency. @@ -3154,11 +4689,6 @@ func (x *CargoConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CargoConfig_RuntimeLibrary.ProtoReflect.Descriptor instead. -func (*CargoConfig_RuntimeLibrary) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP(), []int{7, 0} -} - func (x *CargoConfig_RuntimeLibrary) GetName() string { if x != nil { return x.Name @@ -3187,6 +4717,46 @@ func (x *CargoConfig_RuntimeLibrary) GetFeatures() []string { return nil } +func (x *CargoConfig_RuntimeLibrary) SetName(v string) { + x.Name = v +} + +func (x *CargoConfig_RuntimeLibrary) SetVersionRequirement(v string) { + x.VersionRequirement = v +} + +func (x *CargoConfig_RuntimeLibrary) SetDefaultFeatures(v bool) { + x.DefaultFeatures = v +} + +func (x *CargoConfig_RuntimeLibrary) SetFeatures(v []string) { + x.Features = v +} + +type CargoConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // name specifies the name of the dependency. + Name string + // version_requirement specifies the version requirement of the dependency. + VersionRequirement string + // default_features specifies whether or not default features will be enabled for the dependency. + DefaultFeatures bool + // features specifies the features enabled for the dependency. + Features []string +} + +func (b0 CargoConfig_RuntimeLibrary_builder) Build() *CargoConfig_RuntimeLibrary { + m0 := &CargoConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.VersionRequirement = b.VersionRequirement + x.DefaultFeatures = b.DefaultFeatures + x.Features = b.Features + return m0 +} + var File_buf_alpha_registry_v1alpha1_plugin_curation_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDesc = []byte{ @@ -3884,18 +5454,6 @@ var file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDesc = []byte{ 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescData = file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes = make([]protoimpl.EnumInfo, 7) var file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes = make([]protoimpl.MessageInfo, 37) var file_buf_alpha_registry_v1alpha1_plugin_curation_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/plugin_curation_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/plugin_curation_protoopaque.pb.go new file mode 100644 index 0000000000..832ad80c6a --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/plugin_curation_protoopaque.pb.go @@ -0,0 +1,5476 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/plugin_curation.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + v1 "github.com/bufbuild/buf/private/gen/proto/go/buf/alpha/image/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + pluginpb "google.golang.org/protobuf/types/pluginpb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// CuratedPluginVisibility defines the visibility options available +// for Curated Plugins. +type CuratedPluginVisibility int32 + +const ( + CuratedPluginVisibility_CURATED_PLUGIN_VISIBILITY_UNSPECIFIED CuratedPluginVisibility = 0 + CuratedPluginVisibility_CURATED_PLUGIN_VISIBILITY_PUBLIC CuratedPluginVisibility = 1 + CuratedPluginVisibility_CURATED_PLUGIN_VISIBILITY_PRIVATE CuratedPluginVisibility = 2 +) + +// Enum value maps for CuratedPluginVisibility. +var ( + CuratedPluginVisibility_name = map[int32]string{ + 0: "CURATED_PLUGIN_VISIBILITY_UNSPECIFIED", + 1: "CURATED_PLUGIN_VISIBILITY_PUBLIC", + 2: "CURATED_PLUGIN_VISIBILITY_PRIVATE", + } + CuratedPluginVisibility_value = map[string]int32{ + "CURATED_PLUGIN_VISIBILITY_UNSPECIFIED": 0, + "CURATED_PLUGIN_VISIBILITY_PUBLIC": 1, + "CURATED_PLUGIN_VISIBILITY_PRIVATE": 2, + } +) + +func (x CuratedPluginVisibility) Enum() *CuratedPluginVisibility { + p := new(CuratedPluginVisibility) + *p = x + return p +} + +func (x CuratedPluginVisibility) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CuratedPluginVisibility) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[0].Descriptor() +} + +func (CuratedPluginVisibility) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[0] +} + +func (x CuratedPluginVisibility) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// The supported plugin registries for curated plugins. +type PluginRegistryType int32 + +const ( + PluginRegistryType_PLUGIN_REGISTRY_TYPE_UNSPECIFIED PluginRegistryType = 0 + PluginRegistryType_PLUGIN_REGISTRY_TYPE_GO PluginRegistryType = 1 + PluginRegistryType_PLUGIN_REGISTRY_TYPE_NPM PluginRegistryType = 2 + PluginRegistryType_PLUGIN_REGISTRY_TYPE_MAVEN PluginRegistryType = 3 + PluginRegistryType_PLUGIN_REGISTRY_TYPE_SWIFT PluginRegistryType = 4 + PluginRegistryType_PLUGIN_REGISTRY_TYPE_PYTHON PluginRegistryType = 5 + PluginRegistryType_PLUGIN_REGISTRY_TYPE_CARGO PluginRegistryType = 7 + PluginRegistryType_PLUGIN_REGISTRY_TYPE_NUGET PluginRegistryType = 8 + PluginRegistryType_PLUGIN_REGISTRY_TYPE_CMAKE PluginRegistryType = 9 +) + +// Enum value maps for PluginRegistryType. +var ( + PluginRegistryType_name = map[int32]string{ + 0: "PLUGIN_REGISTRY_TYPE_UNSPECIFIED", + 1: "PLUGIN_REGISTRY_TYPE_GO", + 2: "PLUGIN_REGISTRY_TYPE_NPM", + 3: "PLUGIN_REGISTRY_TYPE_MAVEN", + 4: "PLUGIN_REGISTRY_TYPE_SWIFT", + 5: "PLUGIN_REGISTRY_TYPE_PYTHON", + 7: "PLUGIN_REGISTRY_TYPE_CARGO", + 8: "PLUGIN_REGISTRY_TYPE_NUGET", + 9: "PLUGIN_REGISTRY_TYPE_CMAKE", + } + PluginRegistryType_value = map[string]int32{ + "PLUGIN_REGISTRY_TYPE_UNSPECIFIED": 0, + "PLUGIN_REGISTRY_TYPE_GO": 1, + "PLUGIN_REGISTRY_TYPE_NPM": 2, + "PLUGIN_REGISTRY_TYPE_MAVEN": 3, + "PLUGIN_REGISTRY_TYPE_SWIFT": 4, + "PLUGIN_REGISTRY_TYPE_PYTHON": 5, + "PLUGIN_REGISTRY_TYPE_CARGO": 7, + "PLUGIN_REGISTRY_TYPE_NUGET": 8, + "PLUGIN_REGISTRY_TYPE_CMAKE": 9, + } +) + +func (x PluginRegistryType) Enum() *PluginRegistryType { + p := new(PluginRegistryType) + *p = x + return p +} + +func (x PluginRegistryType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PluginRegistryType) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[1].Descriptor() +} + +func (PluginRegistryType) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[1] +} + +func (x PluginRegistryType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// PluginLanguage is used to specify the output languages a plugin supports. +type PluginLanguage int32 + +const ( + PluginLanguage_PLUGIN_LANGUAGE_UNSPECIFIED PluginLanguage = 0 + PluginLanguage_PLUGIN_LANGUAGE_GO PluginLanguage = 1 + PluginLanguage_PLUGIN_LANGUAGE_JAVASCRIPT PluginLanguage = 2 + PluginLanguage_PLUGIN_LANGUAGE_TYPESCRIPT PluginLanguage = 3 + PluginLanguage_PLUGIN_LANGUAGE_SWIFT PluginLanguage = 4 + PluginLanguage_PLUGIN_LANGUAGE_CPP PluginLanguage = 5 + PluginLanguage_PLUGIN_LANGUAGE_JAVA PluginLanguage = 6 + PluginLanguage_PLUGIN_LANGUAGE_DART PluginLanguage = 7 + PluginLanguage_PLUGIN_LANGUAGE_RUST PluginLanguage = 8 + PluginLanguage_PLUGIN_LANGUAGE_PYTHON PluginLanguage = 9 + PluginLanguage_PLUGIN_LANGUAGE_RUBY PluginLanguage = 10 + PluginLanguage_PLUGIN_LANGUAGE_KOTLIN PluginLanguage = 11 + PluginLanguage_PLUGIN_LANGUAGE_OBJECTIVE_C PluginLanguage = 12 + PluginLanguage_PLUGIN_LANGUAGE_PHP PluginLanguage = 13 + PluginLanguage_PLUGIN_LANGUAGE_CSHARP PluginLanguage = 14 + PluginLanguage_PLUGIN_LANGUAGE_SCALA PluginLanguage = 15 + PluginLanguage_PLUGIN_LANGUAGE_C PluginLanguage = 16 +) + +// Enum value maps for PluginLanguage. +var ( + PluginLanguage_name = map[int32]string{ + 0: "PLUGIN_LANGUAGE_UNSPECIFIED", + 1: "PLUGIN_LANGUAGE_GO", + 2: "PLUGIN_LANGUAGE_JAVASCRIPT", + 3: "PLUGIN_LANGUAGE_TYPESCRIPT", + 4: "PLUGIN_LANGUAGE_SWIFT", + 5: "PLUGIN_LANGUAGE_CPP", + 6: "PLUGIN_LANGUAGE_JAVA", + 7: "PLUGIN_LANGUAGE_DART", + 8: "PLUGIN_LANGUAGE_RUST", + 9: "PLUGIN_LANGUAGE_PYTHON", + 10: "PLUGIN_LANGUAGE_RUBY", + 11: "PLUGIN_LANGUAGE_KOTLIN", + 12: "PLUGIN_LANGUAGE_OBJECTIVE_C", + 13: "PLUGIN_LANGUAGE_PHP", + 14: "PLUGIN_LANGUAGE_CSHARP", + 15: "PLUGIN_LANGUAGE_SCALA", + 16: "PLUGIN_LANGUAGE_C", + } + PluginLanguage_value = map[string]int32{ + "PLUGIN_LANGUAGE_UNSPECIFIED": 0, + "PLUGIN_LANGUAGE_GO": 1, + "PLUGIN_LANGUAGE_JAVASCRIPT": 2, + "PLUGIN_LANGUAGE_TYPESCRIPT": 3, + "PLUGIN_LANGUAGE_SWIFT": 4, + "PLUGIN_LANGUAGE_CPP": 5, + "PLUGIN_LANGUAGE_JAVA": 6, + "PLUGIN_LANGUAGE_DART": 7, + "PLUGIN_LANGUAGE_RUST": 8, + "PLUGIN_LANGUAGE_PYTHON": 9, + "PLUGIN_LANGUAGE_RUBY": 10, + "PLUGIN_LANGUAGE_KOTLIN": 11, + "PLUGIN_LANGUAGE_OBJECTIVE_C": 12, + "PLUGIN_LANGUAGE_PHP": 13, + "PLUGIN_LANGUAGE_CSHARP": 14, + "PLUGIN_LANGUAGE_SCALA": 15, + "PLUGIN_LANGUAGE_C": 16, + } +) + +func (x PluginLanguage) Enum() *PluginLanguage { + p := new(PluginLanguage) + *p = x + return p +} + +func (x PluginLanguage) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PluginLanguage) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[2].Descriptor() +} + +func (PluginLanguage) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[2] +} + +func (x PluginLanguage) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// NPMImportStyle is used to specify the import style the plugin supports. +type NPMImportStyle int32 + +const ( + NPMImportStyle_NPM_IMPORT_STYLE_UNSPECIFIED NPMImportStyle = 0 + NPMImportStyle_NPM_IMPORT_STYLE_MODULE NPMImportStyle = 1 + NPMImportStyle_NPM_IMPORT_STYLE_COMMONJS NPMImportStyle = 2 +) + +// Enum value maps for NPMImportStyle. +var ( + NPMImportStyle_name = map[int32]string{ + 0: "NPM_IMPORT_STYLE_UNSPECIFIED", + 1: "NPM_IMPORT_STYLE_MODULE", + 2: "NPM_IMPORT_STYLE_COMMONJS", + } + NPMImportStyle_value = map[string]int32{ + "NPM_IMPORT_STYLE_UNSPECIFIED": 0, + "NPM_IMPORT_STYLE_MODULE": 1, + "NPM_IMPORT_STYLE_COMMONJS": 2, + } +) + +func (x NPMImportStyle) Enum() *NPMImportStyle { + p := new(NPMImportStyle) + *p = x + return p +} + +func (x NPMImportStyle) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NPMImportStyle) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[3].Descriptor() +} + +func (NPMImportStyle) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[3] +} + +func (x NPMImportStyle) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// SwiftPlatformType is used to specify the platform type for a Swift plugins minimum compatible version. +type SwiftPlatformType int32 + +const ( + SwiftPlatformType_SWIFT_PLATFORM_TYPE_UNSPECIFIED SwiftPlatformType = 0 + SwiftPlatformType_SWIFT_PLATFORM_TYPE_MACOS SwiftPlatformType = 1 + SwiftPlatformType_SWIFT_PLATFORM_TYPE_IOS SwiftPlatformType = 2 + SwiftPlatformType_SWIFT_PLATFORM_TYPE_WATCHOS SwiftPlatformType = 3 + SwiftPlatformType_SWIFT_PLATFORM_TYPE_TVOS SwiftPlatformType = 4 +) + +// Enum value maps for SwiftPlatformType. +var ( + SwiftPlatformType_name = map[int32]string{ + 0: "SWIFT_PLATFORM_TYPE_UNSPECIFIED", + 1: "SWIFT_PLATFORM_TYPE_MACOS", + 2: "SWIFT_PLATFORM_TYPE_IOS", + 3: "SWIFT_PLATFORM_TYPE_WATCHOS", + 4: "SWIFT_PLATFORM_TYPE_TVOS", + } + SwiftPlatformType_value = map[string]int32{ + "SWIFT_PLATFORM_TYPE_UNSPECIFIED": 0, + "SWIFT_PLATFORM_TYPE_MACOS": 1, + "SWIFT_PLATFORM_TYPE_IOS": 2, + "SWIFT_PLATFORM_TYPE_WATCHOS": 3, + "SWIFT_PLATFORM_TYPE_TVOS": 4, + } +) + +func (x SwiftPlatformType) Enum() *SwiftPlatformType { + p := new(SwiftPlatformType) + *p = x + return p +} + +func (x SwiftPlatformType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SwiftPlatformType) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[4].Descriptor() +} + +func (SwiftPlatformType) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[4] +} + +func (x SwiftPlatformType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// PythonPackageType is used to specify the package type for a Python Generated SDK. +type PythonPackageType int32 + +const ( + PythonPackageType_PYTHON_PACKAGE_TYPE_UNSPECIFIED PythonPackageType = 0 + // Regular Python package, containing Python runtime code (`.py` files). + PythonPackageType_PYTHON_PACKAGE_TYPE_RUNTIME PythonPackageType = 1 + // Stub-only package, containing only `.pyi` files. + // Ref: https://peps.python.org/pep-0561/#stub-only-packages + PythonPackageType_PYTHON_PACKAGE_TYPE_STUB_ONLY PythonPackageType = 2 +) + +// Enum value maps for PythonPackageType. +var ( + PythonPackageType_name = map[int32]string{ + 0: "PYTHON_PACKAGE_TYPE_UNSPECIFIED", + 1: "PYTHON_PACKAGE_TYPE_RUNTIME", + 2: "PYTHON_PACKAGE_TYPE_STUB_ONLY", + } + PythonPackageType_value = map[string]int32{ + "PYTHON_PACKAGE_TYPE_UNSPECIFIED": 0, + "PYTHON_PACKAGE_TYPE_RUNTIME": 1, + "PYTHON_PACKAGE_TYPE_STUB_ONLY": 2, + } +) + +func (x PythonPackageType) Enum() *PythonPackageType { + p := new(PythonPackageType) + *p = x + return p +} + +func (x PythonPackageType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PythonPackageType) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[5].Descriptor() +} + +func (PythonPackageType) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[5] +} + +func (x PythonPackageType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// DotnetTargetFramework specifies the target framework for dotnet plugins. +// This is not meant to be an exhaustive list - most plugins should target a +// netstandard version. +// Reference: https://learn.microsoft.com/en-us/dotnet/standard/frameworks +type DotnetTargetFramework int32 + +const ( + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_UNSPECIFIED DotnetTargetFramework = 0 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_0 DotnetTargetFramework = 1 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_1 DotnetTargetFramework = 2 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_2 DotnetTargetFramework = 3 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_3 DotnetTargetFramework = 4 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_4 DotnetTargetFramework = 5 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_5 DotnetTargetFramework = 6 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_6 DotnetTargetFramework = 7 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NETSTANDARD_2_0 DotnetTargetFramework = 8 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NETSTANDARD_2_1 DotnetTargetFramework = 9 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NET_5_0 DotnetTargetFramework = 10 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NET_6_0 DotnetTargetFramework = 11 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NET_7_0 DotnetTargetFramework = 12 + DotnetTargetFramework_DOTNET_TARGET_FRAMEWORK_NET_8_0 DotnetTargetFramework = 13 +) + +// Enum value maps for DotnetTargetFramework. +var ( + DotnetTargetFramework_name = map[int32]string{ + 0: "DOTNET_TARGET_FRAMEWORK_UNSPECIFIED", + 1: "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_0", + 2: "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_1", + 3: "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_2", + 4: "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_3", + 5: "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_4", + 6: "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_5", + 7: "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_6", + 8: "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_2_0", + 9: "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_2_1", + 10: "DOTNET_TARGET_FRAMEWORK_NET_5_0", + 11: "DOTNET_TARGET_FRAMEWORK_NET_6_0", + 12: "DOTNET_TARGET_FRAMEWORK_NET_7_0", + 13: "DOTNET_TARGET_FRAMEWORK_NET_8_0", + } + DotnetTargetFramework_value = map[string]int32{ + "DOTNET_TARGET_FRAMEWORK_UNSPECIFIED": 0, + "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_0": 1, + "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_1": 2, + "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_2": 3, + "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_3": 4, + "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_4": 5, + "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_5": 6, + "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_1_6": 7, + "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_2_0": 8, + "DOTNET_TARGET_FRAMEWORK_NETSTANDARD_2_1": 9, + "DOTNET_TARGET_FRAMEWORK_NET_5_0": 10, + "DOTNET_TARGET_FRAMEWORK_NET_6_0": 11, + "DOTNET_TARGET_FRAMEWORK_NET_7_0": 12, + "DOTNET_TARGET_FRAMEWORK_NET_8_0": 13, + } +) + +func (x DotnetTargetFramework) Enum() *DotnetTargetFramework { + p := new(DotnetTargetFramework) + *p = x + return p +} + +func (x DotnetTargetFramework) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DotnetTargetFramework) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[6].Descriptor() +} + +func (DotnetTargetFramework) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes[6] +} + +func (x DotnetTargetFramework) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// GoConfig is the configuration for a Go plugin. +type GoConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RuntimeLibraries *[]*GoConfig_RuntimeLibrary `protobuf:"bytes,1,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` + xxx_hidden_MinimumVersion string `protobuf:"bytes,2,opt,name=minimum_version,json=minimumVersion,proto3" json:"minimum_version,omitempty"` + xxx_hidden_BasePlugin string `protobuf:"bytes,3,opt,name=base_plugin,json=basePlugin,proto3" json:"base_plugin,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GoConfig) Reset() { + *x = GoConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GoConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GoConfig) ProtoMessage() {} + +func (x *GoConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GoConfig) GetRuntimeLibraries() []*GoConfig_RuntimeLibrary { + if x != nil { + if x.xxx_hidden_RuntimeLibraries != nil { + return *x.xxx_hidden_RuntimeLibraries + } + } + return nil +} + +func (x *GoConfig) GetMinimumVersion() string { + if x != nil { + return x.xxx_hidden_MinimumVersion + } + return "" +} + +func (x *GoConfig) GetBasePlugin() string { + if x != nil { + return x.xxx_hidden_BasePlugin + } + return "" +} + +func (x *GoConfig) SetRuntimeLibraries(v []*GoConfig_RuntimeLibrary) { + x.xxx_hidden_RuntimeLibraries = &v +} + +func (x *GoConfig) SetMinimumVersion(v string) { + x.xxx_hidden_MinimumVersion = v +} + +func (x *GoConfig) SetBasePlugin(v string) { + x.xxx_hidden_BasePlugin = v +} + +type GoConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Optionally define the runtime libraries for the plugin. + RuntimeLibraries []*GoConfig_RuntimeLibrary + // The minimum Go version required by the plugin. + MinimumVersion string + // Optionally specifies an alternate base plugin like "remote/org/go-multi" instead of the default + // "remote/protocolbuffers/go". If provided, the name must match one of the plugin dependencies in + // the top-level deps field. + // + // This affects how imports are resolved - the specified plugin's import path will be used as the + // base path for all generated code, replacing the default protocolbuffers/go import paths. Used + // when depending on non-default BSR plugins. + BasePlugin string +} + +func (b0 GoConfig_builder) Build() *GoConfig { + m0 := &GoConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RuntimeLibraries = &b.RuntimeLibraries + x.xxx_hidden_MinimumVersion = b.MinimumVersion + x.xxx_hidden_BasePlugin = b.BasePlugin + return m0 +} + +// NPMConfig is the configuration for a JavaScript NPM plugin. +type NPMConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RuntimeLibraries *[]*NPMConfig_RuntimeLibrary `protobuf:"bytes,1,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` + xxx_hidden_RewriteImportPathSuffix string `protobuf:"bytes,2,opt,name=rewrite_import_path_suffix,json=rewriteImportPathSuffix,proto3" json:"rewrite_import_path_suffix,omitempty"` + xxx_hidden_ImportStyle NPMImportStyle `protobuf:"varint,3,opt,name=import_style,json=importStyle,proto3,enum=buf.alpha.registry.v1alpha1.NPMImportStyle" json:"import_style,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NPMConfig) Reset() { + *x = NPMConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NPMConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NPMConfig) ProtoMessage() {} + +func (x *NPMConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NPMConfig) GetRuntimeLibraries() []*NPMConfig_RuntimeLibrary { + if x != nil { + if x.xxx_hidden_RuntimeLibraries != nil { + return *x.xxx_hidden_RuntimeLibraries + } + } + return nil +} + +func (x *NPMConfig) GetRewriteImportPathSuffix() string { + if x != nil { + return x.xxx_hidden_RewriteImportPathSuffix + } + return "" +} + +func (x *NPMConfig) GetImportStyle() NPMImportStyle { + if x != nil { + return x.xxx_hidden_ImportStyle + } + return NPMImportStyle_NPM_IMPORT_STYLE_UNSPECIFIED +} + +func (x *NPMConfig) SetRuntimeLibraries(v []*NPMConfig_RuntimeLibrary) { + x.xxx_hidden_RuntimeLibraries = &v +} + +func (x *NPMConfig) SetRewriteImportPathSuffix(v string) { + x.xxx_hidden_RewriteImportPathSuffix = v +} + +func (x *NPMConfig) SetImportStyle(v NPMImportStyle) { + x.xxx_hidden_ImportStyle = v +} + +type NPMConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Optionally define the runtime libraries for the plugin. + RuntimeLibraries []*NPMConfig_RuntimeLibrary + // Optionally define a configuration for rewriting import paths, a feature mainly + // used for remote code generation in the BSR npm registry, which makes it possible + // to serve the output of a BSR module and a plugin in an individual package. + // + // All plugins based on @bufbuild/protoplugin support the option "rewrite_imports". + // Setting this value, i.e. "connectweb.js" or "pb.js", informs the BSR npm registry + // that the plugin supports import rewrites with the given import suffix. + RewriteImportPathSuffix string + // The import style used for the "type" field in the package.json file. + // This exists to support legacy plugins that require "commonjs" support. + ImportStyle NPMImportStyle +} + +func (b0 NPMConfig_builder) Build() *NPMConfig { + m0 := &NPMConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RuntimeLibraries = &b.RuntimeLibraries + x.xxx_hidden_RewriteImportPathSuffix = b.RewriteImportPathSuffix + x.xxx_hidden_ImportStyle = b.ImportStyle + return m0 +} + +// MavenConfig is the configuration for a Maven plugin. +type MavenConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RuntimeLibraries *[]*MavenConfig_RuntimeLibrary `protobuf:"bytes,1,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` + xxx_hidden_Compiler *MavenConfig_CompilerConfig `protobuf:"bytes,2,opt,name=compiler,proto3" json:"compiler,omitempty"` + xxx_hidden_AdditionalRuntimes *[]*MavenConfig_RuntimeConfig `protobuf:"bytes,3,rep,name=additional_runtimes,json=additionalRuntimes,proto3" json:"additional_runtimes,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MavenConfig) Reset() { + *x = MavenConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MavenConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MavenConfig) ProtoMessage() {} + +func (x *MavenConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MavenConfig) GetRuntimeLibraries() []*MavenConfig_RuntimeLibrary { + if x != nil { + if x.xxx_hidden_RuntimeLibraries != nil { + return *x.xxx_hidden_RuntimeLibraries + } + } + return nil +} + +func (x *MavenConfig) GetCompiler() *MavenConfig_CompilerConfig { + if x != nil { + return x.xxx_hidden_Compiler + } + return nil +} + +func (x *MavenConfig) GetAdditionalRuntimes() []*MavenConfig_RuntimeConfig { + if x != nil { + if x.xxx_hidden_AdditionalRuntimes != nil { + return *x.xxx_hidden_AdditionalRuntimes + } + } + return nil +} + +func (x *MavenConfig) SetRuntimeLibraries(v []*MavenConfig_RuntimeLibrary) { + x.xxx_hidden_RuntimeLibraries = &v +} + +func (x *MavenConfig) SetCompiler(v *MavenConfig_CompilerConfig) { + x.xxx_hidden_Compiler = v +} + +func (x *MavenConfig) SetAdditionalRuntimes(v []*MavenConfig_RuntimeConfig) { + x.xxx_hidden_AdditionalRuntimes = &v +} + +func (x *MavenConfig) HasCompiler() bool { + if x == nil { + return false + } + return x.xxx_hidden_Compiler != nil +} + +func (x *MavenConfig) ClearCompiler() { + x.xxx_hidden_Compiler = nil +} + +type MavenConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Optionally define the runtime libraries for the plugin. + RuntimeLibraries []*MavenConfig_RuntimeLibrary + // Settings for the Java/Kotlin compiler used to compile the generated code. + Compiler *MavenConfig_CompilerConfig + // Optional additional runtimes supported by the plugin. + AdditionalRuntimes []*MavenConfig_RuntimeConfig +} + +func (b0 MavenConfig_builder) Build() *MavenConfig { + m0 := &MavenConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RuntimeLibraries = &b.RuntimeLibraries + x.xxx_hidden_Compiler = b.Compiler + x.xxx_hidden_AdditionalRuntimes = &b.AdditionalRuntimes + return m0 +} + +// NugetConfig is the configuration for a NuGet C# plugin. +type NugetConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TargetFrameworks []DotnetTargetFramework `protobuf:"varint,1,rep,packed,name=target_frameworks,json=targetFrameworks,proto3,enum=buf.alpha.registry.v1alpha1.DotnetTargetFramework" json:"target_frameworks,omitempty"` + xxx_hidden_RuntimeLibraries *[]*NugetConfig_RuntimeLibrary `protobuf:"bytes,2,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NugetConfig) Reset() { + *x = NugetConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NugetConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NugetConfig) ProtoMessage() {} + +func (x *NugetConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NugetConfig) GetTargetFrameworks() []DotnetTargetFramework { + if x != nil { + return x.xxx_hidden_TargetFrameworks + } + return nil +} + +func (x *NugetConfig) GetRuntimeLibraries() []*NugetConfig_RuntimeLibrary { + if x != nil { + if x.xxx_hidden_RuntimeLibraries != nil { + return *x.xxx_hidden_RuntimeLibraries + } + } + return nil +} + +func (x *NugetConfig) SetTargetFrameworks(v []DotnetTargetFramework) { + x.xxx_hidden_TargetFrameworks = v +} + +func (x *NugetConfig) SetRuntimeLibraries(v []*NugetConfig_RuntimeLibrary) { + x.xxx_hidden_RuntimeLibraries = &v +} + +type NugetConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Target frameworks to build. At least one target framework is required. + TargetFrameworks []DotnetTargetFramework + // Optional runtime libraries required by the plugin's generated code. + RuntimeLibraries []*NugetConfig_RuntimeLibrary +} + +func (b0 NugetConfig_builder) Build() *NugetConfig { + m0 := &NugetConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TargetFrameworks = b.TargetFrameworks + x.xxx_hidden_RuntimeLibraries = &b.RuntimeLibraries + return m0 +} + +// CmakeConfig is the configuration for a Cmake C++ plugin. +type CmakeConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CmakeConfig) Reset() { + *x = CmakeConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CmakeConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CmakeConfig) ProtoMessage() {} + +func (x *CmakeConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type CmakeConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 CmakeConfig_builder) Build() *CmakeConfig { + m0 := &CmakeConfig{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type SwiftConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RuntimeLibraries *[]*SwiftConfig_RuntimeLibrary `protobuf:"bytes,1,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SwiftConfig) Reset() { + *x = SwiftConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SwiftConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SwiftConfig) ProtoMessage() {} + +func (x *SwiftConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SwiftConfig) GetRuntimeLibraries() []*SwiftConfig_RuntimeLibrary { + if x != nil { + if x.xxx_hidden_RuntimeLibraries != nil { + return *x.xxx_hidden_RuntimeLibraries + } + } + return nil +} + +func (x *SwiftConfig) SetRuntimeLibraries(v []*SwiftConfig_RuntimeLibrary) { + x.xxx_hidden_RuntimeLibraries = &v +} + +type SwiftConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Optionally define the runtime libraries for the plugin. + RuntimeLibraries []*SwiftConfig_RuntimeLibrary +} + +func (b0 SwiftConfig_builder) Build() *SwiftConfig { + m0 := &SwiftConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RuntimeLibraries = &b.RuntimeLibraries + return m0 +} + +type PythonConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RuntimeLibraries *[]*PythonConfig_RuntimeLibrary `protobuf:"bytes,1,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` + xxx_hidden_RequiresPython string `protobuf:"bytes,2,opt,name=requires_python,json=requiresPython,proto3" json:"requires_python,omitempty"` + xxx_hidden_PackageType PythonPackageType `protobuf:"varint,3,opt,name=package_type,json=packageType,proto3,enum=buf.alpha.registry.v1alpha1.PythonPackageType" json:"package_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PythonConfig) Reset() { + *x = PythonConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PythonConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PythonConfig) ProtoMessage() {} + +func (x *PythonConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PythonConfig) GetRuntimeLibraries() []*PythonConfig_RuntimeLibrary { + if x != nil { + if x.xxx_hidden_RuntimeLibraries != nil { + return *x.xxx_hidden_RuntimeLibraries + } + } + return nil +} + +func (x *PythonConfig) GetRequiresPython() string { + if x != nil { + return x.xxx_hidden_RequiresPython + } + return "" +} + +func (x *PythonConfig) GetPackageType() PythonPackageType { + if x != nil { + return x.xxx_hidden_PackageType + } + return PythonPackageType_PYTHON_PACKAGE_TYPE_UNSPECIFIED +} + +func (x *PythonConfig) SetRuntimeLibraries(v []*PythonConfig_RuntimeLibrary) { + x.xxx_hidden_RuntimeLibraries = &v +} + +func (x *PythonConfig) SetRequiresPython(v string) { + x.xxx_hidden_RequiresPython = v +} + +func (x *PythonConfig) SetPackageType(v PythonPackageType) { + x.xxx_hidden_PackageType = v +} + +type PythonConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RuntimeLibraries []*PythonConfig_RuntimeLibrary + // requires_python is a PEP 440 Version Specifier that specifies the value of + // the `Requires-Python` field in a metadata file. + // + // Ref: + // - https://packaging.python.org/en/latest/specifications/core-metadata/#requires-python + // - https://peps.python.org/pep-0440/ + RequiresPython string + // package_type is the PythonPackageType that this plugin generates. + PackageType PythonPackageType +} + +func (b0 PythonConfig_builder) Build() *PythonConfig { + m0 := &PythonConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RuntimeLibraries = &b.RuntimeLibraries + x.xxx_hidden_RequiresPython = b.RequiresPython + x.xxx_hidden_PackageType = b.PackageType + return m0 +} + +// CargoConfig specifies the Cargo Registry configuration for a Rust plugin. +type CargoConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RustVersion string `protobuf:"bytes,1,opt,name=rust_version,json=rustVersion,proto3" json:"rust_version,omitempty"` + xxx_hidden_RuntimeLibraries *[]*CargoConfig_RuntimeLibrary `protobuf:"bytes,2,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CargoConfig) Reset() { + *x = CargoConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CargoConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CargoConfig) ProtoMessage() {} + +func (x *CargoConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CargoConfig) GetRustVersion() string { + if x != nil { + return x.xxx_hidden_RustVersion + } + return "" +} + +func (x *CargoConfig) GetRuntimeLibraries() []*CargoConfig_RuntimeLibrary { + if x != nil { + if x.xxx_hidden_RuntimeLibraries != nil { + return *x.xxx_hidden_RuntimeLibraries + } + } + return nil +} + +func (x *CargoConfig) SetRustVersion(v string) { + x.xxx_hidden_RustVersion = v +} + +func (x *CargoConfig) SetRuntimeLibraries(v []*CargoConfig_RuntimeLibrary) { + x.xxx_hidden_RuntimeLibraries = &v +} + +type CargoConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // rust_version specifies the minimum supported Rust version (MSRV) for the generated crate. + // Ref: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field + RustVersion string + // runtime_libraries specifies the runtime dependencies for the generated crate. Optional. + RuntimeLibraries []*CargoConfig_RuntimeLibrary +} + +func (b0 CargoConfig_builder) Build() *CargoConfig { + m0 := &CargoConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RustVersion = b.RustVersion + x.xxx_hidden_RuntimeLibraries = &b.RuntimeLibraries + return m0 +} + +// RegistryConfig is the configuration for the remote registry of a plugin. +type RegistryConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RegistryConfig isRegistryConfig_RegistryConfig `protobuf_oneof:"registry_config"` + xxx_hidden_Options []string `protobuf:"bytes,10,rep,name=options,proto3" json:"options,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RegistryConfig) Reset() { + *x = RegistryConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RegistryConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegistryConfig) ProtoMessage() {} + +func (x *RegistryConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RegistryConfig) GetGoConfig() *GoConfig { + if x != nil { + if x, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_GoConfig); ok { + return x.GoConfig + } + } + return nil +} + +func (x *RegistryConfig) GetNpmConfig() *NPMConfig { + if x != nil { + if x, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_NpmConfig); ok { + return x.NpmConfig + } + } + return nil +} + +func (x *RegistryConfig) GetMavenConfig() *MavenConfig { + if x != nil { + if x, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_MavenConfig); ok { + return x.MavenConfig + } + } + return nil +} + +func (x *RegistryConfig) GetSwiftConfig() *SwiftConfig { + if x != nil { + if x, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_SwiftConfig); ok { + return x.SwiftConfig + } + } + return nil +} + +func (x *RegistryConfig) GetPythonConfig() *PythonConfig { + if x != nil { + if x, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_PythonConfig); ok { + return x.PythonConfig + } + } + return nil +} + +func (x *RegistryConfig) GetCargoConfig() *CargoConfig { + if x != nil { + if x, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_CargoConfig); ok { + return x.CargoConfig + } + } + return nil +} + +func (x *RegistryConfig) GetNugetConfig() *NugetConfig { + if x != nil { + if x, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_NugetConfig); ok { + return x.NugetConfig + } + } + return nil +} + +func (x *RegistryConfig) GetCmakeConfig() *CmakeConfig { + if x != nil { + if x, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_CmakeConfig); ok { + return x.CmakeConfig + } + } + return nil +} + +func (x *RegistryConfig) GetOptions() []string { + if x != nil { + return x.xxx_hidden_Options + } + return nil +} + +func (x *RegistryConfig) SetGoConfig(v *GoConfig) { + if v == nil { + x.xxx_hidden_RegistryConfig = nil + return + } + x.xxx_hidden_RegistryConfig = ®istryConfig_GoConfig{v} +} + +func (x *RegistryConfig) SetNpmConfig(v *NPMConfig) { + if v == nil { + x.xxx_hidden_RegistryConfig = nil + return + } + x.xxx_hidden_RegistryConfig = ®istryConfig_NpmConfig{v} +} + +func (x *RegistryConfig) SetMavenConfig(v *MavenConfig) { + if v == nil { + x.xxx_hidden_RegistryConfig = nil + return + } + x.xxx_hidden_RegistryConfig = ®istryConfig_MavenConfig{v} +} + +func (x *RegistryConfig) SetSwiftConfig(v *SwiftConfig) { + if v == nil { + x.xxx_hidden_RegistryConfig = nil + return + } + x.xxx_hidden_RegistryConfig = ®istryConfig_SwiftConfig{v} +} + +func (x *RegistryConfig) SetPythonConfig(v *PythonConfig) { + if v == nil { + x.xxx_hidden_RegistryConfig = nil + return + } + x.xxx_hidden_RegistryConfig = ®istryConfig_PythonConfig{v} +} + +func (x *RegistryConfig) SetCargoConfig(v *CargoConfig) { + if v == nil { + x.xxx_hidden_RegistryConfig = nil + return + } + x.xxx_hidden_RegistryConfig = ®istryConfig_CargoConfig{v} +} + +func (x *RegistryConfig) SetNugetConfig(v *NugetConfig) { + if v == nil { + x.xxx_hidden_RegistryConfig = nil + return + } + x.xxx_hidden_RegistryConfig = ®istryConfig_NugetConfig{v} +} + +func (x *RegistryConfig) SetCmakeConfig(v *CmakeConfig) { + if v == nil { + x.xxx_hidden_RegistryConfig = nil + return + } + x.xxx_hidden_RegistryConfig = ®istryConfig_CmakeConfig{v} +} + +func (x *RegistryConfig) SetOptions(v []string) { + x.xxx_hidden_Options = v +} + +func (x *RegistryConfig) HasRegistryConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_RegistryConfig != nil +} + +func (x *RegistryConfig) HasGoConfig() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_GoConfig) + return ok +} + +func (x *RegistryConfig) HasNpmConfig() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_NpmConfig) + return ok +} + +func (x *RegistryConfig) HasMavenConfig() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_MavenConfig) + return ok +} + +func (x *RegistryConfig) HasSwiftConfig() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_SwiftConfig) + return ok +} + +func (x *RegistryConfig) HasPythonConfig() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_PythonConfig) + return ok +} + +func (x *RegistryConfig) HasCargoConfig() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_CargoConfig) + return ok +} + +func (x *RegistryConfig) HasNugetConfig() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_NugetConfig) + return ok +} + +func (x *RegistryConfig) HasCmakeConfig() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_CmakeConfig) + return ok +} + +func (x *RegistryConfig) ClearRegistryConfig() { + x.xxx_hidden_RegistryConfig = nil +} + +func (x *RegistryConfig) ClearGoConfig() { + if _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_GoConfig); ok { + x.xxx_hidden_RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearNpmConfig() { + if _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_NpmConfig); ok { + x.xxx_hidden_RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearMavenConfig() { + if _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_MavenConfig); ok { + x.xxx_hidden_RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearSwiftConfig() { + if _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_SwiftConfig); ok { + x.xxx_hidden_RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearPythonConfig() { + if _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_PythonConfig); ok { + x.xxx_hidden_RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearCargoConfig() { + if _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_CargoConfig); ok { + x.xxx_hidden_RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearNugetConfig() { + if _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_NugetConfig); ok { + x.xxx_hidden_RegistryConfig = nil + } +} + +func (x *RegistryConfig) ClearCmakeConfig() { + if _, ok := x.xxx_hidden_RegistryConfig.(*registryConfig_CmakeConfig); ok { + x.xxx_hidden_RegistryConfig = nil + } +} + +const RegistryConfig_RegistryConfig_not_set_case case_RegistryConfig_RegistryConfig = 0 +const RegistryConfig_GoConfig_case case_RegistryConfig_RegistryConfig = 1 +const RegistryConfig_NpmConfig_case case_RegistryConfig_RegistryConfig = 2 +const RegistryConfig_MavenConfig_case case_RegistryConfig_RegistryConfig = 3 +const RegistryConfig_SwiftConfig_case case_RegistryConfig_RegistryConfig = 4 +const RegistryConfig_PythonConfig_case case_RegistryConfig_RegistryConfig = 5 +const RegistryConfig_CargoConfig_case case_RegistryConfig_RegistryConfig = 6 +const RegistryConfig_NugetConfig_case case_RegistryConfig_RegistryConfig = 7 +const RegistryConfig_CmakeConfig_case case_RegistryConfig_RegistryConfig = 8 + +func (x *RegistryConfig) WhichRegistryConfig() case_RegistryConfig_RegistryConfig { + if x == nil { + return RegistryConfig_RegistryConfig_not_set_case + } + switch x.xxx_hidden_RegistryConfig.(type) { + case *registryConfig_GoConfig: + return RegistryConfig_GoConfig_case + case *registryConfig_NpmConfig: + return RegistryConfig_NpmConfig_case + case *registryConfig_MavenConfig: + return RegistryConfig_MavenConfig_case + case *registryConfig_SwiftConfig: + return RegistryConfig_SwiftConfig_case + case *registryConfig_PythonConfig: + return RegistryConfig_PythonConfig_case + case *registryConfig_CargoConfig: + return RegistryConfig_CargoConfig_case + case *registryConfig_NugetConfig: + return RegistryConfig_NugetConfig_case + case *registryConfig_CmakeConfig: + return RegistryConfig_CmakeConfig_case + default: + return RegistryConfig_RegistryConfig_not_set_case + } +} + +type RegistryConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_RegistryConfig: + GoConfig *GoConfig + NpmConfig *NPMConfig + MavenConfig *MavenConfig + SwiftConfig *SwiftConfig + PythonConfig *PythonConfig + CargoConfig *CargoConfig + NugetConfig *NugetConfig + CmakeConfig *CmakeConfig + // -- end of xxx_hidden_RegistryConfig + // The options to pass to the plugin. These will + // be merged into a single, comma-separated string. + Options []string +} + +func (b0 RegistryConfig_builder) Build() *RegistryConfig { + m0 := &RegistryConfig{} + b, x := &b0, m0 + _, _ = b, x + if b.GoConfig != nil { + x.xxx_hidden_RegistryConfig = ®istryConfig_GoConfig{b.GoConfig} + } + if b.NpmConfig != nil { + x.xxx_hidden_RegistryConfig = ®istryConfig_NpmConfig{b.NpmConfig} + } + if b.MavenConfig != nil { + x.xxx_hidden_RegistryConfig = ®istryConfig_MavenConfig{b.MavenConfig} + } + if b.SwiftConfig != nil { + x.xxx_hidden_RegistryConfig = ®istryConfig_SwiftConfig{b.SwiftConfig} + } + if b.PythonConfig != nil { + x.xxx_hidden_RegistryConfig = ®istryConfig_PythonConfig{b.PythonConfig} + } + if b.CargoConfig != nil { + x.xxx_hidden_RegistryConfig = ®istryConfig_CargoConfig{b.CargoConfig} + } + if b.NugetConfig != nil { + x.xxx_hidden_RegistryConfig = ®istryConfig_NugetConfig{b.NugetConfig} + } + if b.CmakeConfig != nil { + x.xxx_hidden_RegistryConfig = ®istryConfig_CmakeConfig{b.CmakeConfig} + } + x.xxx_hidden_Options = b.Options + return m0 +} + +type case_RegistryConfig_RegistryConfig protoreflect.FieldNumber + +func (x case_RegistryConfig_RegistryConfig) String() string { + md := file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[8].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isRegistryConfig_RegistryConfig interface { + isRegistryConfig_RegistryConfig() +} + +type registryConfig_GoConfig struct { + GoConfig *GoConfig `protobuf:"bytes,1,opt,name=go_config,json=goConfig,proto3,oneof"` +} + +type registryConfig_NpmConfig struct { + NpmConfig *NPMConfig `protobuf:"bytes,2,opt,name=npm_config,json=npmConfig,proto3,oneof"` +} + +type registryConfig_MavenConfig struct { + MavenConfig *MavenConfig `protobuf:"bytes,3,opt,name=maven_config,json=mavenConfig,proto3,oneof"` +} + +type registryConfig_SwiftConfig struct { + SwiftConfig *SwiftConfig `protobuf:"bytes,4,opt,name=swift_config,json=swiftConfig,proto3,oneof"` +} + +type registryConfig_PythonConfig struct { + PythonConfig *PythonConfig `protobuf:"bytes,5,opt,name=python_config,json=pythonConfig,proto3,oneof"` +} + +type registryConfig_CargoConfig struct { + CargoConfig *CargoConfig `protobuf:"bytes,6,opt,name=cargo_config,json=cargoConfig,proto3,oneof"` +} + +type registryConfig_NugetConfig struct { + NugetConfig *NugetConfig `protobuf:"bytes,7,opt,name=nuget_config,json=nugetConfig,proto3,oneof"` +} + +type registryConfig_CmakeConfig struct { + CmakeConfig *CmakeConfig `protobuf:"bytes,8,opt,name=cmake_config,json=cmakeConfig,proto3,oneof"` +} + +func (*registryConfig_GoConfig) isRegistryConfig_RegistryConfig() {} + +func (*registryConfig_NpmConfig) isRegistryConfig_RegistryConfig() {} + +func (*registryConfig_MavenConfig) isRegistryConfig_RegistryConfig() {} + +func (*registryConfig_SwiftConfig) isRegistryConfig_RegistryConfig() {} + +func (*registryConfig_PythonConfig) isRegistryConfig_RegistryConfig() {} + +func (*registryConfig_CargoConfig) isRegistryConfig_RegistryConfig() {} + +func (*registryConfig_NugetConfig) isRegistryConfig_RegistryConfig() {} + +func (*registryConfig_CmakeConfig) isRegistryConfig_RegistryConfig() {} + +type CuratedPluginReference struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_Revision uint32 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CuratedPluginReference) Reset() { + *x = CuratedPluginReference{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CuratedPluginReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CuratedPluginReference) ProtoMessage() {} + +func (x *CuratedPluginReference) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CuratedPluginReference) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *CuratedPluginReference) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *CuratedPluginReference) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *CuratedPluginReference) GetRevision() uint32 { + if x != nil { + return x.xxx_hidden_Revision + } + return 0 +} + +func (x *CuratedPluginReference) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *CuratedPluginReference) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *CuratedPluginReference) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *CuratedPluginReference) SetRevision(v uint32) { + x.xxx_hidden_Revision = v +} + +type CuratedPluginReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the plugin, i.e. "library". + Owner string + // The name of the plugin, i.e. "connect-go". + Name string + // Semver-formatted plugin version. + Version string + // The revision for this plugin version. + Revision uint32 +} + +func (b0 CuratedPluginReference_builder) Build() *CuratedPluginReference { + m0 := &CuratedPluginReference{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Version = b.Version + x.xxx_hidden_Revision = b.Revision + return m0 +} + +// CuratedPlugin represents a protoc plugin curated by Buf, such as protoc-gen-go. +type CuratedPlugin struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_RegistryType PluginRegistryType `protobuf:"varint,4,opt,name=registry_type,json=registryType,proto3,enum=buf.alpha.registry.v1alpha1.PluginRegistryType" json:"registry_type,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_ContainerImageDigest string `protobuf:"bytes,6,opt,name=container_image_digest,json=containerImageDigest,proto3" json:"container_image_digest,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + xxx_hidden_Dependencies *[]*CuratedPluginReference `protobuf:"bytes,9,rep,name=dependencies,proto3" json:"dependencies,omitempty"` + xxx_hidden_SourceUrl string `protobuf:"bytes,10,opt,name=source_url,json=sourceUrl,proto3" json:"source_url,omitempty"` + xxx_hidden_Description string `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"` + xxx_hidden_RegistryConfig *RegistryConfig `protobuf:"bytes,12,opt,name=registry_config,json=registryConfig,proto3" json:"registry_config,omitempty"` + xxx_hidden_Revision uint32 `protobuf:"varint,13,opt,name=revision,proto3" json:"revision,omitempty"` + xxx_hidden_OutputLanguages []PluginLanguage `protobuf:"varint,14,rep,packed,name=output_languages,json=outputLanguages,proto3,enum=buf.alpha.registry.v1alpha1.PluginLanguage" json:"output_languages,omitempty"` + xxx_hidden_SpdxLicenseId string `protobuf:"bytes,15,opt,name=spdx_license_id,json=spdxLicenseId,proto3" json:"spdx_license_id,omitempty"` + xxx_hidden_LicenseUrl string `protobuf:"bytes,16,opt,name=license_url,json=licenseUrl,proto3" json:"license_url,omitempty"` + xxx_hidden_Verified bool `protobuf:"varint,17,opt,name=verified,proto3" json:"verified,omitempty"` + xxx_hidden_Visibility CuratedPluginVisibility `protobuf:"varint,18,opt,name=visibility,proto3,enum=buf.alpha.registry.v1alpha1.CuratedPluginVisibility" json:"visibility,omitempty"` + xxx_hidden_Deprecated bool `protobuf:"varint,19,opt,name=deprecated,proto3" json:"deprecated,omitempty"` + xxx_hidden_DeprecationMessage string `protobuf:"bytes,20,opt,name=deprecation_message,json=deprecationMessage,proto3" json:"deprecation_message,omitempty"` + xxx_hidden_IntegrationGuideUrl string `protobuf:"bytes,21,opt,name=integration_guide_url,json=integrationGuideUrl,proto3" json:"integration_guide_url,omitempty"` + xxx_hidden_Doc string `protobuf:"bytes,22,opt,name=doc,proto3" json:"doc,omitempty"` + xxx_hidden_Collections *[]*PluginCollection `protobuf:"bytes,23,rep,name=collections,proto3" json:"collections,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CuratedPlugin) Reset() { + *x = CuratedPlugin{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CuratedPlugin) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CuratedPlugin) ProtoMessage() {} + +func (x *CuratedPlugin) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CuratedPlugin) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *CuratedPlugin) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *CuratedPlugin) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *CuratedPlugin) GetRegistryType() PluginRegistryType { + if x != nil { + return x.xxx_hidden_RegistryType + } + return PluginRegistryType_PLUGIN_REGISTRY_TYPE_UNSPECIFIED +} + +func (x *CuratedPlugin) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *CuratedPlugin) GetContainerImageDigest() string { + if x != nil { + return x.xxx_hidden_ContainerImageDigest + } + return "" +} + +func (x *CuratedPlugin) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *CuratedPlugin) GetDependencies() []*CuratedPluginReference { + if x != nil { + if x.xxx_hidden_Dependencies != nil { + return *x.xxx_hidden_Dependencies + } + } + return nil +} + +func (x *CuratedPlugin) GetSourceUrl() string { + if x != nil { + return x.xxx_hidden_SourceUrl + } + return "" +} + +func (x *CuratedPlugin) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *CuratedPlugin) GetRegistryConfig() *RegistryConfig { + if x != nil { + return x.xxx_hidden_RegistryConfig + } + return nil +} + +func (x *CuratedPlugin) GetRevision() uint32 { + if x != nil { + return x.xxx_hidden_Revision + } + return 0 +} + +func (x *CuratedPlugin) GetOutputLanguages() []PluginLanguage { + if x != nil { + return x.xxx_hidden_OutputLanguages + } + return nil +} + +func (x *CuratedPlugin) GetSpdxLicenseId() string { + if x != nil { + return x.xxx_hidden_SpdxLicenseId + } + return "" +} + +func (x *CuratedPlugin) GetLicenseUrl() string { + if x != nil { + return x.xxx_hidden_LicenseUrl + } + return "" +} + +func (x *CuratedPlugin) GetVerified() bool { + if x != nil { + return x.xxx_hidden_Verified + } + return false +} + +func (x *CuratedPlugin) GetVisibility() CuratedPluginVisibility { + if x != nil { + return x.xxx_hidden_Visibility + } + return CuratedPluginVisibility_CURATED_PLUGIN_VISIBILITY_UNSPECIFIED +} + +func (x *CuratedPlugin) GetDeprecated() bool { + if x != nil { + return x.xxx_hidden_Deprecated + } + return false +} + +func (x *CuratedPlugin) GetDeprecationMessage() string { + if x != nil { + return x.xxx_hidden_DeprecationMessage + } + return "" +} + +func (x *CuratedPlugin) GetIntegrationGuideUrl() string { + if x != nil { + return x.xxx_hidden_IntegrationGuideUrl + } + return "" +} + +func (x *CuratedPlugin) GetDoc() string { + if x != nil { + return x.xxx_hidden_Doc + } + return "" +} + +func (x *CuratedPlugin) GetCollections() []*PluginCollection { + if x != nil { + if x.xxx_hidden_Collections != nil { + return *x.xxx_hidden_Collections + } + } + return nil +} + +func (x *CuratedPlugin) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *CuratedPlugin) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *CuratedPlugin) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *CuratedPlugin) SetRegistryType(v PluginRegistryType) { + x.xxx_hidden_RegistryType = v +} + +func (x *CuratedPlugin) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *CuratedPlugin) SetContainerImageDigest(v string) { + x.xxx_hidden_ContainerImageDigest = v +} + +func (x *CuratedPlugin) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *CuratedPlugin) SetDependencies(v []*CuratedPluginReference) { + x.xxx_hidden_Dependencies = &v +} + +func (x *CuratedPlugin) SetSourceUrl(v string) { + x.xxx_hidden_SourceUrl = v +} + +func (x *CuratedPlugin) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *CuratedPlugin) SetRegistryConfig(v *RegistryConfig) { + x.xxx_hidden_RegistryConfig = v +} + +func (x *CuratedPlugin) SetRevision(v uint32) { + x.xxx_hidden_Revision = v +} + +func (x *CuratedPlugin) SetOutputLanguages(v []PluginLanguage) { + x.xxx_hidden_OutputLanguages = v +} + +func (x *CuratedPlugin) SetSpdxLicenseId(v string) { + x.xxx_hidden_SpdxLicenseId = v +} + +func (x *CuratedPlugin) SetLicenseUrl(v string) { + x.xxx_hidden_LicenseUrl = v +} + +func (x *CuratedPlugin) SetVerified(v bool) { + x.xxx_hidden_Verified = v +} + +func (x *CuratedPlugin) SetVisibility(v CuratedPluginVisibility) { + x.xxx_hidden_Visibility = v +} + +func (x *CuratedPlugin) SetDeprecated(v bool) { + x.xxx_hidden_Deprecated = v +} + +func (x *CuratedPlugin) SetDeprecationMessage(v string) { + x.xxx_hidden_DeprecationMessage = v +} + +func (x *CuratedPlugin) SetIntegrationGuideUrl(v string) { + x.xxx_hidden_IntegrationGuideUrl = v +} + +func (x *CuratedPlugin) SetDoc(v string) { + x.xxx_hidden_Doc = v +} + +func (x *CuratedPlugin) SetCollections(v []*PluginCollection) { + x.xxx_hidden_Collections = &v +} + +func (x *CuratedPlugin) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *CuratedPlugin) HasRegistryConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_RegistryConfig != nil +} + +func (x *CuratedPlugin) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *CuratedPlugin) ClearRegistryConfig() { + x.xxx_hidden_RegistryConfig = nil +} + +type CuratedPlugin_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the plugin, which uniquely identifies the plugin. + Id string + // The owner of the plugin, i.e. "library". + Owner string + // The name of the plugin, i.e. "connect-go". + Name string + // The optional registry type of the plugin. + RegistryType PluginRegistryType + // Semver-formatted plugin version. + Version string + // The full container image digest associated with this plugin version including + // the algorithm. + // Ref: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests + ContainerImageDigest string + // The creation time of the plugin. + CreateTime *timestamppb.Timestamp + // List of plugin dependencies. + Dependencies []*CuratedPluginReference + // Optionally specify the URL leading to the source code of the plugin, if available. + SourceUrl string + // Optionally specify a brief description of the plugin functionality. + Description string + // The configuration for the remote registry of the plugin. + RegistryConfig *RegistryConfig + // The revision for this plugin version. + Revision uint32 + // The output languages supported by the plugin. + OutputLanguages []PluginLanguage + // spdx_license_id is the license of the plugin, which should be one of the identifiers + // defined in https://spdx.org/licenses + SpdxLicenseId string + // license_url specifies an optional URL for the plugin's license (if not using a standard spdx_license_id). + LicenseUrl string + // verified indicates the plugin has been verified. Verification is a property + // of the BSR and cannot be set by end-users. + Verified bool + // Visibility indicates whether the plugin is public or private. + Visibility CuratedPluginVisibility + // Deprecated indicates whether the plugin is deprecated. + Deprecated bool + // Optionally specify a message to be displayed when the plugin is deprecated. + DeprecationMessage string + // The URL leading to the integration guide of the plugin, if available. + IntegrationGuideUrl string + // The configurable documentation of the Plugin. + Doc string + // The collections the Plugin belongs to. + Collections []*PluginCollection +} + +func (b0 CuratedPlugin_builder) Build() *CuratedPlugin { + m0 := &CuratedPlugin{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Name = b.Name + x.xxx_hidden_RegistryType = b.RegistryType + x.xxx_hidden_Version = b.Version + x.xxx_hidden_ContainerImageDigest = b.ContainerImageDigest + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_Dependencies = &b.Dependencies + x.xxx_hidden_SourceUrl = b.SourceUrl + x.xxx_hidden_Description = b.Description + x.xxx_hidden_RegistryConfig = b.RegistryConfig + x.xxx_hidden_Revision = b.Revision + x.xxx_hidden_OutputLanguages = b.OutputLanguages + x.xxx_hidden_SpdxLicenseId = b.SpdxLicenseId + x.xxx_hidden_LicenseUrl = b.LicenseUrl + x.xxx_hidden_Verified = b.Verified + x.xxx_hidden_Visibility = b.Visibility + x.xxx_hidden_Deprecated = b.Deprecated + x.xxx_hidden_DeprecationMessage = b.DeprecationMessage + x.xxx_hidden_IntegrationGuideUrl = b.IntegrationGuideUrl + x.xxx_hidden_Doc = b.Doc + x.xxx_hidden_Collections = &b.Collections + return m0 +} + +// Plugin collections group related plugins, organizing them by functionality or ecosystem. +type PluginCollection struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PluginCollection) Reset() { + *x = PluginCollection{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PluginCollection) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PluginCollection) ProtoMessage() {} + +func (x *PluginCollection) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PluginCollection) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *PluginCollection) SetName(v string) { + x.xxx_hidden_Name = v +} + +type PluginCollection_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the collection. + Name string +} + +func (b0 PluginCollection_builder) Build() *PluginCollection { + m0 := &PluginCollection{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + return m0 +} + +type GenerateCodeRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Image *v1.Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` + xxx_hidden_Requests *[]*PluginGenerationRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` + xxx_hidden_IncludeImports bool `protobuf:"varint,3,opt,name=include_imports,json=includeImports,proto3" json:"include_imports,omitempty"` + xxx_hidden_IncludeWellKnownTypes bool `protobuf:"varint,4,opt,name=include_well_known_types,json=includeWellKnownTypes,proto3" json:"include_well_known_types,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GenerateCodeRequest) Reset() { + *x = GenerateCodeRequest{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GenerateCodeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateCodeRequest) ProtoMessage() {} + +func (x *GenerateCodeRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GenerateCodeRequest) GetImage() *v1.Image { + if x != nil { + return x.xxx_hidden_Image + } + return nil +} + +func (x *GenerateCodeRequest) GetRequests() []*PluginGenerationRequest { + if x != nil { + if x.xxx_hidden_Requests != nil { + return *x.xxx_hidden_Requests + } + } + return nil +} + +func (x *GenerateCodeRequest) GetIncludeImports() bool { + if x != nil { + return x.xxx_hidden_IncludeImports + } + return false +} + +func (x *GenerateCodeRequest) GetIncludeWellKnownTypes() bool { + if x != nil { + return x.xxx_hidden_IncludeWellKnownTypes + } + return false +} + +func (x *GenerateCodeRequest) SetImage(v *v1.Image) { + x.xxx_hidden_Image = v +} + +func (x *GenerateCodeRequest) SetRequests(v []*PluginGenerationRequest) { + x.xxx_hidden_Requests = &v +} + +func (x *GenerateCodeRequest) SetIncludeImports(v bool) { + x.xxx_hidden_IncludeImports = v +} + +func (x *GenerateCodeRequest) SetIncludeWellKnownTypes(v bool) { + x.xxx_hidden_IncludeWellKnownTypes = v +} + +func (x *GenerateCodeRequest) HasImage() bool { + if x == nil { + return false + } + return x.xxx_hidden_Image != nil +} + +func (x *GenerateCodeRequest) ClearImage() { + x.xxx_hidden_Image = nil +} + +type GenerateCodeRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The image to run plugins against to generate the desired file outputs. + // + // All image files that are not imports and not well-known types will be generated. + // If you want to filter what files are generated, modify the image. + // If you want to include imports, set include_imports. + Image *v1.Image + Requests []*PluginGenerationRequest + // Include imports from the Image in generation. If include_imports is also set + // in one of requests, use the request's value for that plugin. + IncludeImports bool + // Include Well-Known Types from the Image in generation. + // + // include_imports must be set if include_well_known_types is set. If include_well_known_types + // is also set in one of requests, use the request's value for that plugin. + IncludeWellKnownTypes bool +} + +func (b0 GenerateCodeRequest_builder) Build() *GenerateCodeRequest { + m0 := &GenerateCodeRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Image = b.Image + x.xxx_hidden_Requests = &b.Requests + x.xxx_hidden_IncludeImports = b.IncludeImports + x.xxx_hidden_IncludeWellKnownTypes = b.IncludeWellKnownTypes + return m0 +} + +type GenerateCodeResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Responses *[]*PluginGenerationResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GenerateCodeResponse) Reset() { + *x = GenerateCodeResponse{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GenerateCodeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateCodeResponse) ProtoMessage() {} + +func (x *GenerateCodeResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GenerateCodeResponse) GetResponses() []*PluginGenerationResponse { + if x != nil { + if x.xxx_hidden_Responses != nil { + return *x.xxx_hidden_Responses + } + } + return nil +} + +func (x *GenerateCodeResponse) SetResponses(v []*PluginGenerationResponse) { + x.xxx_hidden_Responses = &v +} + +type GenerateCodeResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Responses from each plugin execution. + // The order of each response matches the order in the GenerateCodeRequest. + Responses []*PluginGenerationResponse +} + +func (b0 GenerateCodeResponse_builder) Build() *GenerateCodeResponse { + m0 := &GenerateCodeResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Responses = &b.Responses + return m0 +} + +// Request for performing code generation using the specified plugin. +type PluginGenerationRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PluginReference *CuratedPluginReference `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` + xxx_hidden_Options []string `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` + xxx_hidden_IncludeImports bool `protobuf:"varint,3,opt,name=include_imports,json=includeImports,proto3,oneof" json:"include_imports,omitempty"` + xxx_hidden_IncludeWellKnownTypes bool `protobuf:"varint,4,opt,name=include_well_known_types,json=includeWellKnownTypes,proto3,oneof" json:"include_well_known_types,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PluginGenerationRequest) Reset() { + *x = PluginGenerationRequest{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PluginGenerationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PluginGenerationRequest) ProtoMessage() {} + +func (x *PluginGenerationRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PluginGenerationRequest) GetPluginReference() *CuratedPluginReference { + if x != nil { + return x.xxx_hidden_PluginReference + } + return nil +} + +func (x *PluginGenerationRequest) GetOptions() []string { + if x != nil { + return x.xxx_hidden_Options + } + return nil +} + +func (x *PluginGenerationRequest) GetIncludeImports() bool { + if x != nil { + return x.xxx_hidden_IncludeImports + } + return false +} + +func (x *PluginGenerationRequest) GetIncludeWellKnownTypes() bool { + if x != nil { + return x.xxx_hidden_IncludeWellKnownTypes + } + return false +} + +func (x *PluginGenerationRequest) SetPluginReference(v *CuratedPluginReference) { + x.xxx_hidden_PluginReference = v +} + +func (x *PluginGenerationRequest) SetOptions(v []string) { + x.xxx_hidden_Options = v +} + +func (x *PluginGenerationRequest) SetIncludeImports(v bool) { + x.xxx_hidden_IncludeImports = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 4) +} + +func (x *PluginGenerationRequest) SetIncludeWellKnownTypes(v bool) { + x.xxx_hidden_IncludeWellKnownTypes = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 3, 4) +} + +func (x *PluginGenerationRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_PluginReference != nil +} + +func (x *PluginGenerationRequest) HasIncludeImports() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 2) +} + +func (x *PluginGenerationRequest) HasIncludeWellKnownTypes() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 3) +} + +func (x *PluginGenerationRequest) ClearPluginReference() { + x.xxx_hidden_PluginReference = nil +} + +func (x *PluginGenerationRequest) ClearIncludeImports() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2) + x.xxx_hidden_IncludeImports = false +} + +func (x *PluginGenerationRequest) ClearIncludeWellKnownTypes() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 3) + x.xxx_hidden_IncludeWellKnownTypes = false +} + +type PluginGenerationRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin to execute. + PluginReference *CuratedPluginReference + // The options to pass to the plugin. These will + // be merged into a single, comma-separated string. + Options []string + // Include imports from the Image in generation. + IncludeImports *bool + // Include Well-Known Types from the Image in generation. + // + // include_imports must be set if include_well_known_types is set. + IncludeWellKnownTypes *bool +} + +func (b0 PluginGenerationRequest_builder) Build() *PluginGenerationRequest { + m0 := &PluginGenerationRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PluginReference = b.PluginReference + x.xxx_hidden_Options = b.Options + if b.IncludeImports != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 4) + x.xxx_hidden_IncludeImports = *b.IncludeImports + } + if b.IncludeWellKnownTypes != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 3, 4) + x.xxx_hidden_IncludeWellKnownTypes = *b.IncludeWellKnownTypes + } + return m0 +} + +// Response from code generation for a given plugin. +type PluginGenerationResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Response *pluginpb.CodeGeneratorResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PluginGenerationResponse) Reset() { + *x = PluginGenerationResponse{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PluginGenerationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PluginGenerationResponse) ProtoMessage() {} + +func (x *PluginGenerationResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PluginGenerationResponse) GetResponse() *pluginpb.CodeGeneratorResponse { + if x != nil { + return x.xxx_hidden_Response + } + return nil +} + +func (x *PluginGenerationResponse) SetResponse(v *pluginpb.CodeGeneratorResponse) { + x.xxx_hidden_Response = v +} + +func (x *PluginGenerationResponse) HasResponse() bool { + if x == nil { + return false + } + return x.xxx_hidden_Response != nil +} + +func (x *PluginGenerationResponse) ClearResponse() { + x.xxx_hidden_Response = nil +} + +type PluginGenerationResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Generated code from the plugin. + Response *pluginpb.CodeGeneratorResponse +} + +func (b0 PluginGenerationResponse_builder) Build() *PluginGenerationResponse { + m0 := &PluginGenerationResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Response = b.Response + return m0 +} + +type DeleteCuratedPluginRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteCuratedPluginRequest) Reset() { + *x = DeleteCuratedPluginRequest{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteCuratedPluginRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteCuratedPluginRequest) ProtoMessage() {} + +func (x *DeleteCuratedPluginRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteCuratedPluginRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *DeleteCuratedPluginRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *DeleteCuratedPluginRequest) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *DeleteCuratedPluginRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *DeleteCuratedPluginRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *DeleteCuratedPluginRequest) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type DeleteCuratedPluginRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the plugin to delete. + Owner string + // The name of the plugin to delete. + Name string + // Version is the plugin version and is optional. If this field is not set then delete all versions, + // otherwise delete only the specified version which includes all revisions. + Version string +} + +func (b0 DeleteCuratedPluginRequest_builder) Build() *DeleteCuratedPluginRequest { + m0 := &DeleteCuratedPluginRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Version = b.Version + return m0 +} + +type DeleteCuratedPluginResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteCuratedPluginResponse) Reset() { + *x = DeleteCuratedPluginResponse{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteCuratedPluginResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteCuratedPluginResponse) ProtoMessage() {} + +func (x *DeleteCuratedPluginResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteCuratedPluginResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteCuratedPluginResponse_builder) Build() *DeleteCuratedPluginResponse { + m0 := &DeleteCuratedPluginResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type CreateCuratedPluginRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_RegistryType PluginRegistryType `protobuf:"varint,3,opt,name=registry_type,json=registryType,proto3,enum=buf.alpha.registry.v1alpha1.PluginRegistryType" json:"registry_type,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_ContainerImageDigest string `protobuf:"bytes,5,opt,name=container_image_digest,json=containerImageDigest,proto3" json:"container_image_digest,omitempty"` + xxx_hidden_Dependencies *[]*CuratedPluginReference `protobuf:"bytes,7,rep,name=dependencies,proto3" json:"dependencies,omitempty"` + xxx_hidden_SourceUrl string `protobuf:"bytes,8,opt,name=source_url,json=sourceUrl,proto3" json:"source_url,omitempty"` + xxx_hidden_Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"` + xxx_hidden_RegistryConfig *RegistryConfig `protobuf:"bytes,12,opt,name=registry_config,json=registryConfig,proto3" json:"registry_config,omitempty"` + xxx_hidden_Revision uint32 `protobuf:"varint,13,opt,name=revision,proto3" json:"revision,omitempty"` + xxx_hidden_OutputLanguages []PluginLanguage `protobuf:"varint,14,rep,packed,name=output_languages,json=outputLanguages,proto3,enum=buf.alpha.registry.v1alpha1.PluginLanguage" json:"output_languages,omitempty"` + xxx_hidden_SpdxLicenseId string `protobuf:"bytes,15,opt,name=spdx_license_id,json=spdxLicenseId,proto3" json:"spdx_license_id,omitempty"` + xxx_hidden_LicenseUrl string `protobuf:"bytes,16,opt,name=license_url,json=licenseUrl,proto3" json:"license_url,omitempty"` + xxx_hidden_Visibility CuratedPluginVisibility `protobuf:"varint,17,opt,name=visibility,proto3,enum=buf.alpha.registry.v1alpha1.CuratedPluginVisibility" json:"visibility,omitempty"` + xxx_hidden_IntegrationGuideUrl string `protobuf:"bytes,18,opt,name=integration_guide_url,json=integrationGuideUrl,proto3" json:"integration_guide_url,omitempty"` + xxx_hidden_Deprecated bool `protobuf:"varint,19,opt,name=deprecated,proto3" json:"deprecated,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateCuratedPluginRequest) Reset() { + *x = CreateCuratedPluginRequest{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateCuratedPluginRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateCuratedPluginRequest) ProtoMessage() {} + +func (x *CreateCuratedPluginRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateCuratedPluginRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *CreateCuratedPluginRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *CreateCuratedPluginRequest) GetRegistryType() PluginRegistryType { + if x != nil { + return x.xxx_hidden_RegistryType + } + return PluginRegistryType_PLUGIN_REGISTRY_TYPE_UNSPECIFIED +} + +func (x *CreateCuratedPluginRequest) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *CreateCuratedPluginRequest) GetContainerImageDigest() string { + if x != nil { + return x.xxx_hidden_ContainerImageDigest + } + return "" +} + +func (x *CreateCuratedPluginRequest) GetDependencies() []*CuratedPluginReference { + if x != nil { + if x.xxx_hidden_Dependencies != nil { + return *x.xxx_hidden_Dependencies + } + } + return nil +} + +func (x *CreateCuratedPluginRequest) GetSourceUrl() string { + if x != nil { + return x.xxx_hidden_SourceUrl + } + return "" +} + +func (x *CreateCuratedPluginRequest) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *CreateCuratedPluginRequest) GetRegistryConfig() *RegistryConfig { + if x != nil { + return x.xxx_hidden_RegistryConfig + } + return nil +} + +func (x *CreateCuratedPluginRequest) GetRevision() uint32 { + if x != nil { + return x.xxx_hidden_Revision + } + return 0 +} + +func (x *CreateCuratedPluginRequest) GetOutputLanguages() []PluginLanguage { + if x != nil { + return x.xxx_hidden_OutputLanguages + } + return nil +} + +func (x *CreateCuratedPluginRequest) GetSpdxLicenseId() string { + if x != nil { + return x.xxx_hidden_SpdxLicenseId + } + return "" +} + +func (x *CreateCuratedPluginRequest) GetLicenseUrl() string { + if x != nil { + return x.xxx_hidden_LicenseUrl + } + return "" +} + +func (x *CreateCuratedPluginRequest) GetVisibility() CuratedPluginVisibility { + if x != nil { + return x.xxx_hidden_Visibility + } + return CuratedPluginVisibility_CURATED_PLUGIN_VISIBILITY_UNSPECIFIED +} + +func (x *CreateCuratedPluginRequest) GetIntegrationGuideUrl() string { + if x != nil { + return x.xxx_hidden_IntegrationGuideUrl + } + return "" +} + +func (x *CreateCuratedPluginRequest) GetDeprecated() bool { + if x != nil { + return x.xxx_hidden_Deprecated + } + return false +} + +func (x *CreateCuratedPluginRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *CreateCuratedPluginRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *CreateCuratedPluginRequest) SetRegistryType(v PluginRegistryType) { + x.xxx_hidden_RegistryType = v +} + +func (x *CreateCuratedPluginRequest) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *CreateCuratedPluginRequest) SetContainerImageDigest(v string) { + x.xxx_hidden_ContainerImageDigest = v +} + +func (x *CreateCuratedPluginRequest) SetDependencies(v []*CuratedPluginReference) { + x.xxx_hidden_Dependencies = &v +} + +func (x *CreateCuratedPluginRequest) SetSourceUrl(v string) { + x.xxx_hidden_SourceUrl = v +} + +func (x *CreateCuratedPluginRequest) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *CreateCuratedPluginRequest) SetRegistryConfig(v *RegistryConfig) { + x.xxx_hidden_RegistryConfig = v +} + +func (x *CreateCuratedPluginRequest) SetRevision(v uint32) { + x.xxx_hidden_Revision = v +} + +func (x *CreateCuratedPluginRequest) SetOutputLanguages(v []PluginLanguage) { + x.xxx_hidden_OutputLanguages = v +} + +func (x *CreateCuratedPluginRequest) SetSpdxLicenseId(v string) { + x.xxx_hidden_SpdxLicenseId = v +} + +func (x *CreateCuratedPluginRequest) SetLicenseUrl(v string) { + x.xxx_hidden_LicenseUrl = v +} + +func (x *CreateCuratedPluginRequest) SetVisibility(v CuratedPluginVisibility) { + x.xxx_hidden_Visibility = v +} + +func (x *CreateCuratedPluginRequest) SetIntegrationGuideUrl(v string) { + x.xxx_hidden_IntegrationGuideUrl = v +} + +func (x *CreateCuratedPluginRequest) SetDeprecated(v bool) { + x.xxx_hidden_Deprecated = v +} + +func (x *CreateCuratedPluginRequest) HasRegistryConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_RegistryConfig != nil +} + +func (x *CreateCuratedPluginRequest) ClearRegistryConfig() { + x.xxx_hidden_RegistryConfig = nil +} + +type CreateCuratedPluginRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the plugin, i.e. "library". + Owner string + // The name of the plugin, i.e. "connect-go". + Name string + // The optional registry type of the plugin. + RegistryType PluginRegistryType + // Semver-formatted plugin version. + Version string + // The full container image digest associated with this plugin version including + // the algorithm. + // Ref: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests + ContainerImageDigest string + // List of plugin dependencies. + Dependencies []*CuratedPluginReference + // The URL leading to the source code of the plugin, if available. + SourceUrl string + // A brief description of the plugin functionality. + Description string + // The configuration for the remote registry of the plugin. + RegistryConfig *RegistryConfig + // The revision for this plugin version. + Revision uint32 + // The output languages supported by the plugin. + OutputLanguages []PluginLanguage + // spdx_license_id is the license of the plugin, which should be one of the identifiers + // defined in https://spdx.org/licenses + SpdxLicenseId string + // license_url specifies an optional URL for the plugin's license (if not using a standard spdx_license_id). + LicenseUrl string + // Visibility indicates whether the plugin is public or private. + Visibility CuratedPluginVisibility + // The URL leading to the integration guide of the plugin, if available. + IntegrationGuideUrl string + // The deprecation status of the plugin. + Deprecated bool +} + +func (b0 CreateCuratedPluginRequest_builder) Build() *CreateCuratedPluginRequest { + m0 := &CreateCuratedPluginRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Name = b.Name + x.xxx_hidden_RegistryType = b.RegistryType + x.xxx_hidden_Version = b.Version + x.xxx_hidden_ContainerImageDigest = b.ContainerImageDigest + x.xxx_hidden_Dependencies = &b.Dependencies + x.xxx_hidden_SourceUrl = b.SourceUrl + x.xxx_hidden_Description = b.Description + x.xxx_hidden_RegistryConfig = b.RegistryConfig + x.xxx_hidden_Revision = b.Revision + x.xxx_hidden_OutputLanguages = b.OutputLanguages + x.xxx_hidden_SpdxLicenseId = b.SpdxLicenseId + x.xxx_hidden_LicenseUrl = b.LicenseUrl + x.xxx_hidden_Visibility = b.Visibility + x.xxx_hidden_IntegrationGuideUrl = b.IntegrationGuideUrl + x.xxx_hidden_Deprecated = b.Deprecated + return m0 +} + +type CreateCuratedPluginResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Configuration *CuratedPlugin `protobuf:"bytes,1,opt,name=configuration,proto3" json:"configuration,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateCuratedPluginResponse) Reset() { + *x = CreateCuratedPluginResponse{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateCuratedPluginResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateCuratedPluginResponse) ProtoMessage() {} + +func (x *CreateCuratedPluginResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateCuratedPluginResponse) GetConfiguration() *CuratedPlugin { + if x != nil { + return x.xxx_hidden_Configuration + } + return nil +} + +func (x *CreateCuratedPluginResponse) SetConfiguration(v *CuratedPlugin) { + x.xxx_hidden_Configuration = v +} + +func (x *CreateCuratedPluginResponse) HasConfiguration() bool { + if x == nil { + return false + } + return x.xxx_hidden_Configuration != nil +} + +func (x *CreateCuratedPluginResponse) ClearConfiguration() { + x.xxx_hidden_Configuration = nil +} + +type CreateCuratedPluginResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The created plugin. + Configuration *CuratedPlugin +} + +func (b0 CreateCuratedPluginResponse_builder) Build() *CreateCuratedPluginResponse { + m0 := &CreateCuratedPluginResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Configuration = b.Configuration + return m0 +} + +type ListCuratedPluginsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,3,opt,name=reverse,proto3" json:"reverse,omitempty"` + xxx_hidden_SupportsRemotePackages bool `protobuf:"varint,4,opt,name=supports_remote_packages,json=supportsRemotePackages,proto3" json:"supports_remote_packages,omitempty"` + xxx_hidden_IncludeDeprecated bool `protobuf:"varint,5,opt,name=include_deprecated,json=includeDeprecated,proto3" json:"include_deprecated,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListCuratedPluginsRequest) Reset() { + *x = ListCuratedPluginsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListCuratedPluginsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListCuratedPluginsRequest) ProtoMessage() {} + +func (x *ListCuratedPluginsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListCuratedPluginsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListCuratedPluginsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListCuratedPluginsRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListCuratedPluginsRequest) GetSupportsRemotePackages() bool { + if x != nil { + return x.xxx_hidden_SupportsRemotePackages + } + return false +} + +func (x *ListCuratedPluginsRequest) GetIncludeDeprecated() bool { + if x != nil { + return x.xxx_hidden_IncludeDeprecated + } + return false +} + +func (x *ListCuratedPluginsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListCuratedPluginsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListCuratedPluginsRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +func (x *ListCuratedPluginsRequest) SetSupportsRemotePackages(v bool) { + x.xxx_hidden_SupportsRemotePackages = v +} + +func (x *ListCuratedPluginsRequest) SetIncludeDeprecated(v bool) { + x.xxx_hidden_IncludeDeprecated = v +} + +type ListCuratedPluginsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool + // If true, will only return plugins which support remote packages (registry_type is set). + SupportsRemotePackages bool + // If true, will include deprecated plugins. + IncludeDeprecated bool +} + +func (b0 ListCuratedPluginsRequest_builder) Build() *ListCuratedPluginsRequest { + m0 := &ListCuratedPluginsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + x.xxx_hidden_SupportsRemotePackages = b.SupportsRemotePackages + x.xxx_hidden_IncludeDeprecated = b.IncludeDeprecated + return m0 +} + +type ListCuratedPluginsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Plugins *[]*CuratedPlugin `protobuf:"bytes,1,rep,name=plugins,proto3" json:"plugins,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListCuratedPluginsResponse) Reset() { + *x = ListCuratedPluginsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListCuratedPluginsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListCuratedPluginsResponse) ProtoMessage() {} + +func (x *ListCuratedPluginsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListCuratedPluginsResponse) GetPlugins() []*CuratedPlugin { + if x != nil { + if x.xxx_hidden_Plugins != nil { + return *x.xxx_hidden_Plugins + } + } + return nil +} + +func (x *ListCuratedPluginsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListCuratedPluginsResponse) SetPlugins(v []*CuratedPlugin) { + x.xxx_hidden_Plugins = &v +} + +func (x *ListCuratedPluginsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListCuratedPluginsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Plugins []*CuratedPlugin + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListCuratedPluginsResponse_builder) Build() *ListCuratedPluginsResponse { + m0 := &ListCuratedPluginsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Plugins = &b.Plugins + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type GetLatestCuratedPluginRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_Revision uint32 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` + xxx_hidden_SupportsRemotePackages bool `protobuf:"varint,5,opt,name=supports_remote_packages,json=supportsRemotePackages,proto3" json:"supports_remote_packages,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetLatestCuratedPluginRequest) Reset() { + *x = GetLatestCuratedPluginRequest{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetLatestCuratedPluginRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetLatestCuratedPluginRequest) ProtoMessage() {} + +func (x *GetLatestCuratedPluginRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetLatestCuratedPluginRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetLatestCuratedPluginRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GetLatestCuratedPluginRequest) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *GetLatestCuratedPluginRequest) GetRevision() uint32 { + if x != nil { + return x.xxx_hidden_Revision + } + return 0 +} + +func (x *GetLatestCuratedPluginRequest) GetSupportsRemotePackages() bool { + if x != nil { + return x.xxx_hidden_SupportsRemotePackages + } + return false +} + +func (x *GetLatestCuratedPluginRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetLatestCuratedPluginRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *GetLatestCuratedPluginRequest) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *GetLatestCuratedPluginRequest) SetRevision(v uint32) { + x.xxx_hidden_Revision = v +} + +func (x *GetLatestCuratedPluginRequest) SetSupportsRemotePackages(v bool) { + x.xxx_hidden_SupportsRemotePackages = v +} + +type GetLatestCuratedPluginRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the plugin, i.e. "library". + Owner string + // The name of the plugin, i.e. "connect-go". + Name string + // Both version (semver-formatted) and revision are optional, which means + // return the latest plugin. + // If version is set, but revision is omitted, then return the latest + // revision for that version. + // If version and revision are both set, return specific plugin. + // It is an error to set a revision without a corresponding version. + Version string + Revision uint32 + // If true, will only return versions (and revisions) which support remote packages (registry_type is set). + SupportsRemotePackages bool +} + +func (b0 GetLatestCuratedPluginRequest_builder) Build() *GetLatestCuratedPluginRequest { + m0 := &GetLatestCuratedPluginRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Version = b.Version + x.xxx_hidden_Revision = b.Revision + x.xxx_hidden_SupportsRemotePackages = b.SupportsRemotePackages + return m0 +} + +type GetLatestCuratedPluginResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Plugin *CuratedPlugin `protobuf:"bytes,1,opt,name=plugin,proto3" json:"plugin,omitempty"` + xxx_hidden_Versions *[]*CuratedPluginVersionRevisions `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetLatestCuratedPluginResponse) Reset() { + *x = GetLatestCuratedPluginResponse{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetLatestCuratedPluginResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetLatestCuratedPluginResponse) ProtoMessage() {} + +func (x *GetLatestCuratedPluginResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetLatestCuratedPluginResponse) GetPlugin() *CuratedPlugin { + if x != nil { + return x.xxx_hidden_Plugin + } + return nil +} + +func (x *GetLatestCuratedPluginResponse) GetVersions() []*CuratedPluginVersionRevisions { + if x != nil { + if x.xxx_hidden_Versions != nil { + return *x.xxx_hidden_Versions + } + } + return nil +} + +func (x *GetLatestCuratedPluginResponse) SetPlugin(v *CuratedPlugin) { + x.xxx_hidden_Plugin = v +} + +func (x *GetLatestCuratedPluginResponse) SetVersions(v []*CuratedPluginVersionRevisions) { + x.xxx_hidden_Versions = &v +} + +func (x *GetLatestCuratedPluginResponse) HasPlugin() bool { + if x == nil { + return false + } + return x.xxx_hidden_Plugin != nil +} + +func (x *GetLatestCuratedPluginResponse) ClearPlugin() { + x.xxx_hidden_Plugin = nil +} + +type GetLatestCuratedPluginResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Plugin *CuratedPlugin + // versions is a semver-sorted list in descending order. + Versions []*CuratedPluginVersionRevisions +} + +func (b0 GetLatestCuratedPluginResponse_builder) Build() *GetLatestCuratedPluginResponse { + m0 := &GetLatestCuratedPluginResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Plugin = b.Plugin + x.xxx_hidden_Versions = &b.Versions + return m0 +} + +type CuratedPluginVersionRevisions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_Revisions []uint32 `protobuf:"varint,2,rep,packed,name=revisions,proto3" json:"revisions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CuratedPluginVersionRevisions) Reset() { + *x = CuratedPluginVersionRevisions{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CuratedPluginVersionRevisions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CuratedPluginVersionRevisions) ProtoMessage() {} + +func (x *CuratedPluginVersionRevisions) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CuratedPluginVersionRevisions) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *CuratedPluginVersionRevisions) GetRevisions() []uint32 { + if x != nil { + return x.xxx_hidden_Revisions + } + return nil +} + +func (x *CuratedPluginVersionRevisions) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *CuratedPluginVersionRevisions) SetRevisions(v []uint32) { + x.xxx_hidden_Revisions = v +} + +type CuratedPluginVersionRevisions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Version string + // revisions is a sorted list in descending order. + Revisions []uint32 +} + +func (b0 CuratedPluginVersionRevisions_builder) Build() *CuratedPluginVersionRevisions { + m0 := &CuratedPluginVersionRevisions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + x.xxx_hidden_Revisions = b.Revisions + return m0 +} + +// RuntimeLibrary describes the runtime library dependency of the generated code. +type GoConfig_RuntimeLibrary struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GoConfig_RuntimeLibrary) Reset() { + *x = GoConfig_RuntimeLibrary{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GoConfig_RuntimeLibrary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GoConfig_RuntimeLibrary) ProtoMessage() {} + +func (x *GoConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GoConfig_RuntimeLibrary) GetModule() string { + if x != nil { + return x.xxx_hidden_Module + } + return "" +} + +func (x *GoConfig_RuntimeLibrary) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *GoConfig_RuntimeLibrary) SetModule(v string) { + x.xxx_hidden_Module = v +} + +func (x *GoConfig_RuntimeLibrary) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type GoConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the runtime library module, i.e. "google.golang.org/protobuf". + Module string + // The version of the runtime library, i.e. "v1.27.1". + Version string +} + +func (b0 GoConfig_RuntimeLibrary_builder) Build() *GoConfig_RuntimeLibrary { + m0 := &GoConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Module = b.Module + x.xxx_hidden_Version = b.Version + return m0 +} + +// RuntimeLibrary describes the runtime library dependency of the generated code. +type NPMConfig_RuntimeLibrary struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NPMConfig_RuntimeLibrary) Reset() { + *x = NPMConfig_RuntimeLibrary{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NPMConfig_RuntimeLibrary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NPMConfig_RuntimeLibrary) ProtoMessage() {} + +func (x *NPMConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NPMConfig_RuntimeLibrary) GetPackage() string { + if x != nil { + return x.xxx_hidden_Package + } + return "" +} + +func (x *NPMConfig_RuntimeLibrary) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *NPMConfig_RuntimeLibrary) SetPackage(v string) { + x.xxx_hidden_Package = v +} + +func (x *NPMConfig_RuntimeLibrary) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type NPMConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the runtime library package, i.e. "@grpc/grpc-js". + Package string + // The version of the runtime library, i.e. "^1.27.1". + Version string +} + +func (b0 NPMConfig_RuntimeLibrary_builder) Build() *NPMConfig_RuntimeLibrary { + m0 := &NPMConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Package = b.Package + x.xxx_hidden_Version = b.Version + return m0 +} + +// RuntimeLibrary describes a runtime dependency of the generated code. +type MavenConfig_RuntimeLibrary struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` + xxx_hidden_ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_Classifier string `protobuf:"bytes,4,opt,name=classifier,proto3" json:"classifier,omitempty"` + xxx_hidden_Extension string `protobuf:"bytes,5,opt,name=extension,proto3" json:"extension,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MavenConfig_RuntimeLibrary) Reset() { + *x = MavenConfig_RuntimeLibrary{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MavenConfig_RuntimeLibrary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MavenConfig_RuntimeLibrary) ProtoMessage() {} + +func (x *MavenConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MavenConfig_RuntimeLibrary) GetGroupId() string { + if x != nil { + return x.xxx_hidden_GroupId + } + return "" +} + +func (x *MavenConfig_RuntimeLibrary) GetArtifactId() string { + if x != nil { + return x.xxx_hidden_ArtifactId + } + return "" +} + +func (x *MavenConfig_RuntimeLibrary) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *MavenConfig_RuntimeLibrary) GetClassifier() string { + if x != nil { + return x.xxx_hidden_Classifier + } + return "" +} + +func (x *MavenConfig_RuntimeLibrary) GetExtension() string { + if x != nil { + return x.xxx_hidden_Extension + } + return "" +} + +func (x *MavenConfig_RuntimeLibrary) SetGroupId(v string) { + x.xxx_hidden_GroupId = v +} + +func (x *MavenConfig_RuntimeLibrary) SetArtifactId(v string) { + x.xxx_hidden_ArtifactId = v +} + +func (x *MavenConfig_RuntimeLibrary) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *MavenConfig_RuntimeLibrary) SetClassifier(v string) { + x.xxx_hidden_Classifier = v +} + +func (x *MavenConfig_RuntimeLibrary) SetExtension(v string) { + x.xxx_hidden_Extension = v +} + +type MavenConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + GroupId string + ArtifactId string + Version string + Classifier string + Extension string +} + +func (b0 MavenConfig_RuntimeLibrary_builder) Build() *MavenConfig_RuntimeLibrary { + m0 := &MavenConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_GroupId = b.GroupId + x.xxx_hidden_ArtifactId = b.ArtifactId + x.xxx_hidden_Version = b.Version + x.xxx_hidden_Classifier = b.Classifier + x.xxx_hidden_Extension = b.Extension + return m0 +} + +// CompilerConfig contains configuration for the Java and/or Kotlin compiler used when compiling the generated code. +type MavenConfig_CompilerConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Java *MavenConfig_CompilerJavaConfig `protobuf:"bytes,1,opt,name=java,proto3" json:"java,omitempty"` + xxx_hidden_Kotlin *MavenConfig_CompilerKotlinConfig `protobuf:"bytes,2,opt,name=kotlin,proto3" json:"kotlin,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MavenConfig_CompilerConfig) Reset() { + *x = MavenConfig_CompilerConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MavenConfig_CompilerConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MavenConfig_CompilerConfig) ProtoMessage() {} + +func (x *MavenConfig_CompilerConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MavenConfig_CompilerConfig) GetJava() *MavenConfig_CompilerJavaConfig { + if x != nil { + return x.xxx_hidden_Java + } + return nil +} + +func (x *MavenConfig_CompilerConfig) GetKotlin() *MavenConfig_CompilerKotlinConfig { + if x != nil { + return x.xxx_hidden_Kotlin + } + return nil +} + +func (x *MavenConfig_CompilerConfig) SetJava(v *MavenConfig_CompilerJavaConfig) { + x.xxx_hidden_Java = v +} + +func (x *MavenConfig_CompilerConfig) SetKotlin(v *MavenConfig_CompilerKotlinConfig) { + x.xxx_hidden_Kotlin = v +} + +func (x *MavenConfig_CompilerConfig) HasJava() bool { + if x == nil { + return false + } + return x.xxx_hidden_Java != nil +} + +func (x *MavenConfig_CompilerConfig) HasKotlin() bool { + if x == nil { + return false + } + return x.xxx_hidden_Kotlin != nil +} + +func (x *MavenConfig_CompilerConfig) ClearJava() { + x.xxx_hidden_Java = nil +} + +func (x *MavenConfig_CompilerConfig) ClearKotlin() { + x.xxx_hidden_Kotlin = nil +} + +type MavenConfig_CompilerConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Java *MavenConfig_CompilerJavaConfig + Kotlin *MavenConfig_CompilerKotlinConfig +} + +func (b0 MavenConfig_CompilerConfig_builder) Build() *MavenConfig_CompilerConfig { + m0 := &MavenConfig_CompilerConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Java = b.Java + x.xxx_hidden_Kotlin = b.Kotlin + return m0 +} + +// CompilerJavaConfig contains settings for the Java compiler. +type MavenConfig_CompilerJavaConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Encoding string `protobuf:"bytes,1,opt,name=encoding,proto3" json:"encoding,omitempty"` + xxx_hidden_Release int32 `protobuf:"varint,2,opt,name=release,proto3" json:"release,omitempty"` + xxx_hidden_Source int32 `protobuf:"varint,3,opt,name=source,proto3" json:"source,omitempty"` + xxx_hidden_Target int32 `protobuf:"varint,4,opt,name=target,proto3" json:"target,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MavenConfig_CompilerJavaConfig) Reset() { + *x = MavenConfig_CompilerJavaConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MavenConfig_CompilerJavaConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MavenConfig_CompilerJavaConfig) ProtoMessage() {} + +func (x *MavenConfig_CompilerJavaConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MavenConfig_CompilerJavaConfig) GetEncoding() string { + if x != nil { + return x.xxx_hidden_Encoding + } + return "" +} + +func (x *MavenConfig_CompilerJavaConfig) GetRelease() int32 { + if x != nil { + return x.xxx_hidden_Release + } + return 0 +} + +func (x *MavenConfig_CompilerJavaConfig) GetSource() int32 { + if x != nil { + return x.xxx_hidden_Source + } + return 0 +} + +func (x *MavenConfig_CompilerJavaConfig) GetTarget() int32 { + if x != nil { + return x.xxx_hidden_Target + } + return 0 +} + +func (x *MavenConfig_CompilerJavaConfig) SetEncoding(v string) { + x.xxx_hidden_Encoding = v +} + +func (x *MavenConfig_CompilerJavaConfig) SetRelease(v int32) { + x.xxx_hidden_Release = v +} + +func (x *MavenConfig_CompilerJavaConfig) SetSource(v int32) { + x.xxx_hidden_Source = v +} + +func (x *MavenConfig_CompilerJavaConfig) SetTarget(v int32) { + x.xxx_hidden_Target = v +} + +type MavenConfig_CompilerJavaConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // File encoding (default: UTF-8). + Encoding string + // Release version (default: 8). + Release int32 + // Source version (default: 8). + Source int32 + // Target version (default: 8). + Target int32 +} + +func (b0 MavenConfig_CompilerJavaConfig_builder) Build() *MavenConfig_CompilerJavaConfig { + m0 := &MavenConfig_CompilerJavaConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Encoding = b.Encoding + x.xxx_hidden_Release = b.Release + x.xxx_hidden_Source = b.Source + x.xxx_hidden_Target = b.Target + return m0 +} + +// CompilerKotlinConfig contains settings for the Kotlin compiler. +type MavenConfig_CompilerKotlinConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_ApiVersion string `protobuf:"bytes,2,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` + xxx_hidden_JvmTarget string `protobuf:"bytes,3,opt,name=jvm_target,json=jvmTarget,proto3" json:"jvm_target,omitempty"` + xxx_hidden_LanguageVersion string `protobuf:"bytes,4,opt,name=language_version,json=languageVersion,proto3" json:"language_version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MavenConfig_CompilerKotlinConfig) Reset() { + *x = MavenConfig_CompilerKotlinConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MavenConfig_CompilerKotlinConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MavenConfig_CompilerKotlinConfig) ProtoMessage() {} + +func (x *MavenConfig_CompilerKotlinConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MavenConfig_CompilerKotlinConfig) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *MavenConfig_CompilerKotlinConfig) GetApiVersion() string { + if x != nil { + return x.xxx_hidden_ApiVersion + } + return "" +} + +func (x *MavenConfig_CompilerKotlinConfig) GetJvmTarget() string { + if x != nil { + return x.xxx_hidden_JvmTarget + } + return "" +} + +func (x *MavenConfig_CompilerKotlinConfig) GetLanguageVersion() string { + if x != nil { + return x.xxx_hidden_LanguageVersion + } + return "" +} + +func (x *MavenConfig_CompilerKotlinConfig) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *MavenConfig_CompilerKotlinConfig) SetApiVersion(v string) { + x.xxx_hidden_ApiVersion = v +} + +func (x *MavenConfig_CompilerKotlinConfig) SetJvmTarget(v string) { + x.xxx_hidden_JvmTarget = v +} + +func (x *MavenConfig_CompilerKotlinConfig) SetLanguageVersion(v string) { + x.xxx_hidden_LanguageVersion = v +} + +type MavenConfig_CompilerKotlinConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Version of the Kotlin compiler used to compile the generated code. + Version string + // Version of the Kotlin API to target. + ApiVersion string + // Target version of the JVM bytecode (default: 1.8). + JvmTarget string + // Kotlin language version used for source compatibility. + LanguageVersion string +} + +func (b0 MavenConfig_CompilerKotlinConfig_builder) Build() *MavenConfig_CompilerKotlinConfig { + m0 := &MavenConfig_CompilerKotlinConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + x.xxx_hidden_ApiVersion = b.ApiVersion + x.xxx_hidden_JvmTarget = b.JvmTarget + x.xxx_hidden_LanguageVersion = b.LanguageVersion + return m0 +} + +// RuntimeConfig allows configuring additional runtimes (like the 'lite' runtime). +// They can use different runtime dependencies and plugin options. +type MavenConfig_RuntimeConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_RuntimeLibraries *[]*MavenConfig_RuntimeLibrary `protobuf:"bytes,2,rep,name=runtime_libraries,json=runtimeLibraries,proto3" json:"runtime_libraries,omitempty"` + xxx_hidden_Options []string `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MavenConfig_RuntimeConfig) Reset() { + *x = MavenConfig_RuntimeConfig{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MavenConfig_RuntimeConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MavenConfig_RuntimeConfig) ProtoMessage() {} + +func (x *MavenConfig_RuntimeConfig) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *MavenConfig_RuntimeConfig) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *MavenConfig_RuntimeConfig) GetRuntimeLibraries() []*MavenConfig_RuntimeLibrary { + if x != nil { + if x.xxx_hidden_RuntimeLibraries != nil { + return *x.xxx_hidden_RuntimeLibraries + } + } + return nil +} + +func (x *MavenConfig_RuntimeConfig) GetOptions() []string { + if x != nil { + return x.xxx_hidden_Options + } + return nil +} + +func (x *MavenConfig_RuntimeConfig) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *MavenConfig_RuntimeConfig) SetRuntimeLibraries(v []*MavenConfig_RuntimeLibrary) { + x.xxx_hidden_RuntimeLibraries = &v +} + +func (x *MavenConfig_RuntimeConfig) SetOptions(v []string) { + x.xxx_hidden_Options = v +} + +type MavenConfig_RuntimeConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + RuntimeLibraries []*MavenConfig_RuntimeLibrary + // The options to pass to the plugin. These will + // be merged into a single, comma-separated string. + Options []string +} + +func (b0 MavenConfig_RuntimeConfig_builder) Build() *MavenConfig_RuntimeConfig { + m0 := &MavenConfig_RuntimeConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_RuntimeLibraries = &b.RuntimeLibraries + x.xxx_hidden_Options = b.Options + return m0 +} + +// RuntimeLibrary describes a NuGet package dependency of the generated code. +// Ref: https://learn.microsoft.com/en-us/dotnet/core/tools/dependencies#the-packagereference-element +type NugetConfig_RuntimeLibrary struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_TargetFrameworks []DotnetTargetFramework `protobuf:"varint,3,rep,packed,name=target_frameworks,json=targetFrameworks,proto3,enum=buf.alpha.registry.v1alpha1.DotnetTargetFramework" json:"target_frameworks,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NugetConfig_RuntimeLibrary) Reset() { + *x = NugetConfig_RuntimeLibrary{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NugetConfig_RuntimeLibrary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NugetConfig_RuntimeLibrary) ProtoMessage() {} + +func (x *NugetConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *NugetConfig_RuntimeLibrary) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *NugetConfig_RuntimeLibrary) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *NugetConfig_RuntimeLibrary) GetTargetFrameworks() []DotnetTargetFramework { + if x != nil { + return x.xxx_hidden_TargetFrameworks + } + return nil +} + +func (x *NugetConfig_RuntimeLibrary) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *NugetConfig_RuntimeLibrary) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *NugetConfig_RuntimeLibrary) SetTargetFrameworks(v []DotnetTargetFramework) { + x.xxx_hidden_TargetFrameworks = v +} + +type NugetConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the NuGet package (also known as the package ID). + Name string + // The version of the NuGet package (supports ranges). + // Ref: https://learn.microsoft.com/en-us/nuget/concepts/package-versioning#version-ranges + Version string + // Optional target frameworks. If specified, these dependencies will be + // conditionally added when building for the specified target framework. + TargetFrameworks []DotnetTargetFramework +} + +func (b0 NugetConfig_RuntimeLibrary_builder) Build() *NugetConfig_RuntimeLibrary { + m0 := &NugetConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Version = b.Version + x.xxx_hidden_TargetFrameworks = b.TargetFrameworks + return m0 +} + +// RuntimeLibrary describes a runtime library dependency of the generated code. +type SwiftConfig_RuntimeLibrary struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + xxx_hidden_Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_Products []string `protobuf:"bytes,4,rep,name=products,proto3" json:"products,omitempty"` + xxx_hidden_Platforms *[]*SwiftConfig_RuntimeLibrary_Platform `protobuf:"bytes,5,rep,name=platforms,proto3" json:"platforms,omitempty"` + xxx_hidden_SwiftVersions []string `protobuf:"bytes,6,rep,name=swift_versions,json=swiftVersions,proto3" json:"swift_versions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SwiftConfig_RuntimeLibrary) Reset() { + *x = SwiftConfig_RuntimeLibrary{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SwiftConfig_RuntimeLibrary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SwiftConfig_RuntimeLibrary) ProtoMessage() {} + +func (x *SwiftConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SwiftConfig_RuntimeLibrary) GetSource() string { + if x != nil { + return x.xxx_hidden_Source + } + return "" +} + +func (x *SwiftConfig_RuntimeLibrary) GetPackage() string { + if x != nil { + return x.xxx_hidden_Package + } + return "" +} + +func (x *SwiftConfig_RuntimeLibrary) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *SwiftConfig_RuntimeLibrary) GetProducts() []string { + if x != nil { + return x.xxx_hidden_Products + } + return nil +} + +func (x *SwiftConfig_RuntimeLibrary) GetPlatforms() []*SwiftConfig_RuntimeLibrary_Platform { + if x != nil { + if x.xxx_hidden_Platforms != nil { + return *x.xxx_hidden_Platforms + } + } + return nil +} + +func (x *SwiftConfig_RuntimeLibrary) GetSwiftVersions() []string { + if x != nil { + return x.xxx_hidden_SwiftVersions + } + return nil +} + +func (x *SwiftConfig_RuntimeLibrary) SetSource(v string) { + x.xxx_hidden_Source = v +} + +func (x *SwiftConfig_RuntimeLibrary) SetPackage(v string) { + x.xxx_hidden_Package = v +} + +func (x *SwiftConfig_RuntimeLibrary) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *SwiftConfig_RuntimeLibrary) SetProducts(v []string) { + x.xxx_hidden_Products = v +} + +func (x *SwiftConfig_RuntimeLibrary) SetPlatforms(v []*SwiftConfig_RuntimeLibrary_Platform) { + x.xxx_hidden_Platforms = &v +} + +func (x *SwiftConfig_RuntimeLibrary) SetSwiftVersions(v []string) { + x.xxx_hidden_SwiftVersions = v +} + +type SwiftConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The source of the runtime library package, e.g. https://github.com/apple/swift-protobuf.git. + Source string + // The name of the runtime library package, e.g. "swift-protobuf". + Package string + // The version of the runtime library, e.g. "1.21.0". + Version string + // The products exported by the runtime library, e.g. "SwiftProtobuf". + Products []string + // The minimum compatible platform versions of the runtime library. + Platforms []*SwiftConfig_RuntimeLibrary_Platform + // The supported Swift language versions of the runtime library, e.g. ".v5". + SwiftVersions []string +} + +func (b0 SwiftConfig_RuntimeLibrary_builder) Build() *SwiftConfig_RuntimeLibrary { + m0 := &SwiftConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Source = b.Source + x.xxx_hidden_Package = b.Package + x.xxx_hidden_Version = b.Version + x.xxx_hidden_Products = b.Products + x.xxx_hidden_Platforms = &b.Platforms + x.xxx_hidden_SwiftVersions = b.SwiftVersions + return m0 +} + +// The minimum compatible platform versions of the runtime library. +type SwiftConfig_RuntimeLibrary_Platform struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name SwiftPlatformType `protobuf:"varint,1,opt,name=name,proto3,enum=buf.alpha.registry.v1alpha1.SwiftPlatformType" json:"name,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SwiftConfig_RuntimeLibrary_Platform) Reset() { + *x = SwiftConfig_RuntimeLibrary_Platform{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SwiftConfig_RuntimeLibrary_Platform) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SwiftConfig_RuntimeLibrary_Platform) ProtoMessage() {} + +func (x *SwiftConfig_RuntimeLibrary_Platform) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[34] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SwiftConfig_RuntimeLibrary_Platform) GetName() SwiftPlatformType { + if x != nil { + return x.xxx_hidden_Name + } + return SwiftPlatformType_SWIFT_PLATFORM_TYPE_UNSPECIFIED +} + +func (x *SwiftConfig_RuntimeLibrary_Platform) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *SwiftConfig_RuntimeLibrary_Platform) SetName(v SwiftPlatformType) { + x.xxx_hidden_Name = v +} + +func (x *SwiftConfig_RuntimeLibrary_Platform) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type SwiftConfig_RuntimeLibrary_Platform_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the platform. + Name SwiftPlatformType + // The minimum compatible version of the platform. + Version string +} + +func (b0 SwiftConfig_RuntimeLibrary_Platform_builder) Build() *SwiftConfig_RuntimeLibrary_Platform { + m0 := &SwiftConfig_RuntimeLibrary_Platform{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Version = b.Version + return m0 +} + +type PythonConfig_RuntimeLibrary struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DependencySpecification string `protobuf:"bytes,1,opt,name=dependency_specification,json=dependencySpecification,proto3" json:"dependency_specification,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PythonConfig_RuntimeLibrary) Reset() { + *x = PythonConfig_RuntimeLibrary{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PythonConfig_RuntimeLibrary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PythonConfig_RuntimeLibrary) ProtoMessage() {} + +func (x *PythonConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[35] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PythonConfig_RuntimeLibrary) GetDependencySpecification() string { + if x != nil { + return x.xxx_hidden_DependencySpecification + } + return "" +} + +func (x *PythonConfig_RuntimeLibrary) SetDependencySpecification(v string) { + x.xxx_hidden_DependencySpecification = v +} + +type PythonConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // dependency_specification is a PEP 508 Dependency Specification. + // Ref: https://peps.python.org/pep-0508/ + DependencySpecification string +} + +func (b0 PythonConfig_RuntimeLibrary_builder) Build() *PythonConfig_RuntimeLibrary { + m0 := &PythonConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DependencySpecification = b.DependencySpecification + return m0 +} + +// RuntimeLibrary specifies a runtime dependency for a generated crate. +// It is the subset of a full Cargo dependency specification, which contains +// fields that are irrelevant for Generated SDKs. +// Ref: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html +type CargoConfig_RuntimeLibrary struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_VersionRequirement string `protobuf:"bytes,2,opt,name=version_requirement,json=versionRequirement,proto3" json:"version_requirement,omitempty"` + xxx_hidden_DefaultFeatures bool `protobuf:"varint,3,opt,name=default_features,json=defaultFeatures,proto3" json:"default_features,omitempty"` + xxx_hidden_Features []string `protobuf:"bytes,4,rep,name=features,proto3" json:"features,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CargoConfig_RuntimeLibrary) Reset() { + *x = CargoConfig_RuntimeLibrary{} + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CargoConfig_RuntimeLibrary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CargoConfig_RuntimeLibrary) ProtoMessage() {} + +func (x *CargoConfig_RuntimeLibrary) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[36] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CargoConfig_RuntimeLibrary) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *CargoConfig_RuntimeLibrary) GetVersionRequirement() string { + if x != nil { + return x.xxx_hidden_VersionRequirement + } + return "" +} + +func (x *CargoConfig_RuntimeLibrary) GetDefaultFeatures() bool { + if x != nil { + return x.xxx_hidden_DefaultFeatures + } + return false +} + +func (x *CargoConfig_RuntimeLibrary) GetFeatures() []string { + if x != nil { + return x.xxx_hidden_Features + } + return nil +} + +func (x *CargoConfig_RuntimeLibrary) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *CargoConfig_RuntimeLibrary) SetVersionRequirement(v string) { + x.xxx_hidden_VersionRequirement = v +} + +func (x *CargoConfig_RuntimeLibrary) SetDefaultFeatures(v bool) { + x.xxx_hidden_DefaultFeatures = v +} + +func (x *CargoConfig_RuntimeLibrary) SetFeatures(v []string) { + x.xxx_hidden_Features = v +} + +type CargoConfig_RuntimeLibrary_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // name specifies the name of the dependency. + Name string + // version_requirement specifies the version requirement of the dependency. + VersionRequirement string + // default_features specifies whether or not default features will be enabled for the dependency. + DefaultFeatures bool + // features specifies the features enabled for the dependency. + Features []string +} + +func (b0 CargoConfig_RuntimeLibrary_builder) Build() *CargoConfig_RuntimeLibrary { + m0 := &CargoConfig_RuntimeLibrary{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_VersionRequirement = b.VersionRequirement + x.xxx_hidden_DefaultFeatures = b.DefaultFeatures + x.xxx_hidden_Features = b.Features + return m0 +} + +var File_buf_alpha_registry_v1alpha1_plugin_curation_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDesc = []byte{ + 0x0a, 0x31, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x63, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x1a, 0x1e, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x47, 0x6f, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x61, 0x0a, 0x11, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, + 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, + 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x10, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x69, + 0x6d, 0x75, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x1a, 0x42, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xc2, 0x02, 0x0a, 0x09, 0x4e, 0x50, 0x4d, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x62, 0x0a, 0x11, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, + 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x35, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4e, 0x50, + 0x4d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x10, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x72, 0x65, 0x77, 0x72, + 0x69, 0x74, 0x65, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, + 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x72, 0x65, + 0x77, 0x72, 0x69, 0x74, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x61, 0x74, 0x68, 0x53, + 0x75, 0x66, 0x66, 0x69, 0x78, 0x12, 0x4e, 0x0a, 0x0c, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, + 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4e, 0x50, 0x4d, 0x49, 0x6d, 0x70, + 0x6f, 0x72, 0x74, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x52, 0x0b, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, + 0x53, 0x74, 0x79, 0x6c, 0x65, 0x1a, 0x44, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xd3, 0x08, 0x0a, 0x0b, + 0x4d, 0x61, 0x76, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x64, 0x0a, 0x11, 0x72, + 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x76, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, + 0x10, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, + 0x73, 0x12, 0x53, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4d, 0x61, 0x76, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, + 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x63, 0x6f, + 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x12, 0x67, 0x0a, 0x13, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4d, 0x61, 0x76, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x75, + 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x12, 0x61, 0x64, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x1a, + 0xa4, 0x01, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, + 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1f, 0x0a, + 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, + 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0xb8, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x69, + 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4f, 0x0a, 0x04, 0x6a, 0x61, 0x76, + 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x76, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x4a, 0x61, 0x76, 0x61, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x04, 0x6a, 0x61, 0x76, 0x61, 0x12, 0x55, 0x0a, 0x06, 0x6b, 0x6f, + 0x74, 0x6c, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x76, 0x65, 0x6e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x4b, 0x6f, 0x74, + 0x6c, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x6b, 0x6f, 0x74, 0x6c, 0x69, + 0x6e, 0x1a, 0x7a, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x4a, 0x61, 0x76, + 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, + 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, + 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x1a, 0x9b, 0x01, + 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x4b, 0x6f, 0x74, 0x6c, 0x69, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6a, 0x76, 0x6d, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6a, 0x76, 0x6d, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x12, 0x29, 0x0a, 0x10, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x61, 0x6e, 0x67, + 0x75, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0xa3, 0x01, 0x0a, 0x0d, + 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x64, 0x0a, 0x11, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x76, 0x65, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x10, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0xf6, 0x02, 0x0a, 0x0b, 0x4e, 0x75, 0x67, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x5f, 0x0a, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x72, 0x61, 0x6d, + 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x6f, 0x74, 0x6e, 0x65, + 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, + 0x52, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, + 0x6b, 0x73, 0x12, 0x64, 0x0a, 0x11, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4e, 0x75, 0x67, 0x65, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x10, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x9f, 0x01, 0x0a, 0x0e, 0x52, 0x75, 0x6e, + 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x5f, 0x0a, 0x11, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x5f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x44, 0x6f, 0x74, 0x6e, 0x65, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, + 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x22, 0x0d, 0x0a, 0x0b, 0x43, 0x6d, + 0x61, 0x6b, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xdf, 0x03, 0x0a, 0x0b, 0x53, 0x77, + 0x69, 0x66, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x64, 0x0a, 0x11, 0x72, 0x75, 0x6e, + 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x53, 0x77, 0x69, 0x66, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, + 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x10, 0x72, + 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x1a, + 0xe9, 0x02, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, + 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, + 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x08, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x12, 0x5e, 0x0a, 0x09, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x40, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x77, 0x69, 0x66, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, + 0x09, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x77, + 0x69, 0x66, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0d, 0x73, 0x77, 0x69, 0x66, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x1a, 0x68, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x42, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x77, 0x69, 0x66, 0x74, 0x50, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xbe, 0x02, 0x0a, 0x0c, + 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x65, 0x0a, 0x11, + 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x52, 0x10, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x69, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, + 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, + 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x0c, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x1a, + 0x4b, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x12, 0x39, 0x0a, 0x18, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, + 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x53, + 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb5, 0x02, 0x0a, + 0x0b, 0x43, 0x61, 0x72, 0x67, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, + 0x72, 0x75, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x72, 0x75, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x64, 0x0a, 0x11, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, + 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x61, 0x72, 0x67, 0x6f, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, 0x72, + 0x61, 0x72, 0x79, 0x52, 0x10, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x62, 0x72, + 0x61, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x9c, 0x01, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, + 0x65, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x13, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x0a, + 0x10, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x73, 0x22, 0xaf, 0x05, 0x0a, 0x0e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x44, 0x0a, 0x09, 0x67, 0x6f, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x48, 0x00, 0x52, 0x08, 0x67, 0x6f, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x47, 0x0a, + 0x0a, 0x6e, 0x70, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4e, 0x50, 0x4d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x09, 0x6e, 0x70, 0x6d, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4d, 0x0a, 0x0c, 0x6d, 0x61, 0x76, 0x65, 0x6e, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x61, 0x76, 0x65, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x61, 0x76, 0x65, 0x6e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4d, 0x0a, 0x0c, 0x73, 0x77, 0x69, 0x66, 0x74, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x77, 0x69, 0x66, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x77, 0x69, 0x66, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, 0x0d, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4d, 0x0a, 0x0c, 0x63, 0x61, 0x72, 0x67, 0x6f, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x61, 0x72, 0x67, 0x6f, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x61, 0x72, 0x67, 0x6f, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4d, 0x0a, 0x0c, 0x6e, 0x75, 0x67, 0x65, 0x74, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4e, 0x75, 0x67, 0x65, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x67, 0x65, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4d, 0x0a, 0x0c, 0x63, 0x6d, 0x61, 0x6b, 0x65, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6d, 0x61, 0x6b, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6d, 0x61, 0x6b, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x11, 0x0a, + 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x22, 0x78, 0x0a, 0x16, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, + 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x22, 0xb3, 0x08, 0x0a, 0x0d, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x0d, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, + 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x44, 0x69, 0x67, 0x65, + 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x57, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x18, + 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x65, + 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x54, 0x0a, 0x0f, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, + 0x0e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x56, 0x0a, 0x10, 0x6f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x73, 0x18, + 0x0e, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, + 0x67, 0x65, 0x52, 0x0f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, + 0x67, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x70, 0x64, 0x78, 0x5f, 0x6c, 0x69, 0x63, 0x65, + 0x6e, 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x70, + 0x64, 0x78, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, + 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, + 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, + 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x54, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x61, 0x74, + 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x52, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1e, + 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x13, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2f, + 0x0a, 0x13, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x32, 0x0a, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x67, + 0x75, 0x69, 0x64, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, + 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x75, 0x69, 0x64, 0x65, + 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x6f, 0x63, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x64, 0x6f, 0x63, 0x12, 0x4f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x26, 0x0a, 0x10, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xfa, + 0x01, 0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, + 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x50, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x47, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x63, + 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, + 0x74, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x77, 0x65, + 0x6c, 0x6c, 0x5f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x57, 0x65, 0x6c, + 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x6b, 0x0a, 0x14, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x09, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0xb0, 0x02, 0x0a, 0x17, 0x50, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x5e, 0x0a, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x72, + 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2c, + 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, + 0x64, 0x65, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x88, 0x01, 0x01, 0x12, 0x3c, 0x0a, 0x18, + 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x77, 0x65, 0x6c, 0x6c, 0x5f, 0x6b, 0x6e, 0x6f, + 0x77, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x01, + 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, + 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x69, + 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x42, 0x1b, + 0x0a, 0x19, 0x5f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x77, 0x65, 0x6c, 0x6c, 0x5f, + 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x67, 0x0a, 0x18, 0x50, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, + 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x60, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x75, + 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc3, 0x06, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x54, + 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, + 0x0a, 0x16, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x5f, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x44, 0x69, + 0x67, 0x65, 0x73, 0x74, 0x12, 0x57, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, + 0x63, 0x69, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, + 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, + 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x12, 0x1d, 0x0a, + 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x20, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x54, + 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x56, 0x0a, 0x10, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, + 0x61, 0x67, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4c, + 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4c, + 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x70, 0x64, 0x78, + 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x73, 0x70, 0x64, 0x78, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x49, 0x64, + 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, + 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x55, 0x72, + 0x6c, 0x12, 0x54, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, + 0x11, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x76, 0x69, 0x73, + 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x32, 0x0a, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x65, 0x5f, 0x75, 0x72, 0x6c, + 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x47, 0x75, 0x69, 0x64, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x64, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x22, 0x6f, 0x0a, 0x1b, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x0d, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xda, 0x01, 0x0a, + 0x19, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, + 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, + 0x12, 0x38, 0x0a, 0x18, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x5f, 0x72, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x16, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x69, 0x6e, + 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x44, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x22, 0x8a, 0x01, 0x0a, 0x1a, 0x4c, 0x69, + 0x73, 0x74, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x07, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x07, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x12, 0x26, + 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xb9, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4c, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, + 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, + 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x18, 0x73, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x73, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x73, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x73, 0x22, 0xbc, 0x01, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x52, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x56, 0x0a, 0x08, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, + 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x57, 0x0a, 0x1d, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, + 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, + 0x09, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x91, 0x01, 0x0a, 0x17, 0x43, + 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x56, 0x69, 0x73, 0x69, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x29, 0x0a, 0x25, 0x43, 0x55, 0x52, 0x41, 0x54, 0x45, + 0x44, 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, + 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x24, 0x0a, 0x20, 0x43, 0x55, 0x52, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x50, 0x4c, 0x55, + 0x47, 0x49, 0x4e, 0x5f, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, + 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x12, 0x25, 0x0a, 0x21, 0x43, 0x55, 0x52, 0x41, 0x54, + 0x45, 0x44, 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, + 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x02, 0x2a, 0xda, + 0x02, 0x0a, 0x12, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x20, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, + 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x50, + 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4f, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x4c, 0x55, 0x47, + 0x49, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x4e, 0x50, 0x4d, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, + 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, + 0x41, 0x56, 0x45, 0x4e, 0x10, 0x03, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, + 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, + 0x57, 0x49, 0x46, 0x54, 0x10, 0x04, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, + 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, + 0x59, 0x54, 0x48, 0x4f, 0x4e, 0x10, 0x05, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x4c, 0x55, 0x47, 0x49, + 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x43, 0x41, 0x52, 0x47, 0x4f, 0x10, 0x07, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x4c, 0x55, 0x47, 0x49, + 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x4e, 0x55, 0x47, 0x45, 0x54, 0x10, 0x08, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x4c, 0x55, 0x47, 0x49, + 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x43, 0x4d, 0x41, 0x4b, 0x45, 0x10, 0x09, 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x2a, 0x1c, 0x50, + 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x45, 0x2a, 0xe5, 0x03, 0x0a, 0x0e, + 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x1f, + 0x0a, 0x1b, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, + 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x16, 0x0a, 0x12, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, + 0x47, 0x45, 0x5f, 0x47, 0x4f, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x4c, 0x55, 0x47, 0x49, + 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, 0x4a, 0x41, 0x56, 0x41, 0x53, + 0x43, 0x52, 0x49, 0x50, 0x54, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x4c, 0x55, 0x47, 0x49, + 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x53, + 0x43, 0x52, 0x49, 0x50, 0x54, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x4c, 0x55, 0x47, 0x49, + 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x57, 0x49, 0x46, 0x54, + 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x4e, + 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, 0x43, 0x50, 0x50, 0x10, 0x05, 0x12, 0x18, 0x0a, 0x14, 0x50, + 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, 0x4a, + 0x41, 0x56, 0x41, 0x10, 0x06, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, + 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, 0x44, 0x41, 0x52, 0x54, 0x10, 0x07, 0x12, + 0x18, 0x0a, 0x14, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, + 0x47, 0x45, 0x5f, 0x52, 0x55, 0x53, 0x54, 0x10, 0x08, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x4c, 0x55, + 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, 0x50, 0x59, 0x54, + 0x48, 0x4f, 0x4e, 0x10, 0x09, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, + 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, 0x52, 0x55, 0x42, 0x59, 0x10, 0x0a, 0x12, + 0x1a, 0x0a, 0x16, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, + 0x47, 0x45, 0x5f, 0x4b, 0x4f, 0x54, 0x4c, 0x49, 0x4e, 0x10, 0x0b, 0x12, 0x1f, 0x0a, 0x1b, 0x50, + 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, 0x4f, + 0x42, 0x4a, 0x45, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x43, 0x10, 0x0c, 0x12, 0x17, 0x0a, 0x13, + 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, + 0x50, 0x48, 0x50, 0x10, 0x0d, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, + 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, 0x43, 0x53, 0x48, 0x41, 0x52, 0x50, 0x10, + 0x0e, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, + 0x55, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x43, 0x41, 0x4c, 0x41, 0x10, 0x0f, 0x12, 0x15, 0x0a, 0x11, + 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4c, 0x41, 0x4e, 0x47, 0x55, 0x41, 0x47, 0x45, 0x5f, + 0x43, 0x10, 0x10, 0x2a, 0x6e, 0x0a, 0x0e, 0x4e, 0x50, 0x4d, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, + 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x4e, 0x50, 0x4d, 0x5f, 0x49, 0x4d, 0x50, + 0x4f, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x59, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x4e, 0x50, 0x4d, 0x5f, 0x49, + 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x59, 0x4c, 0x45, 0x5f, 0x4d, 0x4f, 0x44, 0x55, + 0x4c, 0x45, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x4e, 0x50, 0x4d, 0x5f, 0x49, 0x4d, 0x50, 0x4f, + 0x52, 0x54, 0x5f, 0x53, 0x54, 0x59, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x4f, 0x4e, 0x4a, + 0x53, 0x10, 0x02, 0x2a, 0xb3, 0x01, 0x0a, 0x11, 0x53, 0x77, 0x69, 0x66, 0x74, 0x50, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x1f, 0x53, 0x57, 0x49, + 0x46, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, + 0x0a, 0x19, 0x53, 0x57, 0x49, 0x46, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, 0x43, 0x4f, 0x53, 0x10, 0x01, 0x12, 0x1b, 0x0a, + 0x17, 0x53, 0x57, 0x49, 0x46, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x57, + 0x49, 0x46, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x57, 0x41, 0x54, 0x43, 0x48, 0x4f, 0x53, 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18, 0x53, + 0x57, 0x49, 0x46, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x54, 0x56, 0x4f, 0x53, 0x10, 0x04, 0x2a, 0x7c, 0x0a, 0x11, 0x50, 0x79, 0x74, + 0x68, 0x6f, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, + 0x0a, 0x1f, 0x50, 0x59, 0x54, 0x48, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x41, 0x47, 0x45, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, + 0x44, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x59, 0x54, 0x48, 0x4f, 0x4e, 0x5f, 0x50, 0x41, + 0x43, 0x4b, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, + 0x4d, 0x45, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x59, 0x54, 0x48, 0x4f, 0x4e, 0x5f, 0x50, + 0x41, 0x43, 0x4b, 0x41, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x55, 0x42, + 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x2a, 0xe9, 0x04, 0x0a, 0x15, 0x44, 0x6f, 0x74, 0x6e, + 0x65, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, + 0x6b, 0x12, 0x27, 0x0a, 0x23, 0x44, 0x4f, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x41, 0x52, 0x47, + 0x45, 0x54, 0x5f, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x2b, 0x0a, 0x27, 0x44, 0x4f, + 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x46, 0x52, 0x41, 0x4d, + 0x45, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x4e, 0x45, 0x54, 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, + 0x44, 0x5f, 0x31, 0x5f, 0x30, 0x10, 0x01, 0x12, 0x2b, 0x0a, 0x27, 0x44, 0x4f, 0x54, 0x4e, 0x45, + 0x54, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x57, 0x4f, + 0x52, 0x4b, 0x5f, 0x4e, 0x45, 0x54, 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x5f, 0x31, + 0x5f, 0x31, 0x10, 0x02, 0x12, 0x2b, 0x0a, 0x27, 0x44, 0x4f, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, + 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x57, 0x4f, 0x52, 0x4b, 0x5f, + 0x4e, 0x45, 0x54, 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x5f, 0x31, 0x5f, 0x32, 0x10, + 0x03, 0x12, 0x2b, 0x0a, 0x27, 0x44, 0x4f, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x41, 0x52, 0x47, + 0x45, 0x54, 0x5f, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x4e, 0x45, 0x54, + 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x5f, 0x31, 0x5f, 0x33, 0x10, 0x04, 0x12, 0x2b, + 0x0a, 0x27, 0x44, 0x4f, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, + 0x46, 0x52, 0x41, 0x4d, 0x45, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x4e, 0x45, 0x54, 0x53, 0x54, 0x41, + 0x4e, 0x44, 0x41, 0x52, 0x44, 0x5f, 0x31, 0x5f, 0x34, 0x10, 0x05, 0x12, 0x2b, 0x0a, 0x27, 0x44, + 0x4f, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x46, 0x52, 0x41, + 0x4d, 0x45, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x4e, 0x45, 0x54, 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, + 0x52, 0x44, 0x5f, 0x31, 0x5f, 0x35, 0x10, 0x06, 0x12, 0x2b, 0x0a, 0x27, 0x44, 0x4f, 0x54, 0x4e, + 0x45, 0x54, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x57, + 0x4f, 0x52, 0x4b, 0x5f, 0x4e, 0x45, 0x54, 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x5f, + 0x31, 0x5f, 0x36, 0x10, 0x07, 0x12, 0x2b, 0x0a, 0x27, 0x44, 0x4f, 0x54, 0x4e, 0x45, 0x54, 0x5f, + 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x57, 0x4f, 0x52, 0x4b, + 0x5f, 0x4e, 0x45, 0x54, 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x5f, 0x32, 0x5f, 0x30, + 0x10, 0x08, 0x12, 0x2b, 0x0a, 0x27, 0x44, 0x4f, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x41, 0x52, + 0x47, 0x45, 0x54, 0x5f, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x4e, 0x45, + 0x54, 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x5f, 0x32, 0x5f, 0x31, 0x10, 0x09, 0x12, + 0x23, 0x0a, 0x1f, 0x44, 0x4f, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, + 0x5f, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x4e, 0x45, 0x54, 0x5f, 0x35, + 0x5f, 0x30, 0x10, 0x0a, 0x12, 0x23, 0x0a, 0x1f, 0x44, 0x4f, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, + 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x57, 0x4f, 0x52, 0x4b, 0x5f, + 0x4e, 0x45, 0x54, 0x5f, 0x36, 0x5f, 0x30, 0x10, 0x0b, 0x12, 0x23, 0x0a, 0x1f, 0x44, 0x4f, 0x54, + 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x46, 0x52, 0x41, 0x4d, 0x45, + 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x4e, 0x45, 0x54, 0x5f, 0x37, 0x5f, 0x30, 0x10, 0x0c, 0x12, 0x23, + 0x0a, 0x1f, 0x44, 0x4f, 0x54, 0x4e, 0x45, 0x54, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, + 0x46, 0x52, 0x41, 0x4d, 0x45, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x4e, 0x45, 0x54, 0x5f, 0x38, 0x5f, + 0x30, 0x10, 0x0d, 0x32, 0xdd, 0x04, 0x0a, 0x15, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8a, 0x01, + 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x73, 0x12, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, + 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x12, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0x96, 0x01, 0x0a, 0x16, 0x47, + 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x75, 0x72, + 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x3b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, + 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, + 0x90, 0x02, 0x01, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x75, + 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x37, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, + 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, + 0x90, 0x02, 0x02, 0x32, 0x8c, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73, 0x0a, + 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x30, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x42, 0xa0, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x13, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, + 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, + 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, + 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes = make([]protoimpl.EnumInfo, 7) +var file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes = make([]protoimpl.MessageInfo, 37) +var file_buf_alpha_registry_v1alpha1_plugin_curation_proto_goTypes = []any{ + (CuratedPluginVisibility)(0), // 0: buf.alpha.registry.v1alpha1.CuratedPluginVisibility + (PluginRegistryType)(0), // 1: buf.alpha.registry.v1alpha1.PluginRegistryType + (PluginLanguage)(0), // 2: buf.alpha.registry.v1alpha1.PluginLanguage + (NPMImportStyle)(0), // 3: buf.alpha.registry.v1alpha1.NPMImportStyle + (SwiftPlatformType)(0), // 4: buf.alpha.registry.v1alpha1.SwiftPlatformType + (PythonPackageType)(0), // 5: buf.alpha.registry.v1alpha1.PythonPackageType + (DotnetTargetFramework)(0), // 6: buf.alpha.registry.v1alpha1.DotnetTargetFramework + (*GoConfig)(nil), // 7: buf.alpha.registry.v1alpha1.GoConfig + (*NPMConfig)(nil), // 8: buf.alpha.registry.v1alpha1.NPMConfig + (*MavenConfig)(nil), // 9: buf.alpha.registry.v1alpha1.MavenConfig + (*NugetConfig)(nil), // 10: buf.alpha.registry.v1alpha1.NugetConfig + (*CmakeConfig)(nil), // 11: buf.alpha.registry.v1alpha1.CmakeConfig + (*SwiftConfig)(nil), // 12: buf.alpha.registry.v1alpha1.SwiftConfig + (*PythonConfig)(nil), // 13: buf.alpha.registry.v1alpha1.PythonConfig + (*CargoConfig)(nil), // 14: buf.alpha.registry.v1alpha1.CargoConfig + (*RegistryConfig)(nil), // 15: buf.alpha.registry.v1alpha1.RegistryConfig + (*CuratedPluginReference)(nil), // 16: buf.alpha.registry.v1alpha1.CuratedPluginReference + (*CuratedPlugin)(nil), // 17: buf.alpha.registry.v1alpha1.CuratedPlugin + (*PluginCollection)(nil), // 18: buf.alpha.registry.v1alpha1.PluginCollection + (*GenerateCodeRequest)(nil), // 19: buf.alpha.registry.v1alpha1.GenerateCodeRequest + (*GenerateCodeResponse)(nil), // 20: buf.alpha.registry.v1alpha1.GenerateCodeResponse + (*PluginGenerationRequest)(nil), // 21: buf.alpha.registry.v1alpha1.PluginGenerationRequest + (*PluginGenerationResponse)(nil), // 22: buf.alpha.registry.v1alpha1.PluginGenerationResponse + (*DeleteCuratedPluginRequest)(nil), // 23: buf.alpha.registry.v1alpha1.DeleteCuratedPluginRequest + (*DeleteCuratedPluginResponse)(nil), // 24: buf.alpha.registry.v1alpha1.DeleteCuratedPluginResponse + (*CreateCuratedPluginRequest)(nil), // 25: buf.alpha.registry.v1alpha1.CreateCuratedPluginRequest + (*CreateCuratedPluginResponse)(nil), // 26: buf.alpha.registry.v1alpha1.CreateCuratedPluginResponse + (*ListCuratedPluginsRequest)(nil), // 27: buf.alpha.registry.v1alpha1.ListCuratedPluginsRequest + (*ListCuratedPluginsResponse)(nil), // 28: buf.alpha.registry.v1alpha1.ListCuratedPluginsResponse + (*GetLatestCuratedPluginRequest)(nil), // 29: buf.alpha.registry.v1alpha1.GetLatestCuratedPluginRequest + (*GetLatestCuratedPluginResponse)(nil), // 30: buf.alpha.registry.v1alpha1.GetLatestCuratedPluginResponse + (*CuratedPluginVersionRevisions)(nil), // 31: buf.alpha.registry.v1alpha1.CuratedPluginVersionRevisions + (*GoConfig_RuntimeLibrary)(nil), // 32: buf.alpha.registry.v1alpha1.GoConfig.RuntimeLibrary + (*NPMConfig_RuntimeLibrary)(nil), // 33: buf.alpha.registry.v1alpha1.NPMConfig.RuntimeLibrary + (*MavenConfig_RuntimeLibrary)(nil), // 34: buf.alpha.registry.v1alpha1.MavenConfig.RuntimeLibrary + (*MavenConfig_CompilerConfig)(nil), // 35: buf.alpha.registry.v1alpha1.MavenConfig.CompilerConfig + (*MavenConfig_CompilerJavaConfig)(nil), // 36: buf.alpha.registry.v1alpha1.MavenConfig.CompilerJavaConfig + (*MavenConfig_CompilerKotlinConfig)(nil), // 37: buf.alpha.registry.v1alpha1.MavenConfig.CompilerKotlinConfig + (*MavenConfig_RuntimeConfig)(nil), // 38: buf.alpha.registry.v1alpha1.MavenConfig.RuntimeConfig + (*NugetConfig_RuntimeLibrary)(nil), // 39: buf.alpha.registry.v1alpha1.NugetConfig.RuntimeLibrary + (*SwiftConfig_RuntimeLibrary)(nil), // 40: buf.alpha.registry.v1alpha1.SwiftConfig.RuntimeLibrary + (*SwiftConfig_RuntimeLibrary_Platform)(nil), // 41: buf.alpha.registry.v1alpha1.SwiftConfig.RuntimeLibrary.Platform + (*PythonConfig_RuntimeLibrary)(nil), // 42: buf.alpha.registry.v1alpha1.PythonConfig.RuntimeLibrary + (*CargoConfig_RuntimeLibrary)(nil), // 43: buf.alpha.registry.v1alpha1.CargoConfig.RuntimeLibrary + (*timestamppb.Timestamp)(nil), // 44: google.protobuf.Timestamp + (*v1.Image)(nil), // 45: buf.alpha.image.v1.Image + (*pluginpb.CodeGeneratorResponse)(nil), // 46: google.protobuf.compiler.CodeGeneratorResponse +} +var file_buf_alpha_registry_v1alpha1_plugin_curation_proto_depIdxs = []int32{ + 32, // 0: buf.alpha.registry.v1alpha1.GoConfig.runtime_libraries:type_name -> buf.alpha.registry.v1alpha1.GoConfig.RuntimeLibrary + 33, // 1: buf.alpha.registry.v1alpha1.NPMConfig.runtime_libraries:type_name -> buf.alpha.registry.v1alpha1.NPMConfig.RuntimeLibrary + 3, // 2: buf.alpha.registry.v1alpha1.NPMConfig.import_style:type_name -> buf.alpha.registry.v1alpha1.NPMImportStyle + 34, // 3: buf.alpha.registry.v1alpha1.MavenConfig.runtime_libraries:type_name -> buf.alpha.registry.v1alpha1.MavenConfig.RuntimeLibrary + 35, // 4: buf.alpha.registry.v1alpha1.MavenConfig.compiler:type_name -> buf.alpha.registry.v1alpha1.MavenConfig.CompilerConfig + 38, // 5: buf.alpha.registry.v1alpha1.MavenConfig.additional_runtimes:type_name -> buf.alpha.registry.v1alpha1.MavenConfig.RuntimeConfig + 6, // 6: buf.alpha.registry.v1alpha1.NugetConfig.target_frameworks:type_name -> buf.alpha.registry.v1alpha1.DotnetTargetFramework + 39, // 7: buf.alpha.registry.v1alpha1.NugetConfig.runtime_libraries:type_name -> buf.alpha.registry.v1alpha1.NugetConfig.RuntimeLibrary + 40, // 8: buf.alpha.registry.v1alpha1.SwiftConfig.runtime_libraries:type_name -> buf.alpha.registry.v1alpha1.SwiftConfig.RuntimeLibrary + 42, // 9: buf.alpha.registry.v1alpha1.PythonConfig.runtime_libraries:type_name -> buf.alpha.registry.v1alpha1.PythonConfig.RuntimeLibrary + 5, // 10: buf.alpha.registry.v1alpha1.PythonConfig.package_type:type_name -> buf.alpha.registry.v1alpha1.PythonPackageType + 43, // 11: buf.alpha.registry.v1alpha1.CargoConfig.runtime_libraries:type_name -> buf.alpha.registry.v1alpha1.CargoConfig.RuntimeLibrary + 7, // 12: buf.alpha.registry.v1alpha1.RegistryConfig.go_config:type_name -> buf.alpha.registry.v1alpha1.GoConfig + 8, // 13: buf.alpha.registry.v1alpha1.RegistryConfig.npm_config:type_name -> buf.alpha.registry.v1alpha1.NPMConfig + 9, // 14: buf.alpha.registry.v1alpha1.RegistryConfig.maven_config:type_name -> buf.alpha.registry.v1alpha1.MavenConfig + 12, // 15: buf.alpha.registry.v1alpha1.RegistryConfig.swift_config:type_name -> buf.alpha.registry.v1alpha1.SwiftConfig + 13, // 16: buf.alpha.registry.v1alpha1.RegistryConfig.python_config:type_name -> buf.alpha.registry.v1alpha1.PythonConfig + 14, // 17: buf.alpha.registry.v1alpha1.RegistryConfig.cargo_config:type_name -> buf.alpha.registry.v1alpha1.CargoConfig + 10, // 18: buf.alpha.registry.v1alpha1.RegistryConfig.nuget_config:type_name -> buf.alpha.registry.v1alpha1.NugetConfig + 11, // 19: buf.alpha.registry.v1alpha1.RegistryConfig.cmake_config:type_name -> buf.alpha.registry.v1alpha1.CmakeConfig + 1, // 20: buf.alpha.registry.v1alpha1.CuratedPlugin.registry_type:type_name -> buf.alpha.registry.v1alpha1.PluginRegistryType + 44, // 21: buf.alpha.registry.v1alpha1.CuratedPlugin.create_time:type_name -> google.protobuf.Timestamp + 16, // 22: buf.alpha.registry.v1alpha1.CuratedPlugin.dependencies:type_name -> buf.alpha.registry.v1alpha1.CuratedPluginReference + 15, // 23: buf.alpha.registry.v1alpha1.CuratedPlugin.registry_config:type_name -> buf.alpha.registry.v1alpha1.RegistryConfig + 2, // 24: buf.alpha.registry.v1alpha1.CuratedPlugin.output_languages:type_name -> buf.alpha.registry.v1alpha1.PluginLanguage + 0, // 25: buf.alpha.registry.v1alpha1.CuratedPlugin.visibility:type_name -> buf.alpha.registry.v1alpha1.CuratedPluginVisibility + 18, // 26: buf.alpha.registry.v1alpha1.CuratedPlugin.collections:type_name -> buf.alpha.registry.v1alpha1.PluginCollection + 45, // 27: buf.alpha.registry.v1alpha1.GenerateCodeRequest.image:type_name -> buf.alpha.image.v1.Image + 21, // 28: buf.alpha.registry.v1alpha1.GenerateCodeRequest.requests:type_name -> buf.alpha.registry.v1alpha1.PluginGenerationRequest + 22, // 29: buf.alpha.registry.v1alpha1.GenerateCodeResponse.responses:type_name -> buf.alpha.registry.v1alpha1.PluginGenerationResponse + 16, // 30: buf.alpha.registry.v1alpha1.PluginGenerationRequest.plugin_reference:type_name -> buf.alpha.registry.v1alpha1.CuratedPluginReference + 46, // 31: buf.alpha.registry.v1alpha1.PluginGenerationResponse.response:type_name -> google.protobuf.compiler.CodeGeneratorResponse + 1, // 32: buf.alpha.registry.v1alpha1.CreateCuratedPluginRequest.registry_type:type_name -> buf.alpha.registry.v1alpha1.PluginRegistryType + 16, // 33: buf.alpha.registry.v1alpha1.CreateCuratedPluginRequest.dependencies:type_name -> buf.alpha.registry.v1alpha1.CuratedPluginReference + 15, // 34: buf.alpha.registry.v1alpha1.CreateCuratedPluginRequest.registry_config:type_name -> buf.alpha.registry.v1alpha1.RegistryConfig + 2, // 35: buf.alpha.registry.v1alpha1.CreateCuratedPluginRequest.output_languages:type_name -> buf.alpha.registry.v1alpha1.PluginLanguage + 0, // 36: buf.alpha.registry.v1alpha1.CreateCuratedPluginRequest.visibility:type_name -> buf.alpha.registry.v1alpha1.CuratedPluginVisibility + 17, // 37: buf.alpha.registry.v1alpha1.CreateCuratedPluginResponse.configuration:type_name -> buf.alpha.registry.v1alpha1.CuratedPlugin + 17, // 38: buf.alpha.registry.v1alpha1.ListCuratedPluginsResponse.plugins:type_name -> buf.alpha.registry.v1alpha1.CuratedPlugin + 17, // 39: buf.alpha.registry.v1alpha1.GetLatestCuratedPluginResponse.plugin:type_name -> buf.alpha.registry.v1alpha1.CuratedPlugin + 31, // 40: buf.alpha.registry.v1alpha1.GetLatestCuratedPluginResponse.versions:type_name -> buf.alpha.registry.v1alpha1.CuratedPluginVersionRevisions + 36, // 41: buf.alpha.registry.v1alpha1.MavenConfig.CompilerConfig.java:type_name -> buf.alpha.registry.v1alpha1.MavenConfig.CompilerJavaConfig + 37, // 42: buf.alpha.registry.v1alpha1.MavenConfig.CompilerConfig.kotlin:type_name -> buf.alpha.registry.v1alpha1.MavenConfig.CompilerKotlinConfig + 34, // 43: buf.alpha.registry.v1alpha1.MavenConfig.RuntimeConfig.runtime_libraries:type_name -> buf.alpha.registry.v1alpha1.MavenConfig.RuntimeLibrary + 6, // 44: buf.alpha.registry.v1alpha1.NugetConfig.RuntimeLibrary.target_frameworks:type_name -> buf.alpha.registry.v1alpha1.DotnetTargetFramework + 41, // 45: buf.alpha.registry.v1alpha1.SwiftConfig.RuntimeLibrary.platforms:type_name -> buf.alpha.registry.v1alpha1.SwiftConfig.RuntimeLibrary.Platform + 4, // 46: buf.alpha.registry.v1alpha1.SwiftConfig.RuntimeLibrary.Platform.name:type_name -> buf.alpha.registry.v1alpha1.SwiftPlatformType + 27, // 47: buf.alpha.registry.v1alpha1.PluginCurationService.ListCuratedPlugins:input_type -> buf.alpha.registry.v1alpha1.ListCuratedPluginsRequest + 25, // 48: buf.alpha.registry.v1alpha1.PluginCurationService.CreateCuratedPlugin:input_type -> buf.alpha.registry.v1alpha1.CreateCuratedPluginRequest + 29, // 49: buf.alpha.registry.v1alpha1.PluginCurationService.GetLatestCuratedPlugin:input_type -> buf.alpha.registry.v1alpha1.GetLatestCuratedPluginRequest + 23, // 50: buf.alpha.registry.v1alpha1.PluginCurationService.DeleteCuratedPlugin:input_type -> buf.alpha.registry.v1alpha1.DeleteCuratedPluginRequest + 19, // 51: buf.alpha.registry.v1alpha1.CodeGenerationService.GenerateCode:input_type -> buf.alpha.registry.v1alpha1.GenerateCodeRequest + 28, // 52: buf.alpha.registry.v1alpha1.PluginCurationService.ListCuratedPlugins:output_type -> buf.alpha.registry.v1alpha1.ListCuratedPluginsResponse + 26, // 53: buf.alpha.registry.v1alpha1.PluginCurationService.CreateCuratedPlugin:output_type -> buf.alpha.registry.v1alpha1.CreateCuratedPluginResponse + 30, // 54: buf.alpha.registry.v1alpha1.PluginCurationService.GetLatestCuratedPlugin:output_type -> buf.alpha.registry.v1alpha1.GetLatestCuratedPluginResponse + 24, // 55: buf.alpha.registry.v1alpha1.PluginCurationService.DeleteCuratedPlugin:output_type -> buf.alpha.registry.v1alpha1.DeleteCuratedPluginResponse + 20, // 56: buf.alpha.registry.v1alpha1.CodeGenerationService.GenerateCode:output_type -> buf.alpha.registry.v1alpha1.GenerateCodeResponse + 52, // [52:57] is the sub-list for method output_type + 47, // [47:52] is the sub-list for method input_type + 47, // [47:47] is the sub-list for extension type_name + 47, // [47:47] is the sub-list for extension extendee + 0, // [0:47] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_plugin_curation_proto_init() } +func file_buf_alpha_registry_v1alpha1_plugin_curation_proto_init() { + if File_buf_alpha_registry_v1alpha1_plugin_curation_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[8].OneofWrappers = []any{ + (*registryConfig_GoConfig)(nil), + (*registryConfig_NpmConfig)(nil), + (*registryConfig_MavenConfig)(nil), + (*registryConfig_SwiftConfig)(nil), + (*registryConfig_PythonConfig)(nil), + (*registryConfig_CargoConfig)(nil), + (*registryConfig_NugetConfig)(nil), + (*registryConfig_CmakeConfig)(nil), + } + file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes[14].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDesc, + NumEnums: 7, + NumMessages: 37, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_plugin_curation_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_plugin_curation_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_plugin_curation_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_plugin_curation_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_plugin_curation_proto = out.File + file_buf_alpha_registry_v1alpha1_plugin_curation_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_plugin_curation_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_plugin_curation_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/push.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/push.pb.go index 8064a97cd1..fcb379c61d 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/push.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/push.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/push.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -37,7 +38,7 @@ const ( // PushRequest specifies the module to push to the BSR. type PushRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/push.proto. @@ -83,11 +84,6 @@ func (x *PushRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PushRequest.ProtoReflect.Descriptor instead. -func (*PushRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_push_proto_rawDescGZIP(), []int{0} -} - func (x *PushRequest) GetOwner() string { if x != nil { return x.Owner @@ -139,9 +135,85 @@ func (x *PushRequest) GetDraftName() string { return "" } +func (x *PushRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *PushRequest) SetRepository(v string) { + x.Repository = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/push.proto. +func (x *PushRequest) SetBranch(v string) { + x.Branch = v +} + +func (x *PushRequest) SetModule(v *v1alpha1.Module) { + x.Module = v +} + +func (x *PushRequest) SetTags(v []string) { + x.Tags = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/push.proto. +func (x *PushRequest) SetTracks(v []string) { + x.Tracks = v +} + +func (x *PushRequest) SetDraftName(v string) { + x.DraftName = v +} + +func (x *PushRequest) HasModule() bool { + if x == nil { + return false + } + return x.Module != nil +} + +func (x *PushRequest) ClearModule() { + x.Module = nil +} + +type PushRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/push.proto. + Branch string + Module *v1alpha1.Module + // Optional; if provided, the provided tags + // are created for the pushed commit. + Tags []string + // Optional; if provided, the pushed commit + // will be appended to these tracks. If the + // tracks do not exist, they will be created. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/push.proto. + Tracks []string + // If non-empty, the push creates a draft commit with this name. + DraftName string +} + +func (b0 PushRequest_builder) Build() *PushRequest { + m0 := &PushRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Branch = b.Branch + x.Module = b.Module + x.Tags = b.Tags + x.Tracks = b.Tracks + x.DraftName = b.DraftName + return m0 +} + // PushResponse is the pushed module pin, local to the used remote. type PushResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` LocalModulePin *LocalModulePin `protobuf:"bytes,5,opt,name=local_module_pin,json=localModulePin,proto3" json:"local_module_pin,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -172,11 +244,6 @@ func (x *PushResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PushResponse.ProtoReflect.Descriptor instead. -func (*PushResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_push_proto_rawDescGZIP(), []int{1} -} - func (x *PushResponse) GetLocalModulePin() *LocalModulePin { if x != nil { return x.LocalModulePin @@ -184,10 +251,39 @@ func (x *PushResponse) GetLocalModulePin() *LocalModulePin { return nil } +func (x *PushResponse) SetLocalModulePin(v *LocalModulePin) { + x.LocalModulePin = v +} + +func (x *PushResponse) HasLocalModulePin() bool { + if x == nil { + return false + } + return x.LocalModulePin != nil +} + +func (x *PushResponse) ClearLocalModulePin() { + x.LocalModulePin = nil +} + +type PushResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + LocalModulePin *LocalModulePin +} + +func (b0 PushResponse_builder) Build() *PushResponse { + m0 := &PushResponse{} + b, x := &b0, m0 + _, _ = b, x + x.LocalModulePin = b.LocalModulePin + return m0 +} + // PushManifestAndBlobsRequest holds the module to push in the manifest+blobs // encoding format. type PushManifestAndBlobsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` // Manifest with all the module files being pushed. @@ -236,11 +332,6 @@ func (x *PushManifestAndBlobsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PushManifestAndBlobsRequest.ProtoReflect.Descriptor instead. -func (*PushManifestAndBlobsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_push_proto_rawDescGZIP(), []int{2} -} - func (x *PushManifestAndBlobsRequest) GetOwner() string { if x != nil { return x.Owner @@ -283,10 +374,82 @@ func (x *PushManifestAndBlobsRequest) GetDraftName() string { return "" } +func (x *PushManifestAndBlobsRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *PushManifestAndBlobsRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *PushManifestAndBlobsRequest) SetManifest(v *v1alpha1.Blob) { + x.Manifest = v +} + +func (x *PushManifestAndBlobsRequest) SetBlobs(v []*v1alpha1.Blob) { + x.Blobs = v +} + +func (x *PushManifestAndBlobsRequest) SetTags(v []string) { + x.Tags = v +} + +func (x *PushManifestAndBlobsRequest) SetDraftName(v string) { + x.DraftName = v +} + +func (x *PushManifestAndBlobsRequest) HasManifest() bool { + if x == nil { + return false + } + return x.Manifest != nil +} + +func (x *PushManifestAndBlobsRequest) ClearManifest() { + x.Manifest = nil +} + +type PushManifestAndBlobsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Manifest with all the module files being pushed. + // The content of the manifest blob is a text encoding of an ordered list of unique paths, each path encoded as: + // + // :[SP][SP][LF] + // + // The only current supported digest type is 'shake256'. The shake256 digest consists of 64 bytes of lowercase hex + // encoded output of SHAKE256. See buf.alpha.module.v1alpha1.Digest for more details. + Manifest *v1alpha1.Blob + // Referenced blobs in the manifest. Keep in mind there is not necessarily one + // blob per file, but one blob per digest, so for files with exactly the same + // content, you can send just one blob. + Blobs []*v1alpha1.Blob + // Optional; if provided, the provided tags + // are created for the pushed commit. + Tags []string + // If non-empty, the push creates a draft commit with this name. + DraftName string +} + +func (b0 PushManifestAndBlobsRequest_builder) Build() *PushManifestAndBlobsRequest { + m0 := &PushManifestAndBlobsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Manifest = b.Manifest + x.Blobs = b.Blobs + x.Tags = b.Tags + x.DraftName = b.DraftName + return m0 +} + // PushManifestAndBlobsResponse is the pushed module pin, local to the used // remote. type PushManifestAndBlobsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` LocalModulePin *LocalModulePin `protobuf:"bytes,1,opt,name=local_module_pin,json=localModulePin,proto3" json:"local_module_pin,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -317,11 +480,6 @@ func (x *PushManifestAndBlobsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PushManifestAndBlobsResponse.ProtoReflect.Descriptor instead. -func (*PushManifestAndBlobsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_push_proto_rawDescGZIP(), []int{3} -} - func (x *PushManifestAndBlobsResponse) GetLocalModulePin() *LocalModulePin { if x != nil { return x.LocalModulePin @@ -329,6 +487,35 @@ func (x *PushManifestAndBlobsResponse) GetLocalModulePin() *LocalModulePin { return nil } +func (x *PushManifestAndBlobsResponse) SetLocalModulePin(v *LocalModulePin) { + x.LocalModulePin = v +} + +func (x *PushManifestAndBlobsResponse) HasLocalModulePin() bool { + if x == nil { + return false + } + return x.LocalModulePin != nil +} + +func (x *PushManifestAndBlobsResponse) ClearLocalModulePin() { + x.LocalModulePin = nil +} + +type PushManifestAndBlobsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + LocalModulePin *LocalModulePin +} + +func (b0 PushManifestAndBlobsResponse_builder) Build() *PushManifestAndBlobsResponse { + m0 := &PushManifestAndBlobsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.LocalModulePin = b.LocalModulePin + return m0 +} + var File_buf_alpha_registry_v1alpha1_push_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_push_proto_rawDesc = []byte{ @@ -423,18 +610,6 @@ var file_buf_alpha_registry_v1alpha1_push_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_push_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_push_proto_rawDescData = file_buf_alpha_registry_v1alpha1_push_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_push_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_push_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_push_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_push_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_push_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_push_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_buf_alpha_registry_v1alpha1_push_proto_goTypes = []any{ (*PushRequest)(nil), // 0: buf.alpha.registry.v1alpha1.PushRequest diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/push_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/push_protoopaque.pb.go new file mode 100644 index 0000000000..7abdb10073 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/push_protoopaque.pb.go @@ -0,0 +1,644 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/push.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + v1alpha1 "github.com/bufbuild/buf/private/gen/proto/go/buf/alpha/module/v1alpha1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// PushRequest specifies the module to push to the BSR. +type PushRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Branch string `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"` + xxx_hidden_Module *v1alpha1.Module `protobuf:"bytes,4,opt,name=module,proto3" json:"module,omitempty"` + xxx_hidden_Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` + xxx_hidden_Tracks []string `protobuf:"bytes,6,rep,name=tracks,proto3" json:"tracks,omitempty"` + xxx_hidden_DraftName string `protobuf:"bytes,7,opt,name=draft_name,json=draftName,proto3" json:"draft_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PushRequest) Reset() { + *x = PushRequest{} + mi := &file_buf_alpha_registry_v1alpha1_push_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PushRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PushRequest) ProtoMessage() {} + +func (x *PushRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_push_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PushRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *PushRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/push.proto. +func (x *PushRequest) GetBranch() string { + if x != nil { + return x.xxx_hidden_Branch + } + return "" +} + +func (x *PushRequest) GetModule() *v1alpha1.Module { + if x != nil { + return x.xxx_hidden_Module + } + return nil +} + +func (x *PushRequest) GetTags() []string { + if x != nil { + return x.xxx_hidden_Tags + } + return nil +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/push.proto. +func (x *PushRequest) GetTracks() []string { + if x != nil { + return x.xxx_hidden_Tracks + } + return nil +} + +func (x *PushRequest) GetDraftName() string { + if x != nil { + return x.xxx_hidden_DraftName + } + return "" +} + +func (x *PushRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *PushRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/push.proto. +func (x *PushRequest) SetBranch(v string) { + x.xxx_hidden_Branch = v +} + +func (x *PushRequest) SetModule(v *v1alpha1.Module) { + x.xxx_hidden_Module = v +} + +func (x *PushRequest) SetTags(v []string) { + x.xxx_hidden_Tags = v +} + +// Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/push.proto. +func (x *PushRequest) SetTracks(v []string) { + x.xxx_hidden_Tracks = v +} + +func (x *PushRequest) SetDraftName(v string) { + x.xxx_hidden_DraftName = v +} + +func (x *PushRequest) HasModule() bool { + if x == nil { + return false + } + return x.xxx_hidden_Module != nil +} + +func (x *PushRequest) ClearModule() { + x.xxx_hidden_Module = nil +} + +type PushRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/push.proto. + Branch string + Module *v1alpha1.Module + // Optional; if provided, the provided tags + // are created for the pushed commit. + Tags []string + // Optional; if provided, the pushed commit + // will be appended to these tracks. If the + // tracks do not exist, they will be created. + // + // Deprecated: Marked as deprecated in buf/alpha/registry/v1alpha1/push.proto. + Tracks []string + // If non-empty, the push creates a draft commit with this name. + DraftName string +} + +func (b0 PushRequest_builder) Build() *PushRequest { + m0 := &PushRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Branch = b.Branch + x.xxx_hidden_Module = b.Module + x.xxx_hidden_Tags = b.Tags + x.xxx_hidden_Tracks = b.Tracks + x.xxx_hidden_DraftName = b.DraftName + return m0 +} + +// PushResponse is the pushed module pin, local to the used remote. +type PushResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_LocalModulePin *LocalModulePin `protobuf:"bytes,5,opt,name=local_module_pin,json=localModulePin,proto3" json:"local_module_pin,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PushResponse) Reset() { + *x = PushResponse{} + mi := &file_buf_alpha_registry_v1alpha1_push_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PushResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PushResponse) ProtoMessage() {} + +func (x *PushResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_push_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PushResponse) GetLocalModulePin() *LocalModulePin { + if x != nil { + return x.xxx_hidden_LocalModulePin + } + return nil +} + +func (x *PushResponse) SetLocalModulePin(v *LocalModulePin) { + x.xxx_hidden_LocalModulePin = v +} + +func (x *PushResponse) HasLocalModulePin() bool { + if x == nil { + return false + } + return x.xxx_hidden_LocalModulePin != nil +} + +func (x *PushResponse) ClearLocalModulePin() { + x.xxx_hidden_LocalModulePin = nil +} + +type PushResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + LocalModulePin *LocalModulePin +} + +func (b0 PushResponse_builder) Build() *PushResponse { + m0 := &PushResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_LocalModulePin = b.LocalModulePin + return m0 +} + +// PushManifestAndBlobsRequest holds the module to push in the manifest+blobs +// encoding format. +type PushManifestAndBlobsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Manifest *v1alpha1.Blob `protobuf:"bytes,3,opt,name=manifest,proto3" json:"manifest,omitempty"` + xxx_hidden_Blobs *[]*v1alpha1.Blob `protobuf:"bytes,4,rep,name=blobs,proto3" json:"blobs,omitempty"` + xxx_hidden_Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` + xxx_hidden_DraftName string `protobuf:"bytes,6,opt,name=draft_name,json=draftName,proto3" json:"draft_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PushManifestAndBlobsRequest) Reset() { + *x = PushManifestAndBlobsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_push_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PushManifestAndBlobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PushManifestAndBlobsRequest) ProtoMessage() {} + +func (x *PushManifestAndBlobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_push_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PushManifestAndBlobsRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *PushManifestAndBlobsRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *PushManifestAndBlobsRequest) GetManifest() *v1alpha1.Blob { + if x != nil { + return x.xxx_hidden_Manifest + } + return nil +} + +func (x *PushManifestAndBlobsRequest) GetBlobs() []*v1alpha1.Blob { + if x != nil { + if x.xxx_hidden_Blobs != nil { + return *x.xxx_hidden_Blobs + } + } + return nil +} + +func (x *PushManifestAndBlobsRequest) GetTags() []string { + if x != nil { + return x.xxx_hidden_Tags + } + return nil +} + +func (x *PushManifestAndBlobsRequest) GetDraftName() string { + if x != nil { + return x.xxx_hidden_DraftName + } + return "" +} + +func (x *PushManifestAndBlobsRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *PushManifestAndBlobsRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *PushManifestAndBlobsRequest) SetManifest(v *v1alpha1.Blob) { + x.xxx_hidden_Manifest = v +} + +func (x *PushManifestAndBlobsRequest) SetBlobs(v []*v1alpha1.Blob) { + x.xxx_hidden_Blobs = &v +} + +func (x *PushManifestAndBlobsRequest) SetTags(v []string) { + x.xxx_hidden_Tags = v +} + +func (x *PushManifestAndBlobsRequest) SetDraftName(v string) { + x.xxx_hidden_DraftName = v +} + +func (x *PushManifestAndBlobsRequest) HasManifest() bool { + if x == nil { + return false + } + return x.xxx_hidden_Manifest != nil +} + +func (x *PushManifestAndBlobsRequest) ClearManifest() { + x.xxx_hidden_Manifest = nil +} + +type PushManifestAndBlobsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Repository string + // Manifest with all the module files being pushed. + // The content of the manifest blob is a text encoding of an ordered list of unique paths, each path encoded as: + // + // :[SP][SP][LF] + // + // The only current supported digest type is 'shake256'. The shake256 digest consists of 64 bytes of lowercase hex + // encoded output of SHAKE256. See buf.alpha.module.v1alpha1.Digest for more details. + Manifest *v1alpha1.Blob + // Referenced blobs in the manifest. Keep in mind there is not necessarily one + // blob per file, but one blob per digest, so for files with exactly the same + // content, you can send just one blob. + Blobs []*v1alpha1.Blob + // Optional; if provided, the provided tags + // are created for the pushed commit. + Tags []string + // If non-empty, the push creates a draft commit with this name. + DraftName string +} + +func (b0 PushManifestAndBlobsRequest_builder) Build() *PushManifestAndBlobsRequest { + m0 := &PushManifestAndBlobsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Manifest = b.Manifest + x.xxx_hidden_Blobs = &b.Blobs + x.xxx_hidden_Tags = b.Tags + x.xxx_hidden_DraftName = b.DraftName + return m0 +} + +// PushManifestAndBlobsResponse is the pushed module pin, local to the used +// remote. +type PushManifestAndBlobsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_LocalModulePin *LocalModulePin `protobuf:"bytes,1,opt,name=local_module_pin,json=localModulePin,proto3" json:"local_module_pin,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PushManifestAndBlobsResponse) Reset() { + *x = PushManifestAndBlobsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_push_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PushManifestAndBlobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PushManifestAndBlobsResponse) ProtoMessage() {} + +func (x *PushManifestAndBlobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_push_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PushManifestAndBlobsResponse) GetLocalModulePin() *LocalModulePin { + if x != nil { + return x.xxx_hidden_LocalModulePin + } + return nil +} + +func (x *PushManifestAndBlobsResponse) SetLocalModulePin(v *LocalModulePin) { + x.xxx_hidden_LocalModulePin = v +} + +func (x *PushManifestAndBlobsResponse) HasLocalModulePin() bool { + if x == nil { + return false + } + return x.xxx_hidden_LocalModulePin != nil +} + +func (x *PushManifestAndBlobsResponse) ClearLocalModulePin() { + x.xxx_hidden_LocalModulePin = nil +} + +type PushManifestAndBlobsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + LocalModulePin *LocalModulePin +} + +func (b0 PushManifestAndBlobsResponse_builder) Build() *PushManifestAndBlobsResponse { + m0 := &PushManifestAndBlobsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_LocalModulePin = b.LocalModulePin + return m0 +} + +var File_buf_alpha_registry_v1alpha1_push_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_push_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x75, + 0x73, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x62, + 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9, 0x01, 0x0a, 0x0b, 0x50, 0x75, 0x73, 0x68, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, + 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, + 0x01, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x39, 0x0a, 0x06, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x06, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x63, + 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, 0x74, 0x72, + 0x61, 0x63, 0x6b, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x72, 0x61, 0x66, 0x74, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x72, 0x61, 0x66, 0x74, 0x4e, + 0x61, 0x6d, 0x65, 0x22, 0x65, 0x0a, 0x0c, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, + 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x52, 0x0e, 0x6c, 0x6f, 0x63, 0x61, + 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x22, 0xfa, 0x01, 0x0a, 0x1b, 0x50, + 0x75, 0x73, 0x68, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x42, 0x6c, + 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, + 0x6c, 0x6f, 0x62, 0x52, 0x08, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, + 0x05, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x05, 0x62, + 0x6c, 0x6f, 0x62, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x72, 0x61, 0x66, + 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x72, + 0x61, 0x66, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x75, 0x0a, 0x1c, 0x50, 0x75, 0x73, 0x68, 0x4d, + 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x6c, 0x6f, 0x63, 0x61, 0x6c, + 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x52, 0x0e, + 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x32, 0x82, + 0x02, 0x0a, 0x0b, 0x50, 0x75, 0x73, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x60, + 0x0a, 0x04, 0x50, 0x75, 0x73, 0x68, 0x12, 0x28, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, + 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, + 0x12, 0x90, 0x01, 0x0a, 0x14, 0x50, 0x75, 0x73, 0x68, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, + 0x74, 0x41, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x12, 0x38, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4d, 0x61, 0x6e, 0x69, + 0x66, 0x65, 0x73, 0x74, 0x41, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x41, 0x6e, + 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, + 0x90, 0x02, 0x02, 0x42, 0x96, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x09, 0x50, 0x75, 0x73, 0x68, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, + 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, + 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_push_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_buf_alpha_registry_v1alpha1_push_proto_goTypes = []any{ + (*PushRequest)(nil), // 0: buf.alpha.registry.v1alpha1.PushRequest + (*PushResponse)(nil), // 1: buf.alpha.registry.v1alpha1.PushResponse + (*PushManifestAndBlobsRequest)(nil), // 2: buf.alpha.registry.v1alpha1.PushManifestAndBlobsRequest + (*PushManifestAndBlobsResponse)(nil), // 3: buf.alpha.registry.v1alpha1.PushManifestAndBlobsResponse + (*v1alpha1.Module)(nil), // 4: buf.alpha.module.v1alpha1.Module + (*LocalModulePin)(nil), // 5: buf.alpha.registry.v1alpha1.LocalModulePin + (*v1alpha1.Blob)(nil), // 6: buf.alpha.module.v1alpha1.Blob +} +var file_buf_alpha_registry_v1alpha1_push_proto_depIdxs = []int32{ + 4, // 0: buf.alpha.registry.v1alpha1.PushRequest.module:type_name -> buf.alpha.module.v1alpha1.Module + 5, // 1: buf.alpha.registry.v1alpha1.PushResponse.local_module_pin:type_name -> buf.alpha.registry.v1alpha1.LocalModulePin + 6, // 2: buf.alpha.registry.v1alpha1.PushManifestAndBlobsRequest.manifest:type_name -> buf.alpha.module.v1alpha1.Blob + 6, // 3: buf.alpha.registry.v1alpha1.PushManifestAndBlobsRequest.blobs:type_name -> buf.alpha.module.v1alpha1.Blob + 5, // 4: buf.alpha.registry.v1alpha1.PushManifestAndBlobsResponse.local_module_pin:type_name -> buf.alpha.registry.v1alpha1.LocalModulePin + 0, // 5: buf.alpha.registry.v1alpha1.PushService.Push:input_type -> buf.alpha.registry.v1alpha1.PushRequest + 2, // 6: buf.alpha.registry.v1alpha1.PushService.PushManifestAndBlobs:input_type -> buf.alpha.registry.v1alpha1.PushManifestAndBlobsRequest + 1, // 7: buf.alpha.registry.v1alpha1.PushService.Push:output_type -> buf.alpha.registry.v1alpha1.PushResponse + 3, // 8: buf.alpha.registry.v1alpha1.PushService.PushManifestAndBlobs:output_type -> buf.alpha.registry.v1alpha1.PushManifestAndBlobsResponse + 7, // [7:9] is the sub-list for method output_type + 5, // [5:7] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_push_proto_init() } +func file_buf_alpha_registry_v1alpha1_push_proto_init() { + if File_buf_alpha_registry_v1alpha1_push_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_module_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_push_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_push_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_push_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_push_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_push_proto = out.File + file_buf_alpha_registry_v1alpha1_push_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_push_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_push_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/recommendation.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/recommendation.pb.go index e4682da902..0e9045982b 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/recommendation.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/recommendation.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/recommendation.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -38,7 +39,7 @@ const ( // RecommendedRepository is the information about a repository needed to link to // its owner page. type RecommendedRepository struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` @@ -73,11 +74,6 @@ func (x *RecommendedRepository) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RecommendedRepository.ProtoReflect.Descriptor instead. -func (*RecommendedRepository) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescGZIP(), []int{0} -} - func (x *RecommendedRepository) GetOwner() string { if x != nil { return x.Owner @@ -113,9 +109,62 @@ func (x *RecommendedRepository) GetRepositoryId() string { return "" } +func (x *RecommendedRepository) SetOwner(v string) { + x.Owner = v +} + +func (x *RecommendedRepository) SetName(v string) { + x.Name = v +} + +func (x *RecommendedRepository) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *RecommendedRepository) SetDescription(v string) { + x.Description = v +} + +func (x *RecommendedRepository) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *RecommendedRepository) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *RecommendedRepository) ClearCreateTime() { + x.CreateTime = nil +} + +type RecommendedRepository_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Name string + CreateTime *timestamppb.Timestamp + Description string + RepositoryId string +} + +func (b0 RecommendedRepository_builder) Build() *RecommendedRepository { + m0 := &RecommendedRepository{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Name = b.Name + x.CreateTime = b.CreateTime + x.Description = b.Description + x.RepositoryId = b.RepositoryId + return m0 +} + // SetRecommendedResource is the information needed to configure a resource recommendation type SetRecommendedResource struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields @@ -147,11 +196,6 @@ func (x *SetRecommendedResource) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetRecommendedResource.ProtoReflect.Descriptor instead. -func (*SetRecommendedResource) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescGZIP(), []int{1} -} - func (x *SetRecommendedResource) GetOwner() string { if x != nil { return x.Owner @@ -166,8 +210,32 @@ func (x *SetRecommendedResource) GetName() string { return "" } +func (x *SetRecommendedResource) SetOwner(v string) { + x.Owner = v +} + +func (x *SetRecommendedResource) SetName(v string) { + x.Name = v +} + +type SetRecommendedResource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Name string +} + +func (b0 SetRecommendedResource_builder) Build() *SetRecommendedResource { + m0 := &SetRecommendedResource{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Name = b.Name + return m0 +} + type RecommendedRepositoriesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -197,13 +265,20 @@ func (x *RecommendedRepositoriesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RecommendedRepositoriesRequest.ProtoReflect.Descriptor instead. -func (*RecommendedRepositoriesRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescGZIP(), []int{2} +type RecommendedRepositoriesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RecommendedRepositoriesRequest_builder) Build() *RecommendedRepositoriesRequest { + m0 := &RecommendedRepositoriesRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type RecommendedRepositoriesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Repositories []*RecommendedRepository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -234,11 +309,6 @@ func (x *RecommendedRepositoriesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RecommendedRepositoriesResponse.ProtoReflect.Descriptor instead. -func (*RecommendedRepositoriesResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescGZIP(), []int{3} -} - func (x *RecommendedRepositoriesResponse) GetRepositories() []*RecommendedRepository { if x != nil { return x.Repositories @@ -246,8 +316,26 @@ func (x *RecommendedRepositoriesResponse) GetRepositories() []*RecommendedReposi return nil } +func (x *RecommendedRepositoriesResponse) SetRepositories(v []*RecommendedRepository) { + x.Repositories = v +} + +type RecommendedRepositoriesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repositories []*RecommendedRepository +} + +func (b0 RecommendedRepositoriesResponse_builder) Build() *RecommendedRepositoriesResponse { + m0 := &RecommendedRepositoriesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Repositories = b.Repositories + return m0 +} + type ListRecommendedResourcesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -277,13 +365,20 @@ func (x *ListRecommendedResourcesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListRecommendedResourcesRequest.ProtoReflect.Descriptor instead. -func (*ListRecommendedResourcesRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescGZIP(), []int{4} +type ListRecommendedResourcesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ListRecommendedResourcesRequest_builder) Build() *ListRecommendedResourcesRequest { + m0 := &ListRecommendedResourcesRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListRecommendedResourcesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -314,11 +409,6 @@ func (x *ListRecommendedResourcesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListRecommendedResourcesResponse.ProtoReflect.Descriptor instead. -func (*ListRecommendedResourcesResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescGZIP(), []int{5} -} - func (x *ListRecommendedResourcesResponse) GetResources() []*Resource { if x != nil { return x.Resources @@ -326,8 +416,26 @@ func (x *ListRecommendedResourcesResponse) GetResources() []*Resource { return nil } +func (x *ListRecommendedResourcesResponse) SetResources(v []*Resource) { + x.Resources = v +} + +type ListRecommendedResourcesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resources []*Resource +} + +func (b0 ListRecommendedResourcesResponse_builder) Build() *ListRecommendedResourcesResponse { + m0 := &ListRecommendedResourcesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Resources = b.Resources + return m0 +} + type SetRecommendedResourcesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Resources []*SetRecommendedResource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -358,11 +466,6 @@ func (x *SetRecommendedResourcesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetRecommendedResourcesRequest.ProtoReflect.Descriptor instead. -func (*SetRecommendedResourcesRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescGZIP(), []int{6} -} - func (x *SetRecommendedResourcesRequest) GetResources() []*SetRecommendedResource { if x != nil { return x.Resources @@ -370,8 +473,26 @@ func (x *SetRecommendedResourcesRequest) GetResources() []*SetRecommendedResourc return nil } +func (x *SetRecommendedResourcesRequest) SetResources(v []*SetRecommendedResource) { + x.Resources = v +} + +type SetRecommendedResourcesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resources []*SetRecommendedResource +} + +func (b0 SetRecommendedResourcesRequest_builder) Build() *SetRecommendedResourcesRequest { + m0 := &SetRecommendedResourcesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Resources = b.Resources + return m0 +} + type SetRecommendedResourcesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -401,9 +522,16 @@ func (x *SetRecommendedResourcesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetRecommendedResourcesResponse.ProtoReflect.Descriptor instead. -func (*SetRecommendedResourcesResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescGZIP(), []int{7} +type SetRecommendedResourcesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SetRecommendedResourcesResponse_builder) Build() *SetRecommendedResourcesResponse { + m0 := &SetRecommendedResourcesResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } var File_buf_alpha_registry_v1alpha1_recommendation_proto protoreflect.FileDescriptor @@ -516,18 +644,6 @@ var file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDesc = []byte{ 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescData = file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_buf_alpha_registry_v1alpha1_recommendation_proto_goTypes = []any{ (*RecommendedRepository)(nil), // 0: buf.alpha.registry.v1alpha1.RecommendedRepository diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/recommendation_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/recommendation_protoopaque.pb.go new file mode 100644 index 0000000000..e7cde2473b --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/recommendation_protoopaque.pb.go @@ -0,0 +1,708 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/recommendation.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// RecommendedRepository is the information about a repository needed to link to +// its owner page. +type RecommendedRepository struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + xxx_hidden_Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + xxx_hidden_RepositoryId string `protobuf:"bytes,5,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecommendedRepository) Reset() { + *x = RecommendedRepository{} + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecommendedRepository) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecommendedRepository) ProtoMessage() {} + +func (x *RecommendedRepository) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RecommendedRepository) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *RecommendedRepository) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *RecommendedRepository) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *RecommendedRepository) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *RecommendedRepository) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *RecommendedRepository) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *RecommendedRepository) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *RecommendedRepository) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *RecommendedRepository) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *RecommendedRepository) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *RecommendedRepository) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *RecommendedRepository) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +type RecommendedRepository_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Name string + CreateTime *timestamppb.Timestamp + Description string + RepositoryId string +} + +func (b0 RecommendedRepository_builder) Build() *RecommendedRepository { + m0 := &RecommendedRepository{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Name = b.Name + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_Description = b.Description + x.xxx_hidden_RepositoryId = b.RepositoryId + return m0 +} + +// SetRecommendedResource is the information needed to configure a resource recommendation +type SetRecommendedResource struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetRecommendedResource) Reset() { + *x = SetRecommendedResource{} + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetRecommendedResource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetRecommendedResource) ProtoMessage() {} + +func (x *SetRecommendedResource) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetRecommendedResource) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *SetRecommendedResource) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *SetRecommendedResource) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *SetRecommendedResource) SetName(v string) { + x.xxx_hidden_Name = v +} + +type SetRecommendedResource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Owner string + Name string +} + +func (b0 SetRecommendedResource_builder) Build() *SetRecommendedResource { + m0 := &SetRecommendedResource{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Name = b.Name + return m0 +} + +type RecommendedRepositoriesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecommendedRepositoriesRequest) Reset() { + *x = RecommendedRepositoriesRequest{} + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecommendedRepositoriesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecommendedRepositoriesRequest) ProtoMessage() {} + +func (x *RecommendedRepositoriesRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RecommendedRepositoriesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RecommendedRepositoriesRequest_builder) Build() *RecommendedRepositoriesRequest { + m0 := &RecommendedRepositoriesRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type RecommendedRepositoriesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Repositories *[]*RecommendedRepository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RecommendedRepositoriesResponse) Reset() { + *x = RecommendedRepositoriesResponse{} + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RecommendedRepositoriesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecommendedRepositoriesResponse) ProtoMessage() {} + +func (x *RecommendedRepositoriesResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RecommendedRepositoriesResponse) GetRepositories() []*RecommendedRepository { + if x != nil { + if x.xxx_hidden_Repositories != nil { + return *x.xxx_hidden_Repositories + } + } + return nil +} + +func (x *RecommendedRepositoriesResponse) SetRepositories(v []*RecommendedRepository) { + x.xxx_hidden_Repositories = &v +} + +type RecommendedRepositoriesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repositories []*RecommendedRepository +} + +func (b0 RecommendedRepositoriesResponse_builder) Build() *RecommendedRepositoriesResponse { + m0 := &RecommendedRepositoriesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Repositories = &b.Repositories + return m0 +} + +type ListRecommendedResourcesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRecommendedResourcesRequest) Reset() { + *x = ListRecommendedResourcesRequest{} + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRecommendedResourcesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecommendedResourcesRequest) ProtoMessage() {} + +func (x *ListRecommendedResourcesRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type ListRecommendedResourcesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ListRecommendedResourcesRequest_builder) Build() *ListRecommendedResourcesRequest { + m0 := &ListRecommendedResourcesRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListRecommendedResourcesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resources *[]*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRecommendedResourcesResponse) Reset() { + *x = ListRecommendedResourcesResponse{} + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRecommendedResourcesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRecommendedResourcesResponse) ProtoMessage() {} + +func (x *ListRecommendedResourcesResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRecommendedResourcesResponse) GetResources() []*Resource { + if x != nil { + if x.xxx_hidden_Resources != nil { + return *x.xxx_hidden_Resources + } + } + return nil +} + +func (x *ListRecommendedResourcesResponse) SetResources(v []*Resource) { + x.xxx_hidden_Resources = &v +} + +type ListRecommendedResourcesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resources []*Resource +} + +func (b0 ListRecommendedResourcesResponse_builder) Build() *ListRecommendedResourcesResponse { + m0 := &ListRecommendedResourcesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resources = &b.Resources + return m0 +} + +type SetRecommendedResourcesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resources *[]*SetRecommendedResource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetRecommendedResourcesRequest) Reset() { + *x = SetRecommendedResourcesRequest{} + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetRecommendedResourcesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetRecommendedResourcesRequest) ProtoMessage() {} + +func (x *SetRecommendedResourcesRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetRecommendedResourcesRequest) GetResources() []*SetRecommendedResource { + if x != nil { + if x.xxx_hidden_Resources != nil { + return *x.xxx_hidden_Resources + } + } + return nil +} + +func (x *SetRecommendedResourcesRequest) SetResources(v []*SetRecommendedResource) { + x.xxx_hidden_Resources = &v +} + +type SetRecommendedResourcesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resources []*SetRecommendedResource +} + +func (b0 SetRecommendedResourcesRequest_builder) Build() *SetRecommendedResourcesRequest { + m0 := &SetRecommendedResourcesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resources = &b.Resources + return m0 +} + +type SetRecommendedResourcesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetRecommendedResourcesResponse) Reset() { + *x = SetRecommendedResourcesResponse{} + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetRecommendedResourcesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetRecommendedResourcesResponse) ProtoMessage() {} + +func (x *SetRecommendedResourcesResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type SetRecommendedResourcesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SetRecommendedResourcesResponse_builder) Build() *SetRecommendedResourcesResponse { + m0 := &SetRecommendedResourcesResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_buf_alpha_registry_v1alpha1_recommendation_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDesc = []byte{ + 0x0a, 0x30, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, + 0x2a, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc5, 0x01, 0x0a, + 0x15, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x49, 0x64, 0x22, 0x42, 0x0a, 0x16, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, + 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x20, 0x0a, 0x1e, 0x52, 0x65, 0x63, 0x6f, + 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x79, 0x0a, 0x1f, 0x52, 0x65, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, + 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x21, 0x0a, 0x1f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, + 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x67, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x09, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x22, 0x73, 0x0a, 0x1e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x21, 0x0a, 0x1f, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, + 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xee, 0x03, 0x0a, 0x15, 0x52, 0x65, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x99, 0x01, 0x0a, 0x17, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, + 0x3b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6d, + 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, + 0x9c, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x3c, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, + 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x99, + 0x01, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, + 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x3b, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, + 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, + 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x42, 0xa0, 0x02, 0x0a, 0x1f, 0x63, + 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x13, + 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, + 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, + 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_buf_alpha_registry_v1alpha1_recommendation_proto_goTypes = []any{ + (*RecommendedRepository)(nil), // 0: buf.alpha.registry.v1alpha1.RecommendedRepository + (*SetRecommendedResource)(nil), // 1: buf.alpha.registry.v1alpha1.SetRecommendedResource + (*RecommendedRepositoriesRequest)(nil), // 2: buf.alpha.registry.v1alpha1.RecommendedRepositoriesRequest + (*RecommendedRepositoriesResponse)(nil), // 3: buf.alpha.registry.v1alpha1.RecommendedRepositoriesResponse + (*ListRecommendedResourcesRequest)(nil), // 4: buf.alpha.registry.v1alpha1.ListRecommendedResourcesRequest + (*ListRecommendedResourcesResponse)(nil), // 5: buf.alpha.registry.v1alpha1.ListRecommendedResourcesResponse + (*SetRecommendedResourcesRequest)(nil), // 6: buf.alpha.registry.v1alpha1.SetRecommendedResourcesRequest + (*SetRecommendedResourcesResponse)(nil), // 7: buf.alpha.registry.v1alpha1.SetRecommendedResourcesResponse + (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp + (*Resource)(nil), // 9: buf.alpha.registry.v1alpha1.Resource +} +var file_buf_alpha_registry_v1alpha1_recommendation_proto_depIdxs = []int32{ + 8, // 0: buf.alpha.registry.v1alpha1.RecommendedRepository.create_time:type_name -> google.protobuf.Timestamp + 0, // 1: buf.alpha.registry.v1alpha1.RecommendedRepositoriesResponse.repositories:type_name -> buf.alpha.registry.v1alpha1.RecommendedRepository + 9, // 2: buf.alpha.registry.v1alpha1.ListRecommendedResourcesResponse.resources:type_name -> buf.alpha.registry.v1alpha1.Resource + 1, // 3: buf.alpha.registry.v1alpha1.SetRecommendedResourcesRequest.resources:type_name -> buf.alpha.registry.v1alpha1.SetRecommendedResource + 2, // 4: buf.alpha.registry.v1alpha1.RecommendationService.RecommendedRepositories:input_type -> buf.alpha.registry.v1alpha1.RecommendedRepositoriesRequest + 4, // 5: buf.alpha.registry.v1alpha1.RecommendationService.ListRecommendedResources:input_type -> buf.alpha.registry.v1alpha1.ListRecommendedResourcesRequest + 6, // 6: buf.alpha.registry.v1alpha1.RecommendationService.SetRecommendedResources:input_type -> buf.alpha.registry.v1alpha1.SetRecommendedResourcesRequest + 3, // 7: buf.alpha.registry.v1alpha1.RecommendationService.RecommendedRepositories:output_type -> buf.alpha.registry.v1alpha1.RecommendedRepositoriesResponse + 5, // 8: buf.alpha.registry.v1alpha1.RecommendationService.ListRecommendedResources:output_type -> buf.alpha.registry.v1alpha1.ListRecommendedResourcesResponse + 7, // 9: buf.alpha.registry.v1alpha1.RecommendationService.SetRecommendedResources:output_type -> buf.alpha.registry.v1alpha1.SetRecommendedResourcesResponse + 7, // [7:10] is the sub-list for method output_type + 4, // [4:7] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_recommendation_proto_init() } +func file_buf_alpha_registry_v1alpha1_recommendation_proto_init() { + if File_buf_alpha_registry_v1alpha1_recommendation_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_resource_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_recommendation_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_recommendation_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_recommendation_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_recommendation_proto = out.File + file_buf_alpha_registry_v1alpha1_recommendation_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_recommendation_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_recommendation_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/reference.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/reference.pb.go index 55ed8ea4eb..c23dfed776 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/reference.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/reference.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/reference.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -36,7 +37,7 @@ const ( ) type Reference struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Reference: // // *Reference_Branch @@ -75,11 +76,6 @@ func (x *Reference) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Reference.ProtoReflect.Descriptor instead. -func (*Reference) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_reference_proto_rawDescGZIP(), []int{0} -} - func (x *Reference) GetReference() isReference_Reference { if x != nil { return x.Reference @@ -141,6 +137,233 @@ func (x *Reference) GetVcsCommit() *RepositoryVCSCommit { return nil } +func (x *Reference) SetBranch(v *RepositoryBranch) { + if v == nil { + x.Reference = nil + return + } + x.Reference = &Reference_Branch{v} +} + +func (x *Reference) SetTag(v *RepositoryTag) { + if v == nil { + x.Reference = nil + return + } + x.Reference = &Reference_Tag{v} +} + +func (x *Reference) SetCommit(v *RepositoryCommit) { + if v == nil { + x.Reference = nil + return + } + x.Reference = &Reference_Commit{v} +} + +func (x *Reference) SetMain(v *RepositoryMainReference) { + if v == nil { + x.Reference = nil + return + } + x.Reference = &Reference_Main{v} +} + +func (x *Reference) SetDraft(v *RepositoryDraft) { + if v == nil { + x.Reference = nil + return + } + x.Reference = &Reference_Draft{v} +} + +func (x *Reference) SetVcsCommit(v *RepositoryVCSCommit) { + if v == nil { + x.Reference = nil + return + } + x.Reference = &Reference_VcsCommit{v} +} + +func (x *Reference) HasReference() bool { + if x == nil { + return false + } + return x.Reference != nil +} + +func (x *Reference) HasBranch() bool { + if x == nil { + return false + } + _, ok := x.Reference.(*Reference_Branch) + return ok +} + +func (x *Reference) HasTag() bool { + if x == nil { + return false + } + _, ok := x.Reference.(*Reference_Tag) + return ok +} + +func (x *Reference) HasCommit() bool { + if x == nil { + return false + } + _, ok := x.Reference.(*Reference_Commit) + return ok +} + +func (x *Reference) HasMain() bool { + if x == nil { + return false + } + _, ok := x.Reference.(*Reference_Main) + return ok +} + +func (x *Reference) HasDraft() bool { + if x == nil { + return false + } + _, ok := x.Reference.(*Reference_Draft) + return ok +} + +func (x *Reference) HasVcsCommit() bool { + if x == nil { + return false + } + _, ok := x.Reference.(*Reference_VcsCommit) + return ok +} + +func (x *Reference) ClearReference() { + x.Reference = nil +} + +func (x *Reference) ClearBranch() { + if _, ok := x.Reference.(*Reference_Branch); ok { + x.Reference = nil + } +} + +func (x *Reference) ClearTag() { + if _, ok := x.Reference.(*Reference_Tag); ok { + x.Reference = nil + } +} + +func (x *Reference) ClearCommit() { + if _, ok := x.Reference.(*Reference_Commit); ok { + x.Reference = nil + } +} + +func (x *Reference) ClearMain() { + if _, ok := x.Reference.(*Reference_Main); ok { + x.Reference = nil + } +} + +func (x *Reference) ClearDraft() { + if _, ok := x.Reference.(*Reference_Draft); ok { + x.Reference = nil + } +} + +func (x *Reference) ClearVcsCommit() { + if _, ok := x.Reference.(*Reference_VcsCommit); ok { + x.Reference = nil + } +} + +const Reference_Reference_not_set_case case_Reference_Reference = 0 +const Reference_Branch_case case_Reference_Reference = 1 +const Reference_Tag_case case_Reference_Reference = 2 +const Reference_Commit_case case_Reference_Reference = 3 +const Reference_Main_case case_Reference_Reference = 5 +const Reference_Draft_case case_Reference_Reference = 6 +const Reference_VcsCommit_case case_Reference_Reference = 7 + +func (x *Reference) WhichReference() case_Reference_Reference { + if x == nil { + return Reference_Reference_not_set_case + } + switch x.Reference.(type) { + case *Reference_Branch: + return Reference_Branch_case + case *Reference_Tag: + return Reference_Tag_case + case *Reference_Commit: + return Reference_Commit_case + case *Reference_Main: + return Reference_Main_case + case *Reference_Draft: + return Reference_Draft_case + case *Reference_VcsCommit: + return Reference_VcsCommit_case + default: + return Reference_Reference_not_set_case + } +} + +type Reference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Reference: + // The requested reference is a branch. + Branch *RepositoryBranch + // The requested reference is a tag. + Tag *RepositoryTag + // The requested reference is a commit. + Commit *RepositoryCommit + // The requested reference is the default reference. + Main *RepositoryMainReference + // The requested reference is a draft commit. + Draft *RepositoryDraft + // The requested reference is a VCS commit. + VcsCommit *RepositoryVCSCommit + // -- end of Reference +} + +func (b0 Reference_builder) Build() *Reference { + m0 := &Reference{} + b, x := &b0, m0 + _, _ = b, x + if b.Branch != nil { + x.Reference = &Reference_Branch{b.Branch} + } + if b.Tag != nil { + x.Reference = &Reference_Tag{b.Tag} + } + if b.Commit != nil { + x.Reference = &Reference_Commit{b.Commit} + } + if b.Main != nil { + x.Reference = &Reference_Main{b.Main} + } + if b.Draft != nil { + x.Reference = &Reference_Draft{b.Draft} + } + if b.VcsCommit != nil { + x.Reference = &Reference_VcsCommit{b.VcsCommit} + } + return m0 +} + +type case_Reference_Reference protoreflect.FieldNumber + +func (x case_Reference_Reference) String() string { + md := file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[0].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isReference_Reference interface { isReference_Reference() } @@ -188,7 +411,7 @@ func (*Reference_Draft) isReference_Reference() {} func (*Reference_VcsCommit) isReference_Reference() {} type RepositoryMainReference struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Name is the configured default_branch for the repository (default: 'main'). Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The latest commit in this repository. If the repository has no commits, @@ -223,11 +446,6 @@ func (x *RepositoryMainReference) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepositoryMainReference.ProtoReflect.Descriptor instead. -func (*RepositoryMainReference) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_reference_proto_rawDescGZIP(), []int{1} -} - func (x *RepositoryMainReference) GetName() string { if x != nil { return x.Name @@ -242,8 +460,46 @@ func (x *RepositoryMainReference) GetCommit() *RepositoryCommit { return nil } +func (x *RepositoryMainReference) SetName(v string) { + x.Name = v +} + +func (x *RepositoryMainReference) SetCommit(v *RepositoryCommit) { + x.Commit = v +} + +func (x *RepositoryMainReference) HasCommit() bool { + if x == nil { + return false + } + return x.Commit != nil +} + +func (x *RepositoryMainReference) ClearCommit() { + x.Commit = nil +} + +type RepositoryMainReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Name is the configured default_branch for the repository (default: 'main'). + Name string + // The latest commit in this repository. If the repository has no commits, + // this will be empty. + Commit *RepositoryCommit +} + +func (b0 RepositoryMainReference_builder) Build() *RepositoryMainReference { + m0 := &RepositoryMainReference{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Commit = b.Commit + return m0 +} + type RepositoryDraft struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The name of the draft Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The commit this draft points to. @@ -277,11 +533,6 @@ func (x *RepositoryDraft) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepositoryDraft.ProtoReflect.Descriptor instead. -func (*RepositoryDraft) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_reference_proto_rawDescGZIP(), []int{2} -} - func (x *RepositoryDraft) GetName() string { if x != nil { return x.Name @@ -296,8 +547,45 @@ func (x *RepositoryDraft) GetCommit() *RepositoryCommit { return nil } +func (x *RepositoryDraft) SetName(v string) { + x.Name = v +} + +func (x *RepositoryDraft) SetCommit(v *RepositoryCommit) { + x.Commit = v +} + +func (x *RepositoryDraft) HasCommit() bool { + if x == nil { + return false + } + return x.Commit != nil +} + +func (x *RepositoryDraft) ClearCommit() { + x.Commit = nil +} + +type RepositoryDraft_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the draft + Name string + // The commit this draft points to. + Commit *RepositoryCommit +} + +func (b0 RepositoryDraft_builder) Build() *RepositoryDraft { + m0 := &RepositoryDraft{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Commit = b.Commit + return m0 +} + type RepositoryVCSCommit struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // primary key, unique. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // immutable @@ -335,11 +623,6 @@ func (x *RepositoryVCSCommit) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepositoryVCSCommit.ProtoReflect.Descriptor instead. -func (*RepositoryVCSCommit) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_reference_proto_rawDescGZIP(), []int{3} -} - func (x *RepositoryVCSCommit) GetId() string { if x != nil { return x.Id @@ -368,8 +651,59 @@ func (x *RepositoryVCSCommit) GetCommitName() string { return "" } +func (x *RepositoryVCSCommit) SetId(v string) { + x.Id = v +} + +func (x *RepositoryVCSCommit) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *RepositoryVCSCommit) SetName(v string) { + x.Name = v +} + +func (x *RepositoryVCSCommit) SetCommitName(v string) { + x.CommitName = v +} + +func (x *RepositoryVCSCommit) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *RepositoryVCSCommit) ClearCreateTime() { + x.CreateTime = nil +} + +type RepositoryVCSCommit_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique. + Id string + // immutable + CreateTime *timestamppb.Timestamp + // The name of the VCS commit, e.g. for Git, it would be the Git hash. + Name string + // The name of the BSR commit this VCS commit belongs to. + CommitName string +} + +func (b0 RepositoryVCSCommit_builder) Build() *RepositoryVCSCommit { + m0 := &RepositoryVCSCommit{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.CreateTime = b.CreateTime + x.Name = b.Name + x.CommitName = b.CommitName + return m0 +} + type GetReferenceByNameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Optional name (if unspecified, will use the repository's default_branch). Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Owner of the repository the reference belongs to. @@ -405,11 +739,6 @@ func (x *GetReferenceByNameRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetReferenceByNameRequest.ProtoReflect.Descriptor instead. -func (*GetReferenceByNameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_reference_proto_rawDescGZIP(), []int{4} -} - func (x *GetReferenceByNameRequest) GetName() string { if x != nil { return x.Name @@ -431,8 +760,41 @@ func (x *GetReferenceByNameRequest) GetRepositoryName() string { return "" } +func (x *GetReferenceByNameRequest) SetName(v string) { + x.Name = v +} + +func (x *GetReferenceByNameRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *GetReferenceByNameRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +type GetReferenceByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Optional name (if unspecified, will use the repository's default_branch). + Name string + // Owner of the repository the reference belongs to. + Owner string + // Name of the repository the reference belongs to. + RepositoryName string +} + +func (b0 GetReferenceByNameRequest_builder) Build() *GetReferenceByNameRequest { + m0 := &GetReferenceByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Owner = b.Owner + x.RepositoryName = b.RepositoryName + return m0 +} + type GetReferenceByNameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Reference *Reference `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -463,11 +825,6 @@ func (x *GetReferenceByNameResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetReferenceByNameResponse.ProtoReflect.Descriptor instead. -func (*GetReferenceByNameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_reference_proto_rawDescGZIP(), []int{5} -} - func (x *GetReferenceByNameResponse) GetReference() *Reference { if x != nil { return x.Reference @@ -475,6 +832,35 @@ func (x *GetReferenceByNameResponse) GetReference() *Reference { return nil } +func (x *GetReferenceByNameResponse) SetReference(v *Reference) { + x.Reference = v +} + +func (x *GetReferenceByNameResponse) HasReference() bool { + if x == nil { + return false + } + return x.Reference != nil +} + +func (x *GetReferenceByNameResponse) ClearReference() { + x.Reference = nil +} + +type GetReferenceByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Reference *Reference +} + +func (b0 GetReferenceByNameResponse_builder) Build() *GetReferenceByNameResponse { + m0 := &GetReferenceByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Reference = b.Reference + return m0 +} + var File_buf_alpha_registry_v1alpha1_reference_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_reference_proto_rawDesc = []byte{ @@ -592,18 +978,6 @@ var file_buf_alpha_registry_v1alpha1_reference_proto_rawDesc = []byte{ 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_reference_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_reference_proto_rawDescData = file_buf_alpha_registry_v1alpha1_reference_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_reference_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_reference_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_reference_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_reference_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_reference_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_buf_alpha_registry_v1alpha1_reference_proto_goTypes = []any{ (*Reference)(nil), // 0: buf.alpha.registry.v1alpha1.Reference diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/reference_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/reference_protoopaque.pb.go new file mode 100644 index 0000000000..1b0d7a3ab3 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/reference_protoopaque.pb.go @@ -0,0 +1,1021 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/reference.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Reference struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Reference isReference_Reference `protobuf_oneof:"reference"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Reference) Reset() { + *x = Reference{} + mi := &file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Reference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Reference) ProtoMessage() {} + +func (x *Reference) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Reference) GetBranch() *RepositoryBranch { + if x != nil { + if x, ok := x.xxx_hidden_Reference.(*reference_Branch); ok { + return x.Branch + } + } + return nil +} + +func (x *Reference) GetTag() *RepositoryTag { + if x != nil { + if x, ok := x.xxx_hidden_Reference.(*reference_Tag); ok { + return x.Tag + } + } + return nil +} + +func (x *Reference) GetCommit() *RepositoryCommit { + if x != nil { + if x, ok := x.xxx_hidden_Reference.(*reference_Commit); ok { + return x.Commit + } + } + return nil +} + +func (x *Reference) GetMain() *RepositoryMainReference { + if x != nil { + if x, ok := x.xxx_hidden_Reference.(*reference_Main); ok { + return x.Main + } + } + return nil +} + +func (x *Reference) GetDraft() *RepositoryDraft { + if x != nil { + if x, ok := x.xxx_hidden_Reference.(*reference_Draft); ok { + return x.Draft + } + } + return nil +} + +func (x *Reference) GetVcsCommit() *RepositoryVCSCommit { + if x != nil { + if x, ok := x.xxx_hidden_Reference.(*reference_VcsCommit); ok { + return x.VcsCommit + } + } + return nil +} + +func (x *Reference) SetBranch(v *RepositoryBranch) { + if v == nil { + x.xxx_hidden_Reference = nil + return + } + x.xxx_hidden_Reference = &reference_Branch{v} +} + +func (x *Reference) SetTag(v *RepositoryTag) { + if v == nil { + x.xxx_hidden_Reference = nil + return + } + x.xxx_hidden_Reference = &reference_Tag{v} +} + +func (x *Reference) SetCommit(v *RepositoryCommit) { + if v == nil { + x.xxx_hidden_Reference = nil + return + } + x.xxx_hidden_Reference = &reference_Commit{v} +} + +func (x *Reference) SetMain(v *RepositoryMainReference) { + if v == nil { + x.xxx_hidden_Reference = nil + return + } + x.xxx_hidden_Reference = &reference_Main{v} +} + +func (x *Reference) SetDraft(v *RepositoryDraft) { + if v == nil { + x.xxx_hidden_Reference = nil + return + } + x.xxx_hidden_Reference = &reference_Draft{v} +} + +func (x *Reference) SetVcsCommit(v *RepositoryVCSCommit) { + if v == nil { + x.xxx_hidden_Reference = nil + return + } + x.xxx_hidden_Reference = &reference_VcsCommit{v} +} + +func (x *Reference) HasReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_Reference != nil +} + +func (x *Reference) HasBranch() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Reference.(*reference_Branch) + return ok +} + +func (x *Reference) HasTag() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Reference.(*reference_Tag) + return ok +} + +func (x *Reference) HasCommit() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Reference.(*reference_Commit) + return ok +} + +func (x *Reference) HasMain() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Reference.(*reference_Main) + return ok +} + +func (x *Reference) HasDraft() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Reference.(*reference_Draft) + return ok +} + +func (x *Reference) HasVcsCommit() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Reference.(*reference_VcsCommit) + return ok +} + +func (x *Reference) ClearReference() { + x.xxx_hidden_Reference = nil +} + +func (x *Reference) ClearBranch() { + if _, ok := x.xxx_hidden_Reference.(*reference_Branch); ok { + x.xxx_hidden_Reference = nil + } +} + +func (x *Reference) ClearTag() { + if _, ok := x.xxx_hidden_Reference.(*reference_Tag); ok { + x.xxx_hidden_Reference = nil + } +} + +func (x *Reference) ClearCommit() { + if _, ok := x.xxx_hidden_Reference.(*reference_Commit); ok { + x.xxx_hidden_Reference = nil + } +} + +func (x *Reference) ClearMain() { + if _, ok := x.xxx_hidden_Reference.(*reference_Main); ok { + x.xxx_hidden_Reference = nil + } +} + +func (x *Reference) ClearDraft() { + if _, ok := x.xxx_hidden_Reference.(*reference_Draft); ok { + x.xxx_hidden_Reference = nil + } +} + +func (x *Reference) ClearVcsCommit() { + if _, ok := x.xxx_hidden_Reference.(*reference_VcsCommit); ok { + x.xxx_hidden_Reference = nil + } +} + +const Reference_Reference_not_set_case case_Reference_Reference = 0 +const Reference_Branch_case case_Reference_Reference = 1 +const Reference_Tag_case case_Reference_Reference = 2 +const Reference_Commit_case case_Reference_Reference = 3 +const Reference_Main_case case_Reference_Reference = 5 +const Reference_Draft_case case_Reference_Reference = 6 +const Reference_VcsCommit_case case_Reference_Reference = 7 + +func (x *Reference) WhichReference() case_Reference_Reference { + if x == nil { + return Reference_Reference_not_set_case + } + switch x.xxx_hidden_Reference.(type) { + case *reference_Branch: + return Reference_Branch_case + case *reference_Tag: + return Reference_Tag_case + case *reference_Commit: + return Reference_Commit_case + case *reference_Main: + return Reference_Main_case + case *reference_Draft: + return Reference_Draft_case + case *reference_VcsCommit: + return Reference_VcsCommit_case + default: + return Reference_Reference_not_set_case + } +} + +type Reference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Reference: + // The requested reference is a branch. + Branch *RepositoryBranch + // The requested reference is a tag. + Tag *RepositoryTag + // The requested reference is a commit. + Commit *RepositoryCommit + // The requested reference is the default reference. + Main *RepositoryMainReference + // The requested reference is a draft commit. + Draft *RepositoryDraft + // The requested reference is a VCS commit. + VcsCommit *RepositoryVCSCommit + // -- end of xxx_hidden_Reference +} + +func (b0 Reference_builder) Build() *Reference { + m0 := &Reference{} + b, x := &b0, m0 + _, _ = b, x + if b.Branch != nil { + x.xxx_hidden_Reference = &reference_Branch{b.Branch} + } + if b.Tag != nil { + x.xxx_hidden_Reference = &reference_Tag{b.Tag} + } + if b.Commit != nil { + x.xxx_hidden_Reference = &reference_Commit{b.Commit} + } + if b.Main != nil { + x.xxx_hidden_Reference = &reference_Main{b.Main} + } + if b.Draft != nil { + x.xxx_hidden_Reference = &reference_Draft{b.Draft} + } + if b.VcsCommit != nil { + x.xxx_hidden_Reference = &reference_VcsCommit{b.VcsCommit} + } + return m0 +} + +type case_Reference_Reference protoreflect.FieldNumber + +func (x case_Reference_Reference) String() string { + md := file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[0].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isReference_Reference interface { + isReference_Reference() +} + +type reference_Branch struct { + // The requested reference is a branch. + Branch *RepositoryBranch `protobuf:"bytes,1,opt,name=branch,proto3,oneof"` +} + +type reference_Tag struct { + // The requested reference is a tag. + Tag *RepositoryTag `protobuf:"bytes,2,opt,name=tag,proto3,oneof"` +} + +type reference_Commit struct { + // The requested reference is a commit. + Commit *RepositoryCommit `protobuf:"bytes,3,opt,name=commit,proto3,oneof"` +} + +type reference_Main struct { + // The requested reference is the default reference. + Main *RepositoryMainReference `protobuf:"bytes,5,opt,name=main,proto3,oneof"` +} + +type reference_Draft struct { + // The requested reference is a draft commit. + Draft *RepositoryDraft `protobuf:"bytes,6,opt,name=draft,proto3,oneof"` +} + +type reference_VcsCommit struct { + // The requested reference is a VCS commit. + VcsCommit *RepositoryVCSCommit `protobuf:"bytes,7,opt,name=vcs_commit,json=vcsCommit,proto3,oneof"` +} + +func (*reference_Branch) isReference_Reference() {} + +func (*reference_Tag) isReference_Reference() {} + +func (*reference_Commit) isReference_Reference() {} + +func (*reference_Main) isReference_Reference() {} + +func (*reference_Draft) isReference_Reference() {} + +func (*reference_VcsCommit) isReference_Reference() {} + +type RepositoryMainReference struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Commit *RepositoryCommit `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepositoryMainReference) Reset() { + *x = RepositoryMainReference{} + mi := &file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepositoryMainReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepositoryMainReference) ProtoMessage() {} + +func (x *RepositoryMainReference) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RepositoryMainReference) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *RepositoryMainReference) GetCommit() *RepositoryCommit { + if x != nil { + return x.xxx_hidden_Commit + } + return nil +} + +func (x *RepositoryMainReference) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *RepositoryMainReference) SetCommit(v *RepositoryCommit) { + x.xxx_hidden_Commit = v +} + +func (x *RepositoryMainReference) HasCommit() bool { + if x == nil { + return false + } + return x.xxx_hidden_Commit != nil +} + +func (x *RepositoryMainReference) ClearCommit() { + x.xxx_hidden_Commit = nil +} + +type RepositoryMainReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Name is the configured default_branch for the repository (default: 'main'). + Name string + // The latest commit in this repository. If the repository has no commits, + // this will be empty. + Commit *RepositoryCommit +} + +func (b0 RepositoryMainReference_builder) Build() *RepositoryMainReference { + m0 := &RepositoryMainReference{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Commit = b.Commit + return m0 +} + +type RepositoryDraft struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Commit *RepositoryCommit `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepositoryDraft) Reset() { + *x = RepositoryDraft{} + mi := &file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepositoryDraft) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepositoryDraft) ProtoMessage() {} + +func (x *RepositoryDraft) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RepositoryDraft) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *RepositoryDraft) GetCommit() *RepositoryCommit { + if x != nil { + return x.xxx_hidden_Commit + } + return nil +} + +func (x *RepositoryDraft) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *RepositoryDraft) SetCommit(v *RepositoryCommit) { + x.xxx_hidden_Commit = v +} + +func (x *RepositoryDraft) HasCommit() bool { + if x == nil { + return false + } + return x.xxx_hidden_Commit != nil +} + +func (x *RepositoryDraft) ClearCommit() { + x.xxx_hidden_Commit = nil +} + +type RepositoryDraft_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The name of the draft + Name string + // The commit this draft points to. + Commit *RepositoryCommit +} + +func (b0 RepositoryDraft_builder) Build() *RepositoryDraft { + m0 := &RepositoryDraft{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Commit = b.Commit + return m0 +} + +type RepositoryVCSCommit struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_CommitName string `protobuf:"bytes,4,opt,name=commit_name,json=commitName,proto3" json:"commit_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepositoryVCSCommit) Reset() { + *x = RepositoryVCSCommit{} + mi := &file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepositoryVCSCommit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepositoryVCSCommit) ProtoMessage() {} + +func (x *RepositoryVCSCommit) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RepositoryVCSCommit) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *RepositoryVCSCommit) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *RepositoryVCSCommit) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *RepositoryVCSCommit) GetCommitName() string { + if x != nil { + return x.xxx_hidden_CommitName + } + return "" +} + +func (x *RepositoryVCSCommit) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *RepositoryVCSCommit) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *RepositoryVCSCommit) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *RepositoryVCSCommit) SetCommitName(v string) { + x.xxx_hidden_CommitName = v +} + +func (x *RepositoryVCSCommit) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *RepositoryVCSCommit) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +type RepositoryVCSCommit_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique. + Id string + // immutable + CreateTime *timestamppb.Timestamp + // The name of the VCS commit, e.g. for Git, it would be the Git hash. + Name string + // The name of the BSR commit this VCS commit belongs to. + CommitName string +} + +func (b0 RepositoryVCSCommit_builder) Build() *RepositoryVCSCommit { + m0 := &RepositoryVCSCommit{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_Name = b.Name + x.xxx_hidden_CommitName = b.CommitName + return m0 +} + +type GetReferenceByNameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,3,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetReferenceByNameRequest) Reset() { + *x = GetReferenceByNameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetReferenceByNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetReferenceByNameRequest) ProtoMessage() {} + +func (x *GetReferenceByNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetReferenceByNameRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GetReferenceByNameRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetReferenceByNameRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *GetReferenceByNameRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *GetReferenceByNameRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetReferenceByNameRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +type GetReferenceByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Optional name (if unspecified, will use the repository's default_branch). + Name string + // Owner of the repository the reference belongs to. + Owner string + // Name of the repository the reference belongs to. + RepositoryName string +} + +func (b0 GetReferenceByNameRequest_builder) Build() *GetReferenceByNameRequest { + m0 := &GetReferenceByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_RepositoryName = b.RepositoryName + return m0 +} + +type GetReferenceByNameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Reference *Reference `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetReferenceByNameResponse) Reset() { + *x = GetReferenceByNameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetReferenceByNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetReferenceByNameResponse) ProtoMessage() {} + +func (x *GetReferenceByNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetReferenceByNameResponse) GetReference() *Reference { + if x != nil { + return x.xxx_hidden_Reference + } + return nil +} + +func (x *GetReferenceByNameResponse) SetReference(v *Reference) { + x.xxx_hidden_Reference = v +} + +func (x *GetReferenceByNameResponse) HasReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_Reference != nil +} + +func (x *GetReferenceByNameResponse) ClearReference() { + x.xxx_hidden_Reference = nil +} + +type GetReferenceByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Reference *Reference +} + +func (b0 GetReferenceByNameResponse_builder) Build() *GetReferenceByNameResponse { + m0 := &GetReferenceByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Reference = b.Reference + return m0 +} + +var File_buf_alpha_registry_v1alpha1_reference_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_reference_proto_rawDesc = []byte{ + 0x0a, 0x2b, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x33, 0x62, 0x75, 0x66, 0x2f, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x33, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x74, 0x61, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x03, 0x0a, 0x09, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x48, 0x00, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x3e, + 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x48, 0x00, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x47, + 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x48, 0x00, 0x52, + 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x4a, 0x0a, 0x04, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4d, 0x61, + 0x69, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x04, 0x6d, + 0x61, 0x69, 0x6e, 0x12, 0x44, 0x0a, 0x05, 0x64, 0x72, 0x61, 0x66, 0x74, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x72, 0x61, 0x66, 0x74, + 0x48, 0x00, 0x52, 0x05, 0x64, 0x72, 0x61, 0x66, 0x74, 0x12, 0x51, 0x0a, 0x0a, 0x76, 0x63, 0x73, + 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x43, 0x53, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x48, + 0x00, 0x52, 0x09, 0x76, 0x63, 0x73, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x42, 0x0b, 0x0a, 0x09, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x52, + 0x05, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x22, 0x74, 0x0a, 0x17, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x4d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0x6c, 0x0a, 0x0f, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x72, 0x61, 0x66, 0x74, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0x97, 0x01, 0x0a, 0x13, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x43, 0x53, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 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, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x6e, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x62, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x32, 0x9f, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8a, 0x01, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x79, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x42, + 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x9b, 0x02, 0x0a, 0x1f, 0x63, + 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0e, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, + 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, + 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, + 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, + 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, + 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, + 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_buf_alpha_registry_v1alpha1_reference_proto_goTypes = []any{ + (*Reference)(nil), // 0: buf.alpha.registry.v1alpha1.Reference + (*RepositoryMainReference)(nil), // 1: buf.alpha.registry.v1alpha1.RepositoryMainReference + (*RepositoryDraft)(nil), // 2: buf.alpha.registry.v1alpha1.RepositoryDraft + (*RepositoryVCSCommit)(nil), // 3: buf.alpha.registry.v1alpha1.RepositoryVCSCommit + (*GetReferenceByNameRequest)(nil), // 4: buf.alpha.registry.v1alpha1.GetReferenceByNameRequest + (*GetReferenceByNameResponse)(nil), // 5: buf.alpha.registry.v1alpha1.GetReferenceByNameResponse + (*RepositoryBranch)(nil), // 6: buf.alpha.registry.v1alpha1.RepositoryBranch + (*RepositoryTag)(nil), // 7: buf.alpha.registry.v1alpha1.RepositoryTag + (*RepositoryCommit)(nil), // 8: buf.alpha.registry.v1alpha1.RepositoryCommit + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp +} +var file_buf_alpha_registry_v1alpha1_reference_proto_depIdxs = []int32{ + 6, // 0: buf.alpha.registry.v1alpha1.Reference.branch:type_name -> buf.alpha.registry.v1alpha1.RepositoryBranch + 7, // 1: buf.alpha.registry.v1alpha1.Reference.tag:type_name -> buf.alpha.registry.v1alpha1.RepositoryTag + 8, // 2: buf.alpha.registry.v1alpha1.Reference.commit:type_name -> buf.alpha.registry.v1alpha1.RepositoryCommit + 1, // 3: buf.alpha.registry.v1alpha1.Reference.main:type_name -> buf.alpha.registry.v1alpha1.RepositoryMainReference + 2, // 4: buf.alpha.registry.v1alpha1.Reference.draft:type_name -> buf.alpha.registry.v1alpha1.RepositoryDraft + 3, // 5: buf.alpha.registry.v1alpha1.Reference.vcs_commit:type_name -> buf.alpha.registry.v1alpha1.RepositoryVCSCommit + 8, // 6: buf.alpha.registry.v1alpha1.RepositoryMainReference.commit:type_name -> buf.alpha.registry.v1alpha1.RepositoryCommit + 8, // 7: buf.alpha.registry.v1alpha1.RepositoryDraft.commit:type_name -> buf.alpha.registry.v1alpha1.RepositoryCommit + 9, // 8: buf.alpha.registry.v1alpha1.RepositoryVCSCommit.create_time:type_name -> google.protobuf.Timestamp + 0, // 9: buf.alpha.registry.v1alpha1.GetReferenceByNameResponse.reference:type_name -> buf.alpha.registry.v1alpha1.Reference + 4, // 10: buf.alpha.registry.v1alpha1.ReferenceService.GetReferenceByName:input_type -> buf.alpha.registry.v1alpha1.GetReferenceByNameRequest + 5, // 11: buf.alpha.registry.v1alpha1.ReferenceService.GetReferenceByName:output_type -> buf.alpha.registry.v1alpha1.GetReferenceByNameResponse + 11, // [11:12] is the sub-list for method output_type + 10, // [10:11] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_reference_proto_init() } +func file_buf_alpha_registry_v1alpha1_reference_proto_init() { + if File_buf_alpha_registry_v1alpha1_reference_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_repository_branch_proto_init() + file_buf_alpha_registry_v1alpha1_repository_commit_proto_init() + file_buf_alpha_registry_v1alpha1_repository_tag_proto_init() + file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes[0].OneofWrappers = []any{ + (*reference_Branch)(nil), + (*reference_Tag)(nil), + (*reference_Commit)(nil), + (*reference_Main)(nil), + (*reference_Draft)(nil), + (*reference_VcsCommit)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_reference_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_reference_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_reference_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_reference_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_reference_proto = out.File + file_buf_alpha_registry_v1alpha1_reference_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_reference_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_reference_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository.pb.go index 50a96a4d9e..2de4212a01 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/repository.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -79,13 +80,8 @@ func (x Visibility) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use Visibility.Descriptor instead. -func (Visibility) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{0} -} - type Repository struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // primary key, unique, immutable Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // immutable @@ -145,11 +141,6 @@ func (x *Repository) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Repository.ProtoReflect.Descriptor instead. -func (*Repository) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{0} -} - func (x *Repository) GetId() string { if x != nil { return x.Id @@ -252,6 +243,207 @@ func (x *Repository) GetDefaultBranch() string { return "" } +func (x *Repository) SetId(v string) { + x.Id = v +} + +func (x *Repository) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *Repository) SetUpdateTime(v *timestamppb.Timestamp) { + x.UpdateTime = v +} + +func (x *Repository) SetName(v string) { + x.Name = v +} + +func (x *Repository) SetUserId(v string) { + x.Owner = &Repository_UserId{v} +} + +func (x *Repository) SetOrganizationId(v string) { + x.Owner = &Repository_OrganizationId{v} +} + +func (x *Repository) SetVisibility(v Visibility) { + x.Visibility = v +} + +func (x *Repository) SetDeprecated(v bool) { + x.Deprecated = v +} + +func (x *Repository) SetDeprecationMessage(v string) { + x.DeprecationMessage = v +} + +func (x *Repository) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *Repository) SetDescription(v string) { + x.Description = v +} + +func (x *Repository) SetUrl(v string) { + x.Url = v +} + +func (x *Repository) SetDefaultBranch(v string) { + x.DefaultBranch = v +} + +func (x *Repository) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *Repository) HasUpdateTime() bool { + if x == nil { + return false + } + return x.UpdateTime != nil +} + +func (x *Repository) HasOwner() bool { + if x == nil { + return false + } + return x.Owner != nil +} + +func (x *Repository) HasUserId() bool { + if x == nil { + return false + } + _, ok := x.Owner.(*Repository_UserId) + return ok +} + +func (x *Repository) HasOrganizationId() bool { + if x == nil { + return false + } + _, ok := x.Owner.(*Repository_OrganizationId) + return ok +} + +func (x *Repository) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *Repository) ClearUpdateTime() { + x.UpdateTime = nil +} + +func (x *Repository) ClearOwner() { + x.Owner = nil +} + +func (x *Repository) ClearUserId() { + if _, ok := x.Owner.(*Repository_UserId); ok { + x.Owner = nil + } +} + +func (x *Repository) ClearOrganizationId() { + if _, ok := x.Owner.(*Repository_OrganizationId); ok { + x.Owner = nil + } +} + +const Repository_Owner_not_set_case case_Repository_Owner = 0 +const Repository_UserId_case case_Repository_Owner = 5 +const Repository_OrganizationId_case case_Repository_Owner = 6 + +func (x *Repository) WhichOwner() case_Repository_Owner { + if x == nil { + return Repository_Owner_not_set_case + } + switch x.Owner.(type) { + case *Repository_UserId: + return Repository_UserId_case + case *Repository_OrganizationId: + return Repository_OrganizationId_case + default: + return Repository_Owner_not_set_case + } +} + +type Repository_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique, immutable + Id string + // immutable + CreateTime *timestamppb.Timestamp + // mutable + UpdateTime *timestamppb.Timestamp + // unique, mutable + Name string + // Fields of oneof Owner: + // foreign key, mutable + UserId *string + // foreign key, mutable + OrganizationId *string + // -- end of Owner + Visibility Visibility + // deprecated means this repository is deprecated. + Deprecated bool + // deprecation_message is the message shown if the repository is deprecated. + DeprecationMessage string + // owner_name is the name of the owner of the repository, + // either a username or organization name. + OwnerName string + // description is the user configurable description of the repository. + Description string + // url is the user configurable URL in the description of the repository, + // always included the scheme and will not have a #fragment suffix. + Url string + // default_branch in a BSR repository. It is used when syncing a git repository, to make sure both + // default branches (BSR and Git) are in sync. By default, every BSR repository is created with a + // "main" default branch. + DefaultBranch string +} + +func (b0 Repository_builder) Build() *Repository { + m0 := &Repository{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.CreateTime = b.CreateTime + x.UpdateTime = b.UpdateTime + x.Name = b.Name + if b.UserId != nil { + x.Owner = &Repository_UserId{*b.UserId} + } + if b.OrganizationId != nil { + x.Owner = &Repository_OrganizationId{*b.OrganizationId} + } + x.Visibility = b.Visibility + x.Deprecated = b.Deprecated + x.DeprecationMessage = b.DeprecationMessage + x.OwnerName = b.OwnerName + x.Description = b.Description + x.Url = b.Url + x.DefaultBranch = b.DefaultBranch + return m0 +} + +type case_Repository_Owner protoreflect.FieldNumber + +func (x case_Repository_Owner) String() string { + md := file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[0].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isRepository_Owner interface { isRepository_Owner() } @@ -271,7 +463,7 @@ func (*Repository_UserId) isRepository_Owner() {} func (*Repository_OrganizationId) isRepository_Owner() {} type RepositoryCounts struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TagsCount uint32 `protobuf:"varint,1,opt,name=tags_count,json=tagsCount,proto3" json:"tags_count,omitempty"` DraftsCount uint32 `protobuf:"varint,3,opt,name=drafts_count,json=draftsCount,proto3" json:"drafts_count,omitempty"` unknownFields protoimpl.UnknownFields @@ -303,11 +495,6 @@ func (x *RepositoryCounts) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepositoryCounts.ProtoReflect.Descriptor instead. -func (*RepositoryCounts) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{1} -} - func (x *RepositoryCounts) GetTagsCount() uint32 { if x != nil { return x.TagsCount @@ -322,8 +509,32 @@ func (x *RepositoryCounts) GetDraftsCount() uint32 { return 0 } +func (x *RepositoryCounts) SetTagsCount(v uint32) { + x.TagsCount = v +} + +func (x *RepositoryCounts) SetDraftsCount(v uint32) { + x.DraftsCount = v +} + +type RepositoryCounts_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TagsCount uint32 + DraftsCount uint32 +} + +func (b0 RepositoryCounts_builder) Build() *RepositoryCounts { + m0 := &RepositoryCounts{} + b, x := &b0, m0 + _, _ = b, x + x.TagsCount = b.TagsCount + x.DraftsCount = b.DraftsCount + return m0 +} + type RepositoryContributor struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // The ID of the for which the role belongs to. RepositoryId string `protobuf:"bytes,2,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` @@ -361,11 +572,6 @@ func (x *RepositoryContributor) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepositoryContributor.ProtoReflect.Descriptor instead. -func (*RepositoryContributor) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{2} -} - func (x *RepositoryContributor) GetUser() *User { if x != nil { return x.User @@ -394,8 +600,59 @@ func (x *RepositoryContributor) GetImplicitRole() RepositoryRole { return RepositoryRole_REPOSITORY_ROLE_UNSPECIFIED } +func (x *RepositoryContributor) SetUser(v *User) { + x.User = v +} + +func (x *RepositoryContributor) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *RepositoryContributor) SetExplicitRole(v RepositoryRole) { + x.ExplicitRole = v +} + +func (x *RepositoryContributor) SetImplicitRole(v RepositoryRole) { + x.ImplicitRole = v +} + +func (x *RepositoryContributor) HasUser() bool { + if x == nil { + return false + } + return x.User != nil +} + +func (x *RepositoryContributor) ClearUser() { + x.User = nil +} + +type RepositoryContributor_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User + // The ID of the for which the role belongs to. + RepositoryId string + // The role that the user has been explicitly assigned against the repository. + ExplicitRole RepositoryRole + // Optionally defines the role that the user has implicitly against the repository through the owning organization. + // If the repository does not belong to an organization or the user is not part of the owning organization, this is unset. + ImplicitRole RepositoryRole +} + +func (b0 RepositoryContributor_builder) Build() *RepositoryContributor { + m0 := &RepositoryContributor{} + b, x := &b0, m0 + _, _ = b, x + x.User = b.User + x.RepositoryId = b.RepositoryId + x.ExplicitRole = b.ExplicitRole + x.ImplicitRole = b.ImplicitRole + return m0 +} + type RepositoryMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The name of the repository. @@ -437,11 +694,6 @@ func (x *RepositoryMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepositoryMetadata.ProtoReflect.Descriptor instead. -func (*RepositoryMetadata) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{3} -} - func (x *RepositoryMetadata) GetId() string { if x != nil { return x.Id @@ -484,8 +736,73 @@ func (x *RepositoryMetadata) GetLatestSpdxLicenseId() string { return "" } +func (x *RepositoryMetadata) SetId(v string) { + x.Id = v +} + +func (x *RepositoryMetadata) SetName(v string) { + x.Name = v +} + +func (x *RepositoryMetadata) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *RepositoryMetadata) SetOwnerVerificationStatus(v VerificationStatus) { + x.OwnerVerificationStatus = v +} + +func (x *RepositoryMetadata) SetLatestCommitTime(v *timestamppb.Timestamp) { + x.LatestCommitTime = v +} + +func (x *RepositoryMetadata) SetLatestSpdxLicenseId(v string) { + x.LatestSpdxLicenseId = v +} + +func (x *RepositoryMetadata) HasLatestCommitTime() bool { + if x == nil { + return false + } + return x.LatestCommitTime != nil +} + +func (x *RepositoryMetadata) ClearLatestCommitTime() { + x.LatestCommitTime = nil +} + +type RepositoryMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository. + Id string + // The name of the repository. + Name string + // The owner name of the repository. + OwnerName string + // The verification status of the owner of the repository. + OwnerVerificationStatus VerificationStatus + // The commit time of the latest main commit in the repository. + LatestCommitTime *timestamppb.Timestamp + // The SPDX license ID of the latest main commit in the repository. + LatestSpdxLicenseId string +} + +func (b0 RepositoryMetadata_builder) Build() *RepositoryMetadata { + m0 := &RepositoryMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Name = b.Name + x.OwnerName = b.OwnerName + x.OwnerVerificationStatus = b.OwnerVerificationStatus + x.LatestCommitTime = b.LatestCommitTime + x.LatestSpdxLicenseId = b.LatestSpdxLicenseId + return m0 +} + type GetRepositoriesByFullNameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // minimum length is 1 // maximum length is 250 FullNames []string `protobuf:"bytes,1,rep,name=full_names,json=fullNames,proto3" json:"full_names,omitempty"` @@ -518,11 +835,6 @@ func (x *GetRepositoriesByFullNameRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoriesByFullNameRequest.ProtoReflect.Descriptor instead. -func (*GetRepositoriesByFullNameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{4} -} - func (x *GetRepositoriesByFullNameRequest) GetFullNames() []string { if x != nil { return x.FullNames @@ -530,8 +842,28 @@ func (x *GetRepositoriesByFullNameRequest) GetFullNames() []string { return nil } +func (x *GetRepositoriesByFullNameRequest) SetFullNames(v []string) { + x.FullNames = v +} + +type GetRepositoriesByFullNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // minimum length is 1 + // maximum length is 250 + FullNames []string +} + +func (b0 GetRepositoriesByFullNameRequest_builder) Build() *GetRepositoriesByFullNameRequest { + m0 := &GetRepositoriesByFullNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.FullNames = b.FullNames + return m0 +} + type GetRepositoriesByFullNameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Repositories []*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -562,11 +894,6 @@ func (x *GetRepositoriesByFullNameResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use GetRepositoriesByFullNameResponse.ProtoReflect.Descriptor instead. -func (*GetRepositoriesByFullNameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{5} -} - func (x *GetRepositoriesByFullNameResponse) GetRepositories() []*Repository { if x != nil { return x.Repositories @@ -574,8 +901,26 @@ func (x *GetRepositoriesByFullNameResponse) GetRepositories() []*Repository { return nil } +func (x *GetRepositoriesByFullNameResponse) SetRepositories(v []*Repository) { + x.Repositories = v +} + +type GetRepositoriesByFullNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repositories []*Repository +} + +func (b0 GetRepositoriesByFullNameResponse_builder) Build() *GetRepositoriesByFullNameResponse { + m0 := &GetRepositoriesByFullNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Repositories = b.Repositories + return m0 +} + type GetRepositoryRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -606,11 +951,6 @@ func (x *GetRepositoryRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryRequest.ProtoReflect.Descriptor instead. -func (*GetRepositoryRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{6} -} - func (x *GetRepositoryRequest) GetId() string { if x != nil { return x.Id @@ -618,8 +958,26 @@ func (x *GetRepositoryRequest) GetId() string { return "" } +func (x *GetRepositoryRequest) SetId(v string) { + x.Id = v +} + +type GetRepositoryRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 GetRepositoryRequest_builder) Build() *GetRepositoryRequest { + m0 := &GetRepositoryRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + type GetRepositoryResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` Counts *RepositoryCounts `protobuf:"bytes,2,opt,name=counts,proto3" json:"counts,omitempty"` unknownFields protoimpl.UnknownFields @@ -651,11 +1009,6 @@ func (x *GetRepositoryResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryResponse.ProtoReflect.Descriptor instead. -func (*GetRepositoryResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{7} -} - func (x *GetRepositoryResponse) GetRepository() *Repository { if x != nil { return x.Repository @@ -670,8 +1023,54 @@ func (x *GetRepositoryResponse) GetCounts() *RepositoryCounts { return nil } +func (x *GetRepositoryResponse) SetRepository(v *Repository) { + x.Repository = v +} + +func (x *GetRepositoryResponse) SetCounts(v *RepositoryCounts) { + x.Counts = v +} + +func (x *GetRepositoryResponse) HasRepository() bool { + if x == nil { + return false + } + return x.Repository != nil +} + +func (x *GetRepositoryResponse) HasCounts() bool { + if x == nil { + return false + } + return x.Counts != nil +} + +func (x *GetRepositoryResponse) ClearRepository() { + x.Repository = nil +} + +func (x *GetRepositoryResponse) ClearCounts() { + x.Counts = nil +} + +type GetRepositoryResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repository *Repository + Counts *RepositoryCounts +} + +func (b0 GetRepositoryResponse_builder) Build() *GetRepositoryResponse { + m0 := &GetRepositoryResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Repository = b.Repository + x.Counts = b.Counts + return m0 +} + type GetRepositoryByFullNameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` FullName string `protobuf:"bytes,1,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -702,11 +1101,6 @@ func (x *GetRepositoryByFullNameRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryByFullNameRequest.ProtoReflect.Descriptor instead. -func (*GetRepositoryByFullNameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{8} -} - func (x *GetRepositoryByFullNameRequest) GetFullName() string { if x != nil { return x.FullName @@ -714,8 +1108,26 @@ func (x *GetRepositoryByFullNameRequest) GetFullName() string { return "" } +func (x *GetRepositoryByFullNameRequest) SetFullName(v string) { + x.FullName = v +} + +type GetRepositoryByFullNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + FullName string +} + +func (b0 GetRepositoryByFullNameRequest_builder) Build() *GetRepositoryByFullNameRequest { + m0 := &GetRepositoryByFullNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.FullName = b.FullName + return m0 +} + type GetRepositoryByFullNameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` Counts *RepositoryCounts `protobuf:"bytes,2,opt,name=counts,proto3" json:"counts,omitempty"` unknownFields protoimpl.UnknownFields @@ -747,11 +1159,6 @@ func (x *GetRepositoryByFullNameResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryByFullNameResponse.ProtoReflect.Descriptor instead. -func (*GetRepositoryByFullNameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{9} -} - func (x *GetRepositoryByFullNameResponse) GetRepository() *Repository { if x != nil { return x.Repository @@ -766,8 +1173,54 @@ func (x *GetRepositoryByFullNameResponse) GetCounts() *RepositoryCounts { return nil } +func (x *GetRepositoryByFullNameResponse) SetRepository(v *Repository) { + x.Repository = v +} + +func (x *GetRepositoryByFullNameResponse) SetCounts(v *RepositoryCounts) { + x.Counts = v +} + +func (x *GetRepositoryByFullNameResponse) HasRepository() bool { + if x == nil { + return false + } + return x.Repository != nil +} + +func (x *GetRepositoryByFullNameResponse) HasCounts() bool { + if x == nil { + return false + } + return x.Counts != nil +} + +func (x *GetRepositoryByFullNameResponse) ClearRepository() { + x.Repository = nil +} + +func (x *GetRepositoryByFullNameResponse) ClearCounts() { + x.Counts = nil +} + +type GetRepositoryByFullNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repository *Repository + Counts *RepositoryCounts +} + +func (b0 GetRepositoryByFullNameResponse_builder) Build() *GetRepositoryByFullNameResponse { + m0 := &GetRepositoryByFullNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Repository = b.Repository + x.Counts = b.Counts + return m0 +} + type ListRepositoriesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The first page is returned if this is empty. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` @@ -801,11 +1254,6 @@ func (x *ListRepositoriesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListRepositoriesRequest.ProtoReflect.Descriptor instead. -func (*ListRepositoriesRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{10} -} - func (x *ListRepositoriesRequest) GetPageSize() uint32 { if x != nil { return x.PageSize @@ -827,8 +1275,39 @@ func (x *ListRepositoriesRequest) GetReverse() bool { return false } +func (x *ListRepositoriesRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListRepositoriesRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListRepositoriesRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListRepositoriesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListRepositoriesRequest_builder) Build() *ListRepositoriesRequest { + m0 := &ListRepositoriesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListRepositoriesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Repositories []*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -861,11 +1340,6 @@ func (x *ListRepositoriesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListRepositoriesResponse.ProtoReflect.Descriptor instead. -func (*ListRepositoriesResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{11} -} - func (x *ListRepositoriesResponse) GetRepositories() []*Repository { if x != nil { return x.Repositories @@ -880,8 +1354,33 @@ func (x *ListRepositoriesResponse) GetNextPageToken() string { return "" } +func (x *ListRepositoriesResponse) SetRepositories(v []*Repository) { + x.Repositories = v +} + +func (x *ListRepositoriesResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListRepositoriesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repositories []*Repository + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoriesResponse_builder) Build() *ListRepositoriesResponse { + m0 := &ListRepositoriesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Repositories = b.Repositories + x.NextPageToken = b.NextPageToken + return m0 +} + type ListUserRepositoriesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the user whose repositories should be listed. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` @@ -917,11 +1416,6 @@ func (x *ListUserRepositoriesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListUserRepositoriesRequest.ProtoReflect.Descriptor instead. -func (*ListUserRepositoriesRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{12} -} - func (x *ListUserRepositoriesRequest) GetUserId() string { if x != nil { return x.UserId @@ -950,8 +1444,46 @@ func (x *ListUserRepositoriesRequest) GetReverse() bool { return false } +func (x *ListUserRepositoriesRequest) SetUserId(v string) { + x.UserId = v +} + +func (x *ListUserRepositoriesRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListUserRepositoriesRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListUserRepositoriesRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListUserRepositoriesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the user whose repositories should be listed. + UserId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListUserRepositoriesRequest_builder) Build() *ListUserRepositoriesRequest { + m0 := &ListUserRepositoriesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.UserId = b.UserId + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListUserRepositoriesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Repositories []*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -984,11 +1516,6 @@ func (x *ListUserRepositoriesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListUserRepositoriesResponse.ProtoReflect.Descriptor instead. -func (*ListUserRepositoriesResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{13} -} - func (x *ListUserRepositoriesResponse) GetRepositories() []*Repository { if x != nil { return x.Repositories @@ -1003,8 +1530,33 @@ func (x *ListUserRepositoriesResponse) GetNextPageToken() string { return "" } +func (x *ListUserRepositoriesResponse) SetRepositories(v []*Repository) { + x.Repositories = v +} + +func (x *ListUserRepositoriesResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListUserRepositoriesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repositories []*Repository + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListUserRepositoriesResponse_builder) Build() *ListUserRepositoriesResponse { + m0 := &ListUserRepositoriesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Repositories = b.Repositories + x.NextPageToken = b.NextPageToken + return m0 +} + type ListRepositoriesUserCanAccessRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The first page is returned if this is empty. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` @@ -1038,11 +1590,6 @@ func (x *ListRepositoriesUserCanAccessRequest) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use ListRepositoriesUserCanAccessRequest.ProtoReflect.Descriptor instead. -func (*ListRepositoriesUserCanAccessRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{14} -} - func (x *ListRepositoriesUserCanAccessRequest) GetPageSize() uint32 { if x != nil { return x.PageSize @@ -1064,8 +1611,39 @@ func (x *ListRepositoriesUserCanAccessRequest) GetReverse() bool { return false } +func (x *ListRepositoriesUserCanAccessRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListRepositoriesUserCanAccessRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListRepositoriesUserCanAccessRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListRepositoriesUserCanAccessRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListRepositoriesUserCanAccessRequest_builder) Build() *ListRepositoriesUserCanAccessRequest { + m0 := &ListRepositoriesUserCanAccessRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListRepositoriesUserCanAccessResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Repositories []*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1098,11 +1676,6 @@ func (x *ListRepositoriesUserCanAccessResponse) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use ListRepositoriesUserCanAccessResponse.ProtoReflect.Descriptor instead. -func (*ListRepositoriesUserCanAccessResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{15} -} - func (x *ListRepositoriesUserCanAccessResponse) GetRepositories() []*Repository { if x != nil { return x.Repositories @@ -1117,8 +1690,33 @@ func (x *ListRepositoriesUserCanAccessResponse) GetNextPageToken() string { return "" } +func (x *ListRepositoriesUserCanAccessResponse) SetRepositories(v []*Repository) { + x.Repositories = v +} + +func (x *ListRepositoriesUserCanAccessResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListRepositoriesUserCanAccessResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repositories []*Repository + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoriesUserCanAccessResponse_builder) Build() *ListRepositoriesUserCanAccessResponse { + m0 := &ListRepositoriesUserCanAccessResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Repositories = b.Repositories + x.NextPageToken = b.NextPageToken + return m0 +} + type ListOrganizationRepositoriesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the organization whose repositories should be listed. OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` @@ -1154,11 +1752,6 @@ func (x *ListOrganizationRepositoriesRequest) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use ListOrganizationRepositoriesRequest.ProtoReflect.Descriptor instead. -func (*ListOrganizationRepositoriesRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{16} -} - func (x *ListOrganizationRepositoriesRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -1187,8 +1780,46 @@ func (x *ListOrganizationRepositoriesRequest) GetReverse() bool { return false } +func (x *ListOrganizationRepositoriesRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *ListOrganizationRepositoriesRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListOrganizationRepositoriesRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListOrganizationRepositoriesRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListOrganizationRepositoriesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization whose repositories should be listed. + OrganizationId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListOrganizationRepositoriesRequest_builder) Build() *ListOrganizationRepositoriesRequest { + m0 := &ListOrganizationRepositoriesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListOrganizationRepositoriesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Repositories []*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1221,11 +1852,6 @@ func (x *ListOrganizationRepositoriesResponse) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use ListOrganizationRepositoriesResponse.ProtoReflect.Descriptor instead. -func (*ListOrganizationRepositoriesResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{17} -} - func (x *ListOrganizationRepositoriesResponse) GetRepositories() []*Repository { if x != nil { return x.Repositories @@ -1240,8 +1866,33 @@ func (x *ListOrganizationRepositoriesResponse) GetNextPageToken() string { return "" } +func (x *ListOrganizationRepositoriesResponse) SetRepositories(v []*Repository) { + x.Repositories = v +} + +func (x *ListOrganizationRepositoriesResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListOrganizationRepositoriesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repositories []*Repository + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListOrganizationRepositoriesResponse_builder) Build() *ListOrganizationRepositoriesResponse { + m0 := &ListOrganizationRepositoriesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Repositories = b.Repositories + x.NextPageToken = b.NextPageToken + return m0 +} + type CreateRepositoryByFullNameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Must be unique across repositories. FullName string `protobuf:"bytes,1,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Visibility Visibility `protobuf:"varint,2,opt,name=visibility,proto3,enum=buf.alpha.registry.v1alpha1.Visibility" json:"visibility,omitempty"` @@ -1274,11 +1925,6 @@ func (x *CreateRepositoryByFullNameRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use CreateRepositoryByFullNameRequest.ProtoReflect.Descriptor instead. -func (*CreateRepositoryByFullNameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{18} -} - func (x *CreateRepositoryByFullNameRequest) GetFullName() string { if x != nil { return x.FullName @@ -1293,8 +1939,33 @@ func (x *CreateRepositoryByFullNameRequest) GetVisibility() Visibility { return Visibility_VISIBILITY_UNSPECIFIED } +func (x *CreateRepositoryByFullNameRequest) SetFullName(v string) { + x.FullName = v +} + +func (x *CreateRepositoryByFullNameRequest) SetVisibility(v Visibility) { + x.Visibility = v +} + +type CreateRepositoryByFullNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Must be unique across repositories. + FullName string + Visibility Visibility +} + +func (b0 CreateRepositoryByFullNameRequest_builder) Build() *CreateRepositoryByFullNameRequest { + m0 := &CreateRepositoryByFullNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.FullName = b.FullName + x.Visibility = b.Visibility + return m0 +} + type CreateRepositoryByFullNameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1325,11 +1996,6 @@ func (x *CreateRepositoryByFullNameResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use CreateRepositoryByFullNameResponse.ProtoReflect.Descriptor instead. -func (*CreateRepositoryByFullNameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{19} -} - func (x *CreateRepositoryByFullNameResponse) GetRepository() *Repository { if x != nil { return x.Repository @@ -1337,8 +2003,37 @@ func (x *CreateRepositoryByFullNameResponse) GetRepository() *Repository { return nil } +func (x *CreateRepositoryByFullNameResponse) SetRepository(v *Repository) { + x.Repository = v +} + +func (x *CreateRepositoryByFullNameResponse) HasRepository() bool { + if x == nil { + return false + } + return x.Repository != nil +} + +func (x *CreateRepositoryByFullNameResponse) ClearRepository() { + x.Repository = nil +} + +type CreateRepositoryByFullNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repository *Repository +} + +func (b0 CreateRepositoryByFullNameResponse_builder) Build() *CreateRepositoryByFullNameResponse { + m0 := &CreateRepositoryByFullNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Repository = b.Repository + return m0 +} + type DeleteRepositoryRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1369,11 +2064,6 @@ func (x *DeleteRepositoryRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteRepositoryRequest.ProtoReflect.Descriptor instead. -func (*DeleteRepositoryRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{20} -} - func (x *DeleteRepositoryRequest) GetId() string { if x != nil { return x.Id @@ -1381,8 +2071,26 @@ func (x *DeleteRepositoryRequest) GetId() string { return "" } +func (x *DeleteRepositoryRequest) SetId(v string) { + x.Id = v +} + +type DeleteRepositoryRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 DeleteRepositoryRequest_builder) Build() *DeleteRepositoryRequest { + m0 := &DeleteRepositoryRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + type DeleteRepositoryResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1412,13 +2120,20 @@ func (x *DeleteRepositoryResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteRepositoryResponse.ProtoReflect.Descriptor instead. -func (*DeleteRepositoryResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{21} +type DeleteRepositoryResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteRepositoryResponse_builder) Build() *DeleteRepositoryResponse { + m0 := &DeleteRepositoryResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type DeleteRepositoryByFullNameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` FullName string `protobuf:"bytes,1,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1449,11 +2164,6 @@ func (x *DeleteRepositoryByFullNameRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use DeleteRepositoryByFullNameRequest.ProtoReflect.Descriptor instead. -func (*DeleteRepositoryByFullNameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{22} -} - func (x *DeleteRepositoryByFullNameRequest) GetFullName() string { if x != nil { return x.FullName @@ -1461,8 +2171,26 @@ func (x *DeleteRepositoryByFullNameRequest) GetFullName() string { return "" } +func (x *DeleteRepositoryByFullNameRequest) SetFullName(v string) { + x.FullName = v +} + +type DeleteRepositoryByFullNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + FullName string +} + +func (b0 DeleteRepositoryByFullNameRequest_builder) Build() *DeleteRepositoryByFullNameRequest { + m0 := &DeleteRepositoryByFullNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.FullName = b.FullName + return m0 +} + type DeleteRepositoryByFullNameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1492,13 +2220,20 @@ func (x *DeleteRepositoryByFullNameResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use DeleteRepositoryByFullNameResponse.ProtoReflect.Descriptor instead. -func (*DeleteRepositoryByFullNameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{23} +type DeleteRepositoryByFullNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteRepositoryByFullNameResponse_builder) Build() *DeleteRepositoryByFullNameResponse { + m0 := &DeleteRepositoryByFullNameResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type DeprecateRepositoryByNameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` // A message shown along with the deprecation warning for this repository. @@ -1533,11 +2268,6 @@ func (x *DeprecateRepositoryByNameRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeprecateRepositoryByNameRequest.ProtoReflect.Descriptor instead. -func (*DeprecateRepositoryByNameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{24} -} - func (x *DeprecateRepositoryByNameRequest) GetOwnerName() string { if x != nil { return x.OwnerName @@ -1559,8 +2289,40 @@ func (x *DeprecateRepositoryByNameRequest) GetDeprecationMessage() string { return "" } +func (x *DeprecateRepositoryByNameRequest) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *DeprecateRepositoryByNameRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *DeprecateRepositoryByNameRequest) SetDeprecationMessage(v string) { + x.DeprecationMessage = v +} + +type DeprecateRepositoryByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + OwnerName string + RepositoryName string + // A message shown along with the deprecation warning for this repository. + // It must be a utf8 encoded string containing 256 or fewer characters. + DeprecationMessage string +} + +func (b0 DeprecateRepositoryByNameRequest_builder) Build() *DeprecateRepositoryByNameRequest { + m0 := &DeprecateRepositoryByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerName = b.OwnerName + x.RepositoryName = b.RepositoryName + x.DeprecationMessage = b.DeprecationMessage + return m0 +} + type DeprecateRepositoryByNameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1591,11 +2353,6 @@ func (x *DeprecateRepositoryByNameResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use DeprecateRepositoryByNameResponse.ProtoReflect.Descriptor instead. -func (*DeprecateRepositoryByNameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{25} -} - func (x *DeprecateRepositoryByNameResponse) GetRepository() *Repository { if x != nil { return x.Repository @@ -1603,8 +2360,37 @@ func (x *DeprecateRepositoryByNameResponse) GetRepository() *Repository { return nil } +func (x *DeprecateRepositoryByNameResponse) SetRepository(v *Repository) { + x.Repository = v +} + +func (x *DeprecateRepositoryByNameResponse) HasRepository() bool { + if x == nil { + return false + } + return x.Repository != nil +} + +func (x *DeprecateRepositoryByNameResponse) ClearRepository() { + x.Repository = nil +} + +type DeprecateRepositoryByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repository *Repository +} + +func (b0 DeprecateRepositoryByNameResponse_builder) Build() *DeprecateRepositoryByNameResponse { + m0 := &DeprecateRepositoryByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Repository = b.Repository + return m0 +} + type UndeprecateRepositoryByNameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` unknownFields protoimpl.UnknownFields @@ -1636,11 +2422,6 @@ func (x *UndeprecateRepositoryByNameRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use UndeprecateRepositoryByNameRequest.ProtoReflect.Descriptor instead. -func (*UndeprecateRepositoryByNameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{26} -} - func (x *UndeprecateRepositoryByNameRequest) GetOwnerName() string { if x != nil { return x.OwnerName @@ -1655,8 +2436,32 @@ func (x *UndeprecateRepositoryByNameRequest) GetRepositoryName() string { return "" } +func (x *UndeprecateRepositoryByNameRequest) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *UndeprecateRepositoryByNameRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +type UndeprecateRepositoryByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + OwnerName string + RepositoryName string +} + +func (b0 UndeprecateRepositoryByNameRequest_builder) Build() *UndeprecateRepositoryByNameRequest { + m0 := &UndeprecateRepositoryByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerName = b.OwnerName + x.RepositoryName = b.RepositoryName + return m0 +} + type UndeprecateRepositoryByNameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1687,11 +2492,6 @@ func (x *UndeprecateRepositoryByNameResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use UndeprecateRepositoryByNameResponse.ProtoReflect.Descriptor instead. -func (*UndeprecateRepositoryByNameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{27} -} - func (x *UndeprecateRepositoryByNameResponse) GetRepository() *Repository { if x != nil { return x.Repository @@ -1699,8 +2499,37 @@ func (x *UndeprecateRepositoryByNameResponse) GetRepository() *Repository { return nil } +func (x *UndeprecateRepositoryByNameResponse) SetRepository(v *Repository) { + x.Repository = v +} + +func (x *UndeprecateRepositoryByNameResponse) HasRepository() bool { + if x == nil { + return false + } + return x.Repository != nil +} + +func (x *UndeprecateRepositoryByNameResponse) ClearRepository() { + x.Repository = nil +} + +type UndeprecateRepositoryByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repository *Repository +} + +func (b0 UndeprecateRepositoryByNameResponse_builder) Build() *UndeprecateRepositoryByNameResponse { + m0 := &UndeprecateRepositoryByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Repository = b.Repository + return m0 +} + type SetRepositoryContributorRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository for which the user's role will be set. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` // The ID of the user whose role will be set. @@ -1737,11 +2566,6 @@ func (x *SetRepositoryContributorRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetRepositoryContributorRequest.ProtoReflect.Descriptor instead. -func (*SetRepositoryContributorRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{28} -} - func (x *SetRepositoryContributorRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -1763,8 +2587,42 @@ func (x *SetRepositoryContributorRequest) GetRepositoryRole() RepositoryRole { return RepositoryRole_REPOSITORY_ROLE_UNSPECIFIED } +func (x *SetRepositoryContributorRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *SetRepositoryContributorRequest) SetUserId(v string) { + x.UserId = v +} + +func (x *SetRepositoryContributorRequest) SetRepositoryRole(v RepositoryRole) { + x.RepositoryRole = v +} + +type SetRepositoryContributorRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which the user's role will be set. + RepositoryId string + // The ID of the user whose role will be set. + UserId string + // The role to assign to the user. + // Setting UNSPECIFIED means removing the user's role. + RepositoryRole RepositoryRole +} + +func (b0 SetRepositoryContributorRequest_builder) Build() *SetRepositoryContributorRequest { + m0 := &SetRepositoryContributorRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.UserId = b.UserId + x.RepositoryRole = b.RepositoryRole + return m0 +} + type SetRepositoryContributorResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1794,13 +2652,20 @@ func (x *SetRepositoryContributorResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetRepositoryContributorResponse.ProtoReflect.Descriptor instead. -func (*SetRepositoryContributorResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{29} +type SetRepositoryContributorResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SetRepositoryContributorResponse_builder) Build() *SetRepositoryContributorResponse { + m0 := &SetRepositoryContributorResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListRepositoryContributorsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The first page is returned if this is empty. @@ -1835,11 +2700,6 @@ func (x *ListRepositoryContributorsRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryContributorsRequest.ProtoReflect.Descriptor instead. -func (*ListRepositoryContributorsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{30} -} - func (x *ListRepositoryContributorsRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -1868,8 +2728,45 @@ func (x *ListRepositoryContributorsRequest) GetReverse() bool { return false } +func (x *ListRepositoryContributorsRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *ListRepositoryContributorsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListRepositoryContributorsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListRepositoryContributorsRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListRepositoryContributorsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListRepositoryContributorsRequest_builder) Build() *ListRepositoryContributorsRequest { + m0 := &ListRepositoryContributorsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListRepositoryContributorsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Users []*RepositoryContributor `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1902,11 +2799,6 @@ func (x *ListRepositoryContributorsResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryContributorsResponse.ProtoReflect.Descriptor instead. -func (*ListRepositoryContributorsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{31} -} - func (x *ListRepositoryContributorsResponse) GetUsers() []*RepositoryContributor { if x != nil { return x.Users @@ -1921,8 +2813,33 @@ func (x *ListRepositoryContributorsResponse) GetNextPageToken() string { return "" } +func (x *ListRepositoryContributorsResponse) SetUsers(v []*RepositoryContributor) { + x.Users = v +} + +func (x *ListRepositoryContributorsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListRepositoryContributorsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Users []*RepositoryContributor + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoryContributorsResponse_builder) Build() *ListRepositoryContributorsResponse { + m0 := &ListRepositoryContributorsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Users = b.Users + x.NextPageToken = b.NextPageToken + return m0 +} + type GetRepositoryContributorRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository for which to get the contributor information. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` // The ID of the user for which to get the contributor information. @@ -1956,11 +2873,6 @@ func (x *GetRepositoryContributorRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryContributorRequest.ProtoReflect.Descriptor instead. -func (*GetRepositoryContributorRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{32} -} - func (x *GetRepositoryContributorRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -1975,8 +2887,34 @@ func (x *GetRepositoryContributorRequest) GetUserId() string { return "" } +func (x *GetRepositoryContributorRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *GetRepositoryContributorRequest) SetUserId(v string) { + x.UserId = v +} + +type GetRepositoryContributorRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to get the contributor information. + RepositoryId string + // The ID of the user for which to get the contributor information. + UserId string +} + +func (b0 GetRepositoryContributorRequest_builder) Build() *GetRepositoryContributorRequest { + m0 := &GetRepositoryContributorRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.UserId = b.UserId + return m0 +} + type GetRepositoryContributorResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The contributor information of the user in the repository. User *RepositoryContributor `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields @@ -2008,11 +2946,6 @@ func (x *GetRepositoryContributorResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryContributorResponse.ProtoReflect.Descriptor instead. -func (*GetRepositoryContributorResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{33} -} - func (x *GetRepositoryContributorResponse) GetUser() *RepositoryContributor { if x != nil { return x.User @@ -2020,8 +2953,38 @@ func (x *GetRepositoryContributorResponse) GetUser() *RepositoryContributor { return nil } +func (x *GetRepositoryContributorResponse) SetUser(v *RepositoryContributor) { + x.User = v +} + +func (x *GetRepositoryContributorResponse) HasUser() bool { + if x == nil { + return false + } + return x.User != nil +} + +func (x *GetRepositoryContributorResponse) ClearUser() { + x.User = nil +} + +type GetRepositoryContributorResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The contributor information of the user in the repository. + User *RepositoryContributor +} + +func (b0 GetRepositoryContributorResponse_builder) Build() *GetRepositoryContributorResponse { + m0 := &GetRepositoryContributorResponse{} + b, x := &b0, m0 + _, _ = b, x + x.User = b.User + return m0 +} + type GetRepositorySettingsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository for which to get the settings. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -2053,11 +3016,6 @@ func (x *GetRepositorySettingsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositorySettingsRequest.ProtoReflect.Descriptor instead. -func (*GetRepositorySettingsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{34} -} - func (x *GetRepositorySettingsRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -2065,8 +3023,27 @@ func (x *GetRepositorySettingsRequest) GetRepositoryId() string { return "" } +func (x *GetRepositorySettingsRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +type GetRepositorySettingsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to get the settings. + RepositoryId string +} + +func (b0 GetRepositorySettingsRequest_builder) Build() *GetRepositorySettingsRequest { + m0 := &GetRepositorySettingsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + return m0 +} + type GetRepositorySettingsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The number of outside contributors in the repository, // excluding owning-organization's members that have an explicit role. ContributorsCount uint32 `protobuf:"varint,1,opt,name=contributors_count,json=contributorsCount,proto3" json:"contributors_count,omitempty"` @@ -2099,11 +3076,6 @@ func (x *GetRepositorySettingsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositorySettingsResponse.ProtoReflect.Descriptor instead. -func (*GetRepositorySettingsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{35} -} - func (x *GetRepositorySettingsResponse) GetContributorsCount() uint32 { if x != nil { return x.ContributorsCount @@ -2111,8 +3083,28 @@ func (x *GetRepositorySettingsResponse) GetContributorsCount() uint32 { return 0 } +func (x *GetRepositorySettingsResponse) SetContributorsCount(v uint32) { + x.ContributorsCount = v +} + +type GetRepositorySettingsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The number of outside contributors in the repository, + // excluding owning-organization's members that have an explicit role. + ContributorsCount uint32 +} + +func (b0 GetRepositorySettingsResponse_builder) Build() *GetRepositorySettingsResponse { + m0 := &GetRepositorySettingsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ContributorsCount = b.ContributorsCount + return m0 +} + type UpdateRepositorySettingsByNameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` // optional, update to visibility will only be made if this is specified. @@ -2152,11 +3144,6 @@ func (x *UpdateRepositorySettingsByNameRequest) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use UpdateRepositorySettingsByNameRequest.ProtoReflect.Descriptor instead. -func (*UpdateRepositorySettingsByNameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{36} -} - func (x *UpdateRepositorySettingsByNameRequest) GetOwnerName() string { if x != nil { return x.OwnerName @@ -2199,8 +3186,93 @@ func (x *UpdateRepositorySettingsByNameRequest) GetDefaultBranch() string { return "" } +func (x *UpdateRepositorySettingsByNameRequest) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *UpdateRepositorySettingsByNameRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *UpdateRepositorySettingsByNameRequest) SetVisibility(v Visibility) { + x.Visibility = v +} + +func (x *UpdateRepositorySettingsByNameRequest) SetDescription(v string) { + x.Description = &v +} + +func (x *UpdateRepositorySettingsByNameRequest) SetUrl(v string) { + x.Url = &v +} + +func (x *UpdateRepositorySettingsByNameRequest) SetDefaultBranch(v string) { + x.DefaultBranch = &v +} + +func (x *UpdateRepositorySettingsByNameRequest) HasDescription() bool { + if x == nil { + return false + } + return x.Description != nil +} + +func (x *UpdateRepositorySettingsByNameRequest) HasUrl() bool { + if x == nil { + return false + } + return x.Url != nil +} + +func (x *UpdateRepositorySettingsByNameRequest) HasDefaultBranch() bool { + if x == nil { + return false + } + return x.DefaultBranch != nil +} + +func (x *UpdateRepositorySettingsByNameRequest) ClearDescription() { + x.Description = nil +} + +func (x *UpdateRepositorySettingsByNameRequest) ClearUrl() { + x.Url = nil +} + +func (x *UpdateRepositorySettingsByNameRequest) ClearDefaultBranch() { + x.DefaultBranch = nil +} + +type UpdateRepositorySettingsByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + OwnerName string + RepositoryName string + // optional, update to visibility will only be made if this is specified. + Visibility Visibility + // optional, update to description will only be made when this is present + Description *string + // optional, update to url will only be made when this is present + Url *string + // optional, update to default_branch will only be made when this is present + DefaultBranch *string +} + +func (b0 UpdateRepositorySettingsByNameRequest_builder) Build() *UpdateRepositorySettingsByNameRequest { + m0 := &UpdateRepositorySettingsByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OwnerName = b.OwnerName + x.RepositoryName = b.RepositoryName + x.Visibility = b.Visibility + x.Description = b.Description + x.Url = b.Url + x.DefaultBranch = b.DefaultBranch + return m0 +} + type UpdateRepositorySettingsByNameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -2230,13 +3302,20 @@ func (x *UpdateRepositorySettingsByNameResponse) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use UpdateRepositorySettingsByNameResponse.ProtoReflect.Descriptor instead. -func (*UpdateRepositorySettingsByNameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{37} +type UpdateRepositorySettingsByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateRepositorySettingsByNameResponse_builder) Build() *UpdateRepositorySettingsByNameResponse { + m0 := &UpdateRepositorySettingsByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetRepositoriesMetadataRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The list of repository IDs to request the metadata. Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` unknownFields protoimpl.UnknownFields @@ -2268,11 +3347,6 @@ func (x *GetRepositoriesMetadataRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoriesMetadataRequest.ProtoReflect.Descriptor instead. -func (*GetRepositoriesMetadataRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{38} -} - func (x *GetRepositoriesMetadataRequest) GetIds() []string { if x != nil { return x.Ids @@ -2280,8 +3354,27 @@ func (x *GetRepositoriesMetadataRequest) GetIds() []string { return nil } +func (x *GetRepositoriesMetadataRequest) SetIds(v []string) { + x.Ids = v +} + +type GetRepositoriesMetadataRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of repository IDs to request the metadata. + Ids []string +} + +func (b0 GetRepositoriesMetadataRequest_builder) Build() *GetRepositoriesMetadataRequest { + m0 := &GetRepositoriesMetadataRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Ids = b.Ids + return m0 +} + type GetRepositoriesMetadataResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Metadata []*RepositoryMetadata `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -2312,11 +3405,6 @@ func (x *GetRepositoriesMetadataResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoriesMetadataResponse.ProtoReflect.Descriptor instead. -func (*GetRepositoriesMetadataResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{39} -} - func (x *GetRepositoriesMetadataResponse) GetMetadata() []*RepositoryMetadata { if x != nil { return x.Metadata @@ -2324,8 +3412,26 @@ func (x *GetRepositoriesMetadataResponse) GetMetadata() []*RepositoryMetadata { return nil } +func (x *GetRepositoriesMetadataResponse) SetMetadata(v []*RepositoryMetadata) { + x.Metadata = v +} + +type GetRepositoriesMetadataResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Metadata []*RepositoryMetadata +} + +func (b0 GetRepositoriesMetadataResponse_builder) Build() *GetRepositoriesMetadataResponse { + m0 := &GetRepositoriesMetadataResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Metadata = b.Metadata + return m0 +} + type GetRepositoryDependencyDOTStringRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the BSR repository. Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // The name of the BSR repository. @@ -2361,11 +3467,6 @@ func (x *GetRepositoryDependencyDOTStringRequest) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryDependencyDOTStringRequest.ProtoReflect.Descriptor instead. -func (*GetRepositoryDependencyDOTStringRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{40} -} - func (x *GetRepositoryDependencyDOTStringRequest) GetOwner() string { if x != nil { return x.Owner @@ -2387,8 +3488,41 @@ func (x *GetRepositoryDependencyDOTStringRequest) GetReference() string { return "" } +func (x *GetRepositoryDependencyDOTStringRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *GetRepositoryDependencyDOTStringRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *GetRepositoryDependencyDOTStringRequest) SetReference(v string) { + x.Reference = v +} + +type GetRepositoryDependencyDOTStringRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the BSR repository. + Owner string + // The name of the BSR repository. + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string +} + +func (b0 GetRepositoryDependencyDOTStringRequest_builder) Build() *GetRepositoryDependencyDOTStringRequest { + m0 := &GetRepositoryDependencyDOTStringRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Reference = b.Reference + return m0 +} + type GetRepositoryDependencyDOTStringResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The string DOT representation of the dependency graph for the repository. // // DOT language reference: https://graphviz.org/doc/info/lang.html @@ -2422,11 +3556,6 @@ func (x *GetRepositoryDependencyDOTStringResponse) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryDependencyDOTStringResponse.ProtoReflect.Descriptor instead. -func (*GetRepositoryDependencyDOTStringResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP(), []int{41} -} - func (x *GetRepositoryDependencyDOTStringResponse) GetDotString() string { if x != nil { return x.DotString @@ -2434,6 +3563,27 @@ func (x *GetRepositoryDependencyDOTStringResponse) GetDotString() string { return "" } +func (x *GetRepositoryDependencyDOTStringResponse) SetDotString(v string) { + x.DotString = v +} + +type GetRepositoryDependencyDOTStringResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The string DOT representation of the dependency graph for the repository. + // + // DOT language reference: https://graphviz.org/doc/info/lang.html + DotString string +} + +func (b0 GetRepositoryDependencyDOTStringResponse_builder) Build() *GetRepositoryDependencyDOTStringResponse { + m0 := &GetRepositoryDependencyDOTStringResponse{} + b, x := &b0, m0 + _, _ = b, x + x.DotString = b.DotString + return m0 +} + var File_buf_alpha_registry_v1alpha1_repository_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_repository_proto_rawDesc = []byte{ @@ -3016,18 +4166,6 @@ var file_buf_alpha_registry_v1alpha1_repository_proto_rawDesc = []byte{ 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_repository_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_repository_proto_rawDescData = file_buf_alpha_registry_v1alpha1_repository_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_repository_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_repository_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_repository_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_repository_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_repository_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_repository_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes = make([]protoimpl.MessageInfo, 42) var file_buf_alpha_registry_v1alpha1_repository_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_branch.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_branch.pb.go index 56fc9cabcd..f3367b9874 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_branch.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_branch.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/repository_branch.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -36,7 +37,7 @@ const ( ) type RepositoryBranch struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // primary key, unique. // branches are based on labels, so when a branch is pushed to, the ID will point to the // updated entry in the labels table. @@ -86,11 +87,6 @@ func (x *RepositoryBranch) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepositoryBranch.ProtoReflect.Descriptor instead. -func (*RepositoryBranch) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescGZIP(), []int{0} -} - func (x *RepositoryBranch) GetId() string { if x != nil { return x.Id @@ -147,8 +143,91 @@ func (x *RepositoryBranch) GetLastUpdateGitCommitHash() string { return "" } +func (x *RepositoryBranch) SetId(v string) { + x.Id = v +} + +func (x *RepositoryBranch) SetName(v string) { + x.Name = v +} + +func (x *RepositoryBranch) SetLatestCommitName(v string) { + x.LatestCommitName = v +} + +func (x *RepositoryBranch) SetIsMainBranch(v bool) { + x.IsMainBranch = v +} + +func (x *RepositoryBranch) SetLastUpdateTime(v *timestamppb.Timestamp) { + x.LastUpdateTime = v +} + +func (x *RepositoryBranch) SetLastUpdateUserId(v string) { + x.LastUpdateUserId = v +} + +func (x *RepositoryBranch) SetLastUpdateGitAuthorName(v string) { + x.LastUpdateGitAuthorName = v +} + +func (x *RepositoryBranch) SetLastUpdateGitCommitHash(v string) { + x.LastUpdateGitCommitHash = v +} + +func (x *RepositoryBranch) HasLastUpdateTime() bool { + if x == nil { + return false + } + return x.LastUpdateTime != nil +} + +func (x *RepositoryBranch) ClearLastUpdateTime() { + x.LastUpdateTime = nil +} + +type RepositoryBranch_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique. + // branches are based on labels, so when a branch is pushed to, the ID will point to the + // updated entry in the labels table. + Id string + // The name of the repository branch. + Name string + // The name of the latest commit on the branch. + LatestCommitName string + // is_main_branch denotes whether this branch is considered the main branch of the repository. + IsMainBranch bool + // The last update time of the branch. + LastUpdateTime *timestamppb.Timestamp + // The ID of the user who updated the branch. + LastUpdateUserId string + // The author name of the most recent associated git commit of the branch. May be an empty string + // if no commit in the branch history contains any associated git commit. + LastUpdateGitAuthorName string + // The git commit hash of the most recent associated git commit of the branch. May be an empty + // string if no commit in the branch history contains any associated git commit. + LastUpdateGitCommitHash string +} + +func (b0 RepositoryBranch_builder) Build() *RepositoryBranch { + m0 := &RepositoryBranch{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Name = b.Name + x.LatestCommitName = b.LatestCommitName + x.IsMainBranch = b.IsMainBranch + x.LastUpdateTime = b.LastUpdateTime + x.LastUpdateUserId = b.LastUpdateUserId + x.LastUpdateGitAuthorName = b.LastUpdateGitAuthorName + x.LastUpdateGitCommitHash = b.LastUpdateGitCommitHash + return m0 +} + type GetRepositoryBranchRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository for which the branch is requested. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` // The name of the branch to get. @@ -182,11 +261,6 @@ func (x *GetRepositoryBranchRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryBranchRequest.ProtoReflect.Descriptor instead. -func (*GetRepositoryBranchRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescGZIP(), []int{1} -} - func (x *GetRepositoryBranchRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -201,8 +275,34 @@ func (x *GetRepositoryBranchRequest) GetName() string { return "" } +func (x *GetRepositoryBranchRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *GetRepositoryBranchRequest) SetName(v string) { + x.Name = v +} + +type GetRepositoryBranchRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which the branch is requested. + RepositoryId string + // The name of the branch to get. + Name string +} + +func (b0 GetRepositoryBranchRequest_builder) Build() *GetRepositoryBranchRequest { + m0 := &GetRepositoryBranchRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.Name = b.Name + return m0 +} + type GetRepositoryBranchResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Branch *RepositoryBranch `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -233,11 +333,6 @@ func (x *GetRepositoryBranchResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryBranchResponse.ProtoReflect.Descriptor instead. -func (*GetRepositoryBranchResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescGZIP(), []int{2} -} - func (x *GetRepositoryBranchResponse) GetBranch() *RepositoryBranch { if x != nil { return x.Branch @@ -245,8 +340,37 @@ func (x *GetRepositoryBranchResponse) GetBranch() *RepositoryBranch { return nil } +func (x *GetRepositoryBranchResponse) SetBranch(v *RepositoryBranch) { + x.Branch = v +} + +func (x *GetRepositoryBranchResponse) HasBranch() bool { + if x == nil { + return false + } + return x.Branch != nil +} + +func (x *GetRepositoryBranchResponse) ClearBranch() { + x.Branch = nil +} + +type GetRepositoryBranchResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Branch *RepositoryBranch +} + +func (b0 GetRepositoryBranchResponse_builder) Build() *GetRepositoryBranchResponse { + m0 := &GetRepositoryBranchResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Branch = b.Branch + return m0 +} + type ListRepositoryBranchesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository whose branches should be listed. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` @@ -281,11 +405,6 @@ func (x *ListRepositoryBranchesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryBranchesRequest.ProtoReflect.Descriptor instead. -func (*ListRepositoryBranchesRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescGZIP(), []int{3} -} - func (x *ListRepositoryBranchesRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -307,8 +426,40 @@ func (x *ListRepositoryBranchesRequest) GetPageToken() string { return "" } +func (x *ListRepositoryBranchesRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *ListRepositoryBranchesRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListRepositoryBranchesRequest) SetPageToken(v string) { + x.PageToken = v +} + +type ListRepositoryBranchesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository whose branches should be listed. + RepositoryId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string +} + +func (b0 ListRepositoryBranchesRequest_builder) Build() *ListRepositoryBranchesRequest { + m0 := &ListRepositoryBranchesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.PageSize = b.PageSize + x.PageToken = b.PageToken + return m0 +} + type ListRepositoryBranchesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryBranches []*RepositoryBranch `protobuf:"bytes,1,rep,name=repository_branches,json=repositoryBranches,proto3" json:"repository_branches,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -341,11 +492,6 @@ func (x *ListRepositoryBranchesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryBranchesResponse.ProtoReflect.Descriptor instead. -func (*ListRepositoryBranchesResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescGZIP(), []int{4} -} - func (x *ListRepositoryBranchesResponse) GetRepositoryBranches() []*RepositoryBranch { if x != nil { return x.RepositoryBranches @@ -360,8 +506,33 @@ func (x *ListRepositoryBranchesResponse) GetNextPageToken() string { return "" } +func (x *ListRepositoryBranchesResponse) SetRepositoryBranches(v []*RepositoryBranch) { + x.RepositoryBranches = v +} + +func (x *ListRepositoryBranchesResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListRepositoryBranchesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryBranches []*RepositoryBranch + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoryBranchesResponse_builder) Build() *ListRepositoryBranchesResponse { + m0 := &ListRepositoryBranchesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryBranches = b.RepositoryBranches + x.NextPageToken = b.NextPageToken + return m0 +} + type ListRepositoryBranchesByReferenceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository whose branches should be listed. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` @@ -403,11 +574,6 @@ func (x *ListRepositoryBranchesByReferenceRequest) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryBranchesByReferenceRequest.ProtoReflect.Descriptor instead. -func (*ListRepositoryBranchesByReferenceRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescGZIP(), []int{5} -} - func (x *ListRepositoryBranchesByReferenceRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -454,6 +620,128 @@ func (x *ListRepositoryBranchesByReferenceRequest) GetVcsCommitHash() string { return "" } +func (x *ListRepositoryBranchesByReferenceRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *ListRepositoryBranchesByReferenceRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListRepositoryBranchesByReferenceRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListRepositoryBranchesByReferenceRequest) SetCommitName(v string) { + x.Reference = &ListRepositoryBranchesByReferenceRequest_CommitName{v} +} + +func (x *ListRepositoryBranchesByReferenceRequest) SetVcsCommitHash(v string) { + x.Reference = &ListRepositoryBranchesByReferenceRequest_VcsCommitHash{v} +} + +func (x *ListRepositoryBranchesByReferenceRequest) HasReference() bool { + if x == nil { + return false + } + return x.Reference != nil +} + +func (x *ListRepositoryBranchesByReferenceRequest) HasCommitName() bool { + if x == nil { + return false + } + _, ok := x.Reference.(*ListRepositoryBranchesByReferenceRequest_CommitName) + return ok +} + +func (x *ListRepositoryBranchesByReferenceRequest) HasVcsCommitHash() bool { + if x == nil { + return false + } + _, ok := x.Reference.(*ListRepositoryBranchesByReferenceRequest_VcsCommitHash) + return ok +} + +func (x *ListRepositoryBranchesByReferenceRequest) ClearReference() { + x.Reference = nil +} + +func (x *ListRepositoryBranchesByReferenceRequest) ClearCommitName() { + if _, ok := x.Reference.(*ListRepositoryBranchesByReferenceRequest_CommitName); ok { + x.Reference = nil + } +} + +func (x *ListRepositoryBranchesByReferenceRequest) ClearVcsCommitHash() { + if _, ok := x.Reference.(*ListRepositoryBranchesByReferenceRequest_VcsCommitHash); ok { + x.Reference = nil + } +} + +const ListRepositoryBranchesByReferenceRequest_Reference_not_set_case case_ListRepositoryBranchesByReferenceRequest_Reference = 0 +const ListRepositoryBranchesByReferenceRequest_CommitName_case case_ListRepositoryBranchesByReferenceRequest_Reference = 4 +const ListRepositoryBranchesByReferenceRequest_VcsCommitHash_case case_ListRepositoryBranchesByReferenceRequest_Reference = 5 + +func (x *ListRepositoryBranchesByReferenceRequest) WhichReference() case_ListRepositoryBranchesByReferenceRequest_Reference { + if x == nil { + return ListRepositoryBranchesByReferenceRequest_Reference_not_set_case + } + switch x.Reference.(type) { + case *ListRepositoryBranchesByReferenceRequest_CommitName: + return ListRepositoryBranchesByReferenceRequest_CommitName_case + case *ListRepositoryBranchesByReferenceRequest_VcsCommitHash: + return ListRepositoryBranchesByReferenceRequest_VcsCommitHash_case + default: + return ListRepositoryBranchesByReferenceRequest_Reference_not_set_case + } +} + +type ListRepositoryBranchesByReferenceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository whose branches should be listed. + RepositoryId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + // The reference by which to filter the returned branches. + + // Fields of oneof Reference: + // The name of a BSR commit. This will filter the branches to only those that include the commit. + CommitName *string + // The hash of a VCS commit. This will filter the branches to only those that include the commit + // associated with the VCS hash. + VcsCommitHash *string + // -- end of Reference +} + +func (b0 ListRepositoryBranchesByReferenceRequest_builder) Build() *ListRepositoryBranchesByReferenceRequest { + m0 := &ListRepositoryBranchesByReferenceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.PageSize = b.PageSize + x.PageToken = b.PageToken + if b.CommitName != nil { + x.Reference = &ListRepositoryBranchesByReferenceRequest_CommitName{*b.CommitName} + } + if b.VcsCommitHash != nil { + x.Reference = &ListRepositoryBranchesByReferenceRequest_VcsCommitHash{*b.VcsCommitHash} + } + return m0 +} + +type case_ListRepositoryBranchesByReferenceRequest_Reference protoreflect.FieldNumber + +func (x case_ListRepositoryBranchesByReferenceRequest_Reference) String() string { + md := file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[5].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isListRepositoryBranchesByReferenceRequest_Reference interface { isListRepositoryBranchesByReferenceRequest_Reference() } @@ -476,7 +764,7 @@ func (*ListRepositoryBranchesByReferenceRequest_VcsCommitHash) isListRepositoryB } type ListRepositoryBranchesByReferenceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryBranches []*RepositoryBranch `protobuf:"bytes,1,rep,name=repository_branches,json=repositoryBranches,proto3" json:"repository_branches,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -509,11 +797,6 @@ func (x *ListRepositoryBranchesByReferenceResponse) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryBranchesByReferenceResponse.ProtoReflect.Descriptor instead. -func (*ListRepositoryBranchesByReferenceResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescGZIP(), []int{6} -} - func (x *ListRepositoryBranchesByReferenceResponse) GetRepositoryBranches() []*RepositoryBranch { if x != nil { return x.RepositoryBranches @@ -528,8 +811,33 @@ func (x *ListRepositoryBranchesByReferenceResponse) GetNextPageToken() string { return "" } +func (x *ListRepositoryBranchesByReferenceResponse) SetRepositoryBranches(v []*RepositoryBranch) { + x.RepositoryBranches = v +} + +func (x *ListRepositoryBranchesByReferenceResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListRepositoryBranchesByReferenceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryBranches []*RepositoryBranch + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoryBranchesByReferenceResponse_builder) Build() *ListRepositoryBranchesByReferenceResponse { + m0 := &ListRepositoryBranchesByReferenceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryBranches = b.RepositoryBranches + x.NextPageToken = b.NextPageToken + return m0 +} + type GetCurrentDefaultBranchRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository whose current default branch is returned. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -561,11 +869,6 @@ func (x *GetCurrentDefaultBranchRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCurrentDefaultBranchRequest.ProtoReflect.Descriptor instead. -func (*GetCurrentDefaultBranchRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescGZIP(), []int{7} -} - func (x *GetCurrentDefaultBranchRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -573,8 +876,27 @@ func (x *GetCurrentDefaultBranchRequest) GetRepositoryId() string { return "" } +func (x *GetCurrentDefaultBranchRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +type GetCurrentDefaultBranchRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository whose current default branch is returned. + RepositoryId string +} + +func (b0 GetCurrentDefaultBranchRequest_builder) Build() *GetCurrentDefaultBranchRequest { + m0 := &GetCurrentDefaultBranchRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + return m0 +} + type GetCurrentDefaultBranchResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` CurrentDefaultBranch *RepositoryBranch `protobuf:"bytes,1,opt,name=current_default_branch,json=currentDefaultBranch,proto3" json:"current_default_branch,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -605,11 +927,6 @@ func (x *GetCurrentDefaultBranchResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCurrentDefaultBranchResponse.ProtoReflect.Descriptor instead. -func (*GetCurrentDefaultBranchResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescGZIP(), []int{8} -} - func (x *GetCurrentDefaultBranchResponse) GetCurrentDefaultBranch() *RepositoryBranch { if x != nil { return x.CurrentDefaultBranch @@ -617,6 +934,35 @@ func (x *GetCurrentDefaultBranchResponse) GetCurrentDefaultBranch() *RepositoryB return nil } +func (x *GetCurrentDefaultBranchResponse) SetCurrentDefaultBranch(v *RepositoryBranch) { + x.CurrentDefaultBranch = v +} + +func (x *GetCurrentDefaultBranchResponse) HasCurrentDefaultBranch() bool { + if x == nil { + return false + } + return x.CurrentDefaultBranch != nil +} + +func (x *GetCurrentDefaultBranchResponse) ClearCurrentDefaultBranch() { + x.CurrentDefaultBranch = nil +} + +type GetCurrentDefaultBranchResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + CurrentDefaultBranch *RepositoryBranch +} + +func (b0 GetCurrentDefaultBranchResponse_builder) Build() *GetCurrentDefaultBranchResponse { + m0 := &GetCurrentDefaultBranchResponse{} + b, x := &b0, m0 + _, _ = b, x + x.CurrentDefaultBranch = b.CurrentDefaultBranch + return m0 +} + var File_buf_alpha_registry_v1alpha1_repository_branch_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDesc = []byte{ @@ -784,18 +1130,6 @@ var file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDesc = []byte{ 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescData = file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_buf_alpha_registry_v1alpha1_repository_branch_proto_goTypes = []any{ (*RepositoryBranch)(nil), // 0: buf.alpha.registry.v1alpha1.RepositoryBranch diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_branch_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_branch_protoopaque.pb.go new file mode 100644 index 0000000000..2b48e81b7f --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_branch_protoopaque.pb.go @@ -0,0 +1,1164 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/repository_branch.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type RepositoryBranch struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_LatestCommitName string `protobuf:"bytes,3,opt,name=latest_commit_name,json=latestCommitName,proto3" json:"latest_commit_name,omitempty"` + xxx_hidden_IsMainBranch bool `protobuf:"varint,4,opt,name=is_main_branch,json=isMainBranch,proto3" json:"is_main_branch,omitempty"` + xxx_hidden_LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` + xxx_hidden_LastUpdateUserId string `protobuf:"bytes,6,opt,name=last_update_user_id,json=lastUpdateUserId,proto3" json:"last_update_user_id,omitempty"` + xxx_hidden_LastUpdateGitAuthorName string `protobuf:"bytes,7,opt,name=last_update_git_author_name,json=lastUpdateGitAuthorName,proto3" json:"last_update_git_author_name,omitempty"` + xxx_hidden_LastUpdateGitCommitHash string `protobuf:"bytes,8,opt,name=last_update_git_commit_hash,json=lastUpdateGitCommitHash,proto3" json:"last_update_git_commit_hash,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepositoryBranch) Reset() { + *x = RepositoryBranch{} + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepositoryBranch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepositoryBranch) ProtoMessage() {} + +func (x *RepositoryBranch) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RepositoryBranch) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *RepositoryBranch) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *RepositoryBranch) GetLatestCommitName() string { + if x != nil { + return x.xxx_hidden_LatestCommitName + } + return "" +} + +func (x *RepositoryBranch) GetIsMainBranch() bool { + if x != nil { + return x.xxx_hidden_IsMainBranch + } + return false +} + +func (x *RepositoryBranch) GetLastUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastUpdateTime + } + return nil +} + +func (x *RepositoryBranch) GetLastUpdateUserId() string { + if x != nil { + return x.xxx_hidden_LastUpdateUserId + } + return "" +} + +func (x *RepositoryBranch) GetLastUpdateGitAuthorName() string { + if x != nil { + return x.xxx_hidden_LastUpdateGitAuthorName + } + return "" +} + +func (x *RepositoryBranch) GetLastUpdateGitCommitHash() string { + if x != nil { + return x.xxx_hidden_LastUpdateGitCommitHash + } + return "" +} + +func (x *RepositoryBranch) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *RepositoryBranch) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *RepositoryBranch) SetLatestCommitName(v string) { + x.xxx_hidden_LatestCommitName = v +} + +func (x *RepositoryBranch) SetIsMainBranch(v bool) { + x.xxx_hidden_IsMainBranch = v +} + +func (x *RepositoryBranch) SetLastUpdateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LastUpdateTime = v +} + +func (x *RepositoryBranch) SetLastUpdateUserId(v string) { + x.xxx_hidden_LastUpdateUserId = v +} + +func (x *RepositoryBranch) SetLastUpdateGitAuthorName(v string) { + x.xxx_hidden_LastUpdateGitAuthorName = v +} + +func (x *RepositoryBranch) SetLastUpdateGitCommitHash(v string) { + x.xxx_hidden_LastUpdateGitCommitHash = v +} + +func (x *RepositoryBranch) HasLastUpdateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastUpdateTime != nil +} + +func (x *RepositoryBranch) ClearLastUpdateTime() { + x.xxx_hidden_LastUpdateTime = nil +} + +type RepositoryBranch_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique. + // branches are based on labels, so when a branch is pushed to, the ID will point to the + // updated entry in the labels table. + Id string + // The name of the repository branch. + Name string + // The name of the latest commit on the branch. + LatestCommitName string + // is_main_branch denotes whether this branch is considered the main branch of the repository. + IsMainBranch bool + // The last update time of the branch. + LastUpdateTime *timestamppb.Timestamp + // The ID of the user who updated the branch. + LastUpdateUserId string + // The author name of the most recent associated git commit of the branch. May be an empty string + // if no commit in the branch history contains any associated git commit. + LastUpdateGitAuthorName string + // The git commit hash of the most recent associated git commit of the branch. May be an empty + // string if no commit in the branch history contains any associated git commit. + LastUpdateGitCommitHash string +} + +func (b0 RepositoryBranch_builder) Build() *RepositoryBranch { + m0 := &RepositoryBranch{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Name = b.Name + x.xxx_hidden_LatestCommitName = b.LatestCommitName + x.xxx_hidden_IsMainBranch = b.IsMainBranch + x.xxx_hidden_LastUpdateTime = b.LastUpdateTime + x.xxx_hidden_LastUpdateUserId = b.LastUpdateUserId + x.xxx_hidden_LastUpdateGitAuthorName = b.LastUpdateGitAuthorName + x.xxx_hidden_LastUpdateGitCommitHash = b.LastUpdateGitCommitHash + return m0 +} + +type GetRepositoryBranchRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryBranchRequest) Reset() { + *x = GetRepositoryBranchRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryBranchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryBranchRequest) ProtoMessage() {} + +func (x *GetRepositoryBranchRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryBranchRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *GetRepositoryBranchRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GetRepositoryBranchRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *GetRepositoryBranchRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +type GetRepositoryBranchRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which the branch is requested. + RepositoryId string + // The name of the branch to get. + Name string +} + +func (b0 GetRepositoryBranchRequest_builder) Build() *GetRepositoryBranchRequest { + m0 := &GetRepositoryBranchRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_Name = b.Name + return m0 +} + +type GetRepositoryBranchResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Branch *RepositoryBranch `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryBranchResponse) Reset() { + *x = GetRepositoryBranchResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryBranchResponse) ProtoMessage() {} + +func (x *GetRepositoryBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryBranchResponse) GetBranch() *RepositoryBranch { + if x != nil { + return x.xxx_hidden_Branch + } + return nil +} + +func (x *GetRepositoryBranchResponse) SetBranch(v *RepositoryBranch) { + x.xxx_hidden_Branch = v +} + +func (x *GetRepositoryBranchResponse) HasBranch() bool { + if x == nil { + return false + } + return x.xxx_hidden_Branch != nil +} + +func (x *GetRepositoryBranchResponse) ClearBranch() { + x.xxx_hidden_Branch = nil +} + +type GetRepositoryBranchResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Branch *RepositoryBranch +} + +func (b0 GetRepositoryBranchResponse_builder) Build() *GetRepositoryBranchResponse { + m0 := &GetRepositoryBranchResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Branch = b.Branch + return m0 +} + +type ListRepositoryBranchesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryBranchesRequest) Reset() { + *x = ListRepositoryBranchesRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryBranchesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryBranchesRequest) ProtoMessage() {} + +func (x *ListRepositoryBranchesRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryBranchesRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *ListRepositoryBranchesRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListRepositoryBranchesRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListRepositoryBranchesRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *ListRepositoryBranchesRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListRepositoryBranchesRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +type ListRepositoryBranchesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository whose branches should be listed. + RepositoryId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string +} + +func (b0 ListRepositoryBranchesRequest_builder) Build() *ListRepositoryBranchesRequest { + m0 := &ListRepositoryBranchesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + return m0 +} + +type ListRepositoryBranchesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryBranches *[]*RepositoryBranch `protobuf:"bytes,1,rep,name=repository_branches,json=repositoryBranches,proto3" json:"repository_branches,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryBranchesResponse) Reset() { + *x = ListRepositoryBranchesResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryBranchesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryBranchesResponse) ProtoMessage() {} + +func (x *ListRepositoryBranchesResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryBranchesResponse) GetRepositoryBranches() []*RepositoryBranch { + if x != nil { + if x.xxx_hidden_RepositoryBranches != nil { + return *x.xxx_hidden_RepositoryBranches + } + } + return nil +} + +func (x *ListRepositoryBranchesResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListRepositoryBranchesResponse) SetRepositoryBranches(v []*RepositoryBranch) { + x.xxx_hidden_RepositoryBranches = &v +} + +func (x *ListRepositoryBranchesResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListRepositoryBranchesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryBranches []*RepositoryBranch + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoryBranchesResponse_builder) Build() *ListRepositoryBranchesResponse { + m0 := &ListRepositoryBranchesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryBranches = &b.RepositoryBranches + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListRepositoryBranchesByReferenceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reference isListRepositoryBranchesByReferenceRequest_Reference `protobuf_oneof:"reference"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryBranchesByReferenceRequest) Reset() { + *x = ListRepositoryBranchesByReferenceRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryBranchesByReferenceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryBranchesByReferenceRequest) ProtoMessage() {} + +func (x *ListRepositoryBranchesByReferenceRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryBranchesByReferenceRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *ListRepositoryBranchesByReferenceRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListRepositoryBranchesByReferenceRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListRepositoryBranchesByReferenceRequest) GetCommitName() string { + if x != nil { + if x, ok := x.xxx_hidden_Reference.(*listRepositoryBranchesByReferenceRequest_CommitName); ok { + return x.CommitName + } + } + return "" +} + +func (x *ListRepositoryBranchesByReferenceRequest) GetVcsCommitHash() string { + if x != nil { + if x, ok := x.xxx_hidden_Reference.(*listRepositoryBranchesByReferenceRequest_VcsCommitHash); ok { + return x.VcsCommitHash + } + } + return "" +} + +func (x *ListRepositoryBranchesByReferenceRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *ListRepositoryBranchesByReferenceRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListRepositoryBranchesByReferenceRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListRepositoryBranchesByReferenceRequest) SetCommitName(v string) { + x.xxx_hidden_Reference = &listRepositoryBranchesByReferenceRequest_CommitName{v} +} + +func (x *ListRepositoryBranchesByReferenceRequest) SetVcsCommitHash(v string) { + x.xxx_hidden_Reference = &listRepositoryBranchesByReferenceRequest_VcsCommitHash{v} +} + +func (x *ListRepositoryBranchesByReferenceRequest) HasReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_Reference != nil +} + +func (x *ListRepositoryBranchesByReferenceRequest) HasCommitName() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Reference.(*listRepositoryBranchesByReferenceRequest_CommitName) + return ok +} + +func (x *ListRepositoryBranchesByReferenceRequest) HasVcsCommitHash() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Reference.(*listRepositoryBranchesByReferenceRequest_VcsCommitHash) + return ok +} + +func (x *ListRepositoryBranchesByReferenceRequest) ClearReference() { + x.xxx_hidden_Reference = nil +} + +func (x *ListRepositoryBranchesByReferenceRequest) ClearCommitName() { + if _, ok := x.xxx_hidden_Reference.(*listRepositoryBranchesByReferenceRequest_CommitName); ok { + x.xxx_hidden_Reference = nil + } +} + +func (x *ListRepositoryBranchesByReferenceRequest) ClearVcsCommitHash() { + if _, ok := x.xxx_hidden_Reference.(*listRepositoryBranchesByReferenceRequest_VcsCommitHash); ok { + x.xxx_hidden_Reference = nil + } +} + +const ListRepositoryBranchesByReferenceRequest_Reference_not_set_case case_ListRepositoryBranchesByReferenceRequest_Reference = 0 +const ListRepositoryBranchesByReferenceRequest_CommitName_case case_ListRepositoryBranchesByReferenceRequest_Reference = 4 +const ListRepositoryBranchesByReferenceRequest_VcsCommitHash_case case_ListRepositoryBranchesByReferenceRequest_Reference = 5 + +func (x *ListRepositoryBranchesByReferenceRequest) WhichReference() case_ListRepositoryBranchesByReferenceRequest_Reference { + if x == nil { + return ListRepositoryBranchesByReferenceRequest_Reference_not_set_case + } + switch x.xxx_hidden_Reference.(type) { + case *listRepositoryBranchesByReferenceRequest_CommitName: + return ListRepositoryBranchesByReferenceRequest_CommitName_case + case *listRepositoryBranchesByReferenceRequest_VcsCommitHash: + return ListRepositoryBranchesByReferenceRequest_VcsCommitHash_case + default: + return ListRepositoryBranchesByReferenceRequest_Reference_not_set_case + } +} + +type ListRepositoryBranchesByReferenceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository whose branches should be listed. + RepositoryId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + // The reference by which to filter the returned branches. + + // Fields of oneof xxx_hidden_Reference: + // The name of a BSR commit. This will filter the branches to only those that include the commit. + CommitName *string + // The hash of a VCS commit. This will filter the branches to only those that include the commit + // associated with the VCS hash. + VcsCommitHash *string + // -- end of xxx_hidden_Reference +} + +func (b0 ListRepositoryBranchesByReferenceRequest_builder) Build() *ListRepositoryBranchesByReferenceRequest { + m0 := &ListRepositoryBranchesByReferenceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + if b.CommitName != nil { + x.xxx_hidden_Reference = &listRepositoryBranchesByReferenceRequest_CommitName{*b.CommitName} + } + if b.VcsCommitHash != nil { + x.xxx_hidden_Reference = &listRepositoryBranchesByReferenceRequest_VcsCommitHash{*b.VcsCommitHash} + } + return m0 +} + +type case_ListRepositoryBranchesByReferenceRequest_Reference protoreflect.FieldNumber + +func (x case_ListRepositoryBranchesByReferenceRequest_Reference) String() string { + md := file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[5].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isListRepositoryBranchesByReferenceRequest_Reference interface { + isListRepositoryBranchesByReferenceRequest_Reference() +} + +type listRepositoryBranchesByReferenceRequest_CommitName struct { + // The name of a BSR commit. This will filter the branches to only those that include the commit. + CommitName string `protobuf:"bytes,4,opt,name=commit_name,json=commitName,proto3,oneof"` +} + +type listRepositoryBranchesByReferenceRequest_VcsCommitHash struct { + // The hash of a VCS commit. This will filter the branches to only those that include the commit + // associated with the VCS hash. + VcsCommitHash string `protobuf:"bytes,5,opt,name=vcs_commit_hash,json=vcsCommitHash,proto3,oneof"` +} + +func (*listRepositoryBranchesByReferenceRequest_CommitName) isListRepositoryBranchesByReferenceRequest_Reference() { +} + +func (*listRepositoryBranchesByReferenceRequest_VcsCommitHash) isListRepositoryBranchesByReferenceRequest_Reference() { +} + +type ListRepositoryBranchesByReferenceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryBranches *[]*RepositoryBranch `protobuf:"bytes,1,rep,name=repository_branches,json=repositoryBranches,proto3" json:"repository_branches,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryBranchesByReferenceResponse) Reset() { + *x = ListRepositoryBranchesByReferenceResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryBranchesByReferenceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryBranchesByReferenceResponse) ProtoMessage() {} + +func (x *ListRepositoryBranchesByReferenceResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryBranchesByReferenceResponse) GetRepositoryBranches() []*RepositoryBranch { + if x != nil { + if x.xxx_hidden_RepositoryBranches != nil { + return *x.xxx_hidden_RepositoryBranches + } + } + return nil +} + +func (x *ListRepositoryBranchesByReferenceResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListRepositoryBranchesByReferenceResponse) SetRepositoryBranches(v []*RepositoryBranch) { + x.xxx_hidden_RepositoryBranches = &v +} + +func (x *ListRepositoryBranchesByReferenceResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListRepositoryBranchesByReferenceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryBranches []*RepositoryBranch + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoryBranchesByReferenceResponse_builder) Build() *ListRepositoryBranchesByReferenceResponse { + m0 := &ListRepositoryBranchesByReferenceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryBranches = &b.RepositoryBranches + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type GetCurrentDefaultBranchRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCurrentDefaultBranchRequest) Reset() { + *x = GetCurrentDefaultBranchRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCurrentDefaultBranchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCurrentDefaultBranchRequest) ProtoMessage() {} + +func (x *GetCurrentDefaultBranchRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetCurrentDefaultBranchRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *GetCurrentDefaultBranchRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +type GetCurrentDefaultBranchRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository whose current default branch is returned. + RepositoryId string +} + +func (b0 GetCurrentDefaultBranchRequest_builder) Build() *GetCurrentDefaultBranchRequest { + m0 := &GetCurrentDefaultBranchRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + return m0 +} + +type GetCurrentDefaultBranchResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CurrentDefaultBranch *RepositoryBranch `protobuf:"bytes,1,opt,name=current_default_branch,json=currentDefaultBranch,proto3" json:"current_default_branch,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCurrentDefaultBranchResponse) Reset() { + *x = GetCurrentDefaultBranchResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCurrentDefaultBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCurrentDefaultBranchResponse) ProtoMessage() {} + +func (x *GetCurrentDefaultBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetCurrentDefaultBranchResponse) GetCurrentDefaultBranch() *RepositoryBranch { + if x != nil { + return x.xxx_hidden_CurrentDefaultBranch + } + return nil +} + +func (x *GetCurrentDefaultBranchResponse) SetCurrentDefaultBranch(v *RepositoryBranch) { + x.xxx_hidden_CurrentDefaultBranch = v +} + +func (x *GetCurrentDefaultBranchResponse) HasCurrentDefaultBranch() bool { + if x == nil { + return false + } + return x.xxx_hidden_CurrentDefaultBranch != nil +} + +func (x *GetCurrentDefaultBranchResponse) ClearCurrentDefaultBranch() { + x.xxx_hidden_CurrentDefaultBranch = nil +} + +type GetCurrentDefaultBranchResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + CurrentDefaultBranch *RepositoryBranch +} + +func (b0 GetCurrentDefaultBranchResponse_builder) Build() *GetCurrentDefaultBranchResponse { + m0 := &GetCurrentDefaultBranchResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CurrentDefaultBranch = b.CurrentDefaultBranch + return m0 +} + +var File_buf_alpha_registry_v1alpha1_repository_branch_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDesc = []byte{ + 0x0a, 0x33, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xfb, 0x02, 0x0a, 0x10, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 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, 0x2c, 0x0a, 0x12, + 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x73, + 0x5f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x4d, 0x61, 0x69, 0x6e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x12, 0x44, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x1b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x67, 0x69, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x6c, 0x61, 0x73, 0x74, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x1b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x5f, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x61, + 0x73, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x48, 0x61, 0x73, + 0x68, 0x22, 0x55, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x64, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x80, + 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, + 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, + 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x22, 0xa8, 0x01, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x52, 0x12, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, + 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xe5, 0x01, 0x0a, + 0x28, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x1b, + 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0b, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, + 0x0f, 0x76, 0x63, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x76, 0x63, 0x73, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x48, 0x61, 0x73, 0x68, 0x42, 0x0b, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x22, 0xb3, 0x01, 0x0a, 0x29, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x42, + 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x12, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, + 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x45, 0x0a, 0x1e, 0x47, 0x65, + 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, + 0x64, 0x22, 0x86, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, + 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x16, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, + 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x52, 0x14, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x32, 0x98, 0x05, 0x0a, 0x17, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x37, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x96, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, + 0x73, 0x12, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, + 0xb7, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x45, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x46, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, + 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x99, 0x01, 0x0a, 0x17, 0x47, 0x65, + 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x3b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0xa2, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x15, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, + 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, + 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, + 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, + 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, + 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_buf_alpha_registry_v1alpha1_repository_branch_proto_goTypes = []any{ + (*RepositoryBranch)(nil), // 0: buf.alpha.registry.v1alpha1.RepositoryBranch + (*GetRepositoryBranchRequest)(nil), // 1: buf.alpha.registry.v1alpha1.GetRepositoryBranchRequest + (*GetRepositoryBranchResponse)(nil), // 2: buf.alpha.registry.v1alpha1.GetRepositoryBranchResponse + (*ListRepositoryBranchesRequest)(nil), // 3: buf.alpha.registry.v1alpha1.ListRepositoryBranchesRequest + (*ListRepositoryBranchesResponse)(nil), // 4: buf.alpha.registry.v1alpha1.ListRepositoryBranchesResponse + (*ListRepositoryBranchesByReferenceRequest)(nil), // 5: buf.alpha.registry.v1alpha1.ListRepositoryBranchesByReferenceRequest + (*ListRepositoryBranchesByReferenceResponse)(nil), // 6: buf.alpha.registry.v1alpha1.ListRepositoryBranchesByReferenceResponse + (*GetCurrentDefaultBranchRequest)(nil), // 7: buf.alpha.registry.v1alpha1.GetCurrentDefaultBranchRequest + (*GetCurrentDefaultBranchResponse)(nil), // 8: buf.alpha.registry.v1alpha1.GetCurrentDefaultBranchResponse + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp +} +var file_buf_alpha_registry_v1alpha1_repository_branch_proto_depIdxs = []int32{ + 9, // 0: buf.alpha.registry.v1alpha1.RepositoryBranch.last_update_time:type_name -> google.protobuf.Timestamp + 0, // 1: buf.alpha.registry.v1alpha1.GetRepositoryBranchResponse.branch:type_name -> buf.alpha.registry.v1alpha1.RepositoryBranch + 0, // 2: buf.alpha.registry.v1alpha1.ListRepositoryBranchesResponse.repository_branches:type_name -> buf.alpha.registry.v1alpha1.RepositoryBranch + 0, // 3: buf.alpha.registry.v1alpha1.ListRepositoryBranchesByReferenceResponse.repository_branches:type_name -> buf.alpha.registry.v1alpha1.RepositoryBranch + 0, // 4: buf.alpha.registry.v1alpha1.GetCurrentDefaultBranchResponse.current_default_branch:type_name -> buf.alpha.registry.v1alpha1.RepositoryBranch + 1, // 5: buf.alpha.registry.v1alpha1.RepositoryBranchService.GetRepositoryBranch:input_type -> buf.alpha.registry.v1alpha1.GetRepositoryBranchRequest + 3, // 6: buf.alpha.registry.v1alpha1.RepositoryBranchService.ListRepositoryBranches:input_type -> buf.alpha.registry.v1alpha1.ListRepositoryBranchesRequest + 5, // 7: buf.alpha.registry.v1alpha1.RepositoryBranchService.ListRepositoryBranchesByReference:input_type -> buf.alpha.registry.v1alpha1.ListRepositoryBranchesByReferenceRequest + 7, // 8: buf.alpha.registry.v1alpha1.RepositoryBranchService.GetCurrentDefaultBranch:input_type -> buf.alpha.registry.v1alpha1.GetCurrentDefaultBranchRequest + 2, // 9: buf.alpha.registry.v1alpha1.RepositoryBranchService.GetRepositoryBranch:output_type -> buf.alpha.registry.v1alpha1.GetRepositoryBranchResponse + 4, // 10: buf.alpha.registry.v1alpha1.RepositoryBranchService.ListRepositoryBranches:output_type -> buf.alpha.registry.v1alpha1.ListRepositoryBranchesResponse + 6, // 11: buf.alpha.registry.v1alpha1.RepositoryBranchService.ListRepositoryBranchesByReference:output_type -> buf.alpha.registry.v1alpha1.ListRepositoryBranchesByReferenceResponse + 8, // 12: buf.alpha.registry.v1alpha1.RepositoryBranchService.GetCurrentDefaultBranch:output_type -> buf.alpha.registry.v1alpha1.GetCurrentDefaultBranchResponse + 9, // [9:13] is the sub-list for method output_type + 5, // [5:9] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_repository_branch_proto_init() } +func file_buf_alpha_registry_v1alpha1_repository_branch_proto_init() { + if File_buf_alpha_registry_v1alpha1_repository_branch_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes[5].OneofWrappers = []any{ + (*listRepositoryBranchesByReferenceRequest_CommitName)(nil), + (*listRepositoryBranchesByReferenceRequest_VcsCommitHash)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_repository_branch_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_repository_branch_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_repository_branch_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_repository_branch_proto = out.File + file_buf_alpha_registry_v1alpha1_repository_branch_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_repository_branch_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_repository_branch_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_commit.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_commit.pb.go index bebb4419fa..c972f48c71 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_commit.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_commit.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/repository_commit.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -36,7 +37,7 @@ const ( ) type RepositoryCommit struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // primary key, unique, immutable Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // immutable @@ -97,11 +98,6 @@ func (x *RepositoryCommit) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepositoryCommit.ProtoReflect.Descriptor instead. -func (*RepositoryCommit) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescGZIP(), []int{0} -} - func (x *RepositoryCommit) GetId() string { if x != nil { return x.Id @@ -193,8 +189,127 @@ func (x *RepositoryCommit) GetB5Digest() string { return "" } +func (x *RepositoryCommit) SetId(v string) { + x.Id = v +} + +func (x *RepositoryCommit) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *RepositoryCommit) SetDigest(v string) { + x.Digest = v +} + +func (x *RepositoryCommit) SetName(v string) { + x.Name = v +} + +func (x *RepositoryCommit) SetBranch(v string) { + x.Branch = v +} + +func (x *RepositoryCommit) SetAuthor(v string) { + x.Author = v +} + +func (x *RepositoryCommit) SetTags(v []*RepositoryTag) { + x.Tags = v +} + +func (x *RepositoryCommit) SetDraftName(v string) { + x.DraftName = v +} + +func (x *RepositoryCommit) SetSpdxLicenseId(v string) { + x.SpdxLicenseId = v +} + +func (x *RepositoryCommit) SetManifestDigest(v string) { + x.ManifestDigest = v +} + +func (x *RepositoryCommit) SetTagCount(v int64) { + x.TagCount = v +} + +func (x *RepositoryCommit) SetGitCommitsCount(v int64) { + x.GitCommitsCount = v +} + +func (x *RepositoryCommit) SetB5Digest(v string) { + x.B5Digest = v +} + +func (x *RepositoryCommit) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *RepositoryCommit) ClearCreateTime() { + x.CreateTime = nil +} + +type RepositoryCommit_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique, immutable + Id string + // immutable + CreateTime *timestamppb.Timestamp + // The digest of the commit. + Digest string + // The name of the commit. + // This is what is referenced by users. + // Unique, immutable. + Name string + // The branch on which this commit was created. + Branch string + // The username of the user who authored this commit. + Author string + // The tags associated with this commit + Tags []*RepositoryTag + // The commit's draft name, if it is a draft commit. + DraftName string + // spdx_license_id is the license of the commit, based on the + // license file pushed, which should be one of the identifier defined in + // https://spdx.org/licenses, and will be not set if the license file is not + // presented or cannot be classified into a known license. + SpdxLicenseId string + // The manifest digest of the commit. + ManifestDigest string + // Number of tags associated with the commit. + TagCount int64 + // Number of git commits with associated with the BSR commit. + GitCommitsCount int64 + // The b5 digest of the commit. + B5Digest string +} + +func (b0 RepositoryCommit_builder) Build() *RepositoryCommit { + m0 := &RepositoryCommit{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.CreateTime = b.CreateTime + x.Digest = b.Digest + x.Name = b.Name + x.Branch = b.Branch + x.Author = b.Author + x.Tags = b.Tags + x.DraftName = b.DraftName + x.SpdxLicenseId = b.SpdxLicenseId + x.ManifestDigest = b.ManifestDigest + x.TagCount = b.TagCount + x.GitCommitsCount = b.GitCommitsCount + x.B5Digest = b.B5Digest + return m0 +} + type ListRepositoryCommitsByBranchRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the repository which the repository branch belongs to. RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` // The name of the repository which the repository branch belongs to. @@ -237,11 +352,6 @@ func (x *ListRepositoryCommitsByBranchRequest) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryCommitsByBranchRequest.ProtoReflect.Descriptor instead. -func (*ListRepositoryCommitsByBranchRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescGZIP(), []int{1} -} - func (x *ListRepositoryCommitsByBranchRequest) GetRepositoryOwner() string { if x != nil { return x.RepositoryOwner @@ -284,8 +394,63 @@ func (x *ListRepositoryCommitsByBranchRequest) GetReverse() bool { return false } +func (x *ListRepositoryCommitsByBranchRequest) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *ListRepositoryCommitsByBranchRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *ListRepositoryCommitsByBranchRequest) SetRepositoryBranchName(v string) { + x.RepositoryBranchName = v +} + +func (x *ListRepositoryCommitsByBranchRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListRepositoryCommitsByBranchRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListRepositoryCommitsByBranchRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListRepositoryCommitsByBranchRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository which the repository branch belongs to. + RepositoryOwner string + // The name of the repository which the repository branch belongs to. + RepositoryName string + // The name of the repository branch whose commits should be listed. + RepositoryBranchName string + PageSize uint32 + // For now this is the id of he last commit returned in the previous page. + // This is directly set by the frontend when listing track history starting with a + // specific commit. If we page_token to be anything other than a commit id + // we need to change the frontend as well. + PageToken string + Reverse bool +} + +func (b0 ListRepositoryCommitsByBranchRequest_builder) Build() *ListRepositoryCommitsByBranchRequest { + m0 := &ListRepositoryCommitsByBranchRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.RepositoryBranchName = b.RepositoryBranchName + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListRepositoryCommitsByBranchResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryCommits []*RepositoryCommit `protobuf:"bytes,1,rep,name=repository_commits,json=repositoryCommits,proto3" json:"repository_commits,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -317,11 +482,6 @@ func (x *ListRepositoryCommitsByBranchResponse) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryCommitsByBranchResponse.ProtoReflect.Descriptor instead. -func (*ListRepositoryCommitsByBranchResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescGZIP(), []int{2} -} - func (x *ListRepositoryCommitsByBranchResponse) GetRepositoryCommits() []*RepositoryCommit { if x != nil { return x.RepositoryCommits @@ -336,8 +496,32 @@ func (x *ListRepositoryCommitsByBranchResponse) GetNextPageToken() string { return "" } +func (x *ListRepositoryCommitsByBranchResponse) SetRepositoryCommits(v []*RepositoryCommit) { + x.RepositoryCommits = v +} + +func (x *ListRepositoryCommitsByBranchResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListRepositoryCommitsByBranchResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryCommits []*RepositoryCommit + NextPageToken string +} + +func (b0 ListRepositoryCommitsByBranchResponse_builder) Build() *ListRepositoryCommitsByBranchResponse { + m0 := &ListRepositoryCommitsByBranchResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryCommits = b.RepositoryCommits + x.NextPageToken = b.NextPageToken + return m0 +} + type ListRepositoryCommitsByReferenceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the repository which the repository reference belongs to. RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` // The name of the repository which the repository reference belongs to. @@ -377,11 +561,6 @@ func (x *ListRepositoryCommitsByReferenceRequest) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryCommitsByReferenceRequest.ProtoReflect.Descriptor instead. -func (*ListRepositoryCommitsByReferenceRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescGZIP(), []int{3} -} - func (x *ListRepositoryCommitsByReferenceRequest) GetRepositoryOwner() string { if x != nil { return x.RepositoryOwner @@ -424,8 +603,60 @@ func (x *ListRepositoryCommitsByReferenceRequest) GetReverse() bool { return false } +func (x *ListRepositoryCommitsByReferenceRequest) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *ListRepositoryCommitsByReferenceRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *ListRepositoryCommitsByReferenceRequest) SetReference(v string) { + x.Reference = v +} + +func (x *ListRepositoryCommitsByReferenceRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListRepositoryCommitsByReferenceRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListRepositoryCommitsByReferenceRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListRepositoryCommitsByReferenceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository which the repository reference belongs to. + RepositoryOwner string + // The name of the repository which the repository reference belongs to. + RepositoryName string + // The optional reference used to resolve repository commits. Can be a tag or commit. + // If unspecified, will use the repository's default_branch. + Reference string + PageSize uint32 + PageToken string + Reverse bool +} + +func (b0 ListRepositoryCommitsByReferenceRequest_builder) Build() *ListRepositoryCommitsByReferenceRequest { + m0 := &ListRepositoryCommitsByReferenceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.Reference = b.Reference + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListRepositoryCommitsByReferenceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryCommits []*RepositoryCommit `protobuf:"bytes,1,rep,name=repository_commits,json=repositoryCommits,proto3" json:"repository_commits,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -457,11 +688,6 @@ func (x *ListRepositoryCommitsByReferenceResponse) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryCommitsByReferenceResponse.ProtoReflect.Descriptor instead. -func (*ListRepositoryCommitsByReferenceResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescGZIP(), []int{4} -} - func (x *ListRepositoryCommitsByReferenceResponse) GetRepositoryCommits() []*RepositoryCommit { if x != nil { return x.RepositoryCommits @@ -476,8 +702,32 @@ func (x *ListRepositoryCommitsByReferenceResponse) GetNextPageToken() string { return "" } +func (x *ListRepositoryCommitsByReferenceResponse) SetRepositoryCommits(v []*RepositoryCommit) { + x.RepositoryCommits = v +} + +func (x *ListRepositoryCommitsByReferenceResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListRepositoryCommitsByReferenceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryCommits []*RepositoryCommit + NextPageToken string +} + +func (b0 ListRepositoryCommitsByReferenceResponse_builder) Build() *ListRepositoryCommitsByReferenceResponse { + m0 := &ListRepositoryCommitsByReferenceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryCommits = b.RepositoryCommits + x.NextPageToken = b.NextPageToken + return m0 +} + type GetRepositoryCommitByReferenceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the repository which the reference belongs to. RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` // The name of the repository which the reference belongs to. @@ -514,11 +764,6 @@ func (x *GetRepositoryCommitByReferenceRequest) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryCommitByReferenceRequest.ProtoReflect.Descriptor instead. -func (*GetRepositoryCommitByReferenceRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescGZIP(), []int{5} -} - func (x *GetRepositoryCommitByReferenceRequest) GetRepositoryOwner() string { if x != nil { return x.RepositoryOwner @@ -540,8 +785,42 @@ func (x *GetRepositoryCommitByReferenceRequest) GetReference() string { return "" } +func (x *GetRepositoryCommitByReferenceRequest) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *GetRepositoryCommitByReferenceRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *GetRepositoryCommitByReferenceRequest) SetReference(v string) { + x.Reference = v +} + +type GetRepositoryCommitByReferenceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository which the reference belongs to. + RepositoryOwner string + // The name of the repository which the reference belongs to. + RepositoryName string + // The optional reference that should be resolved to a commit. Can be a tag or commit. + // If unspecified, will use the repository's default_branch. + Reference string +} + +func (b0 GetRepositoryCommitByReferenceRequest_builder) Build() *GetRepositoryCommitByReferenceRequest { + m0 := &GetRepositoryCommitByReferenceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.Reference = b.Reference + return m0 +} + type GetRepositoryCommitByReferenceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryCommit *RepositoryCommit `protobuf:"bytes,1,opt,name=repository_commit,json=repositoryCommit,proto3" json:"repository_commit,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -572,11 +851,6 @@ func (x *GetRepositoryCommitByReferenceResponse) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryCommitByReferenceResponse.ProtoReflect.Descriptor instead. -func (*GetRepositoryCommitByReferenceResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescGZIP(), []int{6} -} - func (x *GetRepositoryCommitByReferenceResponse) GetRepositoryCommit() *RepositoryCommit { if x != nil { return x.RepositoryCommit @@ -584,8 +858,37 @@ func (x *GetRepositoryCommitByReferenceResponse) GetRepositoryCommit() *Reposito return nil } +func (x *GetRepositoryCommitByReferenceResponse) SetRepositoryCommit(v *RepositoryCommit) { + x.RepositoryCommit = v +} + +func (x *GetRepositoryCommitByReferenceResponse) HasRepositoryCommit() bool { + if x == nil { + return false + } + return x.RepositoryCommit != nil +} + +func (x *GetRepositoryCommitByReferenceResponse) ClearRepositoryCommit() { + x.RepositoryCommit = nil +} + +type GetRepositoryCommitByReferenceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryCommit *RepositoryCommit +} + +func (b0 GetRepositoryCommitByReferenceResponse_builder) Build() *GetRepositoryCommitByReferenceResponse { + m0 := &GetRepositoryCommitByReferenceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryCommit = b.RepositoryCommit + return m0 +} + type ListRepositoryDraftCommitsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the repository which the repository branch belongs to. RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` // The name of the repository which the repository branch belongs to. @@ -624,11 +927,6 @@ func (x *ListRepositoryDraftCommitsRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryDraftCommitsRequest.ProtoReflect.Descriptor instead. -func (*ListRepositoryDraftCommitsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescGZIP(), []int{7} -} - func (x *ListRepositoryDraftCommitsRequest) GetRepositoryOwner() string { if x != nil { return x.RepositoryOwner @@ -664,8 +962,54 @@ func (x *ListRepositoryDraftCommitsRequest) GetReverse() bool { return false } +func (x *ListRepositoryDraftCommitsRequest) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *ListRepositoryDraftCommitsRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *ListRepositoryDraftCommitsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListRepositoryDraftCommitsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListRepositoryDraftCommitsRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListRepositoryDraftCommitsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository which the repository branch belongs to. + RepositoryOwner string + // The name of the repository which the repository branch belongs to. + RepositoryName string + PageSize uint32 + PageToken string + // By default, draft commits are ordered by last update time descending. + // Reverse orders them ascending. + Reverse bool +} + +func (b0 ListRepositoryDraftCommitsRequest_builder) Build() *ListRepositoryDraftCommitsRequest { + m0 := &ListRepositoryDraftCommitsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListRepositoryDraftCommitsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Each commit will have draft_name set. RepositoryCommits []*RepositoryCommit `protobuf:"bytes,1,rep,name=repository_commits,json=repositoryCommits,proto3" json:"repository_commits,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -698,11 +1042,6 @@ func (x *ListRepositoryDraftCommitsResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryDraftCommitsResponse.ProtoReflect.Descriptor instead. -func (*ListRepositoryDraftCommitsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescGZIP(), []int{8} -} - func (x *ListRepositoryDraftCommitsResponse) GetRepositoryCommits() []*RepositoryCommit { if x != nil { return x.RepositoryCommits @@ -717,8 +1056,33 @@ func (x *ListRepositoryDraftCommitsResponse) GetNextPageToken() string { return "" } +func (x *ListRepositoryDraftCommitsResponse) SetRepositoryCommits(v []*RepositoryCommit) { + x.RepositoryCommits = v +} + +func (x *ListRepositoryDraftCommitsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListRepositoryDraftCommitsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Each commit will have draft_name set. + RepositoryCommits []*RepositoryCommit + NextPageToken string +} + +func (b0 ListRepositoryDraftCommitsResponse_builder) Build() *ListRepositoryDraftCommitsResponse { + m0 := &ListRepositoryDraftCommitsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryCommits = b.RepositoryCommits + x.NextPageToken = b.NextPageToken + return m0 +} + type DeleteRepositoryDraftCommitRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the repository which the repository branch belongs to. RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` // The name of the repository which the repository branch belongs to. @@ -754,11 +1118,6 @@ func (x *DeleteRepositoryDraftCommitRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use DeleteRepositoryDraftCommitRequest.ProtoReflect.Descriptor instead. -func (*DeleteRepositoryDraftCommitRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescGZIP(), []int{9} -} - func (x *DeleteRepositoryDraftCommitRequest) GetRepositoryOwner() string { if x != nil { return x.RepositoryOwner @@ -780,8 +1139,41 @@ func (x *DeleteRepositoryDraftCommitRequest) GetDraftName() string { return "" } +func (x *DeleteRepositoryDraftCommitRequest) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *DeleteRepositoryDraftCommitRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *DeleteRepositoryDraftCommitRequest) SetDraftName(v string) { + x.DraftName = v +} + +type DeleteRepositoryDraftCommitRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository which the repository branch belongs to. + RepositoryOwner string + // The name of the repository which the repository branch belongs to. + RepositoryName string + // The name of the draft to delete. + DraftName string +} + +func (b0 DeleteRepositoryDraftCommitRequest_builder) Build() *DeleteRepositoryDraftCommitRequest { + m0 := &DeleteRepositoryDraftCommitRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.DraftName = b.DraftName + return m0 +} + type DeleteRepositoryDraftCommitResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -811,9 +1203,16 @@ func (x *DeleteRepositoryDraftCommitResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use DeleteRepositoryDraftCommitResponse.ProtoReflect.Descriptor instead. -func (*DeleteRepositoryDraftCommitResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescGZIP(), []int{10} +type DeleteRepositoryDraftCommitResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteRepositoryDraftCommitResponse_builder) Build() *DeleteRepositoryDraftCommitResponse { + m0 := &DeleteRepositoryDraftCommitResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } var File_buf_alpha_registry_v1alpha1_repository_commit_proto protoreflect.FileDescriptor @@ -1046,18 +1445,6 @@ var file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDesc = []byte{ 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescData = file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_buf_alpha_registry_v1alpha1_repository_commit_proto_goTypes = []any{ (*RepositoryCommit)(nil), // 0: buf.alpha.registry.v1alpha1.RepositoryCommit diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_commit_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_commit_protoopaque.pb.go new file mode 100644 index 0000000000..cf866545a9 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_commit_protoopaque.pb.go @@ -0,0 +1,1479 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/repository_commit.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type RepositoryCommit struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + xxx_hidden_Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Branch string `protobuf:"bytes,5,opt,name=branch,proto3" json:"branch,omitempty"` + xxx_hidden_Author string `protobuf:"bytes,7,opt,name=author,proto3" json:"author,omitempty"` + xxx_hidden_Tags *[]*RepositoryTag `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` + xxx_hidden_DraftName string `protobuf:"bytes,9,opt,name=draft_name,json=draftName,proto3" json:"draft_name,omitempty"` + xxx_hidden_SpdxLicenseId string `protobuf:"bytes,10,opt,name=spdx_license_id,json=spdxLicenseId,proto3" json:"spdx_license_id,omitempty"` + xxx_hidden_ManifestDigest string `protobuf:"bytes,11,opt,name=manifest_digest,json=manifestDigest,proto3" json:"manifest_digest,omitempty"` + xxx_hidden_TagCount int64 `protobuf:"varint,12,opt,name=tag_count,json=tagCount,proto3" json:"tag_count,omitempty"` + xxx_hidden_GitCommitsCount int64 `protobuf:"varint,13,opt,name=git_commits_count,json=gitCommitsCount,proto3" json:"git_commits_count,omitempty"` + xxx_hidden_B5Digest string `protobuf:"bytes,14,opt,name=b5_digest,json=b5Digest,proto3" json:"b5_digest,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepositoryCommit) Reset() { + *x = RepositoryCommit{} + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepositoryCommit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepositoryCommit) ProtoMessage() {} + +func (x *RepositoryCommit) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RepositoryCommit) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *RepositoryCommit) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *RepositoryCommit) GetDigest() string { + if x != nil { + return x.xxx_hidden_Digest + } + return "" +} + +func (x *RepositoryCommit) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *RepositoryCommit) GetBranch() string { + if x != nil { + return x.xxx_hidden_Branch + } + return "" +} + +func (x *RepositoryCommit) GetAuthor() string { + if x != nil { + return x.xxx_hidden_Author + } + return "" +} + +func (x *RepositoryCommit) GetTags() []*RepositoryTag { + if x != nil { + if x.xxx_hidden_Tags != nil { + return *x.xxx_hidden_Tags + } + } + return nil +} + +func (x *RepositoryCommit) GetDraftName() string { + if x != nil { + return x.xxx_hidden_DraftName + } + return "" +} + +func (x *RepositoryCommit) GetSpdxLicenseId() string { + if x != nil { + return x.xxx_hidden_SpdxLicenseId + } + return "" +} + +func (x *RepositoryCommit) GetManifestDigest() string { + if x != nil { + return x.xxx_hidden_ManifestDigest + } + return "" +} + +func (x *RepositoryCommit) GetTagCount() int64 { + if x != nil { + return x.xxx_hidden_TagCount + } + return 0 +} + +func (x *RepositoryCommit) GetGitCommitsCount() int64 { + if x != nil { + return x.xxx_hidden_GitCommitsCount + } + return 0 +} + +func (x *RepositoryCommit) GetB5Digest() string { + if x != nil { + return x.xxx_hidden_B5Digest + } + return "" +} + +func (x *RepositoryCommit) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *RepositoryCommit) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *RepositoryCommit) SetDigest(v string) { + x.xxx_hidden_Digest = v +} + +func (x *RepositoryCommit) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *RepositoryCommit) SetBranch(v string) { + x.xxx_hidden_Branch = v +} + +func (x *RepositoryCommit) SetAuthor(v string) { + x.xxx_hidden_Author = v +} + +func (x *RepositoryCommit) SetTags(v []*RepositoryTag) { + x.xxx_hidden_Tags = &v +} + +func (x *RepositoryCommit) SetDraftName(v string) { + x.xxx_hidden_DraftName = v +} + +func (x *RepositoryCommit) SetSpdxLicenseId(v string) { + x.xxx_hidden_SpdxLicenseId = v +} + +func (x *RepositoryCommit) SetManifestDigest(v string) { + x.xxx_hidden_ManifestDigest = v +} + +func (x *RepositoryCommit) SetTagCount(v int64) { + x.xxx_hidden_TagCount = v +} + +func (x *RepositoryCommit) SetGitCommitsCount(v int64) { + x.xxx_hidden_GitCommitsCount = v +} + +func (x *RepositoryCommit) SetB5Digest(v string) { + x.xxx_hidden_B5Digest = v +} + +func (x *RepositoryCommit) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *RepositoryCommit) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +type RepositoryCommit_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique, immutable + Id string + // immutable + CreateTime *timestamppb.Timestamp + // The digest of the commit. + Digest string + // The name of the commit. + // This is what is referenced by users. + // Unique, immutable. + Name string + // The branch on which this commit was created. + Branch string + // The username of the user who authored this commit. + Author string + // The tags associated with this commit + Tags []*RepositoryTag + // The commit's draft name, if it is a draft commit. + DraftName string + // spdx_license_id is the license of the commit, based on the + // license file pushed, which should be one of the identifier defined in + // https://spdx.org/licenses, and will be not set if the license file is not + // presented or cannot be classified into a known license. + SpdxLicenseId string + // The manifest digest of the commit. + ManifestDigest string + // Number of tags associated with the commit. + TagCount int64 + // Number of git commits with associated with the BSR commit. + GitCommitsCount int64 + // The b5 digest of the commit. + B5Digest string +} + +func (b0 RepositoryCommit_builder) Build() *RepositoryCommit { + m0 := &RepositoryCommit{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_Digest = b.Digest + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Branch = b.Branch + x.xxx_hidden_Author = b.Author + x.xxx_hidden_Tags = &b.Tags + x.xxx_hidden_DraftName = b.DraftName + x.xxx_hidden_SpdxLicenseId = b.SpdxLicenseId + x.xxx_hidden_ManifestDigest = b.ManifestDigest + x.xxx_hidden_TagCount = b.TagCount + x.xxx_hidden_GitCommitsCount = b.GitCommitsCount + x.xxx_hidden_B5Digest = b.B5Digest + return m0 +} + +type ListRepositoryCommitsByBranchRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_RepositoryBranchName string `protobuf:"bytes,3,opt,name=repository_branch_name,json=repositoryBranchName,proto3" json:"repository_branch_name,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,6,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryCommitsByBranchRequest) Reset() { + *x = ListRepositoryCommitsByBranchRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryCommitsByBranchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryCommitsByBranchRequest) ProtoMessage() {} + +func (x *ListRepositoryCommitsByBranchRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryCommitsByBranchRequest) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *ListRepositoryCommitsByBranchRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *ListRepositoryCommitsByBranchRequest) GetRepositoryBranchName() string { + if x != nil { + return x.xxx_hidden_RepositoryBranchName + } + return "" +} + +func (x *ListRepositoryCommitsByBranchRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListRepositoryCommitsByBranchRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListRepositoryCommitsByBranchRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListRepositoryCommitsByBranchRequest) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *ListRepositoryCommitsByBranchRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *ListRepositoryCommitsByBranchRequest) SetRepositoryBranchName(v string) { + x.xxx_hidden_RepositoryBranchName = v +} + +func (x *ListRepositoryCommitsByBranchRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListRepositoryCommitsByBranchRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListRepositoryCommitsByBranchRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListRepositoryCommitsByBranchRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository which the repository branch belongs to. + RepositoryOwner string + // The name of the repository which the repository branch belongs to. + RepositoryName string + // The name of the repository branch whose commits should be listed. + RepositoryBranchName string + PageSize uint32 + // For now this is the id of he last commit returned in the previous page. + // This is directly set by the frontend when listing track history starting with a + // specific commit. If we page_token to be anything other than a commit id + // we need to change the frontend as well. + PageToken string + Reverse bool +} + +func (b0 ListRepositoryCommitsByBranchRequest_builder) Build() *ListRepositoryCommitsByBranchRequest { + m0 := &ListRepositoryCommitsByBranchRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_RepositoryBranchName = b.RepositoryBranchName + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListRepositoryCommitsByBranchResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryCommits *[]*RepositoryCommit `protobuf:"bytes,1,rep,name=repository_commits,json=repositoryCommits,proto3" json:"repository_commits,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryCommitsByBranchResponse) Reset() { + *x = ListRepositoryCommitsByBranchResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryCommitsByBranchResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryCommitsByBranchResponse) ProtoMessage() {} + +func (x *ListRepositoryCommitsByBranchResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryCommitsByBranchResponse) GetRepositoryCommits() []*RepositoryCommit { + if x != nil { + if x.xxx_hidden_RepositoryCommits != nil { + return *x.xxx_hidden_RepositoryCommits + } + } + return nil +} + +func (x *ListRepositoryCommitsByBranchResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListRepositoryCommitsByBranchResponse) SetRepositoryCommits(v []*RepositoryCommit) { + x.xxx_hidden_RepositoryCommits = &v +} + +func (x *ListRepositoryCommitsByBranchResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListRepositoryCommitsByBranchResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryCommits []*RepositoryCommit + NextPageToken string +} + +func (b0 ListRepositoryCommitsByBranchResponse_builder) Build() *ListRepositoryCommitsByBranchResponse { + m0 := &ListRepositoryCommitsByBranchResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryCommits = &b.RepositoryCommits + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListRepositoryCommitsByReferenceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,6,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryCommitsByReferenceRequest) Reset() { + *x = ListRepositoryCommitsByReferenceRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryCommitsByReferenceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryCommitsByReferenceRequest) ProtoMessage() {} + +func (x *ListRepositoryCommitsByReferenceRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryCommitsByReferenceRequest) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *ListRepositoryCommitsByReferenceRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *ListRepositoryCommitsByReferenceRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *ListRepositoryCommitsByReferenceRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListRepositoryCommitsByReferenceRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListRepositoryCommitsByReferenceRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListRepositoryCommitsByReferenceRequest) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *ListRepositoryCommitsByReferenceRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *ListRepositoryCommitsByReferenceRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +func (x *ListRepositoryCommitsByReferenceRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListRepositoryCommitsByReferenceRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListRepositoryCommitsByReferenceRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListRepositoryCommitsByReferenceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository which the repository reference belongs to. + RepositoryOwner string + // The name of the repository which the repository reference belongs to. + RepositoryName string + // The optional reference used to resolve repository commits. Can be a tag or commit. + // If unspecified, will use the repository's default_branch. + Reference string + PageSize uint32 + PageToken string + Reverse bool +} + +func (b0 ListRepositoryCommitsByReferenceRequest_builder) Build() *ListRepositoryCommitsByReferenceRequest { + m0 := &ListRepositoryCommitsByReferenceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_Reference = b.Reference + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListRepositoryCommitsByReferenceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryCommits *[]*RepositoryCommit `protobuf:"bytes,1,rep,name=repository_commits,json=repositoryCommits,proto3" json:"repository_commits,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryCommitsByReferenceResponse) Reset() { + *x = ListRepositoryCommitsByReferenceResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryCommitsByReferenceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryCommitsByReferenceResponse) ProtoMessage() {} + +func (x *ListRepositoryCommitsByReferenceResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryCommitsByReferenceResponse) GetRepositoryCommits() []*RepositoryCommit { + if x != nil { + if x.xxx_hidden_RepositoryCommits != nil { + return *x.xxx_hidden_RepositoryCommits + } + } + return nil +} + +func (x *ListRepositoryCommitsByReferenceResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListRepositoryCommitsByReferenceResponse) SetRepositoryCommits(v []*RepositoryCommit) { + x.xxx_hidden_RepositoryCommits = &v +} + +func (x *ListRepositoryCommitsByReferenceResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListRepositoryCommitsByReferenceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryCommits []*RepositoryCommit + NextPageToken string +} + +func (b0 ListRepositoryCommitsByReferenceResponse_builder) Build() *ListRepositoryCommitsByReferenceResponse { + m0 := &ListRepositoryCommitsByReferenceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryCommits = &b.RepositoryCommits + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type GetRepositoryCommitByReferenceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryCommitByReferenceRequest) Reset() { + *x = GetRepositoryCommitByReferenceRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryCommitByReferenceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryCommitByReferenceRequest) ProtoMessage() {} + +func (x *GetRepositoryCommitByReferenceRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryCommitByReferenceRequest) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *GetRepositoryCommitByReferenceRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *GetRepositoryCommitByReferenceRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *GetRepositoryCommitByReferenceRequest) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *GetRepositoryCommitByReferenceRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *GetRepositoryCommitByReferenceRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +type GetRepositoryCommitByReferenceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository which the reference belongs to. + RepositoryOwner string + // The name of the repository which the reference belongs to. + RepositoryName string + // The optional reference that should be resolved to a commit. Can be a tag or commit. + // If unspecified, will use the repository's default_branch. + Reference string +} + +func (b0 GetRepositoryCommitByReferenceRequest_builder) Build() *GetRepositoryCommitByReferenceRequest { + m0 := &GetRepositoryCommitByReferenceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_Reference = b.Reference + return m0 +} + +type GetRepositoryCommitByReferenceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryCommit *RepositoryCommit `protobuf:"bytes,1,opt,name=repository_commit,json=repositoryCommit,proto3" json:"repository_commit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryCommitByReferenceResponse) Reset() { + *x = GetRepositoryCommitByReferenceResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryCommitByReferenceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryCommitByReferenceResponse) ProtoMessage() {} + +func (x *GetRepositoryCommitByReferenceResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryCommitByReferenceResponse) GetRepositoryCommit() *RepositoryCommit { + if x != nil { + return x.xxx_hidden_RepositoryCommit + } + return nil +} + +func (x *GetRepositoryCommitByReferenceResponse) SetRepositoryCommit(v *RepositoryCommit) { + x.xxx_hidden_RepositoryCommit = v +} + +func (x *GetRepositoryCommitByReferenceResponse) HasRepositoryCommit() bool { + if x == nil { + return false + } + return x.xxx_hidden_RepositoryCommit != nil +} + +func (x *GetRepositoryCommitByReferenceResponse) ClearRepositoryCommit() { + x.xxx_hidden_RepositoryCommit = nil +} + +type GetRepositoryCommitByReferenceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryCommit *RepositoryCommit +} + +func (b0 GetRepositoryCommitByReferenceResponse_builder) Build() *GetRepositoryCommitByReferenceResponse { + m0 := &GetRepositoryCommitByReferenceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryCommit = b.RepositoryCommit + return m0 +} + +type ListRepositoryDraftCommitsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,5,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryDraftCommitsRequest) Reset() { + *x = ListRepositoryDraftCommitsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryDraftCommitsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryDraftCommitsRequest) ProtoMessage() {} + +func (x *ListRepositoryDraftCommitsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryDraftCommitsRequest) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *ListRepositoryDraftCommitsRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *ListRepositoryDraftCommitsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListRepositoryDraftCommitsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListRepositoryDraftCommitsRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListRepositoryDraftCommitsRequest) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *ListRepositoryDraftCommitsRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *ListRepositoryDraftCommitsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListRepositoryDraftCommitsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListRepositoryDraftCommitsRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListRepositoryDraftCommitsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository which the repository branch belongs to. + RepositoryOwner string + // The name of the repository which the repository branch belongs to. + RepositoryName string + PageSize uint32 + PageToken string + // By default, draft commits are ordered by last update time descending. + // Reverse orders them ascending. + Reverse bool +} + +func (b0 ListRepositoryDraftCommitsRequest_builder) Build() *ListRepositoryDraftCommitsRequest { + m0 := &ListRepositoryDraftCommitsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListRepositoryDraftCommitsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryCommits *[]*RepositoryCommit `protobuf:"bytes,1,rep,name=repository_commits,json=repositoryCommits,proto3" json:"repository_commits,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryDraftCommitsResponse) Reset() { + *x = ListRepositoryDraftCommitsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryDraftCommitsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryDraftCommitsResponse) ProtoMessage() {} + +func (x *ListRepositoryDraftCommitsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryDraftCommitsResponse) GetRepositoryCommits() []*RepositoryCommit { + if x != nil { + if x.xxx_hidden_RepositoryCommits != nil { + return *x.xxx_hidden_RepositoryCommits + } + } + return nil +} + +func (x *ListRepositoryDraftCommitsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListRepositoryDraftCommitsResponse) SetRepositoryCommits(v []*RepositoryCommit) { + x.xxx_hidden_RepositoryCommits = &v +} + +func (x *ListRepositoryDraftCommitsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListRepositoryDraftCommitsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Each commit will have draft_name set. + RepositoryCommits []*RepositoryCommit + NextPageToken string +} + +func (b0 ListRepositoryDraftCommitsResponse_builder) Build() *ListRepositoryDraftCommitsResponse { + m0 := &ListRepositoryDraftCommitsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryCommits = &b.RepositoryCommits + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type DeleteRepositoryDraftCommitRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_DraftName string `protobuf:"bytes,3,opt,name=draft_name,json=draftName,proto3" json:"draft_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteRepositoryDraftCommitRequest) Reset() { + *x = DeleteRepositoryDraftCommitRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteRepositoryDraftCommitRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteRepositoryDraftCommitRequest) ProtoMessage() {} + +func (x *DeleteRepositoryDraftCommitRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteRepositoryDraftCommitRequest) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *DeleteRepositoryDraftCommitRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *DeleteRepositoryDraftCommitRequest) GetDraftName() string { + if x != nil { + return x.xxx_hidden_DraftName + } + return "" +} + +func (x *DeleteRepositoryDraftCommitRequest) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *DeleteRepositoryDraftCommitRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *DeleteRepositoryDraftCommitRequest) SetDraftName(v string) { + x.xxx_hidden_DraftName = v +} + +type DeleteRepositoryDraftCommitRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository which the repository branch belongs to. + RepositoryOwner string + // The name of the repository which the repository branch belongs to. + RepositoryName string + // The name of the draft to delete. + DraftName string +} + +func (b0 DeleteRepositoryDraftCommitRequest_builder) Build() *DeleteRepositoryDraftCommitRequest { + m0 := &DeleteRepositoryDraftCommitRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_DraftName = b.DraftName + return m0 +} + +type DeleteRepositoryDraftCommitResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteRepositoryDraftCommitResponse) Reset() { + *x = DeleteRepositoryDraftCommitResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteRepositoryDraftCommitResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteRepositoryDraftCommitResponse) ProtoMessage() {} + +func (x *DeleteRepositoryDraftCommitResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteRepositoryDraftCommitResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteRepositoryDraftCommitResponse_builder) Build() *DeleteRepositoryDraftCommitResponse { + m0 := &DeleteRepositoryDraftCommitResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_buf_alpha_registry_v1alpha1_repository_commit_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDesc = []byte{ + 0x0a, 0x33, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x1a, 0x30, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x74, 0x61, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x03, 0x0a, 0x10, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 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, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x12, 0x3e, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x52, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x72, 0x61, 0x66, 0x74, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x72, 0x61, 0x66, 0x74, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x70, 0x64, 0x78, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, + 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x70, 0x64, + 0x78, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, + 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x44, 0x69, 0x67, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x67, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x74, 0x61, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x2a, 0x0a, 0x11, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x5f, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x67, 0x69, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x62, 0x35, 0x5f, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x62, 0x35, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x52, + 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, + 0x5f, 0x69, 0x64, 0x22, 0x86, 0x02, 0x0a, 0x24, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x42, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x62, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x14, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0xad, 0x01, 0x0a, + 0x25, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, + 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xf1, 0x01, 0x0a, + 0x27, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, + 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, + 0x22, 0xb0, 0x01, 0x0a, 0x28, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, + 0x12, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, + 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x99, 0x01, 0x0a, 0x25, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x42, 0x79, 0x52, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, + 0x10, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, + 0x84, 0x01, 0x0a, 0x26, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x11, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0xcd, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x72, 0x61, 0x66, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, + 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, + 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x72, 0x61, 0x66, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, + 0x12, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, + 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x97, 0x01, 0x0a, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x72, 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x64, 0x72, 0x61, 0x66, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x64, 0x72, 0x61, 0x66, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x25, 0x0a, + 0x23, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x44, 0x72, 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xff, 0x06, 0x0a, 0x17, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0xae, 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x42, 0x72, 0x61, 0x6e, + 0x63, 0x68, 0x12, 0x41, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x63, + 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0x88, 0x02, 0x01, 0x90, 0x02, + 0x01, 0x12, 0xb4, 0x01, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x44, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x45, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, + 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xae, 0x01, 0x0a, 0x1e, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x42, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x42, 0x79, 0x52, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x43, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xa2, 0x01, 0x0a, 0x1a, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x72, 0x61, 0x66, + 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x3e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x72, 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x72, 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xa5, + 0x01, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x44, 0x72, 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x3f, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x72, 0x61, + 0x66, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x40, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x72, + 0x61, 0x66, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x42, 0xa2, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x15, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, + 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, + 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, + 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_buf_alpha_registry_v1alpha1_repository_commit_proto_goTypes = []any{ + (*RepositoryCommit)(nil), // 0: buf.alpha.registry.v1alpha1.RepositoryCommit + (*ListRepositoryCommitsByBranchRequest)(nil), // 1: buf.alpha.registry.v1alpha1.ListRepositoryCommitsByBranchRequest + (*ListRepositoryCommitsByBranchResponse)(nil), // 2: buf.alpha.registry.v1alpha1.ListRepositoryCommitsByBranchResponse + (*ListRepositoryCommitsByReferenceRequest)(nil), // 3: buf.alpha.registry.v1alpha1.ListRepositoryCommitsByReferenceRequest + (*ListRepositoryCommitsByReferenceResponse)(nil), // 4: buf.alpha.registry.v1alpha1.ListRepositoryCommitsByReferenceResponse + (*GetRepositoryCommitByReferenceRequest)(nil), // 5: buf.alpha.registry.v1alpha1.GetRepositoryCommitByReferenceRequest + (*GetRepositoryCommitByReferenceResponse)(nil), // 6: buf.alpha.registry.v1alpha1.GetRepositoryCommitByReferenceResponse + (*ListRepositoryDraftCommitsRequest)(nil), // 7: buf.alpha.registry.v1alpha1.ListRepositoryDraftCommitsRequest + (*ListRepositoryDraftCommitsResponse)(nil), // 8: buf.alpha.registry.v1alpha1.ListRepositoryDraftCommitsResponse + (*DeleteRepositoryDraftCommitRequest)(nil), // 9: buf.alpha.registry.v1alpha1.DeleteRepositoryDraftCommitRequest + (*DeleteRepositoryDraftCommitResponse)(nil), // 10: buf.alpha.registry.v1alpha1.DeleteRepositoryDraftCommitResponse + (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp + (*RepositoryTag)(nil), // 12: buf.alpha.registry.v1alpha1.RepositoryTag +} +var file_buf_alpha_registry_v1alpha1_repository_commit_proto_depIdxs = []int32{ + 11, // 0: buf.alpha.registry.v1alpha1.RepositoryCommit.create_time:type_name -> google.protobuf.Timestamp + 12, // 1: buf.alpha.registry.v1alpha1.RepositoryCommit.tags:type_name -> buf.alpha.registry.v1alpha1.RepositoryTag + 0, // 2: buf.alpha.registry.v1alpha1.ListRepositoryCommitsByBranchResponse.repository_commits:type_name -> buf.alpha.registry.v1alpha1.RepositoryCommit + 0, // 3: buf.alpha.registry.v1alpha1.ListRepositoryCommitsByReferenceResponse.repository_commits:type_name -> buf.alpha.registry.v1alpha1.RepositoryCommit + 0, // 4: buf.alpha.registry.v1alpha1.GetRepositoryCommitByReferenceResponse.repository_commit:type_name -> buf.alpha.registry.v1alpha1.RepositoryCommit + 0, // 5: buf.alpha.registry.v1alpha1.ListRepositoryDraftCommitsResponse.repository_commits:type_name -> buf.alpha.registry.v1alpha1.RepositoryCommit + 1, // 6: buf.alpha.registry.v1alpha1.RepositoryCommitService.ListRepositoryCommitsByBranch:input_type -> buf.alpha.registry.v1alpha1.ListRepositoryCommitsByBranchRequest + 3, // 7: buf.alpha.registry.v1alpha1.RepositoryCommitService.ListRepositoryCommitsByReference:input_type -> buf.alpha.registry.v1alpha1.ListRepositoryCommitsByReferenceRequest + 5, // 8: buf.alpha.registry.v1alpha1.RepositoryCommitService.GetRepositoryCommitByReference:input_type -> buf.alpha.registry.v1alpha1.GetRepositoryCommitByReferenceRequest + 7, // 9: buf.alpha.registry.v1alpha1.RepositoryCommitService.ListRepositoryDraftCommits:input_type -> buf.alpha.registry.v1alpha1.ListRepositoryDraftCommitsRequest + 9, // 10: buf.alpha.registry.v1alpha1.RepositoryCommitService.DeleteRepositoryDraftCommit:input_type -> buf.alpha.registry.v1alpha1.DeleteRepositoryDraftCommitRequest + 2, // 11: buf.alpha.registry.v1alpha1.RepositoryCommitService.ListRepositoryCommitsByBranch:output_type -> buf.alpha.registry.v1alpha1.ListRepositoryCommitsByBranchResponse + 4, // 12: buf.alpha.registry.v1alpha1.RepositoryCommitService.ListRepositoryCommitsByReference:output_type -> buf.alpha.registry.v1alpha1.ListRepositoryCommitsByReferenceResponse + 6, // 13: buf.alpha.registry.v1alpha1.RepositoryCommitService.GetRepositoryCommitByReference:output_type -> buf.alpha.registry.v1alpha1.GetRepositoryCommitByReferenceResponse + 8, // 14: buf.alpha.registry.v1alpha1.RepositoryCommitService.ListRepositoryDraftCommits:output_type -> buf.alpha.registry.v1alpha1.ListRepositoryDraftCommitsResponse + 10, // 15: buf.alpha.registry.v1alpha1.RepositoryCommitService.DeleteRepositoryDraftCommit:output_type -> buf.alpha.registry.v1alpha1.DeleteRepositoryDraftCommitResponse + 11, // [11:16] is the sub-list for method output_type + 6, // [6:11] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_repository_commit_proto_init() } +func file_buf_alpha_registry_v1alpha1_repository_commit_proto_init() { + if File_buf_alpha_registry_v1alpha1_repository_commit_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_repository_tag_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_repository_commit_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_repository_commit_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_repository_commit_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_repository_commit_proto = out.File + file_buf_alpha_registry_v1alpha1_repository_commit_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_repository_commit_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_repository_commit_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_protoopaque.pb.go new file mode 100644 index 0000000000..66f2410506 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_protoopaque.pb.go @@ -0,0 +1,4291 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/repository.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Visibility int32 + +const ( + Visibility_VISIBILITY_UNSPECIFIED Visibility = 0 + Visibility_VISIBILITY_PUBLIC Visibility = 1 + Visibility_VISIBILITY_PRIVATE Visibility = 2 +) + +// Enum value maps for Visibility. +var ( + Visibility_name = map[int32]string{ + 0: "VISIBILITY_UNSPECIFIED", + 1: "VISIBILITY_PUBLIC", + 2: "VISIBILITY_PRIVATE", + } + Visibility_value = map[string]int32{ + "VISIBILITY_UNSPECIFIED": 0, + "VISIBILITY_PUBLIC": 1, + "VISIBILITY_PRIVATE": 2, + } +) + +func (x Visibility) Enum() *Visibility { + p := new(Visibility) + *p = x + return p +} + +func (x Visibility) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Visibility) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_repository_proto_enumTypes[0].Descriptor() +} + +func (Visibility) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_repository_proto_enumTypes[0] +} + +func (x Visibility) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type Repository struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + xxx_hidden_UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Owner isRepository_Owner `protobuf_oneof:"owner"` + xxx_hidden_Visibility Visibility `protobuf:"varint,7,opt,name=visibility,proto3,enum=buf.alpha.registry.v1alpha1.Visibility" json:"visibility,omitempty"` + xxx_hidden_Deprecated bool `protobuf:"varint,8,opt,name=deprecated,proto3" json:"deprecated,omitempty"` + xxx_hidden_DeprecationMessage string `protobuf:"bytes,9,opt,name=deprecation_message,json=deprecationMessage,proto3" json:"deprecation_message,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,10,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_Description string `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"` + xxx_hidden_Url string `protobuf:"bytes,12,opt,name=url,proto3" json:"url,omitempty"` + xxx_hidden_DefaultBranch string `protobuf:"bytes,13,opt,name=default_branch,json=defaultBranch,proto3" json:"default_branch,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Repository) Reset() { + *x = Repository{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Repository) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Repository) ProtoMessage() {} + +func (x *Repository) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Repository) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *Repository) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *Repository) GetUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_UpdateTime + } + return nil +} + +func (x *Repository) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Repository) GetUserId() string { + if x != nil { + if x, ok := x.xxx_hidden_Owner.(*repository_UserId); ok { + return x.UserId + } + } + return "" +} + +func (x *Repository) GetOrganizationId() string { + if x != nil { + if x, ok := x.xxx_hidden_Owner.(*repository_OrganizationId); ok { + return x.OrganizationId + } + } + return "" +} + +func (x *Repository) GetVisibility() Visibility { + if x != nil { + return x.xxx_hidden_Visibility + } + return Visibility_VISIBILITY_UNSPECIFIED +} + +func (x *Repository) GetDeprecated() bool { + if x != nil { + return x.xxx_hidden_Deprecated + } + return false +} + +func (x *Repository) GetDeprecationMessage() string { + if x != nil { + return x.xxx_hidden_DeprecationMessage + } + return "" +} + +func (x *Repository) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *Repository) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *Repository) GetUrl() string { + if x != nil { + return x.xxx_hidden_Url + } + return "" +} + +func (x *Repository) GetDefaultBranch() string { + if x != nil { + return x.xxx_hidden_DefaultBranch + } + return "" +} + +func (x *Repository) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *Repository) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *Repository) SetUpdateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_UpdateTime = v +} + +func (x *Repository) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *Repository) SetUserId(v string) { + x.xxx_hidden_Owner = &repository_UserId{v} +} + +func (x *Repository) SetOrganizationId(v string) { + x.xxx_hidden_Owner = &repository_OrganizationId{v} +} + +func (x *Repository) SetVisibility(v Visibility) { + x.xxx_hidden_Visibility = v +} + +func (x *Repository) SetDeprecated(v bool) { + x.xxx_hidden_Deprecated = v +} + +func (x *Repository) SetDeprecationMessage(v string) { + x.xxx_hidden_DeprecationMessage = v +} + +func (x *Repository) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *Repository) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *Repository) SetUrl(v string) { + x.xxx_hidden_Url = v +} + +func (x *Repository) SetDefaultBranch(v string) { + x.xxx_hidden_DefaultBranch = v +} + +func (x *Repository) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *Repository) HasUpdateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateTime != nil +} + +func (x *Repository) HasOwner() bool { + if x == nil { + return false + } + return x.xxx_hidden_Owner != nil +} + +func (x *Repository) HasUserId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Owner.(*repository_UserId) + return ok +} + +func (x *Repository) HasOrganizationId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Owner.(*repository_OrganizationId) + return ok +} + +func (x *Repository) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *Repository) ClearUpdateTime() { + x.xxx_hidden_UpdateTime = nil +} + +func (x *Repository) ClearOwner() { + x.xxx_hidden_Owner = nil +} + +func (x *Repository) ClearUserId() { + if _, ok := x.xxx_hidden_Owner.(*repository_UserId); ok { + x.xxx_hidden_Owner = nil + } +} + +func (x *Repository) ClearOrganizationId() { + if _, ok := x.xxx_hidden_Owner.(*repository_OrganizationId); ok { + x.xxx_hidden_Owner = nil + } +} + +const Repository_Owner_not_set_case case_Repository_Owner = 0 +const Repository_UserId_case case_Repository_Owner = 5 +const Repository_OrganizationId_case case_Repository_Owner = 6 + +func (x *Repository) WhichOwner() case_Repository_Owner { + if x == nil { + return Repository_Owner_not_set_case + } + switch x.xxx_hidden_Owner.(type) { + case *repository_UserId: + return Repository_UserId_case + case *repository_OrganizationId: + return Repository_OrganizationId_case + default: + return Repository_Owner_not_set_case + } +} + +type Repository_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique, immutable + Id string + // immutable + CreateTime *timestamppb.Timestamp + // mutable + UpdateTime *timestamppb.Timestamp + // unique, mutable + Name string + // Fields of oneof xxx_hidden_Owner: + // foreign key, mutable + UserId *string + // foreign key, mutable + OrganizationId *string + // -- end of xxx_hidden_Owner + Visibility Visibility + // deprecated means this repository is deprecated. + Deprecated bool + // deprecation_message is the message shown if the repository is deprecated. + DeprecationMessage string + // owner_name is the name of the owner of the repository, + // either a username or organization name. + OwnerName string + // description is the user configurable description of the repository. + Description string + // url is the user configurable URL in the description of the repository, + // always included the scheme and will not have a #fragment suffix. + Url string + // default_branch in a BSR repository. It is used when syncing a git repository, to make sure both + // default branches (BSR and Git) are in sync. By default, every BSR repository is created with a + // "main" default branch. + DefaultBranch string +} + +func (b0 Repository_builder) Build() *Repository { + m0 := &Repository{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_UpdateTime = b.UpdateTime + x.xxx_hidden_Name = b.Name + if b.UserId != nil { + x.xxx_hidden_Owner = &repository_UserId{*b.UserId} + } + if b.OrganizationId != nil { + x.xxx_hidden_Owner = &repository_OrganizationId{*b.OrganizationId} + } + x.xxx_hidden_Visibility = b.Visibility + x.xxx_hidden_Deprecated = b.Deprecated + x.xxx_hidden_DeprecationMessage = b.DeprecationMessage + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Url = b.Url + x.xxx_hidden_DefaultBranch = b.DefaultBranch + return m0 +} + +type case_Repository_Owner protoreflect.FieldNumber + +func (x case_Repository_Owner) String() string { + md := file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[0].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isRepository_Owner interface { + isRepository_Owner() +} + +type repository_UserId struct { + // foreign key, mutable + UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3,oneof"` +} + +type repository_OrganizationId struct { + // foreign key, mutable + OrganizationId string `protobuf:"bytes,6,opt,name=organization_id,json=organizationId,proto3,oneof"` +} + +func (*repository_UserId) isRepository_Owner() {} + +func (*repository_OrganizationId) isRepository_Owner() {} + +type RepositoryCounts struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TagsCount uint32 `protobuf:"varint,1,opt,name=tags_count,json=tagsCount,proto3" json:"tags_count,omitempty"` + xxx_hidden_DraftsCount uint32 `protobuf:"varint,3,opt,name=drafts_count,json=draftsCount,proto3" json:"drafts_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepositoryCounts) Reset() { + *x = RepositoryCounts{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepositoryCounts) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepositoryCounts) ProtoMessage() {} + +func (x *RepositoryCounts) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RepositoryCounts) GetTagsCount() uint32 { + if x != nil { + return x.xxx_hidden_TagsCount + } + return 0 +} + +func (x *RepositoryCounts) GetDraftsCount() uint32 { + if x != nil { + return x.xxx_hidden_DraftsCount + } + return 0 +} + +func (x *RepositoryCounts) SetTagsCount(v uint32) { + x.xxx_hidden_TagsCount = v +} + +func (x *RepositoryCounts) SetDraftsCount(v uint32) { + x.xxx_hidden_DraftsCount = v +} + +type RepositoryCounts_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TagsCount uint32 + DraftsCount uint32 +} + +func (b0 RepositoryCounts_builder) Build() *RepositoryCounts { + m0 := &RepositoryCounts{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TagsCount = b.TagsCount + x.xxx_hidden_DraftsCount = b.DraftsCount + return m0 +} + +type RepositoryContributor struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + xxx_hidden_RepositoryId string `protobuf:"bytes,2,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_ExplicitRole RepositoryRole `protobuf:"varint,3,opt,name=explicit_role,json=explicitRole,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"explicit_role,omitempty"` + xxx_hidden_ImplicitRole RepositoryRole `protobuf:"varint,4,opt,name=implicit_role,json=implicitRole,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"implicit_role,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepositoryContributor) Reset() { + *x = RepositoryContributor{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepositoryContributor) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepositoryContributor) ProtoMessage() {} + +func (x *RepositoryContributor) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RepositoryContributor) GetUser() *User { + if x != nil { + return x.xxx_hidden_User + } + return nil +} + +func (x *RepositoryContributor) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *RepositoryContributor) GetExplicitRole() RepositoryRole { + if x != nil { + return x.xxx_hidden_ExplicitRole + } + return RepositoryRole_REPOSITORY_ROLE_UNSPECIFIED +} + +func (x *RepositoryContributor) GetImplicitRole() RepositoryRole { + if x != nil { + return x.xxx_hidden_ImplicitRole + } + return RepositoryRole_REPOSITORY_ROLE_UNSPECIFIED +} + +func (x *RepositoryContributor) SetUser(v *User) { + x.xxx_hidden_User = v +} + +func (x *RepositoryContributor) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *RepositoryContributor) SetExplicitRole(v RepositoryRole) { + x.xxx_hidden_ExplicitRole = v +} + +func (x *RepositoryContributor) SetImplicitRole(v RepositoryRole) { + x.xxx_hidden_ImplicitRole = v +} + +func (x *RepositoryContributor) HasUser() bool { + if x == nil { + return false + } + return x.xxx_hidden_User != nil +} + +func (x *RepositoryContributor) ClearUser() { + x.xxx_hidden_User = nil +} + +type RepositoryContributor_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User + // The ID of the for which the role belongs to. + RepositoryId string + // The role that the user has been explicitly assigned against the repository. + ExplicitRole RepositoryRole + // Optionally defines the role that the user has implicitly against the repository through the owning organization. + // If the repository does not belong to an organization or the user is not part of the owning organization, this is unset. + ImplicitRole RepositoryRole +} + +func (b0 RepositoryContributor_builder) Build() *RepositoryContributor { + m0 := &RepositoryContributor{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_User = b.User + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_ExplicitRole = b.ExplicitRole + x.xxx_hidden_ImplicitRole = b.ImplicitRole + return m0 +} + +type RepositoryMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,3,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_OwnerVerificationStatus VerificationStatus `protobuf:"varint,4,opt,name=owner_verification_status,json=ownerVerificationStatus,proto3,enum=buf.alpha.registry.v1alpha1.VerificationStatus" json:"owner_verification_status,omitempty"` + xxx_hidden_LatestCommitTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=latest_commit_time,json=latestCommitTime,proto3" json:"latest_commit_time,omitempty"` + xxx_hidden_LatestSpdxLicenseId string `protobuf:"bytes,6,opt,name=latest_spdx_license_id,json=latestSpdxLicenseId,proto3" json:"latest_spdx_license_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepositoryMetadata) Reset() { + *x = RepositoryMetadata{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepositoryMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepositoryMetadata) ProtoMessage() {} + +func (x *RepositoryMetadata) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RepositoryMetadata) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *RepositoryMetadata) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *RepositoryMetadata) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *RepositoryMetadata) GetOwnerVerificationStatus() VerificationStatus { + if x != nil { + return x.xxx_hidden_OwnerVerificationStatus + } + return VerificationStatus_VERIFICATION_STATUS_UNSPECIFIED +} + +func (x *RepositoryMetadata) GetLatestCommitTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LatestCommitTime + } + return nil +} + +func (x *RepositoryMetadata) GetLatestSpdxLicenseId() string { + if x != nil { + return x.xxx_hidden_LatestSpdxLicenseId + } + return "" +} + +func (x *RepositoryMetadata) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *RepositoryMetadata) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *RepositoryMetadata) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *RepositoryMetadata) SetOwnerVerificationStatus(v VerificationStatus) { + x.xxx_hidden_OwnerVerificationStatus = v +} + +func (x *RepositoryMetadata) SetLatestCommitTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LatestCommitTime = v +} + +func (x *RepositoryMetadata) SetLatestSpdxLicenseId(v string) { + x.xxx_hidden_LatestSpdxLicenseId = v +} + +func (x *RepositoryMetadata) HasLatestCommitTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LatestCommitTime != nil +} + +func (x *RepositoryMetadata) ClearLatestCommitTime() { + x.xxx_hidden_LatestCommitTime = nil +} + +type RepositoryMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository. + Id string + // The name of the repository. + Name string + // The owner name of the repository. + OwnerName string + // The verification status of the owner of the repository. + OwnerVerificationStatus VerificationStatus + // The commit time of the latest main commit in the repository. + LatestCommitTime *timestamppb.Timestamp + // The SPDX license ID of the latest main commit in the repository. + LatestSpdxLicenseId string +} + +func (b0 RepositoryMetadata_builder) Build() *RepositoryMetadata { + m0 := &RepositoryMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Name = b.Name + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_OwnerVerificationStatus = b.OwnerVerificationStatus + x.xxx_hidden_LatestCommitTime = b.LatestCommitTime + x.xxx_hidden_LatestSpdxLicenseId = b.LatestSpdxLicenseId + return m0 +} + +type GetRepositoriesByFullNameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_FullNames []string `protobuf:"bytes,1,rep,name=full_names,json=fullNames,proto3" json:"full_names,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoriesByFullNameRequest) Reset() { + *x = GetRepositoriesByFullNameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoriesByFullNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoriesByFullNameRequest) ProtoMessage() {} + +func (x *GetRepositoriesByFullNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoriesByFullNameRequest) GetFullNames() []string { + if x != nil { + return x.xxx_hidden_FullNames + } + return nil +} + +func (x *GetRepositoriesByFullNameRequest) SetFullNames(v []string) { + x.xxx_hidden_FullNames = v +} + +type GetRepositoriesByFullNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // minimum length is 1 + // maximum length is 250 + FullNames []string +} + +func (b0 GetRepositoriesByFullNameRequest_builder) Build() *GetRepositoriesByFullNameRequest { + m0 := &GetRepositoriesByFullNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_FullNames = b.FullNames + return m0 +} + +type GetRepositoriesByFullNameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Repositories *[]*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoriesByFullNameResponse) Reset() { + *x = GetRepositoriesByFullNameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoriesByFullNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoriesByFullNameResponse) ProtoMessage() {} + +func (x *GetRepositoriesByFullNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoriesByFullNameResponse) GetRepositories() []*Repository { + if x != nil { + if x.xxx_hidden_Repositories != nil { + return *x.xxx_hidden_Repositories + } + } + return nil +} + +func (x *GetRepositoriesByFullNameResponse) SetRepositories(v []*Repository) { + x.xxx_hidden_Repositories = &v +} + +type GetRepositoriesByFullNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repositories []*Repository +} + +func (b0 GetRepositoriesByFullNameResponse_builder) Build() *GetRepositoriesByFullNameResponse { + m0 := &GetRepositoriesByFullNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Repositories = &b.Repositories + return m0 +} + +type GetRepositoryRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryRequest) Reset() { + *x = GetRepositoryRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryRequest) ProtoMessage() {} + +func (x *GetRepositoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *GetRepositoryRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +type GetRepositoryRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 GetRepositoryRequest_builder) Build() *GetRepositoryRequest { + m0 := &GetRepositoryRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +type GetRepositoryResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Counts *RepositoryCounts `protobuf:"bytes,2,opt,name=counts,proto3" json:"counts,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryResponse) Reset() { + *x = GetRepositoryResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryResponse) ProtoMessage() {} + +func (x *GetRepositoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryResponse) GetRepository() *Repository { + if x != nil { + return x.xxx_hidden_Repository + } + return nil +} + +func (x *GetRepositoryResponse) GetCounts() *RepositoryCounts { + if x != nil { + return x.xxx_hidden_Counts + } + return nil +} + +func (x *GetRepositoryResponse) SetRepository(v *Repository) { + x.xxx_hidden_Repository = v +} + +func (x *GetRepositoryResponse) SetCounts(v *RepositoryCounts) { + x.xxx_hidden_Counts = v +} + +func (x *GetRepositoryResponse) HasRepository() bool { + if x == nil { + return false + } + return x.xxx_hidden_Repository != nil +} + +func (x *GetRepositoryResponse) HasCounts() bool { + if x == nil { + return false + } + return x.xxx_hidden_Counts != nil +} + +func (x *GetRepositoryResponse) ClearRepository() { + x.xxx_hidden_Repository = nil +} + +func (x *GetRepositoryResponse) ClearCounts() { + x.xxx_hidden_Counts = nil +} + +type GetRepositoryResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repository *Repository + Counts *RepositoryCounts +} + +func (b0 GetRepositoryResponse_builder) Build() *GetRepositoryResponse { + m0 := &GetRepositoryResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Counts = b.Counts + return m0 +} + +type GetRepositoryByFullNameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_FullName string `protobuf:"bytes,1,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryByFullNameRequest) Reset() { + *x = GetRepositoryByFullNameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryByFullNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryByFullNameRequest) ProtoMessage() {} + +func (x *GetRepositoryByFullNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryByFullNameRequest) GetFullName() string { + if x != nil { + return x.xxx_hidden_FullName + } + return "" +} + +func (x *GetRepositoryByFullNameRequest) SetFullName(v string) { + x.xxx_hidden_FullName = v +} + +type GetRepositoryByFullNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + FullName string +} + +func (b0 GetRepositoryByFullNameRequest_builder) Build() *GetRepositoryByFullNameRequest { + m0 := &GetRepositoryByFullNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_FullName = b.FullName + return m0 +} + +type GetRepositoryByFullNameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Counts *RepositoryCounts `protobuf:"bytes,2,opt,name=counts,proto3" json:"counts,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryByFullNameResponse) Reset() { + *x = GetRepositoryByFullNameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryByFullNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryByFullNameResponse) ProtoMessage() {} + +func (x *GetRepositoryByFullNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryByFullNameResponse) GetRepository() *Repository { + if x != nil { + return x.xxx_hidden_Repository + } + return nil +} + +func (x *GetRepositoryByFullNameResponse) GetCounts() *RepositoryCounts { + if x != nil { + return x.xxx_hidden_Counts + } + return nil +} + +func (x *GetRepositoryByFullNameResponse) SetRepository(v *Repository) { + x.xxx_hidden_Repository = v +} + +func (x *GetRepositoryByFullNameResponse) SetCounts(v *RepositoryCounts) { + x.xxx_hidden_Counts = v +} + +func (x *GetRepositoryByFullNameResponse) HasRepository() bool { + if x == nil { + return false + } + return x.xxx_hidden_Repository != nil +} + +func (x *GetRepositoryByFullNameResponse) HasCounts() bool { + if x == nil { + return false + } + return x.xxx_hidden_Counts != nil +} + +func (x *GetRepositoryByFullNameResponse) ClearRepository() { + x.xxx_hidden_Repository = nil +} + +func (x *GetRepositoryByFullNameResponse) ClearCounts() { + x.xxx_hidden_Counts = nil +} + +type GetRepositoryByFullNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repository *Repository + Counts *RepositoryCounts +} + +func (b0 GetRepositoryByFullNameResponse_builder) Build() *GetRepositoryByFullNameResponse { + m0 := &GetRepositoryByFullNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Counts = b.Counts + return m0 +} + +type ListRepositoriesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,3,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoriesRequest) Reset() { + *x = ListRepositoriesRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoriesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoriesRequest) ProtoMessage() {} + +func (x *ListRepositoriesRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoriesRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListRepositoriesRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListRepositoriesRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListRepositoriesRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListRepositoriesRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListRepositoriesRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListRepositoriesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListRepositoriesRequest_builder) Build() *ListRepositoriesRequest { + m0 := &ListRepositoriesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListRepositoriesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Repositories *[]*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoriesResponse) Reset() { + *x = ListRepositoriesResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoriesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoriesResponse) ProtoMessage() {} + +func (x *ListRepositoriesResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoriesResponse) GetRepositories() []*Repository { + if x != nil { + if x.xxx_hidden_Repositories != nil { + return *x.xxx_hidden_Repositories + } + } + return nil +} + +func (x *ListRepositoriesResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListRepositoriesResponse) SetRepositories(v []*Repository) { + x.xxx_hidden_Repositories = &v +} + +func (x *ListRepositoriesResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListRepositoriesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repositories []*Repository + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoriesResponse_builder) Build() *ListRepositoriesResponse { + m0 := &ListRepositoriesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Repositories = &b.Repositories + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListUserRepositoriesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,4,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUserRepositoriesRequest) Reset() { + *x = ListUserRepositoriesRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUserRepositoriesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserRepositoriesRequest) ProtoMessage() {} + +func (x *ListUserRepositoriesRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListUserRepositoriesRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *ListUserRepositoriesRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListUserRepositoriesRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListUserRepositoriesRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListUserRepositoriesRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +func (x *ListUserRepositoriesRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListUserRepositoriesRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListUserRepositoriesRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListUserRepositoriesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the user whose repositories should be listed. + UserId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListUserRepositoriesRequest_builder) Build() *ListUserRepositoriesRequest { + m0 := &ListUserRepositoriesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UserId = b.UserId + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListUserRepositoriesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Repositories *[]*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUserRepositoriesResponse) Reset() { + *x = ListUserRepositoriesResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUserRepositoriesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserRepositoriesResponse) ProtoMessage() {} + +func (x *ListUserRepositoriesResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListUserRepositoriesResponse) GetRepositories() []*Repository { + if x != nil { + if x.xxx_hidden_Repositories != nil { + return *x.xxx_hidden_Repositories + } + } + return nil +} + +func (x *ListUserRepositoriesResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListUserRepositoriesResponse) SetRepositories(v []*Repository) { + x.xxx_hidden_Repositories = &v +} + +func (x *ListUserRepositoriesResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListUserRepositoriesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repositories []*Repository + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListUserRepositoriesResponse_builder) Build() *ListUserRepositoriesResponse { + m0 := &ListUserRepositoriesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Repositories = &b.Repositories + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListRepositoriesUserCanAccessRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,3,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoriesUserCanAccessRequest) Reset() { + *x = ListRepositoriesUserCanAccessRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoriesUserCanAccessRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoriesUserCanAccessRequest) ProtoMessage() {} + +func (x *ListRepositoriesUserCanAccessRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoriesUserCanAccessRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListRepositoriesUserCanAccessRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListRepositoriesUserCanAccessRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListRepositoriesUserCanAccessRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListRepositoriesUserCanAccessRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListRepositoriesUserCanAccessRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListRepositoriesUserCanAccessRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListRepositoriesUserCanAccessRequest_builder) Build() *ListRepositoriesUserCanAccessRequest { + m0 := &ListRepositoriesUserCanAccessRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListRepositoriesUserCanAccessResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Repositories *[]*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoriesUserCanAccessResponse) Reset() { + *x = ListRepositoriesUserCanAccessResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoriesUserCanAccessResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoriesUserCanAccessResponse) ProtoMessage() {} + +func (x *ListRepositoriesUserCanAccessResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoriesUserCanAccessResponse) GetRepositories() []*Repository { + if x != nil { + if x.xxx_hidden_Repositories != nil { + return *x.xxx_hidden_Repositories + } + } + return nil +} + +func (x *ListRepositoriesUserCanAccessResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListRepositoriesUserCanAccessResponse) SetRepositories(v []*Repository) { + x.xxx_hidden_Repositories = &v +} + +func (x *ListRepositoriesUserCanAccessResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListRepositoriesUserCanAccessResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repositories []*Repository + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoriesUserCanAccessResponse_builder) Build() *ListRepositoriesUserCanAccessResponse { + m0 := &ListRepositoriesUserCanAccessResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Repositories = &b.Repositories + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListOrganizationRepositoriesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,4,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListOrganizationRepositoriesRequest) Reset() { + *x = ListOrganizationRepositoriesRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListOrganizationRepositoriesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOrganizationRepositoriesRequest) ProtoMessage() {} + +func (x *ListOrganizationRepositoriesRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListOrganizationRepositoriesRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *ListOrganizationRepositoriesRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListOrganizationRepositoriesRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListOrganizationRepositoriesRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListOrganizationRepositoriesRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *ListOrganizationRepositoriesRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListOrganizationRepositoriesRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListOrganizationRepositoriesRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListOrganizationRepositoriesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the organization whose repositories should be listed. + OrganizationId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListOrganizationRepositoriesRequest_builder) Build() *ListOrganizationRepositoriesRequest { + m0 := &ListOrganizationRepositoriesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListOrganizationRepositoriesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Repositories *[]*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListOrganizationRepositoriesResponse) Reset() { + *x = ListOrganizationRepositoriesResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListOrganizationRepositoriesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOrganizationRepositoriesResponse) ProtoMessage() {} + +func (x *ListOrganizationRepositoriesResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListOrganizationRepositoriesResponse) GetRepositories() []*Repository { + if x != nil { + if x.xxx_hidden_Repositories != nil { + return *x.xxx_hidden_Repositories + } + } + return nil +} + +func (x *ListOrganizationRepositoriesResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListOrganizationRepositoriesResponse) SetRepositories(v []*Repository) { + x.xxx_hidden_Repositories = &v +} + +func (x *ListOrganizationRepositoriesResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListOrganizationRepositoriesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repositories []*Repository + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListOrganizationRepositoriesResponse_builder) Build() *ListOrganizationRepositoriesResponse { + m0 := &ListOrganizationRepositoriesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Repositories = &b.Repositories + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type CreateRepositoryByFullNameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_FullName string `protobuf:"bytes,1,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + xxx_hidden_Visibility Visibility `protobuf:"varint,2,opt,name=visibility,proto3,enum=buf.alpha.registry.v1alpha1.Visibility" json:"visibility,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateRepositoryByFullNameRequest) Reset() { + *x = CreateRepositoryByFullNameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateRepositoryByFullNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateRepositoryByFullNameRequest) ProtoMessage() {} + +func (x *CreateRepositoryByFullNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateRepositoryByFullNameRequest) GetFullName() string { + if x != nil { + return x.xxx_hidden_FullName + } + return "" +} + +func (x *CreateRepositoryByFullNameRequest) GetVisibility() Visibility { + if x != nil { + return x.xxx_hidden_Visibility + } + return Visibility_VISIBILITY_UNSPECIFIED +} + +func (x *CreateRepositoryByFullNameRequest) SetFullName(v string) { + x.xxx_hidden_FullName = v +} + +func (x *CreateRepositoryByFullNameRequest) SetVisibility(v Visibility) { + x.xxx_hidden_Visibility = v +} + +type CreateRepositoryByFullNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Must be unique across repositories. + FullName string + Visibility Visibility +} + +func (b0 CreateRepositoryByFullNameRequest_builder) Build() *CreateRepositoryByFullNameRequest { + m0 := &CreateRepositoryByFullNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_FullName = b.FullName + x.xxx_hidden_Visibility = b.Visibility + return m0 +} + +type CreateRepositoryByFullNameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateRepositoryByFullNameResponse) Reset() { + *x = CreateRepositoryByFullNameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateRepositoryByFullNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateRepositoryByFullNameResponse) ProtoMessage() {} + +func (x *CreateRepositoryByFullNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateRepositoryByFullNameResponse) GetRepository() *Repository { + if x != nil { + return x.xxx_hidden_Repository + } + return nil +} + +func (x *CreateRepositoryByFullNameResponse) SetRepository(v *Repository) { + x.xxx_hidden_Repository = v +} + +func (x *CreateRepositoryByFullNameResponse) HasRepository() bool { + if x == nil { + return false + } + return x.xxx_hidden_Repository != nil +} + +func (x *CreateRepositoryByFullNameResponse) ClearRepository() { + x.xxx_hidden_Repository = nil +} + +type CreateRepositoryByFullNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repository *Repository +} + +func (b0 CreateRepositoryByFullNameResponse_builder) Build() *CreateRepositoryByFullNameResponse { + m0 := &CreateRepositoryByFullNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Repository = b.Repository + return m0 +} + +type DeleteRepositoryRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteRepositoryRequest) Reset() { + *x = DeleteRepositoryRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteRepositoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteRepositoryRequest) ProtoMessage() {} + +func (x *DeleteRepositoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteRepositoryRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *DeleteRepositoryRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +type DeleteRepositoryRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 DeleteRepositoryRequest_builder) Build() *DeleteRepositoryRequest { + m0 := &DeleteRepositoryRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +type DeleteRepositoryResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteRepositoryResponse) Reset() { + *x = DeleteRepositoryResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteRepositoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteRepositoryResponse) ProtoMessage() {} + +func (x *DeleteRepositoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteRepositoryResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteRepositoryResponse_builder) Build() *DeleteRepositoryResponse { + m0 := &DeleteRepositoryResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type DeleteRepositoryByFullNameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_FullName string `protobuf:"bytes,1,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteRepositoryByFullNameRequest) Reset() { + *x = DeleteRepositoryByFullNameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteRepositoryByFullNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteRepositoryByFullNameRequest) ProtoMessage() {} + +func (x *DeleteRepositoryByFullNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteRepositoryByFullNameRequest) GetFullName() string { + if x != nil { + return x.xxx_hidden_FullName + } + return "" +} + +func (x *DeleteRepositoryByFullNameRequest) SetFullName(v string) { + x.xxx_hidden_FullName = v +} + +type DeleteRepositoryByFullNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + FullName string +} + +func (b0 DeleteRepositoryByFullNameRequest_builder) Build() *DeleteRepositoryByFullNameRequest { + m0 := &DeleteRepositoryByFullNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_FullName = b.FullName + return m0 +} + +type DeleteRepositoryByFullNameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteRepositoryByFullNameResponse) Reset() { + *x = DeleteRepositoryByFullNameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteRepositoryByFullNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteRepositoryByFullNameResponse) ProtoMessage() {} + +func (x *DeleteRepositoryByFullNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteRepositoryByFullNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteRepositoryByFullNameResponse_builder) Build() *DeleteRepositoryByFullNameResponse { + m0 := &DeleteRepositoryByFullNameResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type DeprecateRepositoryByNameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_DeprecationMessage string `protobuf:"bytes,3,opt,name=deprecation_message,json=deprecationMessage,proto3" json:"deprecation_message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeprecateRepositoryByNameRequest) Reset() { + *x = DeprecateRepositoryByNameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeprecateRepositoryByNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeprecateRepositoryByNameRequest) ProtoMessage() {} + +func (x *DeprecateRepositoryByNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeprecateRepositoryByNameRequest) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *DeprecateRepositoryByNameRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *DeprecateRepositoryByNameRequest) GetDeprecationMessage() string { + if x != nil { + return x.xxx_hidden_DeprecationMessage + } + return "" +} + +func (x *DeprecateRepositoryByNameRequest) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *DeprecateRepositoryByNameRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *DeprecateRepositoryByNameRequest) SetDeprecationMessage(v string) { + x.xxx_hidden_DeprecationMessage = v +} + +type DeprecateRepositoryByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + OwnerName string + RepositoryName string + // A message shown along with the deprecation warning for this repository. + // It must be a utf8 encoded string containing 256 or fewer characters. + DeprecationMessage string +} + +func (b0 DeprecateRepositoryByNameRequest_builder) Build() *DeprecateRepositoryByNameRequest { + m0 := &DeprecateRepositoryByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_DeprecationMessage = b.DeprecationMessage + return m0 +} + +type DeprecateRepositoryByNameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeprecateRepositoryByNameResponse) Reset() { + *x = DeprecateRepositoryByNameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeprecateRepositoryByNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeprecateRepositoryByNameResponse) ProtoMessage() {} + +func (x *DeprecateRepositoryByNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeprecateRepositoryByNameResponse) GetRepository() *Repository { + if x != nil { + return x.xxx_hidden_Repository + } + return nil +} + +func (x *DeprecateRepositoryByNameResponse) SetRepository(v *Repository) { + x.xxx_hidden_Repository = v +} + +func (x *DeprecateRepositoryByNameResponse) HasRepository() bool { + if x == nil { + return false + } + return x.xxx_hidden_Repository != nil +} + +func (x *DeprecateRepositoryByNameResponse) ClearRepository() { + x.xxx_hidden_Repository = nil +} + +type DeprecateRepositoryByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repository *Repository +} + +func (b0 DeprecateRepositoryByNameResponse_builder) Build() *DeprecateRepositoryByNameResponse { + m0 := &DeprecateRepositoryByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Repository = b.Repository + return m0 +} + +type UndeprecateRepositoryByNameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UndeprecateRepositoryByNameRequest) Reset() { + *x = UndeprecateRepositoryByNameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UndeprecateRepositoryByNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UndeprecateRepositoryByNameRequest) ProtoMessage() {} + +func (x *UndeprecateRepositoryByNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UndeprecateRepositoryByNameRequest) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *UndeprecateRepositoryByNameRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *UndeprecateRepositoryByNameRequest) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *UndeprecateRepositoryByNameRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +type UndeprecateRepositoryByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + OwnerName string + RepositoryName string +} + +func (b0 UndeprecateRepositoryByNameRequest_builder) Build() *UndeprecateRepositoryByNameRequest { + m0 := &UndeprecateRepositoryByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryName = b.RepositoryName + return m0 +} + +type UndeprecateRepositoryByNameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UndeprecateRepositoryByNameResponse) Reset() { + *x = UndeprecateRepositoryByNameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UndeprecateRepositoryByNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UndeprecateRepositoryByNameResponse) ProtoMessage() {} + +func (x *UndeprecateRepositoryByNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UndeprecateRepositoryByNameResponse) GetRepository() *Repository { + if x != nil { + return x.xxx_hidden_Repository + } + return nil +} + +func (x *UndeprecateRepositoryByNameResponse) SetRepository(v *Repository) { + x.xxx_hidden_Repository = v +} + +func (x *UndeprecateRepositoryByNameResponse) HasRepository() bool { + if x == nil { + return false + } + return x.xxx_hidden_Repository != nil +} + +func (x *UndeprecateRepositoryByNameResponse) ClearRepository() { + x.xxx_hidden_Repository = nil +} + +type UndeprecateRepositoryByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Repository *Repository +} + +func (b0 UndeprecateRepositoryByNameResponse_builder) Build() *UndeprecateRepositoryByNameResponse { + m0 := &UndeprecateRepositoryByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Repository = b.Repository + return m0 +} + +type SetRepositoryContributorRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + xxx_hidden_RepositoryRole RepositoryRole `protobuf:"varint,3,opt,name=repository_role,json=repositoryRole,proto3,enum=buf.alpha.registry.v1alpha1.RepositoryRole" json:"repository_role,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetRepositoryContributorRequest) Reset() { + *x = SetRepositoryContributorRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetRepositoryContributorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetRepositoryContributorRequest) ProtoMessage() {} + +func (x *SetRepositoryContributorRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetRepositoryContributorRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *SetRepositoryContributorRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *SetRepositoryContributorRequest) GetRepositoryRole() RepositoryRole { + if x != nil { + return x.xxx_hidden_RepositoryRole + } + return RepositoryRole_REPOSITORY_ROLE_UNSPECIFIED +} + +func (x *SetRepositoryContributorRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *SetRepositoryContributorRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +func (x *SetRepositoryContributorRequest) SetRepositoryRole(v RepositoryRole) { + x.xxx_hidden_RepositoryRole = v +} + +type SetRepositoryContributorRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which the user's role will be set. + RepositoryId string + // The ID of the user whose role will be set. + UserId string + // The role to assign to the user. + // Setting UNSPECIFIED means removing the user's role. + RepositoryRole RepositoryRole +} + +func (b0 SetRepositoryContributorRequest_builder) Build() *SetRepositoryContributorRequest { + m0 := &SetRepositoryContributorRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_UserId = b.UserId + x.xxx_hidden_RepositoryRole = b.RepositoryRole + return m0 +} + +type SetRepositoryContributorResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetRepositoryContributorResponse) Reset() { + *x = SetRepositoryContributorResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetRepositoryContributorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetRepositoryContributorResponse) ProtoMessage() {} + +func (x *SetRepositoryContributorResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type SetRepositoryContributorResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SetRepositoryContributorResponse_builder) Build() *SetRepositoryContributorResponse { + m0 := &SetRepositoryContributorResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListRepositoryContributorsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,4,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryContributorsRequest) Reset() { + *x = ListRepositoryContributorsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryContributorsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryContributorsRequest) ProtoMessage() {} + +func (x *ListRepositoryContributorsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryContributorsRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *ListRepositoryContributorsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListRepositoryContributorsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListRepositoryContributorsRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListRepositoryContributorsRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *ListRepositoryContributorsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListRepositoryContributorsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListRepositoryContributorsRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListRepositoryContributorsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListRepositoryContributorsRequest_builder) Build() *ListRepositoryContributorsRequest { + m0 := &ListRepositoryContributorsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListRepositoryContributorsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Users *[]*RepositoryContributor `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryContributorsResponse) Reset() { + *x = ListRepositoryContributorsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryContributorsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryContributorsResponse) ProtoMessage() {} + +func (x *ListRepositoryContributorsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryContributorsResponse) GetUsers() []*RepositoryContributor { + if x != nil { + if x.xxx_hidden_Users != nil { + return *x.xxx_hidden_Users + } + } + return nil +} + +func (x *ListRepositoryContributorsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListRepositoryContributorsResponse) SetUsers(v []*RepositoryContributor) { + x.xxx_hidden_Users = &v +} + +func (x *ListRepositoryContributorsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListRepositoryContributorsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Users []*RepositoryContributor + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoryContributorsResponse_builder) Build() *ListRepositoryContributorsResponse { + m0 := &ListRepositoryContributorsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Users = &b.Users + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type GetRepositoryContributorRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryContributorRequest) Reset() { + *x = GetRepositoryContributorRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryContributorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryContributorRequest) ProtoMessage() {} + +func (x *GetRepositoryContributorRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryContributorRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *GetRepositoryContributorRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *GetRepositoryContributorRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *GetRepositoryContributorRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +type GetRepositoryContributorRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to get the contributor information. + RepositoryId string + // The ID of the user for which to get the contributor information. + UserId string +} + +func (b0 GetRepositoryContributorRequest_builder) Build() *GetRepositoryContributorRequest { + m0 := &GetRepositoryContributorRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_UserId = b.UserId + return m0 +} + +type GetRepositoryContributorResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_User *RepositoryContributor `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryContributorResponse) Reset() { + *x = GetRepositoryContributorResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryContributorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryContributorResponse) ProtoMessage() {} + +func (x *GetRepositoryContributorResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryContributorResponse) GetUser() *RepositoryContributor { + if x != nil { + return x.xxx_hidden_User + } + return nil +} + +func (x *GetRepositoryContributorResponse) SetUser(v *RepositoryContributor) { + x.xxx_hidden_User = v +} + +func (x *GetRepositoryContributorResponse) HasUser() bool { + if x == nil { + return false + } + return x.xxx_hidden_User != nil +} + +func (x *GetRepositoryContributorResponse) ClearUser() { + x.xxx_hidden_User = nil +} + +type GetRepositoryContributorResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The contributor information of the user in the repository. + User *RepositoryContributor +} + +func (b0 GetRepositoryContributorResponse_builder) Build() *GetRepositoryContributorResponse { + m0 := &GetRepositoryContributorResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_User = b.User + return m0 +} + +type GetRepositorySettingsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositorySettingsRequest) Reset() { + *x = GetRepositorySettingsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositorySettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositorySettingsRequest) ProtoMessage() {} + +func (x *GetRepositorySettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[34] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositorySettingsRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *GetRepositorySettingsRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +type GetRepositorySettingsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository for which to get the settings. + RepositoryId string +} + +func (b0 GetRepositorySettingsRequest_builder) Build() *GetRepositorySettingsRequest { + m0 := &GetRepositorySettingsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + return m0 +} + +type GetRepositorySettingsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ContributorsCount uint32 `protobuf:"varint,1,opt,name=contributors_count,json=contributorsCount,proto3" json:"contributors_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositorySettingsResponse) Reset() { + *x = GetRepositorySettingsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositorySettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositorySettingsResponse) ProtoMessage() {} + +func (x *GetRepositorySettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[35] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositorySettingsResponse) GetContributorsCount() uint32 { + if x != nil { + return x.xxx_hidden_ContributorsCount + } + return 0 +} + +func (x *GetRepositorySettingsResponse) SetContributorsCount(v uint32) { + x.xxx_hidden_ContributorsCount = v +} + +type GetRepositorySettingsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The number of outside contributors in the repository, + // excluding owning-organization's members that have an explicit role. + ContributorsCount uint32 +} + +func (b0 GetRepositorySettingsResponse_builder) Build() *GetRepositorySettingsResponse { + m0 := &GetRepositorySettingsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ContributorsCount = b.ContributorsCount + return m0 +} + +type UpdateRepositorySettingsByNameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_Visibility Visibility `protobuf:"varint,3,opt,name=visibility,proto3,enum=buf.alpha.registry.v1alpha1.Visibility" json:"visibility,omitempty"` + xxx_hidden_Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"` + xxx_hidden_Url *string `protobuf:"bytes,5,opt,name=url,proto3,oneof" json:"url,omitempty"` + xxx_hidden_DefaultBranch *string `protobuf:"bytes,6,opt,name=default_branch,json=defaultBranch,proto3,oneof" json:"default_branch,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateRepositorySettingsByNameRequest) Reset() { + *x = UpdateRepositorySettingsByNameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateRepositorySettingsByNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateRepositorySettingsByNameRequest) ProtoMessage() {} + +func (x *UpdateRepositorySettingsByNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[36] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateRepositorySettingsByNameRequest) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *UpdateRepositorySettingsByNameRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *UpdateRepositorySettingsByNameRequest) GetVisibility() Visibility { + if x != nil { + return x.xxx_hidden_Visibility + } + return Visibility_VISIBILITY_UNSPECIFIED +} + +func (x *UpdateRepositorySettingsByNameRequest) GetDescription() string { + if x != nil { + if x.xxx_hidden_Description != nil { + return *x.xxx_hidden_Description + } + return "" + } + return "" +} + +func (x *UpdateRepositorySettingsByNameRequest) GetUrl() string { + if x != nil { + if x.xxx_hidden_Url != nil { + return *x.xxx_hidden_Url + } + return "" + } + return "" +} + +func (x *UpdateRepositorySettingsByNameRequest) GetDefaultBranch() string { + if x != nil { + if x.xxx_hidden_DefaultBranch != nil { + return *x.xxx_hidden_DefaultBranch + } + return "" + } + return "" +} + +func (x *UpdateRepositorySettingsByNameRequest) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *UpdateRepositorySettingsByNameRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *UpdateRepositorySettingsByNameRequest) SetVisibility(v Visibility) { + x.xxx_hidden_Visibility = v +} + +func (x *UpdateRepositorySettingsByNameRequest) SetDescription(v string) { + x.xxx_hidden_Description = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 3, 6) +} + +func (x *UpdateRepositorySettingsByNameRequest) SetUrl(v string) { + x.xxx_hidden_Url = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 4, 6) +} + +func (x *UpdateRepositorySettingsByNameRequest) SetDefaultBranch(v string) { + x.xxx_hidden_DefaultBranch = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 5, 6) +} + +func (x *UpdateRepositorySettingsByNameRequest) HasDescription() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 3) +} + +func (x *UpdateRepositorySettingsByNameRequest) HasUrl() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 4) +} + +func (x *UpdateRepositorySettingsByNameRequest) HasDefaultBranch() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 5) +} + +func (x *UpdateRepositorySettingsByNameRequest) ClearDescription() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 3) + x.xxx_hidden_Description = nil +} + +func (x *UpdateRepositorySettingsByNameRequest) ClearUrl() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 4) + x.xxx_hidden_Url = nil +} + +func (x *UpdateRepositorySettingsByNameRequest) ClearDefaultBranch() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 5) + x.xxx_hidden_DefaultBranch = nil +} + +type UpdateRepositorySettingsByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + OwnerName string + RepositoryName string + // optional, update to visibility will only be made if this is specified. + Visibility Visibility + // optional, update to description will only be made when this is present + Description *string + // optional, update to url will only be made when this is present + Url *string + // optional, update to default_branch will only be made when this is present + DefaultBranch *string +} + +func (b0 UpdateRepositorySettingsByNameRequest_builder) Build() *UpdateRepositorySettingsByNameRequest { + m0 := &UpdateRepositorySettingsByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_Visibility = b.Visibility + if b.Description != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 3, 6) + x.xxx_hidden_Description = b.Description + } + if b.Url != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 4, 6) + x.xxx_hidden_Url = b.Url + } + if b.DefaultBranch != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 5, 6) + x.xxx_hidden_DefaultBranch = b.DefaultBranch + } + return m0 +} + +type UpdateRepositorySettingsByNameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateRepositorySettingsByNameResponse) Reset() { + *x = UpdateRepositorySettingsByNameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateRepositorySettingsByNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateRepositorySettingsByNameResponse) ProtoMessage() {} + +func (x *UpdateRepositorySettingsByNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[37] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UpdateRepositorySettingsByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateRepositorySettingsByNameResponse_builder) Build() *UpdateRepositorySettingsByNameResponse { + m0 := &UpdateRepositorySettingsByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetRepositoriesMetadataRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoriesMetadataRequest) Reset() { + *x = GetRepositoriesMetadataRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoriesMetadataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoriesMetadataRequest) ProtoMessage() {} + +func (x *GetRepositoriesMetadataRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[38] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoriesMetadataRequest) GetIds() []string { + if x != nil { + return x.xxx_hidden_Ids + } + return nil +} + +func (x *GetRepositoriesMetadataRequest) SetIds(v []string) { + x.xxx_hidden_Ids = v +} + +type GetRepositoriesMetadataRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of repository IDs to request the metadata. + Ids []string +} + +func (b0 GetRepositoriesMetadataRequest_builder) Build() *GetRepositoriesMetadataRequest { + m0 := &GetRepositoriesMetadataRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Ids = b.Ids + return m0 +} + +type GetRepositoriesMetadataResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Metadata *[]*RepositoryMetadata `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoriesMetadataResponse) Reset() { + *x = GetRepositoriesMetadataResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoriesMetadataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoriesMetadataResponse) ProtoMessage() {} + +func (x *GetRepositoriesMetadataResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[39] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoriesMetadataResponse) GetMetadata() []*RepositoryMetadata { + if x != nil { + if x.xxx_hidden_Metadata != nil { + return *x.xxx_hidden_Metadata + } + } + return nil +} + +func (x *GetRepositoriesMetadataResponse) SetMetadata(v []*RepositoryMetadata) { + x.xxx_hidden_Metadata = &v +} + +type GetRepositoriesMetadataResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Metadata []*RepositoryMetadata +} + +func (b0 GetRepositoriesMetadataResponse_builder) Build() *GetRepositoriesMetadataResponse { + m0 := &GetRepositoriesMetadataResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Metadata = &b.Metadata + return m0 +} + +type GetRepositoryDependencyDOTStringRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,3,opt,name=reference,proto3" json:"reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryDependencyDOTStringRequest) Reset() { + *x = GetRepositoryDependencyDOTStringRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryDependencyDOTStringRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryDependencyDOTStringRequest) ProtoMessage() {} + +func (x *GetRepositoryDependencyDOTStringRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[40] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryDependencyDOTStringRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetRepositoryDependencyDOTStringRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *GetRepositoryDependencyDOTStringRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *GetRepositoryDependencyDOTStringRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetRepositoryDependencyDOTStringRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *GetRepositoryDependencyDOTStringRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +type GetRepositoryDependencyDOTStringRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the BSR repository. + Owner string + // The name of the BSR repository. + Repository string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string +} + +func (b0 GetRepositoryDependencyDOTStringRequest_builder) Build() *GetRepositoryDependencyDOTStringRequest { + m0 := &GetRepositoryDependencyDOTStringRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Reference = b.Reference + return m0 +} + +type GetRepositoryDependencyDOTStringResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DotString string `protobuf:"bytes,1,opt,name=dot_string,json=dotString,proto3" json:"dot_string,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryDependencyDOTStringResponse) Reset() { + *x = GetRepositoryDependencyDOTStringResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryDependencyDOTStringResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryDependencyDOTStringResponse) ProtoMessage() {} + +func (x *GetRepositoryDependencyDOTStringResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[41] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryDependencyDOTStringResponse) GetDotString() string { + if x != nil { + return x.xxx_hidden_DotString + } + return "" +} + +func (x *GetRepositoryDependencyDOTStringResponse) SetDotString(v string) { + x.xxx_hidden_DotString = v +} + +type GetRepositoryDependencyDOTStringResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The string DOT representation of the dependency graph for the repository. + // + // DOT language reference: https://graphviz.org/doc/info/lang.html + DotString string +} + +func (b0 GetRepositoryDependencyDOTStringResponse_builder) Build() *GetRepositoryDependencyDOTStringResponse { + m0 := &GetRepositoryDependencyDOTStringResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DotString = b.DotString + return m0 +} + +var File_buf_alpha_registry_v1alpha1_repository_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_repository_proto_rawDesc = []byte{ + 0x0a, 0x2c, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x26, 0x62, 0x75, 0x66, + 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x35, 0x62, 0x75, 0x66, + 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x8d, 0x04, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 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, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x19, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x0f, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x52, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, + 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, + 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x75, 0x72, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x42, 0x07, 0x0a, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x22, 0x68, 0x0a, 0x10, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x67, 0x73, 0x5f, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x74, 0x61, 0x67, + 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x72, 0x61, 0x66, 0x74, 0x73, + 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x64, 0x72, + 0x61, 0x66, 0x74, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x52, + 0x0c, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x97, 0x02, + 0x0a, 0x15, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x35, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x23, + 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x49, 0x64, 0x12, 0x50, 0x0a, 0x0d, 0x65, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x5f, + 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, + 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x63, 0x69, + 0x74, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x0c, 0x69, 0x6d, 0x70, 0x6c, 0x69, + 0x63, 0x69, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0xc3, 0x02, 0x0a, 0x12, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 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, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x6b, 0x0a, 0x19, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x17, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x48, + 0x0a, 0x12, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x10, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x6c, 0x61, 0x74, 0x65, + 0x73, 0x74, 0x5f, 0x73, 0x70, 0x64, 0x78, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x53, 0x70, 0x64, 0x78, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x49, 0x64, 0x22, 0x41, 0x0a, + 0x20, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, + 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, + 0x22, 0x70, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x69, 0x65, 0x73, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, + 0x65, 0x73, 0x22, 0x26, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xa7, 0x01, 0x0a, 0x15, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x45, 0x0a, + 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x06, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x73, 0x22, 0x3d, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, + 0x61, 0x6d, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x45, 0x0a, 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, + 0x06, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x6f, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, + 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, + 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, + 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8c, 0x01, 0x0a, 0x1b, 0x4c, + 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x1c, 0x4c, 0x69, + 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0c, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, + 0x7c, 0x0a, 0x24, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x69, 0x65, 0x73, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, + 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x9c, 0x01, + 0x0a, 0x25, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, + 0x65, 0x73, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, + 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xa4, 0x01, 0x0a, + 0x23, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, + 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, + 0x65, 0x72, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, + 0x72, 0x73, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x24, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0c, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, + 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x22, 0x89, 0x01, 0x0a, 0x21, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x52, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x22, 0x6d, 0x0a, + 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x29, 0x0a, 0x17, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x40, 0x0a, 0x21, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, + 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, + 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x20, + 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x70, 0x72, + 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x6c, 0x0a, 0x21, 0x44, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x6c, 0x0a, 0x22, 0x55, 0x6e, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x6e, 0x0a, 0x23, 0x55, 0x6e, 0x64, 0x65, 0x70, 0x72, 0x65, + 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, + 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0xb5, 0x01, 0x0a, 0x1f, 0x53, 0x65, 0x74, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x17, + 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x0e, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x22, 0x0a, + 0x20, 0x53, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x9e, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, + 0x72, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, + 0x73, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x05, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, + 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5f, 0x0a, 0x1f, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, + 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x6a, 0x0a, 0x20, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x46, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x6f, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x43, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x4e, 0x0a, + 0x1d, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, + 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x5f, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xcd, 0x02, + 0x0a, 0x25, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x47, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x76, 0x69, + 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, + 0x15, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x03, + 0x75, 0x72, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x2a, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, + 0x52, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x88, + 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x75, 0x72, 0x6c, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x64, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x28, 0x0a, + 0x26, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x6e, 0x0a, 0x1f, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, + 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x7d, 0x0a, 0x27, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x65, 0x70, 0x65, + 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x44, 0x4f, 0x54, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x49, 0x0a, 0x28, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x79, 0x44, 0x4f, 0x54, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x6f, 0x74, 0x5f, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x6f, 0x74, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2a, 0x57, 0x0a, 0x0a, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, + 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x15, 0x0a, 0x11, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x55, + 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, + 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x02, 0x32, 0xc5, + 0x17, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x7b, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, + 0x01, 0x12, 0x99, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, + 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x84, 0x01, + 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, + 0x65, 0x73, 0x12, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x03, 0x90, 0x02, 0x01, 0x12, 0x90, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x38, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xab, 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x55, 0x73, 0x65, 0x72, + 0x43, 0x61, 0x6e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x41, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x6e, 0x41, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x55, 0x73, 0x65, 0x72, 0x43, + 0x61, 0x6e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xa8, 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x40, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, + 0x12, 0xa2, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x3e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, + 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x3f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, + 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0x84, 0x01, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x34, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x35, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0xa2, 0x01, 0x0a, + 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, + 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, + 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, + 0x02, 0x12, 0x9a, 0x01, 0x0a, 0x19, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x3d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xa0, + 0x01, 0x0a, 0x1b, 0x55, 0x6e, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3f, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x64, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x40, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x6e, + 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x69, 0x65, 0x73, 0x42, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x3d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x42, 0x79, 0x46, + 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x42, 0x79, 0x46, 0x75, + 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, + 0x90, 0x02, 0x01, 0x12, 0x97, 0x01, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, + 0x12, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, + 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xa2, 0x01, + 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x3e, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, + 0x02, 0x01, 0x12, 0x9c, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x12, + 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, + 0x01, 0x12, 0x93, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x39, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xa9, 0x01, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x99, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x3b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, + 0xb4, 0x01, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x44, 0x4f, 0x54, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x12, 0x44, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x44, 0x4f, 0x54, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x45, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, + 0x44, 0x4f, 0x54, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x9c, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0f, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, + 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, + 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, + 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_repository_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes = make([]protoimpl.MessageInfo, 42) +var file_buf_alpha_registry_v1alpha1_repository_proto_goTypes = []any{ + (Visibility)(0), // 0: buf.alpha.registry.v1alpha1.Visibility + (*Repository)(nil), // 1: buf.alpha.registry.v1alpha1.Repository + (*RepositoryCounts)(nil), // 2: buf.alpha.registry.v1alpha1.RepositoryCounts + (*RepositoryContributor)(nil), // 3: buf.alpha.registry.v1alpha1.RepositoryContributor + (*RepositoryMetadata)(nil), // 4: buf.alpha.registry.v1alpha1.RepositoryMetadata + (*GetRepositoriesByFullNameRequest)(nil), // 5: buf.alpha.registry.v1alpha1.GetRepositoriesByFullNameRequest + (*GetRepositoriesByFullNameResponse)(nil), // 6: buf.alpha.registry.v1alpha1.GetRepositoriesByFullNameResponse + (*GetRepositoryRequest)(nil), // 7: buf.alpha.registry.v1alpha1.GetRepositoryRequest + (*GetRepositoryResponse)(nil), // 8: buf.alpha.registry.v1alpha1.GetRepositoryResponse + (*GetRepositoryByFullNameRequest)(nil), // 9: buf.alpha.registry.v1alpha1.GetRepositoryByFullNameRequest + (*GetRepositoryByFullNameResponse)(nil), // 10: buf.alpha.registry.v1alpha1.GetRepositoryByFullNameResponse + (*ListRepositoriesRequest)(nil), // 11: buf.alpha.registry.v1alpha1.ListRepositoriesRequest + (*ListRepositoriesResponse)(nil), // 12: buf.alpha.registry.v1alpha1.ListRepositoriesResponse + (*ListUserRepositoriesRequest)(nil), // 13: buf.alpha.registry.v1alpha1.ListUserRepositoriesRequest + (*ListUserRepositoriesResponse)(nil), // 14: buf.alpha.registry.v1alpha1.ListUserRepositoriesResponse + (*ListRepositoriesUserCanAccessRequest)(nil), // 15: buf.alpha.registry.v1alpha1.ListRepositoriesUserCanAccessRequest + (*ListRepositoriesUserCanAccessResponse)(nil), // 16: buf.alpha.registry.v1alpha1.ListRepositoriesUserCanAccessResponse + (*ListOrganizationRepositoriesRequest)(nil), // 17: buf.alpha.registry.v1alpha1.ListOrganizationRepositoriesRequest + (*ListOrganizationRepositoriesResponse)(nil), // 18: buf.alpha.registry.v1alpha1.ListOrganizationRepositoriesResponse + (*CreateRepositoryByFullNameRequest)(nil), // 19: buf.alpha.registry.v1alpha1.CreateRepositoryByFullNameRequest + (*CreateRepositoryByFullNameResponse)(nil), // 20: buf.alpha.registry.v1alpha1.CreateRepositoryByFullNameResponse + (*DeleteRepositoryRequest)(nil), // 21: buf.alpha.registry.v1alpha1.DeleteRepositoryRequest + (*DeleteRepositoryResponse)(nil), // 22: buf.alpha.registry.v1alpha1.DeleteRepositoryResponse + (*DeleteRepositoryByFullNameRequest)(nil), // 23: buf.alpha.registry.v1alpha1.DeleteRepositoryByFullNameRequest + (*DeleteRepositoryByFullNameResponse)(nil), // 24: buf.alpha.registry.v1alpha1.DeleteRepositoryByFullNameResponse + (*DeprecateRepositoryByNameRequest)(nil), // 25: buf.alpha.registry.v1alpha1.DeprecateRepositoryByNameRequest + (*DeprecateRepositoryByNameResponse)(nil), // 26: buf.alpha.registry.v1alpha1.DeprecateRepositoryByNameResponse + (*UndeprecateRepositoryByNameRequest)(nil), // 27: buf.alpha.registry.v1alpha1.UndeprecateRepositoryByNameRequest + (*UndeprecateRepositoryByNameResponse)(nil), // 28: buf.alpha.registry.v1alpha1.UndeprecateRepositoryByNameResponse + (*SetRepositoryContributorRequest)(nil), // 29: buf.alpha.registry.v1alpha1.SetRepositoryContributorRequest + (*SetRepositoryContributorResponse)(nil), // 30: buf.alpha.registry.v1alpha1.SetRepositoryContributorResponse + (*ListRepositoryContributorsRequest)(nil), // 31: buf.alpha.registry.v1alpha1.ListRepositoryContributorsRequest + (*ListRepositoryContributorsResponse)(nil), // 32: buf.alpha.registry.v1alpha1.ListRepositoryContributorsResponse + (*GetRepositoryContributorRequest)(nil), // 33: buf.alpha.registry.v1alpha1.GetRepositoryContributorRequest + (*GetRepositoryContributorResponse)(nil), // 34: buf.alpha.registry.v1alpha1.GetRepositoryContributorResponse + (*GetRepositorySettingsRequest)(nil), // 35: buf.alpha.registry.v1alpha1.GetRepositorySettingsRequest + (*GetRepositorySettingsResponse)(nil), // 36: buf.alpha.registry.v1alpha1.GetRepositorySettingsResponse + (*UpdateRepositorySettingsByNameRequest)(nil), // 37: buf.alpha.registry.v1alpha1.UpdateRepositorySettingsByNameRequest + (*UpdateRepositorySettingsByNameResponse)(nil), // 38: buf.alpha.registry.v1alpha1.UpdateRepositorySettingsByNameResponse + (*GetRepositoriesMetadataRequest)(nil), // 39: buf.alpha.registry.v1alpha1.GetRepositoriesMetadataRequest + (*GetRepositoriesMetadataResponse)(nil), // 40: buf.alpha.registry.v1alpha1.GetRepositoriesMetadataResponse + (*GetRepositoryDependencyDOTStringRequest)(nil), // 41: buf.alpha.registry.v1alpha1.GetRepositoryDependencyDOTStringRequest + (*GetRepositoryDependencyDOTStringResponse)(nil), // 42: buf.alpha.registry.v1alpha1.GetRepositoryDependencyDOTStringResponse + (*timestamppb.Timestamp)(nil), // 43: google.protobuf.Timestamp + (*User)(nil), // 44: buf.alpha.registry.v1alpha1.User + (RepositoryRole)(0), // 45: buf.alpha.registry.v1alpha1.RepositoryRole + (VerificationStatus)(0), // 46: buf.alpha.registry.v1alpha1.VerificationStatus +} +var file_buf_alpha_registry_v1alpha1_repository_proto_depIdxs = []int32{ + 43, // 0: buf.alpha.registry.v1alpha1.Repository.create_time:type_name -> google.protobuf.Timestamp + 43, // 1: buf.alpha.registry.v1alpha1.Repository.update_time:type_name -> google.protobuf.Timestamp + 0, // 2: buf.alpha.registry.v1alpha1.Repository.visibility:type_name -> buf.alpha.registry.v1alpha1.Visibility + 44, // 3: buf.alpha.registry.v1alpha1.RepositoryContributor.user:type_name -> buf.alpha.registry.v1alpha1.User + 45, // 4: buf.alpha.registry.v1alpha1.RepositoryContributor.explicit_role:type_name -> buf.alpha.registry.v1alpha1.RepositoryRole + 45, // 5: buf.alpha.registry.v1alpha1.RepositoryContributor.implicit_role:type_name -> buf.alpha.registry.v1alpha1.RepositoryRole + 46, // 6: buf.alpha.registry.v1alpha1.RepositoryMetadata.owner_verification_status:type_name -> buf.alpha.registry.v1alpha1.VerificationStatus + 43, // 7: buf.alpha.registry.v1alpha1.RepositoryMetadata.latest_commit_time:type_name -> google.protobuf.Timestamp + 1, // 8: buf.alpha.registry.v1alpha1.GetRepositoriesByFullNameResponse.repositories:type_name -> buf.alpha.registry.v1alpha1.Repository + 1, // 9: buf.alpha.registry.v1alpha1.GetRepositoryResponse.repository:type_name -> buf.alpha.registry.v1alpha1.Repository + 2, // 10: buf.alpha.registry.v1alpha1.GetRepositoryResponse.counts:type_name -> buf.alpha.registry.v1alpha1.RepositoryCounts + 1, // 11: buf.alpha.registry.v1alpha1.GetRepositoryByFullNameResponse.repository:type_name -> buf.alpha.registry.v1alpha1.Repository + 2, // 12: buf.alpha.registry.v1alpha1.GetRepositoryByFullNameResponse.counts:type_name -> buf.alpha.registry.v1alpha1.RepositoryCounts + 1, // 13: buf.alpha.registry.v1alpha1.ListRepositoriesResponse.repositories:type_name -> buf.alpha.registry.v1alpha1.Repository + 1, // 14: buf.alpha.registry.v1alpha1.ListUserRepositoriesResponse.repositories:type_name -> buf.alpha.registry.v1alpha1.Repository + 1, // 15: buf.alpha.registry.v1alpha1.ListRepositoriesUserCanAccessResponse.repositories:type_name -> buf.alpha.registry.v1alpha1.Repository + 1, // 16: buf.alpha.registry.v1alpha1.ListOrganizationRepositoriesResponse.repositories:type_name -> buf.alpha.registry.v1alpha1.Repository + 0, // 17: buf.alpha.registry.v1alpha1.CreateRepositoryByFullNameRequest.visibility:type_name -> buf.alpha.registry.v1alpha1.Visibility + 1, // 18: buf.alpha.registry.v1alpha1.CreateRepositoryByFullNameResponse.repository:type_name -> buf.alpha.registry.v1alpha1.Repository + 1, // 19: buf.alpha.registry.v1alpha1.DeprecateRepositoryByNameResponse.repository:type_name -> buf.alpha.registry.v1alpha1.Repository + 1, // 20: buf.alpha.registry.v1alpha1.UndeprecateRepositoryByNameResponse.repository:type_name -> buf.alpha.registry.v1alpha1.Repository + 45, // 21: buf.alpha.registry.v1alpha1.SetRepositoryContributorRequest.repository_role:type_name -> buf.alpha.registry.v1alpha1.RepositoryRole + 3, // 22: buf.alpha.registry.v1alpha1.ListRepositoryContributorsResponse.users:type_name -> buf.alpha.registry.v1alpha1.RepositoryContributor + 3, // 23: buf.alpha.registry.v1alpha1.GetRepositoryContributorResponse.user:type_name -> buf.alpha.registry.v1alpha1.RepositoryContributor + 0, // 24: buf.alpha.registry.v1alpha1.UpdateRepositorySettingsByNameRequest.visibility:type_name -> buf.alpha.registry.v1alpha1.Visibility + 4, // 25: buf.alpha.registry.v1alpha1.GetRepositoriesMetadataResponse.metadata:type_name -> buf.alpha.registry.v1alpha1.RepositoryMetadata + 7, // 26: buf.alpha.registry.v1alpha1.RepositoryService.GetRepository:input_type -> buf.alpha.registry.v1alpha1.GetRepositoryRequest + 9, // 27: buf.alpha.registry.v1alpha1.RepositoryService.GetRepositoryByFullName:input_type -> buf.alpha.registry.v1alpha1.GetRepositoryByFullNameRequest + 11, // 28: buf.alpha.registry.v1alpha1.RepositoryService.ListRepositories:input_type -> buf.alpha.registry.v1alpha1.ListRepositoriesRequest + 13, // 29: buf.alpha.registry.v1alpha1.RepositoryService.ListUserRepositories:input_type -> buf.alpha.registry.v1alpha1.ListUserRepositoriesRequest + 15, // 30: buf.alpha.registry.v1alpha1.RepositoryService.ListRepositoriesUserCanAccess:input_type -> buf.alpha.registry.v1alpha1.ListRepositoriesUserCanAccessRequest + 17, // 31: buf.alpha.registry.v1alpha1.RepositoryService.ListOrganizationRepositories:input_type -> buf.alpha.registry.v1alpha1.ListOrganizationRepositoriesRequest + 19, // 32: buf.alpha.registry.v1alpha1.RepositoryService.CreateRepositoryByFullName:input_type -> buf.alpha.registry.v1alpha1.CreateRepositoryByFullNameRequest + 21, // 33: buf.alpha.registry.v1alpha1.RepositoryService.DeleteRepository:input_type -> buf.alpha.registry.v1alpha1.DeleteRepositoryRequest + 23, // 34: buf.alpha.registry.v1alpha1.RepositoryService.DeleteRepositoryByFullName:input_type -> buf.alpha.registry.v1alpha1.DeleteRepositoryByFullNameRequest + 25, // 35: buf.alpha.registry.v1alpha1.RepositoryService.DeprecateRepositoryByName:input_type -> buf.alpha.registry.v1alpha1.DeprecateRepositoryByNameRequest + 27, // 36: buf.alpha.registry.v1alpha1.RepositoryService.UndeprecateRepositoryByName:input_type -> buf.alpha.registry.v1alpha1.UndeprecateRepositoryByNameRequest + 5, // 37: buf.alpha.registry.v1alpha1.RepositoryService.GetRepositoriesByFullName:input_type -> buf.alpha.registry.v1alpha1.GetRepositoriesByFullNameRequest + 29, // 38: buf.alpha.registry.v1alpha1.RepositoryService.SetRepositoryContributor:input_type -> buf.alpha.registry.v1alpha1.SetRepositoryContributorRequest + 31, // 39: buf.alpha.registry.v1alpha1.RepositoryService.ListRepositoryContributors:input_type -> buf.alpha.registry.v1alpha1.ListRepositoryContributorsRequest + 33, // 40: buf.alpha.registry.v1alpha1.RepositoryService.GetRepositoryContributor:input_type -> buf.alpha.registry.v1alpha1.GetRepositoryContributorRequest + 35, // 41: buf.alpha.registry.v1alpha1.RepositoryService.GetRepositorySettings:input_type -> buf.alpha.registry.v1alpha1.GetRepositorySettingsRequest + 37, // 42: buf.alpha.registry.v1alpha1.RepositoryService.UpdateRepositorySettingsByName:input_type -> buf.alpha.registry.v1alpha1.UpdateRepositorySettingsByNameRequest + 39, // 43: buf.alpha.registry.v1alpha1.RepositoryService.GetRepositoriesMetadata:input_type -> buf.alpha.registry.v1alpha1.GetRepositoriesMetadataRequest + 41, // 44: buf.alpha.registry.v1alpha1.RepositoryService.GetRepositoryDependencyDOTString:input_type -> buf.alpha.registry.v1alpha1.GetRepositoryDependencyDOTStringRequest + 8, // 45: buf.alpha.registry.v1alpha1.RepositoryService.GetRepository:output_type -> buf.alpha.registry.v1alpha1.GetRepositoryResponse + 10, // 46: buf.alpha.registry.v1alpha1.RepositoryService.GetRepositoryByFullName:output_type -> buf.alpha.registry.v1alpha1.GetRepositoryByFullNameResponse + 12, // 47: buf.alpha.registry.v1alpha1.RepositoryService.ListRepositories:output_type -> buf.alpha.registry.v1alpha1.ListRepositoriesResponse + 14, // 48: buf.alpha.registry.v1alpha1.RepositoryService.ListUserRepositories:output_type -> buf.alpha.registry.v1alpha1.ListUserRepositoriesResponse + 16, // 49: buf.alpha.registry.v1alpha1.RepositoryService.ListRepositoriesUserCanAccess:output_type -> buf.alpha.registry.v1alpha1.ListRepositoriesUserCanAccessResponse + 18, // 50: buf.alpha.registry.v1alpha1.RepositoryService.ListOrganizationRepositories:output_type -> buf.alpha.registry.v1alpha1.ListOrganizationRepositoriesResponse + 20, // 51: buf.alpha.registry.v1alpha1.RepositoryService.CreateRepositoryByFullName:output_type -> buf.alpha.registry.v1alpha1.CreateRepositoryByFullNameResponse + 22, // 52: buf.alpha.registry.v1alpha1.RepositoryService.DeleteRepository:output_type -> buf.alpha.registry.v1alpha1.DeleteRepositoryResponse + 24, // 53: buf.alpha.registry.v1alpha1.RepositoryService.DeleteRepositoryByFullName:output_type -> buf.alpha.registry.v1alpha1.DeleteRepositoryByFullNameResponse + 26, // 54: buf.alpha.registry.v1alpha1.RepositoryService.DeprecateRepositoryByName:output_type -> buf.alpha.registry.v1alpha1.DeprecateRepositoryByNameResponse + 28, // 55: buf.alpha.registry.v1alpha1.RepositoryService.UndeprecateRepositoryByName:output_type -> buf.alpha.registry.v1alpha1.UndeprecateRepositoryByNameResponse + 6, // 56: buf.alpha.registry.v1alpha1.RepositoryService.GetRepositoriesByFullName:output_type -> buf.alpha.registry.v1alpha1.GetRepositoriesByFullNameResponse + 30, // 57: buf.alpha.registry.v1alpha1.RepositoryService.SetRepositoryContributor:output_type -> buf.alpha.registry.v1alpha1.SetRepositoryContributorResponse + 32, // 58: buf.alpha.registry.v1alpha1.RepositoryService.ListRepositoryContributors:output_type -> buf.alpha.registry.v1alpha1.ListRepositoryContributorsResponse + 34, // 59: buf.alpha.registry.v1alpha1.RepositoryService.GetRepositoryContributor:output_type -> buf.alpha.registry.v1alpha1.GetRepositoryContributorResponse + 36, // 60: buf.alpha.registry.v1alpha1.RepositoryService.GetRepositorySettings:output_type -> buf.alpha.registry.v1alpha1.GetRepositorySettingsResponse + 38, // 61: buf.alpha.registry.v1alpha1.RepositoryService.UpdateRepositorySettingsByName:output_type -> buf.alpha.registry.v1alpha1.UpdateRepositorySettingsByNameResponse + 40, // 62: buf.alpha.registry.v1alpha1.RepositoryService.GetRepositoriesMetadata:output_type -> buf.alpha.registry.v1alpha1.GetRepositoriesMetadataResponse + 42, // 63: buf.alpha.registry.v1alpha1.RepositoryService.GetRepositoryDependencyDOTString:output_type -> buf.alpha.registry.v1alpha1.GetRepositoryDependencyDOTStringResponse + 45, // [45:64] is the sub-list for method output_type + 26, // [26:45] is the sub-list for method input_type + 26, // [26:26] is the sub-list for extension type_name + 26, // [26:26] is the sub-list for extension extendee + 0, // [0:26] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_repository_proto_init() } +func file_buf_alpha_registry_v1alpha1_repository_proto_init() { + if File_buf_alpha_registry_v1alpha1_repository_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_role_proto_init() + file_buf_alpha_registry_v1alpha1_user_proto_init() + file_buf_alpha_registry_v1alpha1_verification_status_proto_init() + file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[0].OneofWrappers = []any{ + (*repository_UserId)(nil), + (*repository_OrganizationId)(nil), + } + file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes[36].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_repository_proto_rawDesc, + NumEnums: 1, + NumMessages: 42, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_repository_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_repository_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_repository_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_repository_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_repository_proto = out.File + file_buf_alpha_registry_v1alpha1_repository_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_repository_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_repository_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_tag.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_tag.pb.go index 055515f129..d42c0d2d07 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_tag.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_tag.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/repository_tag.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -36,7 +37,7 @@ const ( ) type RepositoryTag struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // primary key, unique. // tags are based on labels, so if a label has been moved, the ID will point to the // updated entry in the labels table. @@ -80,11 +81,6 @@ func (x *RepositoryTag) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepositoryTag.ProtoReflect.Descriptor instead. -func (*RepositoryTag) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescGZIP(), []int{0} -} - func (x *RepositoryTag) GetId() string { if x != nil { return x.Id @@ -120,8 +116,70 @@ func (x *RepositoryTag) GetAuthor() string { return "" } +func (x *RepositoryTag) SetId(v string) { + x.Id = v +} + +func (x *RepositoryTag) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *RepositoryTag) SetName(v string) { + x.Name = v +} + +func (x *RepositoryTag) SetCommitName(v string) { + x.CommitName = v +} + +func (x *RepositoryTag) SetAuthor(v string) { + x.Author = v +} + +func (x *RepositoryTag) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *RepositoryTag) ClearCreateTime() { + x.CreateTime = nil +} + +type RepositoryTag_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique. + // tags are based on labels, so if a label has been moved, the ID will point to the + // updated entry in the labels table. + Id string + // immutable + CreateTime *timestamppb.Timestamp + // We reserve field number '3' for the update_time. + // google.protobuf.Timestamp update_time = 3; + // The name of the repository tag, e.g. "6e2e7f24718a76caa32a80d0e2b1841ef2c61403". + Name string + // The name of the commit this tag belongs to. + CommitName string + // The username of the author of the tag. + Author string +} + +func (b0 RepositoryTag_builder) Build() *RepositoryTag { + m0 := &RepositoryTag{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.CreateTime = b.CreateTime + x.Name = b.Name + x.CommitName = b.CommitName + x.Author = b.Author + return m0 +} + type GetRepositoryTagRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository this tag belongs to. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` // The name of the repository tag to get, e.g. "6e2e7f24718a76caa32a80d0e2b1841ef2c61403". @@ -155,11 +213,6 @@ func (x *GetRepositoryTagRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryTagRequest.ProtoReflect.Descriptor instead. -func (*GetRepositoryTagRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescGZIP(), []int{1} -} - func (x *GetRepositoryTagRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -174,8 +227,34 @@ func (x *GetRepositoryTagRequest) GetName() string { return "" } +func (x *GetRepositoryTagRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *GetRepositoryTagRequest) SetName(v string) { + x.Name = v +} + +type GetRepositoryTagRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository this tag belongs to. + RepositoryId string + // The name of the repository tag to get, e.g. "6e2e7f24718a76caa32a80d0e2b1841ef2c61403". + Name string +} + +func (b0 GetRepositoryTagRequest_builder) Build() *GetRepositoryTagRequest { + m0 := &GetRepositoryTagRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.Name = b.Name + return m0 +} + type GetRepositoryTagResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryTag *RepositoryTag `protobuf:"bytes,1,opt,name=repository_tag,json=repositoryTag,proto3" json:"repository_tag,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -206,11 +285,6 @@ func (x *GetRepositoryTagResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRepositoryTagResponse.ProtoReflect.Descriptor instead. -func (*GetRepositoryTagResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescGZIP(), []int{2} -} - func (x *GetRepositoryTagResponse) GetRepositoryTag() *RepositoryTag { if x != nil { return x.RepositoryTag @@ -218,8 +292,37 @@ func (x *GetRepositoryTagResponse) GetRepositoryTag() *RepositoryTag { return nil } +func (x *GetRepositoryTagResponse) SetRepositoryTag(v *RepositoryTag) { + x.RepositoryTag = v +} + +func (x *GetRepositoryTagResponse) HasRepositoryTag() bool { + if x == nil { + return false + } + return x.RepositoryTag != nil +} + +func (x *GetRepositoryTagResponse) ClearRepositoryTag() { + x.RepositoryTag = nil +} + +type GetRepositoryTagResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryTag *RepositoryTag +} + +func (b0 GetRepositoryTagResponse_builder) Build() *GetRepositoryTagResponse { + m0 := &GetRepositoryTagResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryTag = b.RepositoryTag + return m0 +} + type CreateRepositoryTagRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository this tag should be created on. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` // The name of the repository tag, e.g. "6e2e7f24718a76caa32a80d0e2b1841ef2c61403". @@ -255,11 +358,6 @@ func (x *CreateRepositoryTagRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateRepositoryTagRequest.ProtoReflect.Descriptor instead. -func (*CreateRepositoryTagRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescGZIP(), []int{3} -} - func (x *CreateRepositoryTagRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -281,8 +379,41 @@ func (x *CreateRepositoryTagRequest) GetCommitName() string { return "" } +func (x *CreateRepositoryTagRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *CreateRepositoryTagRequest) SetName(v string) { + x.Name = v +} + +func (x *CreateRepositoryTagRequest) SetCommitName(v string) { + x.CommitName = v +} + +type CreateRepositoryTagRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository this tag should be created on. + RepositoryId string + // The name of the repository tag, e.g. "6e2e7f24718a76caa32a80d0e2b1841ef2c61403". + Name string + // The name of the commit this tag should be created for. + CommitName string +} + +func (b0 CreateRepositoryTagRequest_builder) Build() *CreateRepositoryTagRequest { + m0 := &CreateRepositoryTagRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.Name = b.Name + x.CommitName = b.CommitName + return m0 +} + type CreateRepositoryTagResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryTag *RepositoryTag `protobuf:"bytes,1,opt,name=repository_tag,json=repositoryTag,proto3" json:"repository_tag,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -313,11 +444,6 @@ func (x *CreateRepositoryTagResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateRepositoryTagResponse.ProtoReflect.Descriptor instead. -func (*CreateRepositoryTagResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescGZIP(), []int{4} -} - func (x *CreateRepositoryTagResponse) GetRepositoryTag() *RepositoryTag { if x != nil { return x.RepositoryTag @@ -325,8 +451,37 @@ func (x *CreateRepositoryTagResponse) GetRepositoryTag() *RepositoryTag { return nil } +func (x *CreateRepositoryTagResponse) SetRepositoryTag(v *RepositoryTag) { + x.RepositoryTag = v +} + +func (x *CreateRepositoryTagResponse) HasRepositoryTag() bool { + if x == nil { + return false + } + return x.RepositoryTag != nil +} + +func (x *CreateRepositoryTagResponse) ClearRepositoryTag() { + x.RepositoryTag = nil +} + +type CreateRepositoryTagResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryTag *RepositoryTag +} + +func (b0 CreateRepositoryTagResponse_builder) Build() *CreateRepositoryTagResponse { + m0 := &CreateRepositoryTagResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryTag = b.RepositoryTag + return m0 +} + type UpdateRepositoryTagRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository this tag belongs to. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` // The name of the repository tag, to update e.g. "6e2e7f24718a76caa32a80d0e2b1841ef2c61403". @@ -362,11 +517,6 @@ func (x *UpdateRepositoryTagRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateRepositoryTagRequest.ProtoReflect.Descriptor instead. -func (*UpdateRepositoryTagRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescGZIP(), []int{5} -} - func (x *UpdateRepositoryTagRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -388,8 +538,52 @@ func (x *UpdateRepositoryTagRequest) GetCommitName() string { return "" } +func (x *UpdateRepositoryTagRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *UpdateRepositoryTagRequest) SetName(v string) { + x.Name = v +} + +func (x *UpdateRepositoryTagRequest) SetCommitName(v string) { + x.CommitName = &v +} + +func (x *UpdateRepositoryTagRequest) HasCommitName() bool { + if x == nil { + return false + } + return x.CommitName != nil +} + +func (x *UpdateRepositoryTagRequest) ClearCommitName() { + x.CommitName = nil +} + +type UpdateRepositoryTagRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository this tag belongs to. + RepositoryId string + // The name of the repository tag, to update e.g. "6e2e7f24718a76caa32a80d0e2b1841ef2c61403". + Name string + // The name of the commit this tag should reference. + CommitName *string +} + +func (b0 UpdateRepositoryTagRequest_builder) Build() *UpdateRepositoryTagRequest { + m0 := &UpdateRepositoryTagRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.Name = b.Name + x.CommitName = b.CommitName + return m0 +} + type UpdateRepositoryTagResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryTag *RepositoryTag `protobuf:"bytes,1,opt,name=repository_tag,json=repositoryTag,proto3" json:"repository_tag,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -420,11 +614,6 @@ func (x *UpdateRepositoryTagResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateRepositoryTagResponse.ProtoReflect.Descriptor instead. -func (*UpdateRepositoryTagResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescGZIP(), []int{6} -} - func (x *UpdateRepositoryTagResponse) GetRepositoryTag() *RepositoryTag { if x != nil { return x.RepositoryTag @@ -432,8 +621,37 @@ func (x *UpdateRepositoryTagResponse) GetRepositoryTag() *RepositoryTag { return nil } +func (x *UpdateRepositoryTagResponse) SetRepositoryTag(v *RepositoryTag) { + x.RepositoryTag = v +} + +func (x *UpdateRepositoryTagResponse) HasRepositoryTag() bool { + if x == nil { + return false + } + return x.RepositoryTag != nil +} + +func (x *UpdateRepositoryTagResponse) ClearRepositoryTag() { + x.RepositoryTag = nil +} + +type UpdateRepositoryTagResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryTag *RepositoryTag +} + +func (b0 UpdateRepositoryTagResponse_builder) Build() *UpdateRepositoryTagResponse { + m0 := &UpdateRepositoryTagResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryTag = b.RepositoryTag + return m0 +} + type ListRepositoryTagsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository whose tags should be listed. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` @@ -469,11 +687,6 @@ func (x *ListRepositoryTagsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryTagsRequest.ProtoReflect.Descriptor instead. -func (*ListRepositoryTagsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescGZIP(), []int{7} -} - func (x *ListRepositoryTagsRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -502,8 +715,46 @@ func (x *ListRepositoryTagsRequest) GetReverse() bool { return false } +func (x *ListRepositoryTagsRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *ListRepositoryTagsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListRepositoryTagsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListRepositoryTagsRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListRepositoryTagsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository whose tags should be listed. + RepositoryId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListRepositoryTagsRequest_builder) Build() *ListRepositoryTagsRequest { + m0 := &ListRepositoryTagsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListRepositoryTagsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryTags []*RepositoryTag `protobuf:"bytes,1,rep,name=repository_tags,json=repositoryTags,proto3" json:"repository_tags,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -536,11 +787,6 @@ func (x *ListRepositoryTagsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryTagsResponse.ProtoReflect.Descriptor instead. -func (*ListRepositoryTagsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescGZIP(), []int{8} -} - func (x *ListRepositoryTagsResponse) GetRepositoryTags() []*RepositoryTag { if x != nil { return x.RepositoryTags @@ -555,8 +801,33 @@ func (x *ListRepositoryTagsResponse) GetNextPageToken() string { return "" } +func (x *ListRepositoryTagsResponse) SetRepositoryTags(v []*RepositoryTag) { + x.RepositoryTags = v +} + +func (x *ListRepositoryTagsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListRepositoryTagsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryTags []*RepositoryTag + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoryTagsResponse_builder) Build() *ListRepositoryTagsResponse { + m0 := &ListRepositoryTagsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryTags = b.RepositoryTags + x.NextPageToken = b.NextPageToken + return m0 +} + type ListRepositoryTagsForReferenceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the repository whose tags should be listed. RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` // Optional reference (if unspecified, will use the repository's default_branch). @@ -594,11 +865,6 @@ func (x *ListRepositoryTagsForReferenceRequest) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryTagsForReferenceRequest.ProtoReflect.Descriptor instead. -func (*ListRepositoryTagsForReferenceRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescGZIP(), []int{9} -} - func (x *ListRepositoryTagsForReferenceRequest) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -634,8 +900,53 @@ func (x *ListRepositoryTagsForReferenceRequest) GetReverse() bool { return false } +func (x *ListRepositoryTagsForReferenceRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *ListRepositoryTagsForReferenceRequest) SetReference(v string) { + x.Reference = v +} + +func (x *ListRepositoryTagsForReferenceRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListRepositoryTagsForReferenceRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListRepositoryTagsForReferenceRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListRepositoryTagsForReferenceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository whose tags should be listed. + RepositoryId string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListRepositoryTagsForReferenceRequest_builder) Build() *ListRepositoryTagsForReferenceRequest { + m0 := &ListRepositoryTagsForReferenceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.Reference = b.Reference + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListRepositoryTagsForReferenceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryTags []*RepositoryTag `protobuf:"bytes,1,rep,name=repository_tags,json=repositoryTags,proto3" json:"repository_tags,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -668,11 +979,6 @@ func (x *ListRepositoryTagsForReferenceResponse) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use ListRepositoryTagsForReferenceResponse.ProtoReflect.Descriptor instead. -func (*ListRepositoryTagsForReferenceResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescGZIP(), []int{10} -} - func (x *ListRepositoryTagsForReferenceResponse) GetRepositoryTags() []*RepositoryTag { if x != nil { return x.RepositoryTags @@ -687,6 +993,31 @@ func (x *ListRepositoryTagsForReferenceResponse) GetNextPageToken() string { return "" } +func (x *ListRepositoryTagsForReferenceResponse) SetRepositoryTags(v []*RepositoryTag) { + x.RepositoryTags = v +} + +func (x *ListRepositoryTagsForReferenceResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListRepositoryTagsForReferenceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryTags []*RepositoryTag + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoryTagsForReferenceResponse_builder) Build() *ListRepositoryTagsForReferenceResponse { + m0 := &ListRepositoryTagsForReferenceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryTags = b.RepositoryTags + x.NextPageToken = b.NextPageToken + return m0 +} + var File_buf_alpha_registry_v1alpha1_repository_tag_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDesc = []byte{ @@ -862,18 +1193,6 @@ var file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDesc = []byte{ 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescData = file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_buf_alpha_registry_v1alpha1_repository_tag_proto_goTypes = []any{ (*RepositoryTag)(nil), // 0: buf.alpha.registry.v1alpha1.RepositoryTag diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_tag_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_tag_protoopaque.pb.go new file mode 100644 index 0000000000..b5b70b31a3 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/repository_tag_protoopaque.pb.go @@ -0,0 +1,1249 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/repository_tag.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type RepositoryTag struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_CommitName string `protobuf:"bytes,5,opt,name=commit_name,json=commitName,proto3" json:"commit_name,omitempty"` + xxx_hidden_Author string `protobuf:"bytes,6,opt,name=author,proto3" json:"author,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepositoryTag) Reset() { + *x = RepositoryTag{} + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepositoryTag) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepositoryTag) ProtoMessage() {} + +func (x *RepositoryTag) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RepositoryTag) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *RepositoryTag) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *RepositoryTag) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *RepositoryTag) GetCommitName() string { + if x != nil { + return x.xxx_hidden_CommitName + } + return "" +} + +func (x *RepositoryTag) GetAuthor() string { + if x != nil { + return x.xxx_hidden_Author + } + return "" +} + +func (x *RepositoryTag) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *RepositoryTag) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *RepositoryTag) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *RepositoryTag) SetCommitName(v string) { + x.xxx_hidden_CommitName = v +} + +func (x *RepositoryTag) SetAuthor(v string) { + x.xxx_hidden_Author = v +} + +func (x *RepositoryTag) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *RepositoryTag) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +type RepositoryTag_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique. + // tags are based on labels, so if a label has been moved, the ID will point to the + // updated entry in the labels table. + Id string + // immutable + CreateTime *timestamppb.Timestamp + // We reserve field number '3' for the update_time. + // google.protobuf.Timestamp update_time = 3; + // The name of the repository tag, e.g. "6e2e7f24718a76caa32a80d0e2b1841ef2c61403". + Name string + // The name of the commit this tag belongs to. + CommitName string + // The username of the author of the tag. + Author string +} + +func (b0 RepositoryTag_builder) Build() *RepositoryTag { + m0 := &RepositoryTag{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_Name = b.Name + x.xxx_hidden_CommitName = b.CommitName + x.xxx_hidden_Author = b.Author + return m0 +} + +type GetRepositoryTagRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryTagRequest) Reset() { + *x = GetRepositoryTagRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryTagRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryTagRequest) ProtoMessage() {} + +func (x *GetRepositoryTagRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryTagRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *GetRepositoryTagRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GetRepositoryTagRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *GetRepositoryTagRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +type GetRepositoryTagRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository this tag belongs to. + RepositoryId string + // The name of the repository tag to get, e.g. "6e2e7f24718a76caa32a80d0e2b1841ef2c61403". + Name string +} + +func (b0 GetRepositoryTagRequest_builder) Build() *GetRepositoryTagRequest { + m0 := &GetRepositoryTagRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_Name = b.Name + return m0 +} + +type GetRepositoryTagResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryTag *RepositoryTag `protobuf:"bytes,1,opt,name=repository_tag,json=repositoryTag,proto3" json:"repository_tag,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRepositoryTagResponse) Reset() { + *x = GetRepositoryTagResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRepositoryTagResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRepositoryTagResponse) ProtoMessage() {} + +func (x *GetRepositoryTagResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRepositoryTagResponse) GetRepositoryTag() *RepositoryTag { + if x != nil { + return x.xxx_hidden_RepositoryTag + } + return nil +} + +func (x *GetRepositoryTagResponse) SetRepositoryTag(v *RepositoryTag) { + x.xxx_hidden_RepositoryTag = v +} + +func (x *GetRepositoryTagResponse) HasRepositoryTag() bool { + if x == nil { + return false + } + return x.xxx_hidden_RepositoryTag != nil +} + +func (x *GetRepositoryTagResponse) ClearRepositoryTag() { + x.xxx_hidden_RepositoryTag = nil +} + +type GetRepositoryTagResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryTag *RepositoryTag +} + +func (b0 GetRepositoryTagResponse_builder) Build() *GetRepositoryTagResponse { + m0 := &GetRepositoryTagResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryTag = b.RepositoryTag + return m0 +} + +type CreateRepositoryTagRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_CommitName string `protobuf:"bytes,3,opt,name=commit_name,json=commitName,proto3" json:"commit_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateRepositoryTagRequest) Reset() { + *x = CreateRepositoryTagRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateRepositoryTagRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateRepositoryTagRequest) ProtoMessage() {} + +func (x *CreateRepositoryTagRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateRepositoryTagRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *CreateRepositoryTagRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *CreateRepositoryTagRequest) GetCommitName() string { + if x != nil { + return x.xxx_hidden_CommitName + } + return "" +} + +func (x *CreateRepositoryTagRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *CreateRepositoryTagRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *CreateRepositoryTagRequest) SetCommitName(v string) { + x.xxx_hidden_CommitName = v +} + +type CreateRepositoryTagRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository this tag should be created on. + RepositoryId string + // The name of the repository tag, e.g. "6e2e7f24718a76caa32a80d0e2b1841ef2c61403". + Name string + // The name of the commit this tag should be created for. + CommitName string +} + +func (b0 CreateRepositoryTagRequest_builder) Build() *CreateRepositoryTagRequest { + m0 := &CreateRepositoryTagRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_Name = b.Name + x.xxx_hidden_CommitName = b.CommitName + return m0 +} + +type CreateRepositoryTagResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryTag *RepositoryTag `protobuf:"bytes,1,opt,name=repository_tag,json=repositoryTag,proto3" json:"repository_tag,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateRepositoryTagResponse) Reset() { + *x = CreateRepositoryTagResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateRepositoryTagResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateRepositoryTagResponse) ProtoMessage() {} + +func (x *CreateRepositoryTagResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateRepositoryTagResponse) GetRepositoryTag() *RepositoryTag { + if x != nil { + return x.xxx_hidden_RepositoryTag + } + return nil +} + +func (x *CreateRepositoryTagResponse) SetRepositoryTag(v *RepositoryTag) { + x.xxx_hidden_RepositoryTag = v +} + +func (x *CreateRepositoryTagResponse) HasRepositoryTag() bool { + if x == nil { + return false + } + return x.xxx_hidden_RepositoryTag != nil +} + +func (x *CreateRepositoryTagResponse) ClearRepositoryTag() { + x.xxx_hidden_RepositoryTag = nil +} + +type CreateRepositoryTagResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryTag *RepositoryTag +} + +func (b0 CreateRepositoryTagResponse_builder) Build() *CreateRepositoryTagResponse { + m0 := &CreateRepositoryTagResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryTag = b.RepositoryTag + return m0 +} + +type UpdateRepositoryTagRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_CommitName *string `protobuf:"bytes,3,opt,name=commit_name,json=commitName,proto3,oneof" json:"commit_name,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateRepositoryTagRequest) Reset() { + *x = UpdateRepositoryTagRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateRepositoryTagRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateRepositoryTagRequest) ProtoMessage() {} + +func (x *UpdateRepositoryTagRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateRepositoryTagRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *UpdateRepositoryTagRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *UpdateRepositoryTagRequest) GetCommitName() string { + if x != nil { + if x.xxx_hidden_CommitName != nil { + return *x.xxx_hidden_CommitName + } + return "" + } + return "" +} + +func (x *UpdateRepositoryTagRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *UpdateRepositoryTagRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *UpdateRepositoryTagRequest) SetCommitName(v string) { + x.xxx_hidden_CommitName = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 3) +} + +func (x *UpdateRepositoryTagRequest) HasCommitName() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 2) +} + +func (x *UpdateRepositoryTagRequest) ClearCommitName() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2) + x.xxx_hidden_CommitName = nil +} + +type UpdateRepositoryTagRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository this tag belongs to. + RepositoryId string + // The name of the repository tag, to update e.g. "6e2e7f24718a76caa32a80d0e2b1841ef2c61403". + Name string + // The name of the commit this tag should reference. + CommitName *string +} + +func (b0 UpdateRepositoryTagRequest_builder) Build() *UpdateRepositoryTagRequest { + m0 := &UpdateRepositoryTagRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_Name = b.Name + if b.CommitName != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 3) + x.xxx_hidden_CommitName = b.CommitName + } + return m0 +} + +type UpdateRepositoryTagResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryTag *RepositoryTag `protobuf:"bytes,1,opt,name=repository_tag,json=repositoryTag,proto3" json:"repository_tag,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateRepositoryTagResponse) Reset() { + *x = UpdateRepositoryTagResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateRepositoryTagResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateRepositoryTagResponse) ProtoMessage() {} + +func (x *UpdateRepositoryTagResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateRepositoryTagResponse) GetRepositoryTag() *RepositoryTag { + if x != nil { + return x.xxx_hidden_RepositoryTag + } + return nil +} + +func (x *UpdateRepositoryTagResponse) SetRepositoryTag(v *RepositoryTag) { + x.xxx_hidden_RepositoryTag = v +} + +func (x *UpdateRepositoryTagResponse) HasRepositoryTag() bool { + if x == nil { + return false + } + return x.xxx_hidden_RepositoryTag != nil +} + +func (x *UpdateRepositoryTagResponse) ClearRepositoryTag() { + x.xxx_hidden_RepositoryTag = nil +} + +type UpdateRepositoryTagResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryTag *RepositoryTag +} + +func (b0 UpdateRepositoryTagResponse_builder) Build() *UpdateRepositoryTagResponse { + m0 := &UpdateRepositoryTagResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryTag = b.RepositoryTag + return m0 +} + +type ListRepositoryTagsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,4,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryTagsRequest) Reset() { + *x = ListRepositoryTagsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryTagsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryTagsRequest) ProtoMessage() {} + +func (x *ListRepositoryTagsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryTagsRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *ListRepositoryTagsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListRepositoryTagsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListRepositoryTagsRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListRepositoryTagsRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *ListRepositoryTagsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListRepositoryTagsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListRepositoryTagsRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListRepositoryTagsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository whose tags should be listed. + RepositoryId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListRepositoryTagsRequest_builder) Build() *ListRepositoryTagsRequest { + m0 := &ListRepositoryTagsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListRepositoryTagsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryTags *[]*RepositoryTag `protobuf:"bytes,1,rep,name=repository_tags,json=repositoryTags,proto3" json:"repository_tags,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryTagsResponse) Reset() { + *x = ListRepositoryTagsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryTagsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryTagsResponse) ProtoMessage() {} + +func (x *ListRepositoryTagsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryTagsResponse) GetRepositoryTags() []*RepositoryTag { + if x != nil { + if x.xxx_hidden_RepositoryTags != nil { + return *x.xxx_hidden_RepositoryTags + } + } + return nil +} + +func (x *ListRepositoryTagsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListRepositoryTagsResponse) SetRepositoryTags(v []*RepositoryTag) { + x.xxx_hidden_RepositoryTags = &v +} + +func (x *ListRepositoryTagsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListRepositoryTagsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryTags []*RepositoryTag + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoryTagsResponse_builder) Build() *ListRepositoryTagsResponse { + m0 := &ListRepositoryTagsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryTags = &b.RepositoryTags + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListRepositoryTagsForReferenceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,5,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryTagsForReferenceRequest) Reset() { + *x = ListRepositoryTagsForReferenceRequest{} + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryTagsForReferenceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryTagsForReferenceRequest) ProtoMessage() {} + +func (x *ListRepositoryTagsForReferenceRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryTagsForReferenceRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *ListRepositoryTagsForReferenceRequest) GetReference() string { + if x != nil { + return x.xxx_hidden_Reference + } + return "" +} + +func (x *ListRepositoryTagsForReferenceRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListRepositoryTagsForReferenceRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListRepositoryTagsForReferenceRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListRepositoryTagsForReferenceRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *ListRepositoryTagsForReferenceRequest) SetReference(v string) { + x.xxx_hidden_Reference = v +} + +func (x *ListRepositoryTagsForReferenceRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListRepositoryTagsForReferenceRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListRepositoryTagsForReferenceRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListRepositoryTagsForReferenceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the repository whose tags should be listed. + RepositoryId string + // Optional reference (if unspecified, will use the repository's default_branch). + Reference string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListRepositoryTagsForReferenceRequest_builder) Build() *ListRepositoryTagsForReferenceRequest { + m0 := &ListRepositoryTagsForReferenceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_Reference = b.Reference + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListRepositoryTagsForReferenceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryTags *[]*RepositoryTag `protobuf:"bytes,1,rep,name=repository_tags,json=repositoryTags,proto3" json:"repository_tags,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListRepositoryTagsForReferenceResponse) Reset() { + *x = ListRepositoryTagsForReferenceResponse{} + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListRepositoryTagsForReferenceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRepositoryTagsForReferenceResponse) ProtoMessage() {} + +func (x *ListRepositoryTagsForReferenceResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListRepositoryTagsForReferenceResponse) GetRepositoryTags() []*RepositoryTag { + if x != nil { + if x.xxx_hidden_RepositoryTags != nil { + return *x.xxx_hidden_RepositoryTags + } + } + return nil +} + +func (x *ListRepositoryTagsForReferenceResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListRepositoryTagsForReferenceResponse) SetRepositoryTags(v []*RepositoryTag) { + x.xxx_hidden_RepositoryTags = &v +} + +func (x *ListRepositoryTagsForReferenceResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListRepositoryTagsForReferenceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryTags []*RepositoryTag + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListRepositoryTagsForReferenceResponse_builder) Build() *ListRepositoryTagsForReferenceResponse { + m0 := &ListRepositoryTagsForReferenceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryTags = &b.RepositoryTags + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +var File_buf_alpha_registry_v1alpha1_repository_tag_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDesc = []byte{ + 0x0a, 0x30, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x74, 0x61, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xa9, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, + 0x61, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 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, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x22, 0x52, 0x0a, 0x17, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x6d, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x54, 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, + 0x52, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x22, + 0x76, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, + 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x70, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x22, 0x8b, 0x01, 0x0a, 0x1a, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, + 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x70, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x22, 0x96, 0x01, 0x0a, 0x19, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, + 0x72, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, + 0x73, 0x65, 0x22, 0x99, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x53, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, + 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x54, 0x61, 0x67, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xc0, + 0x01, 0x0a, 0x25, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x54, 0x61, 0x67, 0x73, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x1c, 0x0a, + 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, + 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, + 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x26, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x73, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0f, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, + 0x67, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, + 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, + 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xfb, 0x05, 0x0a, 0x14, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x84, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x12, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, + 0x67, 0x12, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, + 0x67, 0x12, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0x8a, 0x01, 0x0a, 0x12, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x73, + 0x12, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xae, 0x01, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x73, 0x46, 0x6f, 0x72, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x42, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x73, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x73, 0x46, 0x6f, + 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x9f, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x12, 0x52, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, + 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, + 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, + 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, + 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, + 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, + 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_buf_alpha_registry_v1alpha1_repository_tag_proto_goTypes = []any{ + (*RepositoryTag)(nil), // 0: buf.alpha.registry.v1alpha1.RepositoryTag + (*GetRepositoryTagRequest)(nil), // 1: buf.alpha.registry.v1alpha1.GetRepositoryTagRequest + (*GetRepositoryTagResponse)(nil), // 2: buf.alpha.registry.v1alpha1.GetRepositoryTagResponse + (*CreateRepositoryTagRequest)(nil), // 3: buf.alpha.registry.v1alpha1.CreateRepositoryTagRequest + (*CreateRepositoryTagResponse)(nil), // 4: buf.alpha.registry.v1alpha1.CreateRepositoryTagResponse + (*UpdateRepositoryTagRequest)(nil), // 5: buf.alpha.registry.v1alpha1.UpdateRepositoryTagRequest + (*UpdateRepositoryTagResponse)(nil), // 6: buf.alpha.registry.v1alpha1.UpdateRepositoryTagResponse + (*ListRepositoryTagsRequest)(nil), // 7: buf.alpha.registry.v1alpha1.ListRepositoryTagsRequest + (*ListRepositoryTagsResponse)(nil), // 8: buf.alpha.registry.v1alpha1.ListRepositoryTagsResponse + (*ListRepositoryTagsForReferenceRequest)(nil), // 9: buf.alpha.registry.v1alpha1.ListRepositoryTagsForReferenceRequest + (*ListRepositoryTagsForReferenceResponse)(nil), // 10: buf.alpha.registry.v1alpha1.ListRepositoryTagsForReferenceResponse + (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp +} +var file_buf_alpha_registry_v1alpha1_repository_tag_proto_depIdxs = []int32{ + 11, // 0: buf.alpha.registry.v1alpha1.RepositoryTag.create_time:type_name -> google.protobuf.Timestamp + 0, // 1: buf.alpha.registry.v1alpha1.GetRepositoryTagResponse.repository_tag:type_name -> buf.alpha.registry.v1alpha1.RepositoryTag + 0, // 2: buf.alpha.registry.v1alpha1.CreateRepositoryTagResponse.repository_tag:type_name -> buf.alpha.registry.v1alpha1.RepositoryTag + 0, // 3: buf.alpha.registry.v1alpha1.UpdateRepositoryTagResponse.repository_tag:type_name -> buf.alpha.registry.v1alpha1.RepositoryTag + 0, // 4: buf.alpha.registry.v1alpha1.ListRepositoryTagsResponse.repository_tags:type_name -> buf.alpha.registry.v1alpha1.RepositoryTag + 0, // 5: buf.alpha.registry.v1alpha1.ListRepositoryTagsForReferenceResponse.repository_tags:type_name -> buf.alpha.registry.v1alpha1.RepositoryTag + 1, // 6: buf.alpha.registry.v1alpha1.RepositoryTagService.GetRepositoryTag:input_type -> buf.alpha.registry.v1alpha1.GetRepositoryTagRequest + 3, // 7: buf.alpha.registry.v1alpha1.RepositoryTagService.CreateRepositoryTag:input_type -> buf.alpha.registry.v1alpha1.CreateRepositoryTagRequest + 5, // 8: buf.alpha.registry.v1alpha1.RepositoryTagService.UpdateRepositoryTag:input_type -> buf.alpha.registry.v1alpha1.UpdateRepositoryTagRequest + 7, // 9: buf.alpha.registry.v1alpha1.RepositoryTagService.ListRepositoryTags:input_type -> buf.alpha.registry.v1alpha1.ListRepositoryTagsRequest + 9, // 10: buf.alpha.registry.v1alpha1.RepositoryTagService.ListRepositoryTagsForReference:input_type -> buf.alpha.registry.v1alpha1.ListRepositoryTagsForReferenceRequest + 2, // 11: buf.alpha.registry.v1alpha1.RepositoryTagService.GetRepositoryTag:output_type -> buf.alpha.registry.v1alpha1.GetRepositoryTagResponse + 4, // 12: buf.alpha.registry.v1alpha1.RepositoryTagService.CreateRepositoryTag:output_type -> buf.alpha.registry.v1alpha1.CreateRepositoryTagResponse + 6, // 13: buf.alpha.registry.v1alpha1.RepositoryTagService.UpdateRepositoryTag:output_type -> buf.alpha.registry.v1alpha1.UpdateRepositoryTagResponse + 8, // 14: buf.alpha.registry.v1alpha1.RepositoryTagService.ListRepositoryTags:output_type -> buf.alpha.registry.v1alpha1.ListRepositoryTagsResponse + 10, // 15: buf.alpha.registry.v1alpha1.RepositoryTagService.ListRepositoryTagsForReference:output_type -> buf.alpha.registry.v1alpha1.ListRepositoryTagsForReferenceResponse + 11, // [11:16] is the sub-list for method output_type + 6, // [6:11] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_repository_tag_proto_init() } +func file_buf_alpha_registry_v1alpha1_repository_tag_proto_init() { + if File_buf_alpha_registry_v1alpha1_repository_tag_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes[5].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_repository_tag_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_repository_tag_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_repository_tag_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_repository_tag_proto = out.File + file_buf_alpha_registry_v1alpha1_repository_tag_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_repository_tag_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_repository_tag_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/resolve.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/resolve.pb.go index 5b7717ec09..88bbad0e9e 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/resolve.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/resolve.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/resolve.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -85,13 +86,8 @@ func (x ResolvedReferenceType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use ResolvedReferenceType.Descriptor instead. -func (ResolvedReferenceType) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{0} -} - type GetModulePinsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ModuleReferences []*v1alpha1.ModuleReference `protobuf:"bytes,1,rep,name=module_references,json=moduleReferences,proto3" json:"module_references,omitempty"` // current_module_pins allows for partial dependency updates by letting clients // send a request with the pins for their current module and only the @@ -133,11 +129,6 @@ func (x *GetModulePinsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetModulePinsRequest.ProtoReflect.Descriptor instead. -func (*GetModulePinsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{0} -} - func (x *GetModulePinsRequest) GetModuleReferences() []*v1alpha1.ModuleReference { if x != nil { return x.ModuleReferences @@ -152,8 +143,42 @@ func (x *GetModulePinsRequest) GetCurrentModulePins() []*v1alpha1.ModulePin { return nil } +func (x *GetModulePinsRequest) SetModuleReferences(v []*v1alpha1.ModuleReference) { + x.ModuleReferences = v +} + +func (x *GetModulePinsRequest) SetCurrentModulePins(v []*v1alpha1.ModulePin) { + x.CurrentModulePins = v +} + +type GetModulePinsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ModuleReferences []*v1alpha1.ModuleReference + // current_module_pins allows for partial dependency updates by letting clients + // send a request with the pins for their current module and only the + // identities of the dependencies they want to update in module_references. + // + // When resolving, if a client supplied module pin is: + // - in the transitive closure of pins resolved from the module_references, + // the client supplied module pin will be an extra candidate for tie + // breaking. + // - NOT in the in the transitive closure of pins resolved from the + // module_references, it will be returned as is. + CurrentModulePins []*v1alpha1.ModulePin +} + +func (b0 GetModulePinsRequest_builder) Build() *GetModulePinsRequest { + m0 := &GetModulePinsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.ModuleReferences = b.ModuleReferences + x.CurrentModulePins = b.CurrentModulePins + return m0 +} + type GetModulePinsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ModulePins []*v1alpha1.ModulePin `protobuf:"bytes,1,rep,name=module_pins,json=modulePins,proto3" json:"module_pins,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -184,11 +209,6 @@ func (x *GetModulePinsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetModulePinsResponse.ProtoReflect.Descriptor instead. -func (*GetModulePinsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{1} -} - func (x *GetModulePinsResponse) GetModulePins() []*v1alpha1.ModulePin { if x != nil { return x.ModulePins @@ -196,8 +216,26 @@ func (x *GetModulePinsResponse) GetModulePins() []*v1alpha1.ModulePin { return nil } +func (x *GetModulePinsResponse) SetModulePins(v []*v1alpha1.ModulePin) { + x.ModulePins = v +} + +type GetModulePinsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ModulePins []*v1alpha1.ModulePin +} + +func (b0 GetModulePinsResponse_builder) Build() *GetModulePinsResponse { + m0 := &GetModulePinsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ModulePins = b.ModulePins + return m0 +} + type GetLocalModulePinsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` LocalModuleReferences []*LocalModuleReference `protobuf:"bytes,1,rep,name=local_module_references,json=localModuleReferences,proto3" json:"local_module_references,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -228,11 +266,6 @@ func (x *GetLocalModulePinsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetLocalModulePinsRequest.ProtoReflect.Descriptor instead. -func (*GetLocalModulePinsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{2} -} - func (x *GetLocalModulePinsRequest) GetLocalModuleReferences() []*LocalModuleReference { if x != nil { return x.LocalModuleReferences @@ -240,8 +273,26 @@ func (x *GetLocalModulePinsRequest) GetLocalModuleReferences() []*LocalModuleRef return nil } +func (x *GetLocalModulePinsRequest) SetLocalModuleReferences(v []*LocalModuleReference) { + x.LocalModuleReferences = v +} + +type GetLocalModulePinsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + LocalModuleReferences []*LocalModuleReference +} + +func (b0 GetLocalModulePinsRequest_builder) Build() *GetLocalModulePinsRequest { + m0 := &GetLocalModulePinsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.LocalModuleReferences = b.LocalModuleReferences + return m0 +} + type LocalModuleResolveResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // A copy of the reference that was resolved. Reference *LocalModuleReference `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"` // The pin the reference resolved to. @@ -277,11 +328,6 @@ func (x *LocalModuleResolveResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LocalModuleResolveResult.ProtoReflect.Descriptor instead. -func (*LocalModuleResolveResult) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{3} -} - func (x *LocalModuleResolveResult) GetReference() *LocalModuleReference { if x != nil { return x.Reference @@ -303,8 +349,63 @@ func (x *LocalModuleResolveResult) GetResolvedReferenceType() ResolvedReferenceT return ResolvedReferenceType_RESOLVED_REFERENCE_TYPE_UNSPECIFIED } +func (x *LocalModuleResolveResult) SetReference(v *LocalModuleReference) { + x.Reference = v +} + +func (x *LocalModuleResolveResult) SetPin(v *LocalModulePin) { + x.Pin = v +} + +func (x *LocalModuleResolveResult) SetResolvedReferenceType(v ResolvedReferenceType) { + x.ResolvedReferenceType = v +} + +func (x *LocalModuleResolveResult) HasReference() bool { + if x == nil { + return false + } + return x.Reference != nil +} + +func (x *LocalModuleResolveResult) HasPin() bool { + if x == nil { + return false + } + return x.Pin != nil +} + +func (x *LocalModuleResolveResult) ClearReference() { + x.Reference = nil +} + +func (x *LocalModuleResolveResult) ClearPin() { + x.Pin = nil +} + +type LocalModuleResolveResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A copy of the reference that was resolved. + Reference *LocalModuleReference + // The pin the reference resolved to. + Pin *LocalModulePin + // The type the reference resolved as. + ResolvedReferenceType ResolvedReferenceType +} + +func (b0 LocalModuleResolveResult_builder) Build() *LocalModuleResolveResult { + m0 := &LocalModuleResolveResult{} + b, x := &b0, m0 + _, _ = b, x + x.Reference = b.Reference + x.Pin = b.Pin + x.ResolvedReferenceType = b.ResolvedReferenceType + return m0 +} + type GetLocalModulePinsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` LocalModuleResolveResults []*LocalModuleResolveResult `protobuf:"bytes,1,rep,name=local_module_resolve_results,json=localModuleResolveResults,proto3" json:"local_module_resolve_results,omitempty"` // dependencies are the dependencies of the LocalModulePins. // @@ -339,11 +440,6 @@ func (x *GetLocalModulePinsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetLocalModulePinsResponse.ProtoReflect.Descriptor instead. -func (*GetLocalModulePinsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{4} -} - func (x *GetLocalModulePinsResponse) GetLocalModuleResolveResults() []*LocalModuleResolveResult { if x != nil { return x.LocalModuleResolveResults @@ -358,8 +454,35 @@ func (x *GetLocalModulePinsResponse) GetDependencies() []*v1alpha1.ModulePin { return nil } +func (x *GetLocalModulePinsResponse) SetLocalModuleResolveResults(v []*LocalModuleResolveResult) { + x.LocalModuleResolveResults = v +} + +func (x *GetLocalModulePinsResponse) SetDependencies(v []*v1alpha1.ModulePin) { + x.Dependencies = v +} + +type GetLocalModulePinsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + LocalModuleResolveResults []*LocalModuleResolveResult + // dependencies are the dependencies of the LocalModulePins. + // + // This includes the transitive deps. + Dependencies []*v1alpha1.ModulePin +} + +func (b0 GetLocalModulePinsResponse_builder) Build() *GetLocalModulePinsResponse { + m0 := &GetLocalModulePinsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.LocalModuleResolveResults = b.LocalModuleResolveResults + x.Dependencies = b.Dependencies + return m0 +} + type GetGoVersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The plugin reference to resolve. PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` // The module reference to resolve. @@ -393,11 +516,6 @@ func (x *GetGoVersionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetGoVersionRequest.ProtoReflect.Descriptor instead. -func (*GetGoVersionRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{5} -} - func (x *GetGoVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { if x != nil { return x.PluginReference @@ -412,8 +530,56 @@ func (x *GetGoVersionRequest) GetModuleReference() *LocalModuleReference { return nil } +func (x *GetGoVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.PluginReference = v +} + +func (x *GetGoVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.ModuleReference = v +} + +func (x *GetGoVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.PluginReference != nil +} + +func (x *GetGoVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.ModuleReference != nil +} + +func (x *GetGoVersionRequest) ClearPluginReference() { + x.PluginReference = nil +} + +func (x *GetGoVersionRequest) ClearModuleReference() { + x.ModuleReference = nil +} + +type GetGoVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetGoVersionRequest_builder) Build() *GetGoVersionRequest { + m0 := &GetGoVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PluginReference = b.PluginReference + x.ModuleReference = b.ModuleReference + return m0 +} + type GetGoVersionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // version is the resolved version to be used with the go module proxy. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields @@ -445,11 +611,6 @@ func (x *GetGoVersionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetGoVersionResponse.ProtoReflect.Descriptor instead. -func (*GetGoVersionResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{6} -} - func (x *GetGoVersionResponse) GetVersion() string { if x != nil { return x.Version @@ -457,8 +618,27 @@ func (x *GetGoVersionResponse) GetVersion() string { return "" } +func (x *GetGoVersionResponse) SetVersion(v string) { + x.Version = v +} + +type GetGoVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the go module proxy. + Version string +} + +func (b0 GetGoVersionResponse_builder) Build() *GetGoVersionResponse { + m0 := &GetGoVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + return m0 +} + type GetMavenVersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The plugin reference to resolve. PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` // The module reference to resolve. @@ -492,11 +672,6 @@ func (x *GetMavenVersionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetMavenVersionRequest.ProtoReflect.Descriptor instead. -func (*GetMavenVersionRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{7} -} - func (x *GetMavenVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { if x != nil { return x.PluginReference @@ -511,8 +686,56 @@ func (x *GetMavenVersionRequest) GetModuleReference() *LocalModuleReference { return nil } +func (x *GetMavenVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.PluginReference = v +} + +func (x *GetMavenVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.ModuleReference = v +} + +func (x *GetMavenVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.PluginReference != nil +} + +func (x *GetMavenVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.ModuleReference != nil +} + +func (x *GetMavenVersionRequest) ClearPluginReference() { + x.PluginReference = nil +} + +func (x *GetMavenVersionRequest) ClearModuleReference() { + x.ModuleReference = nil +} + +type GetMavenVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetMavenVersionRequest_builder) Build() *GetMavenVersionRequest { + m0 := &GetMavenVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PluginReference = b.PluginReference + x.ModuleReference = b.ModuleReference + return m0 +} + type GetMavenVersionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // version is the resolved version to be used with the maven repository. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields @@ -544,11 +767,6 @@ func (x *GetMavenVersionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetMavenVersionResponse.ProtoReflect.Descriptor instead. -func (*GetMavenVersionResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{8} -} - func (x *GetMavenVersionResponse) GetVersion() string { if x != nil { return x.Version @@ -556,8 +774,27 @@ func (x *GetMavenVersionResponse) GetVersion() string { return "" } +func (x *GetMavenVersionResponse) SetVersion(v string) { + x.Version = v +} + +type GetMavenVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the maven repository. + Version string +} + +func (b0 GetMavenVersionResponse_builder) Build() *GetMavenVersionResponse { + m0 := &GetMavenVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + return m0 +} + type GetNPMVersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The plugin reference to resolve. PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` // The module reference to resolve. @@ -591,11 +828,6 @@ func (x *GetNPMVersionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetNPMVersionRequest.ProtoReflect.Descriptor instead. -func (*GetNPMVersionRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{9} -} - func (x *GetNPMVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { if x != nil { return x.PluginReference @@ -610,8 +842,56 @@ func (x *GetNPMVersionRequest) GetModuleReference() *LocalModuleReference { return nil } +func (x *GetNPMVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.PluginReference = v +} + +func (x *GetNPMVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.ModuleReference = v +} + +func (x *GetNPMVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.PluginReference != nil +} + +func (x *GetNPMVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.ModuleReference != nil +} + +func (x *GetNPMVersionRequest) ClearPluginReference() { + x.PluginReference = nil +} + +func (x *GetNPMVersionRequest) ClearModuleReference() { + x.ModuleReference = nil +} + +type GetNPMVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetNPMVersionRequest_builder) Build() *GetNPMVersionRequest { + m0 := &GetNPMVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PluginReference = b.PluginReference + x.ModuleReference = b.ModuleReference + return m0 +} + type GetNPMVersionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // version is the resolved version to be used with the npm registry. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields @@ -643,11 +923,6 @@ func (x *GetNPMVersionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetNPMVersionResponse.ProtoReflect.Descriptor instead. -func (*GetNPMVersionResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{10} -} - func (x *GetNPMVersionResponse) GetVersion() string { if x != nil { return x.Version @@ -655,8 +930,27 @@ func (x *GetNPMVersionResponse) GetVersion() string { return "" } +func (x *GetNPMVersionResponse) SetVersion(v string) { + x.Version = v +} + +type GetNPMVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the npm registry. + Version string +} + +func (b0 GetNPMVersionResponse_builder) Build() *GetNPMVersionResponse { + m0 := &GetNPMVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + return m0 +} + type GetSwiftVersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The plugin reference to resolve. PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` // The module reference to resolve. @@ -690,11 +984,6 @@ func (x *GetSwiftVersionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetSwiftVersionRequest.ProtoReflect.Descriptor instead. -func (*GetSwiftVersionRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{11} -} - func (x *GetSwiftVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { if x != nil { return x.PluginReference @@ -709,8 +998,56 @@ func (x *GetSwiftVersionRequest) GetModuleReference() *LocalModuleReference { return nil } +func (x *GetSwiftVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.PluginReference = v +} + +func (x *GetSwiftVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.ModuleReference = v +} + +func (x *GetSwiftVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.PluginReference != nil +} + +func (x *GetSwiftVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.ModuleReference != nil +} + +func (x *GetSwiftVersionRequest) ClearPluginReference() { + x.PluginReference = nil +} + +func (x *GetSwiftVersionRequest) ClearModuleReference() { + x.ModuleReference = nil +} + +type GetSwiftVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetSwiftVersionRequest_builder) Build() *GetSwiftVersionRequest { + m0 := &GetSwiftVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PluginReference = b.PluginReference + x.ModuleReference = b.ModuleReference + return m0 +} + type GetSwiftVersionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // version is the resolved version to be used with the swift registry. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields @@ -742,11 +1079,6 @@ func (x *GetSwiftVersionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetSwiftVersionResponse.ProtoReflect.Descriptor instead. -func (*GetSwiftVersionResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{12} -} - func (x *GetSwiftVersionResponse) GetVersion() string { if x != nil { return x.Version @@ -754,8 +1086,27 @@ func (x *GetSwiftVersionResponse) GetVersion() string { return "" } +func (x *GetSwiftVersionResponse) SetVersion(v string) { + x.Version = v +} + +type GetSwiftVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the swift registry. + Version string +} + +func (b0 GetSwiftVersionResponse_builder) Build() *GetSwiftVersionResponse { + m0 := &GetSwiftVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + return m0 +} + type GetPythonVersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The plugin reference to resolve. PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` // The module reference to resolve. @@ -789,11 +1140,6 @@ func (x *GetPythonVersionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetPythonVersionRequest.ProtoReflect.Descriptor instead. -func (*GetPythonVersionRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{13} -} - func (x *GetPythonVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { if x != nil { return x.PluginReference @@ -808,8 +1154,56 @@ func (x *GetPythonVersionRequest) GetModuleReference() *LocalModuleReference { return nil } +func (x *GetPythonVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.PluginReference = v +} + +func (x *GetPythonVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.ModuleReference = v +} + +func (x *GetPythonVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.PluginReference != nil +} + +func (x *GetPythonVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.ModuleReference != nil +} + +func (x *GetPythonVersionRequest) ClearPluginReference() { + x.PluginReference = nil +} + +func (x *GetPythonVersionRequest) ClearModuleReference() { + x.ModuleReference = nil +} + +type GetPythonVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetPythonVersionRequest_builder) Build() *GetPythonVersionRequest { + m0 := &GetPythonVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PluginReference = b.PluginReference + x.ModuleReference = b.ModuleReference + return m0 +} + type GetPythonVersionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // version is the resolved version to be used with the python repository. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields @@ -841,11 +1235,6 @@ func (x *GetPythonVersionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetPythonVersionResponse.ProtoReflect.Descriptor instead. -func (*GetPythonVersionResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{14} -} - func (x *GetPythonVersionResponse) GetVersion() string { if x != nil { return x.Version @@ -853,8 +1242,27 @@ func (x *GetPythonVersionResponse) GetVersion() string { return "" } +func (x *GetPythonVersionResponse) SetVersion(v string) { + x.Version = v +} + +type GetPythonVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the python repository. + Version string +} + +func (b0 GetPythonVersionResponse_builder) Build() *GetPythonVersionResponse { + m0 := &GetPythonVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + return m0 +} + type GetCargoVersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The plugin reference to resolve. PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` // The module reference to resolve. @@ -888,11 +1296,6 @@ func (x *GetCargoVersionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCargoVersionRequest.ProtoReflect.Descriptor instead. -func (*GetCargoVersionRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{15} -} - func (x *GetCargoVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { if x != nil { return x.PluginReference @@ -907,8 +1310,56 @@ func (x *GetCargoVersionRequest) GetModuleReference() *LocalModuleReference { return nil } +func (x *GetCargoVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.PluginReference = v +} + +func (x *GetCargoVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.ModuleReference = v +} + +func (x *GetCargoVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.PluginReference != nil +} + +func (x *GetCargoVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.ModuleReference != nil +} + +func (x *GetCargoVersionRequest) ClearPluginReference() { + x.PluginReference = nil +} + +func (x *GetCargoVersionRequest) ClearModuleReference() { + x.ModuleReference = nil +} + +type GetCargoVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetCargoVersionRequest_builder) Build() *GetCargoVersionRequest { + m0 := &GetCargoVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PluginReference = b.PluginReference + x.ModuleReference = b.ModuleReference + return m0 +} + type GetCargoVersionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // version is the resolved version to be used with the cargo registry. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields @@ -940,11 +1391,6 @@ func (x *GetCargoVersionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCargoVersionResponse.ProtoReflect.Descriptor instead. -func (*GetCargoVersionResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{16} -} - func (x *GetCargoVersionResponse) GetVersion() string { if x != nil { return x.Version @@ -952,8 +1398,27 @@ func (x *GetCargoVersionResponse) GetVersion() string { return "" } +func (x *GetCargoVersionResponse) SetVersion(v string) { + x.Version = v +} + +type GetCargoVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the cargo registry. + Version string +} + +func (b0 GetCargoVersionResponse_builder) Build() *GetCargoVersionResponse { + m0 := &GetCargoVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + return m0 +} + type GetNugetVersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The plugin reference to resolve. PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` // The module reference to resolve. @@ -987,11 +1452,6 @@ func (x *GetNugetVersionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetNugetVersionRequest.ProtoReflect.Descriptor instead. -func (*GetNugetVersionRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{17} -} - func (x *GetNugetVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { if x != nil { return x.PluginReference @@ -1006,8 +1466,56 @@ func (x *GetNugetVersionRequest) GetModuleReference() *LocalModuleReference { return nil } +func (x *GetNugetVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.PluginReference = v +} + +func (x *GetNugetVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.ModuleReference = v +} + +func (x *GetNugetVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.PluginReference != nil +} + +func (x *GetNugetVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.ModuleReference != nil +} + +func (x *GetNugetVersionRequest) ClearPluginReference() { + x.PluginReference = nil +} + +func (x *GetNugetVersionRequest) ClearModuleReference() { + x.ModuleReference = nil +} + +type GetNugetVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetNugetVersionRequest_builder) Build() *GetNugetVersionRequest { + m0 := &GetNugetVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PluginReference = b.PluginReference + x.ModuleReference = b.ModuleReference + return m0 +} + type GetNugetVersionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // version is the resolved version to be used with the nuget registry. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields @@ -1039,11 +1547,6 @@ func (x *GetNugetVersionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetNugetVersionResponse.ProtoReflect.Descriptor instead. -func (*GetNugetVersionResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{18} -} - func (x *GetNugetVersionResponse) GetVersion() string { if x != nil { return x.Version @@ -1051,8 +1554,27 @@ func (x *GetNugetVersionResponse) GetVersion() string { return "" } +func (x *GetNugetVersionResponse) SetVersion(v string) { + x.Version = v +} + +type GetNugetVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the nuget registry. + Version string +} + +func (b0 GetNugetVersionResponse_builder) Build() *GetNugetVersionResponse { + m0 := &GetNugetVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + return m0 +} + type GetCmakeVersionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The plugin reference to resolve. PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` // The module reference to resolve. @@ -1086,11 +1608,6 @@ func (x *GetCmakeVersionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCmakeVersionRequest.ProtoReflect.Descriptor instead. -func (*GetCmakeVersionRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{19} -} - func (x *GetCmakeVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { if x != nil { return x.PluginReference @@ -1105,8 +1622,56 @@ func (x *GetCmakeVersionRequest) GetModuleReference() *LocalModuleReference { return nil } +func (x *GetCmakeVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.PluginReference = v +} + +func (x *GetCmakeVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.ModuleReference = v +} + +func (x *GetCmakeVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.PluginReference != nil +} + +func (x *GetCmakeVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.ModuleReference != nil +} + +func (x *GetCmakeVersionRequest) ClearPluginReference() { + x.PluginReference = nil +} + +func (x *GetCmakeVersionRequest) ClearModuleReference() { + x.ModuleReference = nil +} + +type GetCmakeVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetCmakeVersionRequest_builder) Build() *GetCmakeVersionRequest { + m0 := &GetCmakeVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PluginReference = b.PluginReference + x.ModuleReference = b.ModuleReference + return m0 +} + type GetCmakeVersionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // version is the resolved version to be used with the cmake registry. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` unknownFields protoimpl.UnknownFields @@ -1138,11 +1703,6 @@ func (x *GetCmakeVersionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCmakeVersionResponse.ProtoReflect.Descriptor instead. -func (*GetCmakeVersionResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{20} -} - func (x *GetCmakeVersionResponse) GetVersion() string { if x != nil { return x.Version @@ -1150,10 +1710,29 @@ func (x *GetCmakeVersionResponse) GetVersion() string { return "" } +func (x *GetCmakeVersionResponse) SetVersion(v string) { + x.Version = v +} + +type GetCmakeVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the cmake registry. + Version string +} + +func (b0 GetCmakeVersionResponse_builder) Build() *GetCmakeVersionResponse { + m0 := &GetCmakeVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + return m0 +} + // GetRemotePackageVersionPlugin is a plugin reference. // If the version is empty, this is a reference to the latest version. type GetRemotePackageVersionPlugin struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the plugin. // example: bufbuild Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` @@ -1196,11 +1775,6 @@ func (x *GetRemotePackageVersionPlugin) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetRemotePackageVersionPlugin.ProtoReflect.Descriptor instead. -func (*GetRemotePackageVersionPlugin) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP(), []int{21} -} - func (x *GetRemotePackageVersionPlugin) GetOwner() string { if x != nil { return x.Owner @@ -1229,6 +1803,51 @@ func (x *GetRemotePackageVersionPlugin) GetRevision() uint32 { return 0 } +func (x *GetRemotePackageVersionPlugin) SetOwner(v string) { + x.Owner = v +} + +func (x *GetRemotePackageVersionPlugin) SetName(v string) { + x.Name = v +} + +func (x *GetRemotePackageVersionPlugin) SetVersion(v string) { + x.Version = v +} + +func (x *GetRemotePackageVersionPlugin) SetRevision(v uint32) { + x.Revision = v +} + +type GetRemotePackageVersionPlugin_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the plugin. + // example: bufbuild + Owner string + // The name of the plugin. + // example: connect-go + Name string + // The version of the plugin. + // If empty, this is a reference to the latest version. + // example: v1.0.0 + Version string + // The revision of the plugin version. + // example: 1 + Revision uint32 +} + +func (b0 GetRemotePackageVersionPlugin_builder) Build() *GetRemotePackageVersionPlugin { + m0 := &GetRemotePackageVersionPlugin{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Name = b.Name + x.Version = b.Version + x.Revision = b.Revision + return m0 +} + var File_buf_alpha_registry_v1alpha1_resolve_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_resolve_proto_rawDesc = []byte{ @@ -1568,18 +2187,6 @@ var file_buf_alpha_registry_v1alpha1_resolve_proto_rawDesc = []byte{ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescData = file_buf_alpha_registry_v1alpha1_resolve_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_resolve_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_resolve_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes = make([]protoimpl.MessageInfo, 22) var file_buf_alpha_registry_v1alpha1_resolve_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/resolve_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/resolve_protoopaque.pb.go new file mode 100644 index 0000000000..6b171f6a9b --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/resolve_protoopaque.pb.go @@ -0,0 +1,2262 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/resolve.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + v1alpha1 "github.com/bufbuild/buf/private/gen/proto/go/buf/alpha/module/v1alpha1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ResolvedReferenceType int32 + +const ( + ResolvedReferenceType_RESOLVED_REFERENCE_TYPE_UNSPECIFIED ResolvedReferenceType = 0 + ResolvedReferenceType_RESOLVED_REFERENCE_TYPE_COMMIT ResolvedReferenceType = 1 + ResolvedReferenceType_RESOLVED_REFERENCE_TYPE_BRANCH ResolvedReferenceType = 2 + ResolvedReferenceType_RESOLVED_REFERENCE_TYPE_TAG ResolvedReferenceType = 3 + ResolvedReferenceType_RESOLVED_REFERENCE_TYPE_DRAFT ResolvedReferenceType = 5 +) + +// Enum value maps for ResolvedReferenceType. +var ( + ResolvedReferenceType_name = map[int32]string{ + 0: "RESOLVED_REFERENCE_TYPE_UNSPECIFIED", + 1: "RESOLVED_REFERENCE_TYPE_COMMIT", + 2: "RESOLVED_REFERENCE_TYPE_BRANCH", + 3: "RESOLVED_REFERENCE_TYPE_TAG", + 5: "RESOLVED_REFERENCE_TYPE_DRAFT", + } + ResolvedReferenceType_value = map[string]int32{ + "RESOLVED_REFERENCE_TYPE_UNSPECIFIED": 0, + "RESOLVED_REFERENCE_TYPE_COMMIT": 1, + "RESOLVED_REFERENCE_TYPE_BRANCH": 2, + "RESOLVED_REFERENCE_TYPE_TAG": 3, + "RESOLVED_REFERENCE_TYPE_DRAFT": 5, + } +) + +func (x ResolvedReferenceType) Enum() *ResolvedReferenceType { + p := new(ResolvedReferenceType) + *p = x + return p +} + +func (x ResolvedReferenceType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResolvedReferenceType) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_resolve_proto_enumTypes[0].Descriptor() +} + +func (ResolvedReferenceType) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_resolve_proto_enumTypes[0] +} + +func (x ResolvedReferenceType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type GetModulePinsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ModuleReferences *[]*v1alpha1.ModuleReference `protobuf:"bytes,1,rep,name=module_references,json=moduleReferences,proto3" json:"module_references,omitempty"` + xxx_hidden_CurrentModulePins *[]*v1alpha1.ModulePin `protobuf:"bytes,2,rep,name=current_module_pins,json=currentModulePins,proto3" json:"current_module_pins,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetModulePinsRequest) Reset() { + *x = GetModulePinsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetModulePinsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetModulePinsRequest) ProtoMessage() {} + +func (x *GetModulePinsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetModulePinsRequest) GetModuleReferences() []*v1alpha1.ModuleReference { + if x != nil { + if x.xxx_hidden_ModuleReferences != nil { + return *x.xxx_hidden_ModuleReferences + } + } + return nil +} + +func (x *GetModulePinsRequest) GetCurrentModulePins() []*v1alpha1.ModulePin { + if x != nil { + if x.xxx_hidden_CurrentModulePins != nil { + return *x.xxx_hidden_CurrentModulePins + } + } + return nil +} + +func (x *GetModulePinsRequest) SetModuleReferences(v []*v1alpha1.ModuleReference) { + x.xxx_hidden_ModuleReferences = &v +} + +func (x *GetModulePinsRequest) SetCurrentModulePins(v []*v1alpha1.ModulePin) { + x.xxx_hidden_CurrentModulePins = &v +} + +type GetModulePinsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ModuleReferences []*v1alpha1.ModuleReference + // current_module_pins allows for partial dependency updates by letting clients + // send a request with the pins for their current module and only the + // identities of the dependencies they want to update in module_references. + // + // When resolving, if a client supplied module pin is: + // - in the transitive closure of pins resolved from the module_references, + // the client supplied module pin will be an extra candidate for tie + // breaking. + // - NOT in the in the transitive closure of pins resolved from the + // module_references, it will be returned as is. + CurrentModulePins []*v1alpha1.ModulePin +} + +func (b0 GetModulePinsRequest_builder) Build() *GetModulePinsRequest { + m0 := &GetModulePinsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ModuleReferences = &b.ModuleReferences + x.xxx_hidden_CurrentModulePins = &b.CurrentModulePins + return m0 +} + +type GetModulePinsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ModulePins *[]*v1alpha1.ModulePin `protobuf:"bytes,1,rep,name=module_pins,json=modulePins,proto3" json:"module_pins,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetModulePinsResponse) Reset() { + *x = GetModulePinsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetModulePinsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetModulePinsResponse) ProtoMessage() {} + +func (x *GetModulePinsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetModulePinsResponse) GetModulePins() []*v1alpha1.ModulePin { + if x != nil { + if x.xxx_hidden_ModulePins != nil { + return *x.xxx_hidden_ModulePins + } + } + return nil +} + +func (x *GetModulePinsResponse) SetModulePins(v []*v1alpha1.ModulePin) { + x.xxx_hidden_ModulePins = &v +} + +type GetModulePinsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ModulePins []*v1alpha1.ModulePin +} + +func (b0 GetModulePinsResponse_builder) Build() *GetModulePinsResponse { + m0 := &GetModulePinsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ModulePins = &b.ModulePins + return m0 +} + +type GetLocalModulePinsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_LocalModuleReferences *[]*LocalModuleReference `protobuf:"bytes,1,rep,name=local_module_references,json=localModuleReferences,proto3" json:"local_module_references,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetLocalModulePinsRequest) Reset() { + *x = GetLocalModulePinsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetLocalModulePinsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetLocalModulePinsRequest) ProtoMessage() {} + +func (x *GetLocalModulePinsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetLocalModulePinsRequest) GetLocalModuleReferences() []*LocalModuleReference { + if x != nil { + if x.xxx_hidden_LocalModuleReferences != nil { + return *x.xxx_hidden_LocalModuleReferences + } + } + return nil +} + +func (x *GetLocalModulePinsRequest) SetLocalModuleReferences(v []*LocalModuleReference) { + x.xxx_hidden_LocalModuleReferences = &v +} + +type GetLocalModulePinsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + LocalModuleReferences []*LocalModuleReference +} + +func (b0 GetLocalModulePinsRequest_builder) Build() *GetLocalModulePinsRequest { + m0 := &GetLocalModulePinsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_LocalModuleReferences = &b.LocalModuleReferences + return m0 +} + +type LocalModuleResolveResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Reference *LocalModuleReference `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"` + xxx_hidden_Pin *LocalModulePin `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"` + xxx_hidden_ResolvedReferenceType ResolvedReferenceType `protobuf:"varint,3,opt,name=resolved_reference_type,json=resolvedReferenceType,proto3,enum=buf.alpha.registry.v1alpha1.ResolvedReferenceType" json:"resolved_reference_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LocalModuleResolveResult) Reset() { + *x = LocalModuleResolveResult{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LocalModuleResolveResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LocalModuleResolveResult) ProtoMessage() {} + +func (x *LocalModuleResolveResult) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *LocalModuleResolveResult) GetReference() *LocalModuleReference { + if x != nil { + return x.xxx_hidden_Reference + } + return nil +} + +func (x *LocalModuleResolveResult) GetPin() *LocalModulePin { + if x != nil { + return x.xxx_hidden_Pin + } + return nil +} + +func (x *LocalModuleResolveResult) GetResolvedReferenceType() ResolvedReferenceType { + if x != nil { + return x.xxx_hidden_ResolvedReferenceType + } + return ResolvedReferenceType_RESOLVED_REFERENCE_TYPE_UNSPECIFIED +} + +func (x *LocalModuleResolveResult) SetReference(v *LocalModuleReference) { + x.xxx_hidden_Reference = v +} + +func (x *LocalModuleResolveResult) SetPin(v *LocalModulePin) { + x.xxx_hidden_Pin = v +} + +func (x *LocalModuleResolveResult) SetResolvedReferenceType(v ResolvedReferenceType) { + x.xxx_hidden_ResolvedReferenceType = v +} + +func (x *LocalModuleResolveResult) HasReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_Reference != nil +} + +func (x *LocalModuleResolveResult) HasPin() bool { + if x == nil { + return false + } + return x.xxx_hidden_Pin != nil +} + +func (x *LocalModuleResolveResult) ClearReference() { + x.xxx_hidden_Reference = nil +} + +func (x *LocalModuleResolveResult) ClearPin() { + x.xxx_hidden_Pin = nil +} + +type LocalModuleResolveResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // A copy of the reference that was resolved. + Reference *LocalModuleReference + // The pin the reference resolved to. + Pin *LocalModulePin + // The type the reference resolved as. + ResolvedReferenceType ResolvedReferenceType +} + +func (b0 LocalModuleResolveResult_builder) Build() *LocalModuleResolveResult { + m0 := &LocalModuleResolveResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Reference = b.Reference + x.xxx_hidden_Pin = b.Pin + x.xxx_hidden_ResolvedReferenceType = b.ResolvedReferenceType + return m0 +} + +type GetLocalModulePinsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_LocalModuleResolveResults *[]*LocalModuleResolveResult `protobuf:"bytes,1,rep,name=local_module_resolve_results,json=localModuleResolveResults,proto3" json:"local_module_resolve_results,omitempty"` + xxx_hidden_Dependencies *[]*v1alpha1.ModulePin `protobuf:"bytes,2,rep,name=dependencies,proto3" json:"dependencies,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetLocalModulePinsResponse) Reset() { + *x = GetLocalModulePinsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetLocalModulePinsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetLocalModulePinsResponse) ProtoMessage() {} + +func (x *GetLocalModulePinsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetLocalModulePinsResponse) GetLocalModuleResolveResults() []*LocalModuleResolveResult { + if x != nil { + if x.xxx_hidden_LocalModuleResolveResults != nil { + return *x.xxx_hidden_LocalModuleResolveResults + } + } + return nil +} + +func (x *GetLocalModulePinsResponse) GetDependencies() []*v1alpha1.ModulePin { + if x != nil { + if x.xxx_hidden_Dependencies != nil { + return *x.xxx_hidden_Dependencies + } + } + return nil +} + +func (x *GetLocalModulePinsResponse) SetLocalModuleResolveResults(v []*LocalModuleResolveResult) { + x.xxx_hidden_LocalModuleResolveResults = &v +} + +func (x *GetLocalModulePinsResponse) SetDependencies(v []*v1alpha1.ModulePin) { + x.xxx_hidden_Dependencies = &v +} + +type GetLocalModulePinsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + LocalModuleResolveResults []*LocalModuleResolveResult + // dependencies are the dependencies of the LocalModulePins. + // + // This includes the transitive deps. + Dependencies []*v1alpha1.ModulePin +} + +func (b0 GetLocalModulePinsResponse_builder) Build() *GetLocalModulePinsResponse { + m0 := &GetLocalModulePinsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_LocalModuleResolveResults = &b.LocalModuleResolveResults + x.xxx_hidden_Dependencies = &b.Dependencies + return m0 +} + +type GetGoVersionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` + xxx_hidden_ModuleReference *LocalModuleReference `protobuf:"bytes,2,opt,name=module_reference,json=moduleReference,proto3" json:"module_reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetGoVersionRequest) Reset() { + *x = GetGoVersionRequest{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetGoVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetGoVersionRequest) ProtoMessage() {} + +func (x *GetGoVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetGoVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { + if x != nil { + return x.xxx_hidden_PluginReference + } + return nil +} + +func (x *GetGoVersionRequest) GetModuleReference() *LocalModuleReference { + if x != nil { + return x.xxx_hidden_ModuleReference + } + return nil +} + +func (x *GetGoVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.xxx_hidden_PluginReference = v +} + +func (x *GetGoVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.xxx_hidden_ModuleReference = v +} + +func (x *GetGoVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_PluginReference != nil +} + +func (x *GetGoVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_ModuleReference != nil +} + +func (x *GetGoVersionRequest) ClearPluginReference() { + x.xxx_hidden_PluginReference = nil +} + +func (x *GetGoVersionRequest) ClearModuleReference() { + x.xxx_hidden_ModuleReference = nil +} + +type GetGoVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetGoVersionRequest_builder) Build() *GetGoVersionRequest { + m0 := &GetGoVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PluginReference = b.PluginReference + x.xxx_hidden_ModuleReference = b.ModuleReference + return m0 +} + +type GetGoVersionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetGoVersionResponse) Reset() { + *x = GetGoVersionResponse{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetGoVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetGoVersionResponse) ProtoMessage() {} + +func (x *GetGoVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetGoVersionResponse) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *GetGoVersionResponse) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type GetGoVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the go module proxy. + Version string +} + +func (b0 GetGoVersionResponse_builder) Build() *GetGoVersionResponse { + m0 := &GetGoVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + return m0 +} + +type GetMavenVersionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` + xxx_hidden_ModuleReference *LocalModuleReference `protobuf:"bytes,2,opt,name=module_reference,json=moduleReference,proto3" json:"module_reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetMavenVersionRequest) Reset() { + *x = GetMavenVersionRequest{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetMavenVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMavenVersionRequest) ProtoMessage() {} + +func (x *GetMavenVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetMavenVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { + if x != nil { + return x.xxx_hidden_PluginReference + } + return nil +} + +func (x *GetMavenVersionRequest) GetModuleReference() *LocalModuleReference { + if x != nil { + return x.xxx_hidden_ModuleReference + } + return nil +} + +func (x *GetMavenVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.xxx_hidden_PluginReference = v +} + +func (x *GetMavenVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.xxx_hidden_ModuleReference = v +} + +func (x *GetMavenVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_PluginReference != nil +} + +func (x *GetMavenVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_ModuleReference != nil +} + +func (x *GetMavenVersionRequest) ClearPluginReference() { + x.xxx_hidden_PluginReference = nil +} + +func (x *GetMavenVersionRequest) ClearModuleReference() { + x.xxx_hidden_ModuleReference = nil +} + +type GetMavenVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetMavenVersionRequest_builder) Build() *GetMavenVersionRequest { + m0 := &GetMavenVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PluginReference = b.PluginReference + x.xxx_hidden_ModuleReference = b.ModuleReference + return m0 +} + +type GetMavenVersionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetMavenVersionResponse) Reset() { + *x = GetMavenVersionResponse{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetMavenVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMavenVersionResponse) ProtoMessage() {} + +func (x *GetMavenVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetMavenVersionResponse) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *GetMavenVersionResponse) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type GetMavenVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the maven repository. + Version string +} + +func (b0 GetMavenVersionResponse_builder) Build() *GetMavenVersionResponse { + m0 := &GetMavenVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + return m0 +} + +type GetNPMVersionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` + xxx_hidden_ModuleReference *LocalModuleReference `protobuf:"bytes,2,opt,name=module_reference,json=moduleReference,proto3" json:"module_reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetNPMVersionRequest) Reset() { + *x = GetNPMVersionRequest{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetNPMVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetNPMVersionRequest) ProtoMessage() {} + +func (x *GetNPMVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetNPMVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { + if x != nil { + return x.xxx_hidden_PluginReference + } + return nil +} + +func (x *GetNPMVersionRequest) GetModuleReference() *LocalModuleReference { + if x != nil { + return x.xxx_hidden_ModuleReference + } + return nil +} + +func (x *GetNPMVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.xxx_hidden_PluginReference = v +} + +func (x *GetNPMVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.xxx_hidden_ModuleReference = v +} + +func (x *GetNPMVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_PluginReference != nil +} + +func (x *GetNPMVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_ModuleReference != nil +} + +func (x *GetNPMVersionRequest) ClearPluginReference() { + x.xxx_hidden_PluginReference = nil +} + +func (x *GetNPMVersionRequest) ClearModuleReference() { + x.xxx_hidden_ModuleReference = nil +} + +type GetNPMVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetNPMVersionRequest_builder) Build() *GetNPMVersionRequest { + m0 := &GetNPMVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PluginReference = b.PluginReference + x.xxx_hidden_ModuleReference = b.ModuleReference + return m0 +} + +type GetNPMVersionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetNPMVersionResponse) Reset() { + *x = GetNPMVersionResponse{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetNPMVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetNPMVersionResponse) ProtoMessage() {} + +func (x *GetNPMVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetNPMVersionResponse) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *GetNPMVersionResponse) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type GetNPMVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the npm registry. + Version string +} + +func (b0 GetNPMVersionResponse_builder) Build() *GetNPMVersionResponse { + m0 := &GetNPMVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + return m0 +} + +type GetSwiftVersionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` + xxx_hidden_ModuleReference *LocalModuleReference `protobuf:"bytes,2,opt,name=module_reference,json=moduleReference,proto3" json:"module_reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSwiftVersionRequest) Reset() { + *x = GetSwiftVersionRequest{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSwiftVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSwiftVersionRequest) ProtoMessage() {} + +func (x *GetSwiftVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetSwiftVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { + if x != nil { + return x.xxx_hidden_PluginReference + } + return nil +} + +func (x *GetSwiftVersionRequest) GetModuleReference() *LocalModuleReference { + if x != nil { + return x.xxx_hidden_ModuleReference + } + return nil +} + +func (x *GetSwiftVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.xxx_hidden_PluginReference = v +} + +func (x *GetSwiftVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.xxx_hidden_ModuleReference = v +} + +func (x *GetSwiftVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_PluginReference != nil +} + +func (x *GetSwiftVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_ModuleReference != nil +} + +func (x *GetSwiftVersionRequest) ClearPluginReference() { + x.xxx_hidden_PluginReference = nil +} + +func (x *GetSwiftVersionRequest) ClearModuleReference() { + x.xxx_hidden_ModuleReference = nil +} + +type GetSwiftVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetSwiftVersionRequest_builder) Build() *GetSwiftVersionRequest { + m0 := &GetSwiftVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PluginReference = b.PluginReference + x.xxx_hidden_ModuleReference = b.ModuleReference + return m0 +} + +type GetSwiftVersionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSwiftVersionResponse) Reset() { + *x = GetSwiftVersionResponse{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSwiftVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSwiftVersionResponse) ProtoMessage() {} + +func (x *GetSwiftVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetSwiftVersionResponse) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *GetSwiftVersionResponse) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type GetSwiftVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the swift registry. + Version string +} + +func (b0 GetSwiftVersionResponse_builder) Build() *GetSwiftVersionResponse { + m0 := &GetSwiftVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + return m0 +} + +type GetPythonVersionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` + xxx_hidden_ModuleReference *LocalModuleReference `protobuf:"bytes,2,opt,name=module_reference,json=moduleReference,proto3" json:"module_reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetPythonVersionRequest) Reset() { + *x = GetPythonVersionRequest{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetPythonVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPythonVersionRequest) ProtoMessage() {} + +func (x *GetPythonVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetPythonVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { + if x != nil { + return x.xxx_hidden_PluginReference + } + return nil +} + +func (x *GetPythonVersionRequest) GetModuleReference() *LocalModuleReference { + if x != nil { + return x.xxx_hidden_ModuleReference + } + return nil +} + +func (x *GetPythonVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.xxx_hidden_PluginReference = v +} + +func (x *GetPythonVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.xxx_hidden_ModuleReference = v +} + +func (x *GetPythonVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_PluginReference != nil +} + +func (x *GetPythonVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_ModuleReference != nil +} + +func (x *GetPythonVersionRequest) ClearPluginReference() { + x.xxx_hidden_PluginReference = nil +} + +func (x *GetPythonVersionRequest) ClearModuleReference() { + x.xxx_hidden_ModuleReference = nil +} + +type GetPythonVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetPythonVersionRequest_builder) Build() *GetPythonVersionRequest { + m0 := &GetPythonVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PluginReference = b.PluginReference + x.xxx_hidden_ModuleReference = b.ModuleReference + return m0 +} + +type GetPythonVersionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetPythonVersionResponse) Reset() { + *x = GetPythonVersionResponse{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetPythonVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPythonVersionResponse) ProtoMessage() {} + +func (x *GetPythonVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetPythonVersionResponse) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *GetPythonVersionResponse) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type GetPythonVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the python repository. + Version string +} + +func (b0 GetPythonVersionResponse_builder) Build() *GetPythonVersionResponse { + m0 := &GetPythonVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + return m0 +} + +type GetCargoVersionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` + xxx_hidden_ModuleReference *LocalModuleReference `protobuf:"bytes,2,opt,name=module_reference,json=moduleReference,proto3" json:"module_reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCargoVersionRequest) Reset() { + *x = GetCargoVersionRequest{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCargoVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCargoVersionRequest) ProtoMessage() {} + +func (x *GetCargoVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetCargoVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { + if x != nil { + return x.xxx_hidden_PluginReference + } + return nil +} + +func (x *GetCargoVersionRequest) GetModuleReference() *LocalModuleReference { + if x != nil { + return x.xxx_hidden_ModuleReference + } + return nil +} + +func (x *GetCargoVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.xxx_hidden_PluginReference = v +} + +func (x *GetCargoVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.xxx_hidden_ModuleReference = v +} + +func (x *GetCargoVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_PluginReference != nil +} + +func (x *GetCargoVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_ModuleReference != nil +} + +func (x *GetCargoVersionRequest) ClearPluginReference() { + x.xxx_hidden_PluginReference = nil +} + +func (x *GetCargoVersionRequest) ClearModuleReference() { + x.xxx_hidden_ModuleReference = nil +} + +type GetCargoVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetCargoVersionRequest_builder) Build() *GetCargoVersionRequest { + m0 := &GetCargoVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PluginReference = b.PluginReference + x.xxx_hidden_ModuleReference = b.ModuleReference + return m0 +} + +type GetCargoVersionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCargoVersionResponse) Reset() { + *x = GetCargoVersionResponse{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCargoVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCargoVersionResponse) ProtoMessage() {} + +func (x *GetCargoVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetCargoVersionResponse) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *GetCargoVersionResponse) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type GetCargoVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the cargo registry. + Version string +} + +func (b0 GetCargoVersionResponse_builder) Build() *GetCargoVersionResponse { + m0 := &GetCargoVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + return m0 +} + +type GetNugetVersionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` + xxx_hidden_ModuleReference *LocalModuleReference `protobuf:"bytes,2,opt,name=module_reference,json=moduleReference,proto3" json:"module_reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetNugetVersionRequest) Reset() { + *x = GetNugetVersionRequest{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetNugetVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetNugetVersionRequest) ProtoMessage() {} + +func (x *GetNugetVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetNugetVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { + if x != nil { + return x.xxx_hidden_PluginReference + } + return nil +} + +func (x *GetNugetVersionRequest) GetModuleReference() *LocalModuleReference { + if x != nil { + return x.xxx_hidden_ModuleReference + } + return nil +} + +func (x *GetNugetVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.xxx_hidden_PluginReference = v +} + +func (x *GetNugetVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.xxx_hidden_ModuleReference = v +} + +func (x *GetNugetVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_PluginReference != nil +} + +func (x *GetNugetVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_ModuleReference != nil +} + +func (x *GetNugetVersionRequest) ClearPluginReference() { + x.xxx_hidden_PluginReference = nil +} + +func (x *GetNugetVersionRequest) ClearModuleReference() { + x.xxx_hidden_ModuleReference = nil +} + +type GetNugetVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetNugetVersionRequest_builder) Build() *GetNugetVersionRequest { + m0 := &GetNugetVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PluginReference = b.PluginReference + x.xxx_hidden_ModuleReference = b.ModuleReference + return m0 +} + +type GetNugetVersionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetNugetVersionResponse) Reset() { + *x = GetNugetVersionResponse{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetNugetVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetNugetVersionResponse) ProtoMessage() {} + +func (x *GetNugetVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetNugetVersionResponse) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *GetNugetVersionResponse) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type GetNugetVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the nuget registry. + Version string +} + +func (b0 GetNugetVersionResponse_builder) Build() *GetNugetVersionResponse { + m0 := &GetNugetVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + return m0 +} + +type GetCmakeVersionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PluginReference *GetRemotePackageVersionPlugin `protobuf:"bytes,1,opt,name=plugin_reference,json=pluginReference,proto3" json:"plugin_reference,omitempty"` + xxx_hidden_ModuleReference *LocalModuleReference `protobuf:"bytes,2,opt,name=module_reference,json=moduleReference,proto3" json:"module_reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCmakeVersionRequest) Reset() { + *x = GetCmakeVersionRequest{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCmakeVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCmakeVersionRequest) ProtoMessage() {} + +func (x *GetCmakeVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetCmakeVersionRequest) GetPluginReference() *GetRemotePackageVersionPlugin { + if x != nil { + return x.xxx_hidden_PluginReference + } + return nil +} + +func (x *GetCmakeVersionRequest) GetModuleReference() *LocalModuleReference { + if x != nil { + return x.xxx_hidden_ModuleReference + } + return nil +} + +func (x *GetCmakeVersionRequest) SetPluginReference(v *GetRemotePackageVersionPlugin) { + x.xxx_hidden_PluginReference = v +} + +func (x *GetCmakeVersionRequest) SetModuleReference(v *LocalModuleReference) { + x.xxx_hidden_ModuleReference = v +} + +func (x *GetCmakeVersionRequest) HasPluginReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_PluginReference != nil +} + +func (x *GetCmakeVersionRequest) HasModuleReference() bool { + if x == nil { + return false + } + return x.xxx_hidden_ModuleReference != nil +} + +func (x *GetCmakeVersionRequest) ClearPluginReference() { + x.xxx_hidden_PluginReference = nil +} + +func (x *GetCmakeVersionRequest) ClearModuleReference() { + x.xxx_hidden_ModuleReference = nil +} + +type GetCmakeVersionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plugin reference to resolve. + PluginReference *GetRemotePackageVersionPlugin + // The module reference to resolve. + ModuleReference *LocalModuleReference +} + +func (b0 GetCmakeVersionRequest_builder) Build() *GetCmakeVersionRequest { + m0 := &GetCmakeVersionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PluginReference = b.PluginReference + x.xxx_hidden_ModuleReference = b.ModuleReference + return m0 +} + +type GetCmakeVersionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCmakeVersionResponse) Reset() { + *x = GetCmakeVersionResponse{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCmakeVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCmakeVersionResponse) ProtoMessage() {} + +func (x *GetCmakeVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetCmakeVersionResponse) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *GetCmakeVersionResponse) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +type GetCmakeVersionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // version is the resolved version to be used with the cmake registry. + Version string +} + +func (b0 GetCmakeVersionResponse_builder) Build() *GetCmakeVersionResponse { + m0 := &GetCmakeVersionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + return m0 +} + +// GetRemotePackageVersionPlugin is a plugin reference. +// If the version is empty, this is a reference to the latest version. +type GetRemotePackageVersionPlugin struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_Revision uint32 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetRemotePackageVersionPlugin) Reset() { + *x = GetRemotePackageVersionPlugin{} + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetRemotePackageVersionPlugin) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRemotePackageVersionPlugin) ProtoMessage() {} + +func (x *GetRemotePackageVersionPlugin) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetRemotePackageVersionPlugin) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetRemotePackageVersionPlugin) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GetRemotePackageVersionPlugin) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *GetRemotePackageVersionPlugin) GetRevision() uint32 { + if x != nil { + return x.xxx_hidden_Revision + } + return 0 +} + +func (x *GetRemotePackageVersionPlugin) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetRemotePackageVersionPlugin) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *GetRemotePackageVersionPlugin) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *GetRemotePackageVersionPlugin) SetRevision(v uint32) { + x.xxx_hidden_Revision = v +} + +type GetRemotePackageVersionPlugin_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the plugin. + // example: bufbuild + Owner string + // The name of the plugin. + // example: connect-go + Name string + // The version of the plugin. + // If empty, this is a reference to the latest version. + // example: v1.0.0 + Version string + // The revision of the plugin version. + // example: 1 + Revision uint32 +} + +func (b0 GetRemotePackageVersionPlugin_builder) Build() *GetRemotePackageVersionPlugin { + m0 := &GetRemotePackageVersionPlugin{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Version = b.Version + x.xxx_hidden_Revision = b.Revision + return m0 +} + +var File_buf_alpha_registry_v1alpha1_resolve_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_resolve_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x28, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc5, 0x01, 0x0a, 0x14, 0x47, + 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x57, 0x0a, 0x11, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x10, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x54, 0x0a, 0x13, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x70, + 0x69, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x52, + 0x11, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, + 0x6e, 0x73, 0x22, 0x5e, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, + 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0b, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, + 0x6e, 0x73, 0x22, 0x86, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x69, 0x0a, 0x17, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x15, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x22, 0xa9, 0x02, 0x0a, 0x18, + 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, + 0x76, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x4f, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3d, 0x0a, 0x03, 0x70, 0x69, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x50, 0x69, 0x6e, 0x52, 0x03, 0x70, 0x69, 0x6e, 0x12, 0x6a, 0x0a, 0x17, 0x72, 0x65, 0x73, 0x6f, + 0x6c, 0x76, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x15, 0x72, + 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x52, 0x0b, 0x69, 0x73, 0x5f, 0x62, + 0x73, 0x72, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x22, 0xde, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x4c, + 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x1c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x5f, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, + 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x52, 0x19, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x48, + 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x65, + 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x22, 0xda, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, + 0x47, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x65, 0x0a, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x0f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x10, 0x6d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x30, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x47, 0x6f, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xdd, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4d, + 0x61, 0x76, 0x65, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x65, 0x0a, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x0f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x10, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4d, 0x61, + 0x76, 0x65, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xdb, 0x01, 0x0a, + 0x14, 0x47, 0x65, 0x74, 0x4e, 0x50, 0x4d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x65, 0x0a, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x0f, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x10, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x31, 0x0a, 0x15, 0x47, 0x65, + 0x74, 0x4e, 0x50, 0x4d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xdd, 0x01, + 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x77, 0x69, 0x66, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x65, 0x0a, 0x10, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x0f, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, + 0x5c, 0x0a, 0x10, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x33, 0x0a, + 0x17, 0x47, 0x65, 0x74, 0x53, 0x77, 0x69, 0x66, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x22, 0xde, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x65, + 0x0a, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x52, 0x0f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x10, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, + 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x52, 0x0f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x22, 0x34, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xdd, 0x01, 0x0a, 0x16, 0x47, 0x65, + 0x74, 0x43, 0x61, 0x72, 0x67, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x65, 0x0a, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x0f, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x10, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, + 0x43, 0x61, 0x72, 0x67, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xdd, + 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4e, 0x75, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x65, 0x0a, 0x10, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, + 0x0f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x12, 0x5c, 0x0a, 0x10, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x33, + 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4e, 0x75, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x22, 0xdd, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x6d, 0x61, 0x6b, 0x65, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x65, + 0x0a, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x52, 0x0f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x10, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, + 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x52, 0x0f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x6d, 0x61, 0x6b, 0x65, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x7f, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, + 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0xf1, 0x01, 0x0a, 0x15, 0x52, 0x65, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x23, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x56, 0x45, 0x44, 0x5f, + 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, + 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x56, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, + 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x01, + 0x12, 0x22, 0x0a, 0x1e, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x56, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, + 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x52, 0x41, 0x4e, + 0x43, 0x48, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x56, 0x45, 0x44, + 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x54, 0x41, 0x47, 0x10, 0x03, 0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x56, 0x45, + 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x44, 0x52, 0x41, 0x46, 0x54, 0x10, 0x05, 0x22, 0x04, 0x08, 0x04, 0x10, 0x04, 0x2a, 0x1d, + 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x56, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, + 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x43, 0x4b, 0x32, 0x9f, 0x09, + 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x7b, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, + 0x73, 0x12, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x78, 0x0a, + 0x0c, 0x47, 0x65, 0x74, 0x47, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, + 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x47, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x81, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, + 0x77, 0x69, 0x66, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x77, 0x69, + 0x66, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x53, 0x77, 0x69, 0x66, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x81, 0x01, 0x0a, 0x0f, + 0x47, 0x65, 0x74, 0x4d, 0x61, 0x76, 0x65, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x4d, 0x61, 0x76, 0x65, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x76, 0x65, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, + 0x7b, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4e, 0x50, 0x4d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x4e, 0x50, 0x4d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x50, 0x4d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x84, 0x01, 0x0a, + 0x10, 0x47, 0x65, 0x74, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, + 0x90, 0x02, 0x01, 0x12, 0x81, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x61, 0x72, 0x67, 0x6f, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x61, 0x72, 0x67, 0x6f, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x61, + 0x72, 0x67, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x81, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4e, + 0x75, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x75, 0x67, + 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x4e, 0x75, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x81, 0x01, 0x0a, 0x0f, + 0x47, 0x65, 0x74, 0x43, 0x6d, 0x61, 0x6b, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x43, 0x6d, 0x61, 0x6b, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6d, 0x61, 0x6b, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x32, + 0xa2, 0x01, 0x0a, 0x13, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4c, + 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x73, 0x12, 0x36, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x50, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x03, 0x90, 0x02, 0x01, 0x42, 0x99, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, + 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, + 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, + 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_resolve_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes = make([]protoimpl.MessageInfo, 22) +var file_buf_alpha_registry_v1alpha1_resolve_proto_goTypes = []any{ + (ResolvedReferenceType)(0), // 0: buf.alpha.registry.v1alpha1.ResolvedReferenceType + (*GetModulePinsRequest)(nil), // 1: buf.alpha.registry.v1alpha1.GetModulePinsRequest + (*GetModulePinsResponse)(nil), // 2: buf.alpha.registry.v1alpha1.GetModulePinsResponse + (*GetLocalModulePinsRequest)(nil), // 3: buf.alpha.registry.v1alpha1.GetLocalModulePinsRequest + (*LocalModuleResolveResult)(nil), // 4: buf.alpha.registry.v1alpha1.LocalModuleResolveResult + (*GetLocalModulePinsResponse)(nil), // 5: buf.alpha.registry.v1alpha1.GetLocalModulePinsResponse + (*GetGoVersionRequest)(nil), // 6: buf.alpha.registry.v1alpha1.GetGoVersionRequest + (*GetGoVersionResponse)(nil), // 7: buf.alpha.registry.v1alpha1.GetGoVersionResponse + (*GetMavenVersionRequest)(nil), // 8: buf.alpha.registry.v1alpha1.GetMavenVersionRequest + (*GetMavenVersionResponse)(nil), // 9: buf.alpha.registry.v1alpha1.GetMavenVersionResponse + (*GetNPMVersionRequest)(nil), // 10: buf.alpha.registry.v1alpha1.GetNPMVersionRequest + (*GetNPMVersionResponse)(nil), // 11: buf.alpha.registry.v1alpha1.GetNPMVersionResponse + (*GetSwiftVersionRequest)(nil), // 12: buf.alpha.registry.v1alpha1.GetSwiftVersionRequest + (*GetSwiftVersionResponse)(nil), // 13: buf.alpha.registry.v1alpha1.GetSwiftVersionResponse + (*GetPythonVersionRequest)(nil), // 14: buf.alpha.registry.v1alpha1.GetPythonVersionRequest + (*GetPythonVersionResponse)(nil), // 15: buf.alpha.registry.v1alpha1.GetPythonVersionResponse + (*GetCargoVersionRequest)(nil), // 16: buf.alpha.registry.v1alpha1.GetCargoVersionRequest + (*GetCargoVersionResponse)(nil), // 17: buf.alpha.registry.v1alpha1.GetCargoVersionResponse + (*GetNugetVersionRequest)(nil), // 18: buf.alpha.registry.v1alpha1.GetNugetVersionRequest + (*GetNugetVersionResponse)(nil), // 19: buf.alpha.registry.v1alpha1.GetNugetVersionResponse + (*GetCmakeVersionRequest)(nil), // 20: buf.alpha.registry.v1alpha1.GetCmakeVersionRequest + (*GetCmakeVersionResponse)(nil), // 21: buf.alpha.registry.v1alpha1.GetCmakeVersionResponse + (*GetRemotePackageVersionPlugin)(nil), // 22: buf.alpha.registry.v1alpha1.GetRemotePackageVersionPlugin + (*v1alpha1.ModuleReference)(nil), // 23: buf.alpha.module.v1alpha1.ModuleReference + (*v1alpha1.ModulePin)(nil), // 24: buf.alpha.module.v1alpha1.ModulePin + (*LocalModuleReference)(nil), // 25: buf.alpha.registry.v1alpha1.LocalModuleReference + (*LocalModulePin)(nil), // 26: buf.alpha.registry.v1alpha1.LocalModulePin +} +var file_buf_alpha_registry_v1alpha1_resolve_proto_depIdxs = []int32{ + 23, // 0: buf.alpha.registry.v1alpha1.GetModulePinsRequest.module_references:type_name -> buf.alpha.module.v1alpha1.ModuleReference + 24, // 1: buf.alpha.registry.v1alpha1.GetModulePinsRequest.current_module_pins:type_name -> buf.alpha.module.v1alpha1.ModulePin + 24, // 2: buf.alpha.registry.v1alpha1.GetModulePinsResponse.module_pins:type_name -> buf.alpha.module.v1alpha1.ModulePin + 25, // 3: buf.alpha.registry.v1alpha1.GetLocalModulePinsRequest.local_module_references:type_name -> buf.alpha.registry.v1alpha1.LocalModuleReference + 25, // 4: buf.alpha.registry.v1alpha1.LocalModuleResolveResult.reference:type_name -> buf.alpha.registry.v1alpha1.LocalModuleReference + 26, // 5: buf.alpha.registry.v1alpha1.LocalModuleResolveResult.pin:type_name -> buf.alpha.registry.v1alpha1.LocalModulePin + 0, // 6: buf.alpha.registry.v1alpha1.LocalModuleResolveResult.resolved_reference_type:type_name -> buf.alpha.registry.v1alpha1.ResolvedReferenceType + 4, // 7: buf.alpha.registry.v1alpha1.GetLocalModulePinsResponse.local_module_resolve_results:type_name -> buf.alpha.registry.v1alpha1.LocalModuleResolveResult + 24, // 8: buf.alpha.registry.v1alpha1.GetLocalModulePinsResponse.dependencies:type_name -> buf.alpha.module.v1alpha1.ModulePin + 22, // 9: buf.alpha.registry.v1alpha1.GetGoVersionRequest.plugin_reference:type_name -> buf.alpha.registry.v1alpha1.GetRemotePackageVersionPlugin + 25, // 10: buf.alpha.registry.v1alpha1.GetGoVersionRequest.module_reference:type_name -> buf.alpha.registry.v1alpha1.LocalModuleReference + 22, // 11: buf.alpha.registry.v1alpha1.GetMavenVersionRequest.plugin_reference:type_name -> buf.alpha.registry.v1alpha1.GetRemotePackageVersionPlugin + 25, // 12: buf.alpha.registry.v1alpha1.GetMavenVersionRequest.module_reference:type_name -> buf.alpha.registry.v1alpha1.LocalModuleReference + 22, // 13: buf.alpha.registry.v1alpha1.GetNPMVersionRequest.plugin_reference:type_name -> buf.alpha.registry.v1alpha1.GetRemotePackageVersionPlugin + 25, // 14: buf.alpha.registry.v1alpha1.GetNPMVersionRequest.module_reference:type_name -> buf.alpha.registry.v1alpha1.LocalModuleReference + 22, // 15: buf.alpha.registry.v1alpha1.GetSwiftVersionRequest.plugin_reference:type_name -> buf.alpha.registry.v1alpha1.GetRemotePackageVersionPlugin + 25, // 16: buf.alpha.registry.v1alpha1.GetSwiftVersionRequest.module_reference:type_name -> buf.alpha.registry.v1alpha1.LocalModuleReference + 22, // 17: buf.alpha.registry.v1alpha1.GetPythonVersionRequest.plugin_reference:type_name -> buf.alpha.registry.v1alpha1.GetRemotePackageVersionPlugin + 25, // 18: buf.alpha.registry.v1alpha1.GetPythonVersionRequest.module_reference:type_name -> buf.alpha.registry.v1alpha1.LocalModuleReference + 22, // 19: buf.alpha.registry.v1alpha1.GetCargoVersionRequest.plugin_reference:type_name -> buf.alpha.registry.v1alpha1.GetRemotePackageVersionPlugin + 25, // 20: buf.alpha.registry.v1alpha1.GetCargoVersionRequest.module_reference:type_name -> buf.alpha.registry.v1alpha1.LocalModuleReference + 22, // 21: buf.alpha.registry.v1alpha1.GetNugetVersionRequest.plugin_reference:type_name -> buf.alpha.registry.v1alpha1.GetRemotePackageVersionPlugin + 25, // 22: buf.alpha.registry.v1alpha1.GetNugetVersionRequest.module_reference:type_name -> buf.alpha.registry.v1alpha1.LocalModuleReference + 22, // 23: buf.alpha.registry.v1alpha1.GetCmakeVersionRequest.plugin_reference:type_name -> buf.alpha.registry.v1alpha1.GetRemotePackageVersionPlugin + 25, // 24: buf.alpha.registry.v1alpha1.GetCmakeVersionRequest.module_reference:type_name -> buf.alpha.registry.v1alpha1.LocalModuleReference + 1, // 25: buf.alpha.registry.v1alpha1.ResolveService.GetModulePins:input_type -> buf.alpha.registry.v1alpha1.GetModulePinsRequest + 6, // 26: buf.alpha.registry.v1alpha1.ResolveService.GetGoVersion:input_type -> buf.alpha.registry.v1alpha1.GetGoVersionRequest + 12, // 27: buf.alpha.registry.v1alpha1.ResolveService.GetSwiftVersion:input_type -> buf.alpha.registry.v1alpha1.GetSwiftVersionRequest + 8, // 28: buf.alpha.registry.v1alpha1.ResolveService.GetMavenVersion:input_type -> buf.alpha.registry.v1alpha1.GetMavenVersionRequest + 10, // 29: buf.alpha.registry.v1alpha1.ResolveService.GetNPMVersion:input_type -> buf.alpha.registry.v1alpha1.GetNPMVersionRequest + 14, // 30: buf.alpha.registry.v1alpha1.ResolveService.GetPythonVersion:input_type -> buf.alpha.registry.v1alpha1.GetPythonVersionRequest + 16, // 31: buf.alpha.registry.v1alpha1.ResolveService.GetCargoVersion:input_type -> buf.alpha.registry.v1alpha1.GetCargoVersionRequest + 18, // 32: buf.alpha.registry.v1alpha1.ResolveService.GetNugetVersion:input_type -> buf.alpha.registry.v1alpha1.GetNugetVersionRequest + 20, // 33: buf.alpha.registry.v1alpha1.ResolveService.GetCmakeVersion:input_type -> buf.alpha.registry.v1alpha1.GetCmakeVersionRequest + 3, // 34: buf.alpha.registry.v1alpha1.LocalResolveService.GetLocalModulePins:input_type -> buf.alpha.registry.v1alpha1.GetLocalModulePinsRequest + 2, // 35: buf.alpha.registry.v1alpha1.ResolveService.GetModulePins:output_type -> buf.alpha.registry.v1alpha1.GetModulePinsResponse + 7, // 36: buf.alpha.registry.v1alpha1.ResolveService.GetGoVersion:output_type -> buf.alpha.registry.v1alpha1.GetGoVersionResponse + 13, // 37: buf.alpha.registry.v1alpha1.ResolveService.GetSwiftVersion:output_type -> buf.alpha.registry.v1alpha1.GetSwiftVersionResponse + 9, // 38: buf.alpha.registry.v1alpha1.ResolveService.GetMavenVersion:output_type -> buf.alpha.registry.v1alpha1.GetMavenVersionResponse + 11, // 39: buf.alpha.registry.v1alpha1.ResolveService.GetNPMVersion:output_type -> buf.alpha.registry.v1alpha1.GetNPMVersionResponse + 15, // 40: buf.alpha.registry.v1alpha1.ResolveService.GetPythonVersion:output_type -> buf.alpha.registry.v1alpha1.GetPythonVersionResponse + 17, // 41: buf.alpha.registry.v1alpha1.ResolveService.GetCargoVersion:output_type -> buf.alpha.registry.v1alpha1.GetCargoVersionResponse + 19, // 42: buf.alpha.registry.v1alpha1.ResolveService.GetNugetVersion:output_type -> buf.alpha.registry.v1alpha1.GetNugetVersionResponse + 21, // 43: buf.alpha.registry.v1alpha1.ResolveService.GetCmakeVersion:output_type -> buf.alpha.registry.v1alpha1.GetCmakeVersionResponse + 5, // 44: buf.alpha.registry.v1alpha1.LocalResolveService.GetLocalModulePins:output_type -> buf.alpha.registry.v1alpha1.GetLocalModulePinsResponse + 35, // [35:45] is the sub-list for method output_type + 25, // [25:35] is the sub-list for method input_type + 25, // [25:25] is the sub-list for extension type_name + 25, // [25:25] is the sub-list for extension extendee + 0, // [0:25] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_resolve_proto_init() } +func file_buf_alpha_registry_v1alpha1_resolve_proto_init() { + if File_buf_alpha_registry_v1alpha1_resolve_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_module_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_resolve_proto_rawDesc, + NumEnums: 1, + NumMessages: 22, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_resolve_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_resolve_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_resolve_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_resolve_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_resolve_proto = out.File + file_buf_alpha_registry_v1alpha1_resolve_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_resolve_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_resolve_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/resource.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/resource.pb.go index 0b543a7766..7f1839d46f 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/resource.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/resource.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/resource.proto +//go:build !protoopaque + package registryv1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -35,7 +36,7 @@ const ( ) type Resource struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Resource: // // *Resource_Repository @@ -70,11 +71,6 @@ func (x *Resource) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Resource.ProtoReflect.Descriptor instead. -func (*Resource) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resource_proto_rawDescGZIP(), []int{0} -} - func (x *Resource) GetResource() isResource_Resource { if x != nil { return x.Resource @@ -100,6 +96,111 @@ func (x *Resource) GetPlugin() *CuratedPlugin { return nil } +func (x *Resource) SetRepository(v *Repository) { + if v == nil { + x.Resource = nil + return + } + x.Resource = &Resource_Repository{v} +} + +func (x *Resource) SetPlugin(v *CuratedPlugin) { + if v == nil { + x.Resource = nil + return + } + x.Resource = &Resource_Plugin{v} +} + +func (x *Resource) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *Resource) HasRepository() bool { + if x == nil { + return false + } + _, ok := x.Resource.(*Resource_Repository) + return ok +} + +func (x *Resource) HasPlugin() bool { + if x == nil { + return false + } + _, ok := x.Resource.(*Resource_Plugin) + return ok +} + +func (x *Resource) ClearResource() { + x.Resource = nil +} + +func (x *Resource) ClearRepository() { + if _, ok := x.Resource.(*Resource_Repository); ok { + x.Resource = nil + } +} + +func (x *Resource) ClearPlugin() { + if _, ok := x.Resource.(*Resource_Plugin); ok { + x.Resource = nil + } +} + +const Resource_Resource_not_set_case case_Resource_Resource = 0 +const Resource_Repository_case case_Resource_Resource = 1 +const Resource_Plugin_case case_Resource_Resource = 2 + +func (x *Resource) WhichResource() case_Resource_Resource { + if x == nil { + return Resource_Resource_not_set_case + } + switch x.Resource.(type) { + case *Resource_Repository: + return Resource_Repository_case + case *Resource_Plugin: + return Resource_Plugin_case + default: + return Resource_Resource_not_set_case + } +} + +type Resource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Resource: + Repository *Repository + Plugin *CuratedPlugin + // -- end of Resource +} + +func (b0 Resource_builder) Build() *Resource { + m0 := &Resource{} + b, x := &b0, m0 + _, _ = b, x + if b.Repository != nil { + x.Resource = &Resource_Repository{b.Repository} + } + if b.Plugin != nil { + x.Resource = &Resource_Plugin{b.Plugin} + } + return m0 +} + +type case_Resource_Resource protoreflect.FieldNumber + +func (x case_Resource_Resource) String() string { + md := file_buf_alpha_registry_v1alpha1_resource_proto_msgTypes[0].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isResource_Resource interface { isResource_Resource() } @@ -117,7 +218,7 @@ func (*Resource_Repository) isResource_Resource() {} func (*Resource_Plugin) isResource_Resource() {} type GetResourceByNameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Owner of the requested resource. Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // Name of the requested resource. @@ -151,11 +252,6 @@ func (x *GetResourceByNameRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetResourceByNameRequest.ProtoReflect.Descriptor instead. -func (*GetResourceByNameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resource_proto_rawDescGZIP(), []int{1} -} - func (x *GetResourceByNameRequest) GetOwner() string { if x != nil { return x.Owner @@ -170,8 +266,34 @@ func (x *GetResourceByNameRequest) GetName() string { return "" } +func (x *GetResourceByNameRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *GetResourceByNameRequest) SetName(v string) { + x.Name = v +} + +type GetResourceByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Owner of the requested resource. + Owner string + // Name of the requested resource. + Name string +} + +func (b0 GetResourceByNameRequest_builder) Build() *GetResourceByNameRequest { + m0 := &GetResourceByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Name = b.Name + return m0 +} + type GetResourceByNameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -202,11 +324,6 @@ func (x *GetResourceByNameResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetResourceByNameResponse.ProtoReflect.Descriptor instead. -func (*GetResourceByNameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_resource_proto_rawDescGZIP(), []int{2} -} - func (x *GetResourceByNameResponse) GetResource() *Resource { if x != nil { return x.Resource @@ -214,6 +331,35 @@ func (x *GetResourceByNameResponse) GetResource() *Resource { return nil } +func (x *GetResourceByNameResponse) SetResource(v *Resource) { + x.Resource = v +} + +func (x *GetResourceByNameResponse) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *GetResourceByNameResponse) ClearResource() { + x.Resource = nil +} + +type GetResourceByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource +} + +func (b0 GetResourceByNameResponse_builder) Build() *GetResourceByNameResponse { + m0 := &GetResourceByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Resource = b.Resource + return m0 +} + var File_buf_alpha_registry_v1alpha1_resource_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_resource_proto_rawDesc = []byte{ @@ -279,18 +425,6 @@ var file_buf_alpha_registry_v1alpha1_resource_proto_rawDesc = []byte{ 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_resource_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_resource_proto_rawDescData = file_buf_alpha_registry_v1alpha1_resource_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_resource_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_resource_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_resource_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_resource_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_buf_alpha_registry_v1alpha1_resource_proto_goTypes = []any{ (*Resource)(nil), // 0: buf.alpha.registry.v1alpha1.Resource diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/resource_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/resource_protoopaque.pb.go new file mode 100644 index 0000000000..6e2ab29046 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/resource_protoopaque.pb.go @@ -0,0 +1,465 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/resource.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Resource struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resource isResource_Resource `protobuf_oneof:"resource"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Resource) Reset() { + *x = Resource{} + mi := &file_buf_alpha_registry_v1alpha1_resource_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Resource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Resource) ProtoMessage() {} + +func (x *Resource) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resource_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Resource) GetRepository() *Repository { + if x != nil { + if x, ok := x.xxx_hidden_Resource.(*resource_Repository); ok { + return x.Repository + } + } + return nil +} + +func (x *Resource) GetPlugin() *CuratedPlugin { + if x != nil { + if x, ok := x.xxx_hidden_Resource.(*resource_Plugin); ok { + return x.Plugin + } + } + return nil +} + +func (x *Resource) SetRepository(v *Repository) { + if v == nil { + x.xxx_hidden_Resource = nil + return + } + x.xxx_hidden_Resource = &resource_Repository{v} +} + +func (x *Resource) SetPlugin(v *CuratedPlugin) { + if v == nil { + x.xxx_hidden_Resource = nil + return + } + x.xxx_hidden_Resource = &resource_Plugin{v} +} + +func (x *Resource) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *Resource) HasRepository() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Resource.(*resource_Repository) + return ok +} + +func (x *Resource) HasPlugin() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Resource.(*resource_Plugin) + return ok +} + +func (x *Resource) ClearResource() { + x.xxx_hidden_Resource = nil +} + +func (x *Resource) ClearRepository() { + if _, ok := x.xxx_hidden_Resource.(*resource_Repository); ok { + x.xxx_hidden_Resource = nil + } +} + +func (x *Resource) ClearPlugin() { + if _, ok := x.xxx_hidden_Resource.(*resource_Plugin); ok { + x.xxx_hidden_Resource = nil + } +} + +const Resource_Resource_not_set_case case_Resource_Resource = 0 +const Resource_Repository_case case_Resource_Resource = 1 +const Resource_Plugin_case case_Resource_Resource = 2 + +func (x *Resource) WhichResource() case_Resource_Resource { + if x == nil { + return Resource_Resource_not_set_case + } + switch x.xxx_hidden_Resource.(type) { + case *resource_Repository: + return Resource_Repository_case + case *resource_Plugin: + return Resource_Plugin_case + default: + return Resource_Resource_not_set_case + } +} + +type Resource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Resource: + Repository *Repository + Plugin *CuratedPlugin + // -- end of xxx_hidden_Resource +} + +func (b0 Resource_builder) Build() *Resource { + m0 := &Resource{} + b, x := &b0, m0 + _, _ = b, x + if b.Repository != nil { + x.xxx_hidden_Resource = &resource_Repository{b.Repository} + } + if b.Plugin != nil { + x.xxx_hidden_Resource = &resource_Plugin{b.Plugin} + } + return m0 +} + +type case_Resource_Resource protoreflect.FieldNumber + +func (x case_Resource_Resource) String() string { + md := file_buf_alpha_registry_v1alpha1_resource_proto_msgTypes[0].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isResource_Resource interface { + isResource_Resource() +} + +type resource_Repository struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3,oneof"` +} + +type resource_Plugin struct { + Plugin *CuratedPlugin `protobuf:"bytes,2,opt,name=plugin,proto3,oneof"` +} + +func (*resource_Repository) isResource_Resource() {} + +func (*resource_Plugin) isResource_Resource() {} + +type GetResourceByNameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetResourceByNameRequest) Reset() { + *x = GetResourceByNameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_resource_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetResourceByNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetResourceByNameRequest) ProtoMessage() {} + +func (x *GetResourceByNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resource_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetResourceByNameRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetResourceByNameRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GetResourceByNameRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetResourceByNameRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +type GetResourceByNameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Owner of the requested resource. + Owner string + // Name of the requested resource. + Name string +} + +func (b0 GetResourceByNameRequest_builder) Build() *GetResourceByNameRequest { + m0 := &GetResourceByNameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Name = b.Name + return m0 +} + +type GetResourceByNameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetResourceByNameResponse) Reset() { + *x = GetResourceByNameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_resource_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetResourceByNameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetResourceByNameResponse) ProtoMessage() {} + +func (x *GetResourceByNameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_resource_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetResourceByNameResponse) GetResource() *Resource { + if x != nil { + return x.xxx_hidden_Resource + } + return nil +} + +func (x *GetResourceByNameResponse) SetResource(v *Resource) { + x.xxx_hidden_Resource = v +} + +func (x *GetResourceByNameResponse) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *GetResourceByNameResponse) ClearResource() { + x.xxx_hidden_Resource = nil +} + +type GetResourceByNameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource +} + +func (b0 GetResourceByNameResponse_builder) Build() *GetResourceByNameResponse { + m0 := &GetResourceByNameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resource = b.Resource + return m0 +} + +var File_buf_alpha_registry_v1alpha1_resource_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_resource_proto_rawDesc = []byte{ + 0x0a, 0x2a, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x31, 0x62, 0x75, 0x66, 0x2f, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x63, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x62, 0x75, + 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa7, 0x01, 0x0a, 0x08, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x44, 0x0a, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x48, 0x00, + 0x52, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x22, 0x44, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x5e, 0x0a, 0x19, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x32, 0x9b, 0x01, 0x0a, 0x0f, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x87, + 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x79, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x79, + 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x9a, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0d, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, + 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, + 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, + 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_buf_alpha_registry_v1alpha1_resource_proto_goTypes = []any{ + (*Resource)(nil), // 0: buf.alpha.registry.v1alpha1.Resource + (*GetResourceByNameRequest)(nil), // 1: buf.alpha.registry.v1alpha1.GetResourceByNameRequest + (*GetResourceByNameResponse)(nil), // 2: buf.alpha.registry.v1alpha1.GetResourceByNameResponse + (*Repository)(nil), // 3: buf.alpha.registry.v1alpha1.Repository + (*CuratedPlugin)(nil), // 4: buf.alpha.registry.v1alpha1.CuratedPlugin +} +var file_buf_alpha_registry_v1alpha1_resource_proto_depIdxs = []int32{ + 3, // 0: buf.alpha.registry.v1alpha1.Resource.repository:type_name -> buf.alpha.registry.v1alpha1.Repository + 4, // 1: buf.alpha.registry.v1alpha1.Resource.plugin:type_name -> buf.alpha.registry.v1alpha1.CuratedPlugin + 0, // 2: buf.alpha.registry.v1alpha1.GetResourceByNameResponse.resource:type_name -> buf.alpha.registry.v1alpha1.Resource + 1, // 3: buf.alpha.registry.v1alpha1.ResourceService.GetResourceByName:input_type -> buf.alpha.registry.v1alpha1.GetResourceByNameRequest + 2, // 4: buf.alpha.registry.v1alpha1.ResourceService.GetResourceByName:output_type -> buf.alpha.registry.v1alpha1.GetResourceByNameResponse + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_resource_proto_init() } +func file_buf_alpha_registry_v1alpha1_resource_proto_init() { + if File_buf_alpha_registry_v1alpha1_resource_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_plugin_curation_proto_init() + file_buf_alpha_registry_v1alpha1_repository_proto_init() + file_buf_alpha_registry_v1alpha1_resource_proto_msgTypes[0].OneofWrappers = []any{ + (*resource_Repository)(nil), + (*resource_Plugin)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_resource_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_resource_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_resource_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_resource_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_resource_proto = out.File + file_buf_alpha_registry_v1alpha1_resource_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_resource_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_resource_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/role.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/role.pb.go index 0ad5e63e56..a646e8a51d 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/role.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/role.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/role.proto +//go:build !protoopaque + package registryv1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -79,11 +80,6 @@ func (x ServerRole) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use ServerRole.Descriptor instead. -func (ServerRole) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_role_proto_rawDescGZIP(), []int{0} -} - // The roles that users can have in a Organization. type OrganizationRole int32 @@ -135,11 +131,6 @@ func (x OrganizationRole) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use OrganizationRole.Descriptor instead. -func (OrganizationRole) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_role_proto_rawDescGZIP(), []int{1} -} - // The source of a user's role in an Organization. type OrganizationRoleSource int32 @@ -188,11 +179,6 @@ func (x OrganizationRoleSource) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use OrganizationRoleSource.Descriptor instead. -func (OrganizationRoleSource) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_role_proto_rawDescGZIP(), []int{2} -} - // The roles that users can have for a Repository. type RepositoryRole int32 @@ -247,11 +233,6 @@ func (x RepositoryRole) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use RepositoryRole.Descriptor instead. -func (RepositoryRole) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_role_proto_rawDescGZIP(), []int{3} -} - var File_buf_alpha_registry_v1alpha1_role_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_role_proto_rawDesc = []byte{ @@ -320,18 +301,6 @@ var file_buf_alpha_registry_v1alpha1_role_proto_rawDesc = []byte{ 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_role_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_role_proto_rawDescData = file_buf_alpha_registry_v1alpha1_role_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_role_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_role_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_role_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_role_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_role_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_role_proto_enumTypes = make([]protoimpl.EnumInfo, 4) var file_buf_alpha_registry_v1alpha1_role_proto_goTypes = []any{ (ServerRole)(0), // 0: buf.alpha.registry.v1alpha1.ServerRole diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/role_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/role_protoopaque.pb.go new file mode 100644 index 0000000000..27e91af701 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/role_protoopaque.pb.go @@ -0,0 +1,342 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/role.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The roles that users can have in a Server. +type ServerRole int32 + +const ( + ServerRole_SERVER_ROLE_UNSPECIFIED ServerRole = 0 + ServerRole_SERVER_ROLE_ADMIN ServerRole = 1 + ServerRole_SERVER_ROLE_MEMBER ServerRole = 2 +) + +// Enum value maps for ServerRole. +var ( + ServerRole_name = map[int32]string{ + 0: "SERVER_ROLE_UNSPECIFIED", + 1: "SERVER_ROLE_ADMIN", + 2: "SERVER_ROLE_MEMBER", + } + ServerRole_value = map[string]int32{ + "SERVER_ROLE_UNSPECIFIED": 0, + "SERVER_ROLE_ADMIN": 1, + "SERVER_ROLE_MEMBER": 2, + } +) + +func (x ServerRole) Enum() *ServerRole { + p := new(ServerRole) + *p = x + return p +} + +func (x ServerRole) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ServerRole) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_role_proto_enumTypes[0].Descriptor() +} + +func (ServerRole) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_role_proto_enumTypes[0] +} + +func (x ServerRole) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// The roles that users can have in a Organization. +type OrganizationRole int32 + +const ( + OrganizationRole_ORGANIZATION_ROLE_UNSPECIFIED OrganizationRole = 0 + OrganizationRole_ORGANIZATION_ROLE_OWNER OrganizationRole = 1 + OrganizationRole_ORGANIZATION_ROLE_ADMIN OrganizationRole = 2 + OrganizationRole_ORGANIZATION_ROLE_MEMBER OrganizationRole = 3 + OrganizationRole_ORGANIZATION_ROLE_MACHINE OrganizationRole = 4 +) + +// Enum value maps for OrganizationRole. +var ( + OrganizationRole_name = map[int32]string{ + 0: "ORGANIZATION_ROLE_UNSPECIFIED", + 1: "ORGANIZATION_ROLE_OWNER", + 2: "ORGANIZATION_ROLE_ADMIN", + 3: "ORGANIZATION_ROLE_MEMBER", + 4: "ORGANIZATION_ROLE_MACHINE", + } + OrganizationRole_value = map[string]int32{ + "ORGANIZATION_ROLE_UNSPECIFIED": 0, + "ORGANIZATION_ROLE_OWNER": 1, + "ORGANIZATION_ROLE_ADMIN": 2, + "ORGANIZATION_ROLE_MEMBER": 3, + "ORGANIZATION_ROLE_MACHINE": 4, + } +) + +func (x OrganizationRole) Enum() *OrganizationRole { + p := new(OrganizationRole) + *p = x + return p +} + +func (x OrganizationRole) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OrganizationRole) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_role_proto_enumTypes[1].Descriptor() +} + +func (OrganizationRole) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_role_proto_enumTypes[1] +} + +func (x OrganizationRole) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// The source of a user's role in an Organization. +type OrganizationRoleSource int32 + +const ( + OrganizationRoleSource_ORGANIZATION_ROLE_SOURCE_UNSPECIFIED OrganizationRoleSource = 0 + OrganizationRoleSource_ORGANIZATION_ROLE_SOURCE_DIRECT OrganizationRoleSource = 1 + OrganizationRoleSource_ORGANIZATION_ROLE_SOURCE_JIT OrganizationRoleSource = 2 + OrganizationRoleSource_ORGANIZATION_ROLE_SOURCE_IDP_GROUP OrganizationRoleSource = 3 +) + +// Enum value maps for OrganizationRoleSource. +var ( + OrganizationRoleSource_name = map[int32]string{ + 0: "ORGANIZATION_ROLE_SOURCE_UNSPECIFIED", + 1: "ORGANIZATION_ROLE_SOURCE_DIRECT", + 2: "ORGANIZATION_ROLE_SOURCE_JIT", + 3: "ORGANIZATION_ROLE_SOURCE_IDP_GROUP", + } + OrganizationRoleSource_value = map[string]int32{ + "ORGANIZATION_ROLE_SOURCE_UNSPECIFIED": 0, + "ORGANIZATION_ROLE_SOURCE_DIRECT": 1, + "ORGANIZATION_ROLE_SOURCE_JIT": 2, + "ORGANIZATION_ROLE_SOURCE_IDP_GROUP": 3, + } +) + +func (x OrganizationRoleSource) Enum() *OrganizationRoleSource { + p := new(OrganizationRoleSource) + *p = x + return p +} + +func (x OrganizationRoleSource) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OrganizationRoleSource) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_role_proto_enumTypes[2].Descriptor() +} + +func (OrganizationRoleSource) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_role_proto_enumTypes[2] +} + +func (x OrganizationRoleSource) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// The roles that users can have for a Repository. +type RepositoryRole int32 + +const ( + RepositoryRole_REPOSITORY_ROLE_UNSPECIFIED RepositoryRole = 0 + RepositoryRole_REPOSITORY_ROLE_OWNER RepositoryRole = 1 + RepositoryRole_REPOSITORY_ROLE_ADMIN RepositoryRole = 2 + RepositoryRole_REPOSITORY_ROLE_WRITE RepositoryRole = 3 + RepositoryRole_REPOSITORY_ROLE_READ RepositoryRole = 4 + RepositoryRole_REPOSITORY_ROLE_LIMITED_WRITE RepositoryRole = 5 +) + +// Enum value maps for RepositoryRole. +var ( + RepositoryRole_name = map[int32]string{ + 0: "REPOSITORY_ROLE_UNSPECIFIED", + 1: "REPOSITORY_ROLE_OWNER", + 2: "REPOSITORY_ROLE_ADMIN", + 3: "REPOSITORY_ROLE_WRITE", + 4: "REPOSITORY_ROLE_READ", + 5: "REPOSITORY_ROLE_LIMITED_WRITE", + } + RepositoryRole_value = map[string]int32{ + "REPOSITORY_ROLE_UNSPECIFIED": 0, + "REPOSITORY_ROLE_OWNER": 1, + "REPOSITORY_ROLE_ADMIN": 2, + "REPOSITORY_ROLE_WRITE": 3, + "REPOSITORY_ROLE_READ": 4, + "REPOSITORY_ROLE_LIMITED_WRITE": 5, + } +) + +func (x RepositoryRole) Enum() *RepositoryRole { + p := new(RepositoryRole) + *p = x + return p +} + +func (x RepositoryRole) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RepositoryRole) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_role_proto_enumTypes[3].Descriptor() +} + +func (RepositoryRole) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_role_proto_enumTypes[3] +} + +func (x RepositoryRole) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +var File_buf_alpha_registry_v1alpha1_role_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_role_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x6f, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2a, 0x58, 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, + 0x6f, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x4f, + 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x15, 0x0a, 0x11, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, + 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x45, 0x52, 0x56, 0x45, + 0x52, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02, 0x2a, + 0xac, 0x01, 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x52, 0x47, 0x41, 0x4e, + 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4f, 0x57, 0x4e, + 0x45, 0x52, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, + 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x03, 0x12, + 0x1d, 0x0a, 0x19, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4d, 0x41, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x10, 0x04, 0x2a, 0xb1, + 0x01, 0x0a, 0x16, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x6f, 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x24, 0x4f, 0x52, 0x47, + 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x53, + 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, + 0x44, 0x10, 0x00, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, + 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x47, 0x41, + 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x53, 0x4f, + 0x55, 0x52, 0x43, 0x45, 0x5f, 0x4a, 0x49, 0x54, 0x10, 0x02, 0x12, 0x26, 0x0a, 0x22, 0x4f, 0x52, + 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, + 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x44, 0x50, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, + 0x10, 0x03, 0x2a, 0xbf, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, + 0x4f, 0x52, 0x59, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, + 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, + 0x01, 0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, + 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, + 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, + 0x57, 0x52, 0x49, 0x54, 0x45, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x52, 0x45, 0x50, 0x4f, 0x53, + 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x10, + 0x04, 0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x4f, 0x52, 0x59, 0x5f, + 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x44, 0x5f, 0x57, 0x52, 0x49, + 0x54, 0x45, 0x10, 0x05, 0x42, 0x96, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x09, 0x52, 0x6f, 0x6c, 0x65, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, + 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, + 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_role_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_buf_alpha_registry_v1alpha1_role_proto_goTypes = []any{ + (ServerRole)(0), // 0: buf.alpha.registry.v1alpha1.ServerRole + (OrganizationRole)(0), // 1: buf.alpha.registry.v1alpha1.OrganizationRole + (OrganizationRoleSource)(0), // 2: buf.alpha.registry.v1alpha1.OrganizationRoleSource + (RepositoryRole)(0), // 3: buf.alpha.registry.v1alpha1.RepositoryRole +} +var file_buf_alpha_registry_v1alpha1_role_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_role_proto_init() } +func file_buf_alpha_registry_v1alpha1_role_proto_init() { + if File_buf_alpha_registry_v1alpha1_role_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_role_proto_rawDesc, + NumEnums: 4, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_role_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_role_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_role_proto_enumTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_role_proto = out.File + file_buf_alpha_registry_v1alpha1_role_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_role_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_role_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/schema.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/schema.pb.go index 3555b2f9ba..10072464d4 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/schema.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/schema.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/schema.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" - sync "sync" ) const ( @@ -82,13 +83,8 @@ func (x Format) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use Format.Descriptor instead. -func (Format) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_schema_proto_rawDescGZIP(), []int{0} -} - type GetSchemaRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the repo that contains the schema to retrieve (a user name or // organization name). Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` @@ -162,11 +158,6 @@ func (x *GetSchemaRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetSchemaRequest.ProtoReflect.Descriptor instead. -func (*GetSchemaRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_schema_proto_rawDescGZIP(), []int{0} -} - func (x *GetSchemaRequest) GetOwner() string { if x != nil { return x.Owner @@ -216,8 +207,99 @@ func (x *GetSchemaRequest) GetExcludeKnownExtensions() bool { return false } +func (x *GetSchemaRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *GetSchemaRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *GetSchemaRequest) SetVersion(v string) { + x.Version = v +} + +func (x *GetSchemaRequest) SetTypes(v []string) { + x.Types = v +} + +func (x *GetSchemaRequest) SetIfNotCommit(v string) { + x.IfNotCommit = v +} + +func (x *GetSchemaRequest) SetExcludeCustomOptions(v bool) { + x.ExcludeCustomOptions = v +} + +func (x *GetSchemaRequest) SetExcludeKnownExtensions(v bool) { + x.ExcludeKnownExtensions = v +} + +type GetSchemaRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repo that contains the schema to retrieve (a user name or + // organization name). + Owner string + // The name of the repo that contains the schema to retrieve. + Repository string + // Optional version of the repo. If unspecified, defaults to latest version on + // the repo's "main" branch. + Version string + // Zero or more types names. The names may refer to messages, enums, services, + // methods, or extensions. All names must be fully-qualified. If any name + // is unknown, the request will fail and no schema will be returned. + // + // If no names are provided, the full schema for the module is returned. + // Otherwise, the resulting schema contains only the named elements and all of + // their dependencies. This is enough information for the caller to construct + // a dynamic message for any requested message types or to dynamically invoke + // an RPC for any requested methods or services. + Types []string + // If present, this is a commit that the client already has cached. So if the + // given module version resolves to this same commit, the server should not + // send back any descriptors since the client already has them. + // + // This allows a client to efficiently poll for updates: after the initial RPC + // to get a schema, the client can cache the descriptors and the resolved + // commit. It then includes that commit in subsequent requests in this field, + // and the server will only reply with a schema (and new commit) if/when the + // resolved commit changes. + IfNotCommit string + // If true, the returned schema will not include extension definitions for custom + // options that appear on schema elements. When filtering the schema based on the + // given element names, options on all encountered elements are usually examined + // as well. But that is not the case if excluding custom options. + // + // This flag is ignored if element_names is empty as the entire schema is always + // returned in that case. + ExcludeCustomOptions bool + // If true, the returned schema will not include known extensions for extendable + // messages for schema elements. If exclude_custom_options is true, such extensions + // may still be returned if the applicable descriptor options type is part of the + // requested schema. + // + // This flag is ignored if element_names is empty as the entire schema is always + // returned in that case. + ExcludeKnownExtensions bool +} + +func (b0 GetSchemaRequest_builder) Build() *GetSchemaRequest { + m0 := &GetSchemaRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Version = b.Version + x.Types = b.Types + x.IfNotCommit = b.IfNotCommit + x.ExcludeCustomOptions = b.ExcludeCustomOptions + x.ExcludeKnownExtensions = b.ExcludeKnownExtensions + return m0 +} + type GetSchemaResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The resolved version of the schema. If the requested version was a commit, // this value is the same as that. If the requested version referred to a tag // or branch, this is the commit for that tag or latest commit for that @@ -256,11 +338,6 @@ func (x *GetSchemaResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetSchemaResponse.ProtoReflect.Descriptor instead. -func (*GetSchemaResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_schema_proto_rawDescGZIP(), []int{1} -} - func (x *GetSchemaResponse) GetCommit() string { if x != nil { return x.Commit @@ -275,8 +352,50 @@ func (x *GetSchemaResponse) GetSchemaFiles() *descriptorpb.FileDescriptorSet { return nil } +func (x *GetSchemaResponse) SetCommit(v string) { + x.Commit = v +} + +func (x *GetSchemaResponse) SetSchemaFiles(v *descriptorpb.FileDescriptorSet) { + x.SchemaFiles = v +} + +func (x *GetSchemaResponse) HasSchemaFiles() bool { + if x == nil { + return false + } + return x.SchemaFiles != nil +} + +func (x *GetSchemaResponse) ClearSchemaFiles() { + x.SchemaFiles = nil +} + +type GetSchemaResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The resolved version of the schema. If the requested version was a commit, + // this value is the same as that. If the requested version referred to a tag + // or branch, this is the commit for that tag or latest commit for that + // branch. If the request did not include any version, this is the latest + // version for the module's main branch. + Commit string + // The schema, which is a set of file descriptors that include the requested elements + // and their dependencies. + SchemaFiles *descriptorpb.FileDescriptorSet +} + +func (b0 GetSchemaResponse_builder) Build() *GetSchemaResponse { + m0 := &GetSchemaResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Commit = b.Commit + x.SchemaFiles = b.SchemaFiles + return m0 +} + type ConvertMessageRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the repo that contains the schema to retrieve (a user name or // organization name). Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` @@ -335,11 +454,6 @@ func (x *ConvertMessageRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConvertMessageRequest.ProtoReflect.Descriptor instead. -func (*ConvertMessageRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_schema_proto_rawDescGZIP(), []int{2} -} - func (x *ConvertMessageRequest) GetOwner() string { if x != nil { return x.Owner @@ -423,6 +537,201 @@ func (x *ConvertMessageRequest) GetOutputText() *TextOutputOptions { return nil } +func (x *ConvertMessageRequest) SetOwner(v string) { + x.Owner = v +} + +func (x *ConvertMessageRequest) SetRepository(v string) { + x.Repository = v +} + +func (x *ConvertMessageRequest) SetVersion(v string) { + x.Version = v +} + +func (x *ConvertMessageRequest) SetMessageName(v string) { + x.MessageName = v +} + +func (x *ConvertMessageRequest) SetInputFormat(v Format) { + x.InputFormat = v +} + +func (x *ConvertMessageRequest) SetInputData(v []byte) { + if v == nil { + v = []byte{} + } + x.InputData = v +} + +func (x *ConvertMessageRequest) SetDiscardUnknown(v bool) { + x.DiscardUnknown = v +} + +func (x *ConvertMessageRequest) SetOutputBinary(v *BinaryOutputOptions) { + if v == nil { + x.OutputFormat = nil + return + } + x.OutputFormat = &ConvertMessageRequest_OutputBinary{v} +} + +func (x *ConvertMessageRequest) SetOutputJson(v *JSONOutputOptions) { + if v == nil { + x.OutputFormat = nil + return + } + x.OutputFormat = &ConvertMessageRequest_OutputJson{v} +} + +func (x *ConvertMessageRequest) SetOutputText(v *TextOutputOptions) { + if v == nil { + x.OutputFormat = nil + return + } + x.OutputFormat = &ConvertMessageRequest_OutputText{v} +} + +func (x *ConvertMessageRequest) HasOutputFormat() bool { + if x == nil { + return false + } + return x.OutputFormat != nil +} + +func (x *ConvertMessageRequest) HasOutputBinary() bool { + if x == nil { + return false + } + _, ok := x.OutputFormat.(*ConvertMessageRequest_OutputBinary) + return ok +} + +func (x *ConvertMessageRequest) HasOutputJson() bool { + if x == nil { + return false + } + _, ok := x.OutputFormat.(*ConvertMessageRequest_OutputJson) + return ok +} + +func (x *ConvertMessageRequest) HasOutputText() bool { + if x == nil { + return false + } + _, ok := x.OutputFormat.(*ConvertMessageRequest_OutputText) + return ok +} + +func (x *ConvertMessageRequest) ClearOutputFormat() { + x.OutputFormat = nil +} + +func (x *ConvertMessageRequest) ClearOutputBinary() { + if _, ok := x.OutputFormat.(*ConvertMessageRequest_OutputBinary); ok { + x.OutputFormat = nil + } +} + +func (x *ConvertMessageRequest) ClearOutputJson() { + if _, ok := x.OutputFormat.(*ConvertMessageRequest_OutputJson); ok { + x.OutputFormat = nil + } +} + +func (x *ConvertMessageRequest) ClearOutputText() { + if _, ok := x.OutputFormat.(*ConvertMessageRequest_OutputText); ok { + x.OutputFormat = nil + } +} + +const ConvertMessageRequest_OutputFormat_not_set_case case_ConvertMessageRequest_OutputFormat = 0 +const ConvertMessageRequest_OutputBinary_case case_ConvertMessageRequest_OutputFormat = 8 +const ConvertMessageRequest_OutputJson_case case_ConvertMessageRequest_OutputFormat = 9 +const ConvertMessageRequest_OutputText_case case_ConvertMessageRequest_OutputFormat = 10 + +func (x *ConvertMessageRequest) WhichOutputFormat() case_ConvertMessageRequest_OutputFormat { + if x == nil { + return ConvertMessageRequest_OutputFormat_not_set_case + } + switch x.OutputFormat.(type) { + case *ConvertMessageRequest_OutputBinary: + return ConvertMessageRequest_OutputBinary_case + case *ConvertMessageRequest_OutputJson: + return ConvertMessageRequest_OutputJson_case + case *ConvertMessageRequest_OutputText: + return ConvertMessageRequest_OutputText_case + default: + return ConvertMessageRequest_OutputFormat_not_set_case + } +} + +type ConvertMessageRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repo that contains the schema to retrieve (a user name or + // organization name). + Owner string + // The name of the repo that contains the schema to retrieve. + Repository string + // Optional version of the repo. This can be a tag or branch name or a commit. + // If unspecified, defaults to latest version on the repo's "main" branch. + Version string + // The fully-qualified name of the message. Required. + MessageName string + // The format of the input data. Required. + InputFormat Format + // The input data that is to be converted. Required. This must be + // a valid encoding of type indicated by message_name in the format + // indicated by input_format. + InputData []byte + // If true, any unresolvable fields in the input are discarded. For + // formats other than FORMAT_BINARY, this means that the operation + // will fail if the input contains unrecognized field names. For + // FORMAT_BINARY, unrecognized fields can be retained and possibly + // included in the reformatted output (depending on the requested + // output format). + DiscardUnknown bool + // Fields of oneof OutputFormat: + OutputBinary *BinaryOutputOptions + OutputJson *JSONOutputOptions + OutputText *TextOutputOptions + // -- end of OutputFormat +} + +func (b0 ConvertMessageRequest_builder) Build() *ConvertMessageRequest { + m0 := &ConvertMessageRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Owner = b.Owner + x.Repository = b.Repository + x.Version = b.Version + x.MessageName = b.MessageName + x.InputFormat = b.InputFormat + x.InputData = b.InputData + x.DiscardUnknown = b.DiscardUnknown + if b.OutputBinary != nil { + x.OutputFormat = &ConvertMessageRequest_OutputBinary{b.OutputBinary} + } + if b.OutputJson != nil { + x.OutputFormat = &ConvertMessageRequest_OutputJson{b.OutputJson} + } + if b.OutputText != nil { + x.OutputFormat = &ConvertMessageRequest_OutputText{b.OutputText} + } + return m0 +} + +type case_ConvertMessageRequest_OutputFormat protoreflect.FieldNumber + +func (x case_ConvertMessageRequest_OutputFormat) String() string { + md := file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[2].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isConvertMessageRequest_OutputFormat interface { isConvertMessageRequest_OutputFormat() } @@ -446,7 +755,7 @@ func (*ConvertMessageRequest_OutputJson) isConvertMessageRequest_OutputFormat() func (*ConvertMessageRequest_OutputText) isConvertMessageRequest_OutputFormat() {} type BinaryOutputOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -476,13 +785,20 @@ func (x *BinaryOutputOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BinaryOutputOptions.ProtoReflect.Descriptor instead. -func (*BinaryOutputOptions) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_schema_proto_rawDescGZIP(), []int{3} +type BinaryOutputOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 BinaryOutputOptions_builder) Build() *BinaryOutputOptions { + m0 := &BinaryOutputOptions{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type JSONOutputOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Enum fields will be emitted as numeric values. If false (the dafault), enum // fields are emitted as strings that are the enum values' names. UseEnumNumbers bool `protobuf:"varint,3,opt,name=use_enum_numbers,json=useEnumNumbers,proto3" json:"use_enum_numbers,omitempty"` @@ -519,11 +835,6 @@ func (x *JSONOutputOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use JSONOutputOptions.ProtoReflect.Descriptor instead. -func (*JSONOutputOptions) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_schema_proto_rawDescGZIP(), []int{4} -} - func (x *JSONOutputOptions) GetUseEnumNumbers() bool { if x != nil { return x.UseEnumNumbers @@ -538,8 +849,37 @@ func (x *JSONOutputOptions) GetIncludeDefaults() bool { return false } +func (x *JSONOutputOptions) SetUseEnumNumbers(v bool) { + x.UseEnumNumbers = v +} + +func (x *JSONOutputOptions) SetIncludeDefaults(v bool) { + x.IncludeDefaults = v +} + +type JSONOutputOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Enum fields will be emitted as numeric values. If false (the dafault), enum + // fields are emitted as strings that are the enum values' names. + UseEnumNumbers bool + // Includes fields that have their default values. This applies only to fields + // defined in proto3 syntax that have no explicit "optional" keyword. Other + // optional fields will be included if present in the input data. + IncludeDefaults bool +} + +func (b0 JSONOutputOptions_builder) Build() *JSONOutputOptions { + m0 := &JSONOutputOptions{} + b, x := &b0, m0 + _, _ = b, x + x.UseEnumNumbers = b.UseEnumNumbers + x.IncludeDefaults = b.IncludeDefaults + return m0 +} + type TextOutputOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // If true and the input data includes unrecognized fields, the unrecognized // fields will be preserved in the text output (using field numbers and raw // values). @@ -573,11 +913,6 @@ func (x *TextOutputOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TextOutputOptions.ProtoReflect.Descriptor instead. -func (*TextOutputOptions) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_schema_proto_rawDescGZIP(), []int{5} -} - func (x *TextOutputOptions) GetIncludeUnrecognized() bool { if x != nil { return x.IncludeUnrecognized @@ -585,8 +920,29 @@ func (x *TextOutputOptions) GetIncludeUnrecognized() bool { return false } +func (x *TextOutputOptions) SetIncludeUnrecognized(v bool) { + x.IncludeUnrecognized = v +} + +type TextOutputOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If true and the input data includes unrecognized fields, the unrecognized + // fields will be preserved in the text output (using field numbers and raw + // values). + IncludeUnrecognized bool +} + +func (b0 TextOutputOptions_builder) Build() *TextOutputOptions { + m0 := &TextOutputOptions{} + b, x := &b0, m0 + _, _ = b, x + x.IncludeUnrecognized = b.IncludeUnrecognized + return m0 +} + type ConvertMessageResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The resolved version of the schema. If the requested version was a commit, // this value is the same as that. If the requested version referred to a tag // or branch, this is the commit for that tag or latest commit for that @@ -624,11 +980,6 @@ func (x *ConvertMessageResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConvertMessageResponse.ProtoReflect.Descriptor instead. -func (*ConvertMessageResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_schema_proto_rawDescGZIP(), []int{6} -} - func (x *ConvertMessageResponse) GetCommit() string { if x != nil { return x.Commit @@ -643,6 +994,39 @@ func (x *ConvertMessageResponse) GetOutputData() []byte { return nil } +func (x *ConvertMessageResponse) SetCommit(v string) { + x.Commit = v +} + +func (x *ConvertMessageResponse) SetOutputData(v []byte) { + if v == nil { + v = []byte{} + } + x.OutputData = v +} + +type ConvertMessageResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The resolved version of the schema. If the requested version was a commit, + // this value is the same as that. If the requested version referred to a tag + // or branch, this is the commit for that tag or latest commit for that + // branch. If the request did not include any version, this is the latest + // version for the module's main branch. + Commit string + // The reformatted data. + OutputData []byte +} + +func (b0 ConvertMessageResponse_builder) Build() *ConvertMessageResponse { + m0 := &ConvertMessageResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Commit = b.Commit + x.OutputData = b.OutputData + return m0 +} + var File_buf_alpha_registry_v1alpha1_schema_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_schema_proto_rawDesc = []byte{ @@ -771,18 +1155,6 @@ var file_buf_alpha_registry_v1alpha1_schema_proto_rawDesc = []byte{ 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_schema_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_schema_proto_rawDescData = file_buf_alpha_registry_v1alpha1_schema_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_schema_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_schema_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_schema_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_schema_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_schema_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_schema_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_buf_alpha_registry_v1alpha1_schema_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/schema_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/schema_protoopaque.pb.go new file mode 100644 index 0000000000..e8dfe06ea8 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/schema_protoopaque.pb.go @@ -0,0 +1,1131 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/schema.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Format int32 + +const ( + Format_FORMAT_UNSPECIFIED Format = 0 + Format_FORMAT_BINARY Format = 1 + Format_FORMAT_JSON Format = 2 + Format_FORMAT_TEXT Format = 3 +) + +// Enum value maps for Format. +var ( + Format_name = map[int32]string{ + 0: "FORMAT_UNSPECIFIED", + 1: "FORMAT_BINARY", + 2: "FORMAT_JSON", + 3: "FORMAT_TEXT", + } + Format_value = map[string]int32{ + "FORMAT_UNSPECIFIED": 0, + "FORMAT_BINARY": 1, + "FORMAT_JSON": 2, + "FORMAT_TEXT": 3, + } +) + +func (x Format) Enum() *Format { + p := new(Format) + *p = x + return p +} + +func (x Format) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Format) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_schema_proto_enumTypes[0].Descriptor() +} + +func (Format) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_schema_proto_enumTypes[0] +} + +func (x Format) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type GetSchemaRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_Types []string `protobuf:"bytes,4,rep,name=types,proto3" json:"types,omitempty"` + xxx_hidden_IfNotCommit string `protobuf:"bytes,5,opt,name=if_not_commit,json=ifNotCommit,proto3" json:"if_not_commit,omitempty"` + xxx_hidden_ExcludeCustomOptions bool `protobuf:"varint,6,opt,name=exclude_custom_options,json=excludeCustomOptions,proto3" json:"exclude_custom_options,omitempty"` + xxx_hidden_ExcludeKnownExtensions bool `protobuf:"varint,7,opt,name=exclude_known_extensions,json=excludeKnownExtensions,proto3" json:"exclude_known_extensions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSchemaRequest) Reset() { + *x = GetSchemaRequest{} + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSchemaRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSchemaRequest) ProtoMessage() {} + +func (x *GetSchemaRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetSchemaRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *GetSchemaRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *GetSchemaRequest) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *GetSchemaRequest) GetTypes() []string { + if x != nil { + return x.xxx_hidden_Types + } + return nil +} + +func (x *GetSchemaRequest) GetIfNotCommit() string { + if x != nil { + return x.xxx_hidden_IfNotCommit + } + return "" +} + +func (x *GetSchemaRequest) GetExcludeCustomOptions() bool { + if x != nil { + return x.xxx_hidden_ExcludeCustomOptions + } + return false +} + +func (x *GetSchemaRequest) GetExcludeKnownExtensions() bool { + if x != nil { + return x.xxx_hidden_ExcludeKnownExtensions + } + return false +} + +func (x *GetSchemaRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *GetSchemaRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *GetSchemaRequest) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *GetSchemaRequest) SetTypes(v []string) { + x.xxx_hidden_Types = v +} + +func (x *GetSchemaRequest) SetIfNotCommit(v string) { + x.xxx_hidden_IfNotCommit = v +} + +func (x *GetSchemaRequest) SetExcludeCustomOptions(v bool) { + x.xxx_hidden_ExcludeCustomOptions = v +} + +func (x *GetSchemaRequest) SetExcludeKnownExtensions(v bool) { + x.xxx_hidden_ExcludeKnownExtensions = v +} + +type GetSchemaRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repo that contains the schema to retrieve (a user name or + // organization name). + Owner string + // The name of the repo that contains the schema to retrieve. + Repository string + // Optional version of the repo. If unspecified, defaults to latest version on + // the repo's "main" branch. + Version string + // Zero or more types names. The names may refer to messages, enums, services, + // methods, or extensions. All names must be fully-qualified. If any name + // is unknown, the request will fail and no schema will be returned. + // + // If no names are provided, the full schema for the module is returned. + // Otherwise, the resulting schema contains only the named elements and all of + // their dependencies. This is enough information for the caller to construct + // a dynamic message for any requested message types or to dynamically invoke + // an RPC for any requested methods or services. + Types []string + // If present, this is a commit that the client already has cached. So if the + // given module version resolves to this same commit, the server should not + // send back any descriptors since the client already has them. + // + // This allows a client to efficiently poll for updates: after the initial RPC + // to get a schema, the client can cache the descriptors and the resolved + // commit. It then includes that commit in subsequent requests in this field, + // and the server will only reply with a schema (and new commit) if/when the + // resolved commit changes. + IfNotCommit string + // If true, the returned schema will not include extension definitions for custom + // options that appear on schema elements. When filtering the schema based on the + // given element names, options on all encountered elements are usually examined + // as well. But that is not the case if excluding custom options. + // + // This flag is ignored if element_names is empty as the entire schema is always + // returned in that case. + ExcludeCustomOptions bool + // If true, the returned schema will not include known extensions for extendable + // messages for schema elements. If exclude_custom_options is true, such extensions + // may still be returned if the applicable descriptor options type is part of the + // requested schema. + // + // This flag is ignored if element_names is empty as the entire schema is always + // returned in that case. + ExcludeKnownExtensions bool +} + +func (b0 GetSchemaRequest_builder) Build() *GetSchemaRequest { + m0 := &GetSchemaRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Version = b.Version + x.xxx_hidden_Types = b.Types + x.xxx_hidden_IfNotCommit = b.IfNotCommit + x.xxx_hidden_ExcludeCustomOptions = b.ExcludeCustomOptions + x.xxx_hidden_ExcludeKnownExtensions = b.ExcludeKnownExtensions + return m0 +} + +type GetSchemaResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Commit string `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` + xxx_hidden_SchemaFiles *descriptorpb.FileDescriptorSet `protobuf:"bytes,2,opt,name=schema_files,json=schemaFiles,proto3" json:"schema_files,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSchemaResponse) Reset() { + *x = GetSchemaResponse{} + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSchemaResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSchemaResponse) ProtoMessage() {} + +func (x *GetSchemaResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetSchemaResponse) GetCommit() string { + if x != nil { + return x.xxx_hidden_Commit + } + return "" +} + +func (x *GetSchemaResponse) GetSchemaFiles() *descriptorpb.FileDescriptorSet { + if x != nil { + return x.xxx_hidden_SchemaFiles + } + return nil +} + +func (x *GetSchemaResponse) SetCommit(v string) { + x.xxx_hidden_Commit = v +} + +func (x *GetSchemaResponse) SetSchemaFiles(v *descriptorpb.FileDescriptorSet) { + x.xxx_hidden_SchemaFiles = v +} + +func (x *GetSchemaResponse) HasSchemaFiles() bool { + if x == nil { + return false + } + return x.xxx_hidden_SchemaFiles != nil +} + +func (x *GetSchemaResponse) ClearSchemaFiles() { + x.xxx_hidden_SchemaFiles = nil +} + +type GetSchemaResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The resolved version of the schema. If the requested version was a commit, + // this value is the same as that. If the requested version referred to a tag + // or branch, this is the commit for that tag or latest commit for that + // branch. If the request did not include any version, this is the latest + // version for the module's main branch. + Commit string + // The schema, which is a set of file descriptors that include the requested elements + // and their dependencies. + SchemaFiles *descriptorpb.FileDescriptorSet +} + +func (b0 GetSchemaResponse_builder) Build() *GetSchemaResponse { + m0 := &GetSchemaResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Commit = b.Commit + x.xxx_hidden_SchemaFiles = b.SchemaFiles + return m0 +} + +type ConvertMessageRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"` + xxx_hidden_Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + xxx_hidden_MessageName string `protobuf:"bytes,4,opt,name=message_name,json=messageName,proto3" json:"message_name,omitempty"` + xxx_hidden_InputFormat Format `protobuf:"varint,5,opt,name=input_format,json=inputFormat,proto3,enum=buf.alpha.registry.v1alpha1.Format" json:"input_format,omitempty"` + xxx_hidden_InputData []byte `protobuf:"bytes,6,opt,name=input_data,json=inputData,proto3" json:"input_data,omitempty"` + xxx_hidden_DiscardUnknown bool `protobuf:"varint,7,opt,name=discard_unknown,json=discardUnknown,proto3" json:"discard_unknown,omitempty"` + xxx_hidden_OutputFormat isConvertMessageRequest_OutputFormat `protobuf_oneof:"output_format"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConvertMessageRequest) Reset() { + *x = ConvertMessageRequest{} + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConvertMessageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConvertMessageRequest) ProtoMessage() {} + +func (x *ConvertMessageRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ConvertMessageRequest) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *ConvertMessageRequest) GetRepository() string { + if x != nil { + return x.xxx_hidden_Repository + } + return "" +} + +func (x *ConvertMessageRequest) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *ConvertMessageRequest) GetMessageName() string { + if x != nil { + return x.xxx_hidden_MessageName + } + return "" +} + +func (x *ConvertMessageRequest) GetInputFormat() Format { + if x != nil { + return x.xxx_hidden_InputFormat + } + return Format_FORMAT_UNSPECIFIED +} + +func (x *ConvertMessageRequest) GetInputData() []byte { + if x != nil { + return x.xxx_hidden_InputData + } + return nil +} + +func (x *ConvertMessageRequest) GetDiscardUnknown() bool { + if x != nil { + return x.xxx_hidden_DiscardUnknown + } + return false +} + +func (x *ConvertMessageRequest) GetOutputBinary() *BinaryOutputOptions { + if x != nil { + if x, ok := x.xxx_hidden_OutputFormat.(*convertMessageRequest_OutputBinary); ok { + return x.OutputBinary + } + } + return nil +} + +func (x *ConvertMessageRequest) GetOutputJson() *JSONOutputOptions { + if x != nil { + if x, ok := x.xxx_hidden_OutputFormat.(*convertMessageRequest_OutputJson); ok { + return x.OutputJson + } + } + return nil +} + +func (x *ConvertMessageRequest) GetOutputText() *TextOutputOptions { + if x != nil { + if x, ok := x.xxx_hidden_OutputFormat.(*convertMessageRequest_OutputText); ok { + return x.OutputText + } + } + return nil +} + +func (x *ConvertMessageRequest) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *ConvertMessageRequest) SetRepository(v string) { + x.xxx_hidden_Repository = v +} + +func (x *ConvertMessageRequest) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *ConvertMessageRequest) SetMessageName(v string) { + x.xxx_hidden_MessageName = v +} + +func (x *ConvertMessageRequest) SetInputFormat(v Format) { + x.xxx_hidden_InputFormat = v +} + +func (x *ConvertMessageRequest) SetInputData(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_InputData = v +} + +func (x *ConvertMessageRequest) SetDiscardUnknown(v bool) { + x.xxx_hidden_DiscardUnknown = v +} + +func (x *ConvertMessageRequest) SetOutputBinary(v *BinaryOutputOptions) { + if v == nil { + x.xxx_hidden_OutputFormat = nil + return + } + x.xxx_hidden_OutputFormat = &convertMessageRequest_OutputBinary{v} +} + +func (x *ConvertMessageRequest) SetOutputJson(v *JSONOutputOptions) { + if v == nil { + x.xxx_hidden_OutputFormat = nil + return + } + x.xxx_hidden_OutputFormat = &convertMessageRequest_OutputJson{v} +} + +func (x *ConvertMessageRequest) SetOutputText(v *TextOutputOptions) { + if v == nil { + x.xxx_hidden_OutputFormat = nil + return + } + x.xxx_hidden_OutputFormat = &convertMessageRequest_OutputText{v} +} + +func (x *ConvertMessageRequest) HasOutputFormat() bool { + if x == nil { + return false + } + return x.xxx_hidden_OutputFormat != nil +} + +func (x *ConvertMessageRequest) HasOutputBinary() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_OutputFormat.(*convertMessageRequest_OutputBinary) + return ok +} + +func (x *ConvertMessageRequest) HasOutputJson() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_OutputFormat.(*convertMessageRequest_OutputJson) + return ok +} + +func (x *ConvertMessageRequest) HasOutputText() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_OutputFormat.(*convertMessageRequest_OutputText) + return ok +} + +func (x *ConvertMessageRequest) ClearOutputFormat() { + x.xxx_hidden_OutputFormat = nil +} + +func (x *ConvertMessageRequest) ClearOutputBinary() { + if _, ok := x.xxx_hidden_OutputFormat.(*convertMessageRequest_OutputBinary); ok { + x.xxx_hidden_OutputFormat = nil + } +} + +func (x *ConvertMessageRequest) ClearOutputJson() { + if _, ok := x.xxx_hidden_OutputFormat.(*convertMessageRequest_OutputJson); ok { + x.xxx_hidden_OutputFormat = nil + } +} + +func (x *ConvertMessageRequest) ClearOutputText() { + if _, ok := x.xxx_hidden_OutputFormat.(*convertMessageRequest_OutputText); ok { + x.xxx_hidden_OutputFormat = nil + } +} + +const ConvertMessageRequest_OutputFormat_not_set_case case_ConvertMessageRequest_OutputFormat = 0 +const ConvertMessageRequest_OutputBinary_case case_ConvertMessageRequest_OutputFormat = 8 +const ConvertMessageRequest_OutputJson_case case_ConvertMessageRequest_OutputFormat = 9 +const ConvertMessageRequest_OutputText_case case_ConvertMessageRequest_OutputFormat = 10 + +func (x *ConvertMessageRequest) WhichOutputFormat() case_ConvertMessageRequest_OutputFormat { + if x == nil { + return ConvertMessageRequest_OutputFormat_not_set_case + } + switch x.xxx_hidden_OutputFormat.(type) { + case *convertMessageRequest_OutputBinary: + return ConvertMessageRequest_OutputBinary_case + case *convertMessageRequest_OutputJson: + return ConvertMessageRequest_OutputJson_case + case *convertMessageRequest_OutputText: + return ConvertMessageRequest_OutputText_case + default: + return ConvertMessageRequest_OutputFormat_not_set_case + } +} + +type ConvertMessageRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repo that contains the schema to retrieve (a user name or + // organization name). + Owner string + // The name of the repo that contains the schema to retrieve. + Repository string + // Optional version of the repo. This can be a tag or branch name or a commit. + // If unspecified, defaults to latest version on the repo's "main" branch. + Version string + // The fully-qualified name of the message. Required. + MessageName string + // The format of the input data. Required. + InputFormat Format + // The input data that is to be converted. Required. This must be + // a valid encoding of type indicated by message_name in the format + // indicated by input_format. + InputData []byte + // If true, any unresolvable fields in the input are discarded. For + // formats other than FORMAT_BINARY, this means that the operation + // will fail if the input contains unrecognized field names. For + // FORMAT_BINARY, unrecognized fields can be retained and possibly + // included in the reformatted output (depending on the requested + // output format). + DiscardUnknown bool + // Fields of oneof xxx_hidden_OutputFormat: + OutputBinary *BinaryOutputOptions + OutputJson *JSONOutputOptions + OutputText *TextOutputOptions + // -- end of xxx_hidden_OutputFormat +} + +func (b0 ConvertMessageRequest_builder) Build() *ConvertMessageRequest { + m0 := &ConvertMessageRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Repository = b.Repository + x.xxx_hidden_Version = b.Version + x.xxx_hidden_MessageName = b.MessageName + x.xxx_hidden_InputFormat = b.InputFormat + x.xxx_hidden_InputData = b.InputData + x.xxx_hidden_DiscardUnknown = b.DiscardUnknown + if b.OutputBinary != nil { + x.xxx_hidden_OutputFormat = &convertMessageRequest_OutputBinary{b.OutputBinary} + } + if b.OutputJson != nil { + x.xxx_hidden_OutputFormat = &convertMessageRequest_OutputJson{b.OutputJson} + } + if b.OutputText != nil { + x.xxx_hidden_OutputFormat = &convertMessageRequest_OutputText{b.OutputText} + } + return m0 +} + +type case_ConvertMessageRequest_OutputFormat protoreflect.FieldNumber + +func (x case_ConvertMessageRequest_OutputFormat) String() string { + md := file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[2].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isConvertMessageRequest_OutputFormat interface { + isConvertMessageRequest_OutputFormat() +} + +type convertMessageRequest_OutputBinary struct { + OutputBinary *BinaryOutputOptions `protobuf:"bytes,8,opt,name=output_binary,json=outputBinary,proto3,oneof"` +} + +type convertMessageRequest_OutputJson struct { + OutputJson *JSONOutputOptions `protobuf:"bytes,9,opt,name=output_json,json=outputJson,proto3,oneof"` +} + +type convertMessageRequest_OutputText struct { + OutputText *TextOutputOptions `protobuf:"bytes,10,opt,name=output_text,json=outputText,proto3,oneof"` +} + +func (*convertMessageRequest_OutputBinary) isConvertMessageRequest_OutputFormat() {} + +func (*convertMessageRequest_OutputJson) isConvertMessageRequest_OutputFormat() {} + +func (*convertMessageRequest_OutputText) isConvertMessageRequest_OutputFormat() {} + +type BinaryOutputOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BinaryOutputOptions) Reset() { + *x = BinaryOutputOptions{} + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BinaryOutputOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BinaryOutputOptions) ProtoMessage() {} + +func (x *BinaryOutputOptions) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type BinaryOutputOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 BinaryOutputOptions_builder) Build() *BinaryOutputOptions { + m0 := &BinaryOutputOptions{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type JSONOutputOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UseEnumNumbers bool `protobuf:"varint,3,opt,name=use_enum_numbers,json=useEnumNumbers,proto3" json:"use_enum_numbers,omitempty"` + xxx_hidden_IncludeDefaults bool `protobuf:"varint,4,opt,name=include_defaults,json=includeDefaults,proto3" json:"include_defaults,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *JSONOutputOptions) Reset() { + *x = JSONOutputOptions{} + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *JSONOutputOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JSONOutputOptions) ProtoMessage() {} + +func (x *JSONOutputOptions) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *JSONOutputOptions) GetUseEnumNumbers() bool { + if x != nil { + return x.xxx_hidden_UseEnumNumbers + } + return false +} + +func (x *JSONOutputOptions) GetIncludeDefaults() bool { + if x != nil { + return x.xxx_hidden_IncludeDefaults + } + return false +} + +func (x *JSONOutputOptions) SetUseEnumNumbers(v bool) { + x.xxx_hidden_UseEnumNumbers = v +} + +func (x *JSONOutputOptions) SetIncludeDefaults(v bool) { + x.xxx_hidden_IncludeDefaults = v +} + +type JSONOutputOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Enum fields will be emitted as numeric values. If false (the dafault), enum + // fields are emitted as strings that are the enum values' names. + UseEnumNumbers bool + // Includes fields that have their default values. This applies only to fields + // defined in proto3 syntax that have no explicit "optional" keyword. Other + // optional fields will be included if present in the input data. + IncludeDefaults bool +} + +func (b0 JSONOutputOptions_builder) Build() *JSONOutputOptions { + m0 := &JSONOutputOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UseEnumNumbers = b.UseEnumNumbers + x.xxx_hidden_IncludeDefaults = b.IncludeDefaults + return m0 +} + +type TextOutputOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_IncludeUnrecognized bool `protobuf:"varint,2,opt,name=include_unrecognized,json=includeUnrecognized,proto3" json:"include_unrecognized,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TextOutputOptions) Reset() { + *x = TextOutputOptions{} + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TextOutputOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TextOutputOptions) ProtoMessage() {} + +func (x *TextOutputOptions) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TextOutputOptions) GetIncludeUnrecognized() bool { + if x != nil { + return x.xxx_hidden_IncludeUnrecognized + } + return false +} + +func (x *TextOutputOptions) SetIncludeUnrecognized(v bool) { + x.xxx_hidden_IncludeUnrecognized = v +} + +type TextOutputOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If true and the input data includes unrecognized fields, the unrecognized + // fields will be preserved in the text output (using field numbers and raw + // values). + IncludeUnrecognized bool +} + +func (b0 TextOutputOptions_builder) Build() *TextOutputOptions { + m0 := &TextOutputOptions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_IncludeUnrecognized = b.IncludeUnrecognized + return m0 +} + +type ConvertMessageResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Commit string `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` + xxx_hidden_OutputData []byte `protobuf:"bytes,2,opt,name=output_data,json=outputData,proto3" json:"output_data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConvertMessageResponse) Reset() { + *x = ConvertMessageResponse{} + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConvertMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConvertMessageResponse) ProtoMessage() {} + +func (x *ConvertMessageResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ConvertMessageResponse) GetCommit() string { + if x != nil { + return x.xxx_hidden_Commit + } + return "" +} + +func (x *ConvertMessageResponse) GetOutputData() []byte { + if x != nil { + return x.xxx_hidden_OutputData + } + return nil +} + +func (x *ConvertMessageResponse) SetCommit(v string) { + x.xxx_hidden_Commit = v +} + +func (x *ConvertMessageResponse) SetOutputData(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_OutputData = v +} + +type ConvertMessageResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The resolved version of the schema. If the requested version was a commit, + // this value is the same as that. If the requested version referred to a tag + // or branch, this is the commit for that tag or latest commit for that + // branch. If the request did not include any version, this is the latest + // version for the module's main branch. + Commit string + // The reformatted data. + OutputData []byte +} + +func (b0 ConvertMessageResponse_builder) Build() *ConvertMessageResponse { + m0 := &ConvertMessageResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Commit = b.Commit + x.xxx_hidden_OutputData = b.OutputData + return m0 +} + +var File_buf_alpha_registry_v1alpha1_schema_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_schema_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8c, 0x02, 0x0a, 0x10, 0x47, 0x65, + 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, + 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, + 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x66, 0x4e, + 0x6f, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x65, 0x78, 0x63, 0x6c, + 0x75, 0x64, 0x65, 0x5f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, + 0x0a, 0x18, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, + 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x16, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x45, 0x78, + 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x72, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x45, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, + 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, + 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, + 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x22, 0xaa, 0x04, 0x0a, + 0x15, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x0c, 0x69, 0x6e, 0x70, + 0x75, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x23, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x46, 0x6f, + 0x72, 0x6d, 0x61, 0x74, 0x52, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x75, 0x6e, 0x6b, 0x6e, + 0x6f, 0x77, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x63, 0x61, + 0x72, 0x64, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x12, 0x57, 0x0a, 0x0d, 0x6f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x30, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, + 0x69, 0x6e, 0x61, 0x72, 0x79, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x42, 0x69, 0x6e, 0x61, + 0x72, 0x79, 0x12, 0x51, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x6a, 0x73, 0x6f, + 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4a, 0x53, 0x4f, 0x4e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, + 0x74, 0x65, 0x78, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x4f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x75, + 0x74, 0x70, 0x75, 0x74, 0x54, 0x65, 0x78, 0x74, 0x42, 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x15, 0x0a, 0x13, 0x42, 0x69, 0x6e, + 0x61, 0x72, 0x79, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x22, 0x68, 0x0a, 0x11, 0x4a, 0x53, 0x4f, 0x4e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x5f, 0x65, 0x6e, 0x75, + 0x6d, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0e, 0x75, 0x73, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, + 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, + 0x64, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x46, 0x0a, 0x11, 0x54, 0x65, + 0x78, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x31, 0x0a, 0x14, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x75, 0x6e, 0x72, 0x65, 0x63, + 0x6f, 0x67, 0x6e, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x69, + 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x55, 0x6e, 0x72, 0x65, 0x63, 0x6f, 0x67, 0x6e, 0x69, 0x7a, + 0x65, 0x64, 0x22, 0x51, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x44, 0x61, 0x74, 0x61, 0x2a, 0x55, 0x0a, 0x06, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, + 0x16, 0x0a, 0x12, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x46, 0x4f, 0x52, 0x4d, 0x41, + 0x54, 0x5f, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x46, 0x4f, + 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x46, + 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x10, 0x03, 0x32, 0xfb, 0x01, 0x0a, + 0x0d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, + 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x2d, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, + 0x79, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x12, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x98, 0x02, 0x0a, 0x1f, 0x63, + 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0b, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, + 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, + 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, + 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_schema_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_buf_alpha_registry_v1alpha1_schema_proto_goTypes = []any{ + (Format)(0), // 0: buf.alpha.registry.v1alpha1.Format + (*GetSchemaRequest)(nil), // 1: buf.alpha.registry.v1alpha1.GetSchemaRequest + (*GetSchemaResponse)(nil), // 2: buf.alpha.registry.v1alpha1.GetSchemaResponse + (*ConvertMessageRequest)(nil), // 3: buf.alpha.registry.v1alpha1.ConvertMessageRequest + (*BinaryOutputOptions)(nil), // 4: buf.alpha.registry.v1alpha1.BinaryOutputOptions + (*JSONOutputOptions)(nil), // 5: buf.alpha.registry.v1alpha1.JSONOutputOptions + (*TextOutputOptions)(nil), // 6: buf.alpha.registry.v1alpha1.TextOutputOptions + (*ConvertMessageResponse)(nil), // 7: buf.alpha.registry.v1alpha1.ConvertMessageResponse + (*descriptorpb.FileDescriptorSet)(nil), // 8: google.protobuf.FileDescriptorSet +} +var file_buf_alpha_registry_v1alpha1_schema_proto_depIdxs = []int32{ + 8, // 0: buf.alpha.registry.v1alpha1.GetSchemaResponse.schema_files:type_name -> google.protobuf.FileDescriptorSet + 0, // 1: buf.alpha.registry.v1alpha1.ConvertMessageRequest.input_format:type_name -> buf.alpha.registry.v1alpha1.Format + 4, // 2: buf.alpha.registry.v1alpha1.ConvertMessageRequest.output_binary:type_name -> buf.alpha.registry.v1alpha1.BinaryOutputOptions + 5, // 3: buf.alpha.registry.v1alpha1.ConvertMessageRequest.output_json:type_name -> buf.alpha.registry.v1alpha1.JSONOutputOptions + 6, // 4: buf.alpha.registry.v1alpha1.ConvertMessageRequest.output_text:type_name -> buf.alpha.registry.v1alpha1.TextOutputOptions + 1, // 5: buf.alpha.registry.v1alpha1.SchemaService.GetSchema:input_type -> buf.alpha.registry.v1alpha1.GetSchemaRequest + 3, // 6: buf.alpha.registry.v1alpha1.SchemaService.ConvertMessage:input_type -> buf.alpha.registry.v1alpha1.ConvertMessageRequest + 2, // 7: buf.alpha.registry.v1alpha1.SchemaService.GetSchema:output_type -> buf.alpha.registry.v1alpha1.GetSchemaResponse + 7, // 8: buf.alpha.registry.v1alpha1.SchemaService.ConvertMessage:output_type -> buf.alpha.registry.v1alpha1.ConvertMessageResponse + 7, // [7:9] is the sub-list for method output_type + 5, // [5:7] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_schema_proto_init() } +func file_buf_alpha_registry_v1alpha1_schema_proto_init() { + if File_buf_alpha_registry_v1alpha1_schema_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes[2].OneofWrappers = []any{ + (*convertMessageRequest_OutputBinary)(nil), + (*convertMessageRequest_OutputJson)(nil), + (*convertMessageRequest_OutputText)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_schema_proto_rawDesc, + NumEnums: 1, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_schema_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_schema_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_schema_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_schema_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_schema_proto = out.File + file_buf_alpha_registry_v1alpha1_schema_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_schema_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_schema_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/scim_token.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/scim_token.pb.go index d75c880db1..df8432ec4d 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/scim_token.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/scim_token.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/scim_token.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -36,7 +37,7 @@ const ( ) type SCIMToken struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` ExpireTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` @@ -69,11 +70,6 @@ func (x *SCIMToken) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SCIMToken.ProtoReflect.Descriptor instead. -func (*SCIMToken) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescGZIP(), []int{0} -} - func (x *SCIMToken) GetId() string { if x != nil { return x.Id @@ -95,8 +91,60 @@ func (x *SCIMToken) GetExpireTime() *timestamppb.Timestamp { return nil } +func (x *SCIMToken) SetId(v string) { + x.Id = v +} + +func (x *SCIMToken) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *SCIMToken) SetExpireTime(v *timestamppb.Timestamp) { + x.ExpireTime = v +} + +func (x *SCIMToken) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *SCIMToken) HasExpireTime() bool { + if x == nil { + return false + } + return x.ExpireTime != nil +} + +func (x *SCIMToken) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *SCIMToken) ClearExpireTime() { + x.ExpireTime = nil +} + +type SCIMToken_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + CreateTime *timestamppb.Timestamp + ExpireTime *timestamppb.Timestamp +} + +func (b0 SCIMToken_builder) Build() *SCIMToken { + m0 := &SCIMToken{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.CreateTime = b.CreateTime + x.ExpireTime = b.ExpireTime + return m0 +} + type CreateSCIMTokenRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The time until which the token should be valid. // Must be in the future. May be null for no expiry. ExpireTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` @@ -129,11 +177,6 @@ func (x *CreateSCIMTokenRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateSCIMTokenRequest.ProtoReflect.Descriptor instead. -func (*CreateSCIMTokenRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescGZIP(), []int{1} -} - func (x *CreateSCIMTokenRequest) GetExpireTime() *timestamppb.Timestamp { if x != nil { return x.ExpireTime @@ -141,8 +184,39 @@ func (x *CreateSCIMTokenRequest) GetExpireTime() *timestamppb.Timestamp { return nil } +func (x *CreateSCIMTokenRequest) SetExpireTime(v *timestamppb.Timestamp) { + x.ExpireTime = v +} + +func (x *CreateSCIMTokenRequest) HasExpireTime() bool { + if x == nil { + return false + } + return x.ExpireTime != nil +} + +func (x *CreateSCIMTokenRequest) ClearExpireTime() { + x.ExpireTime = nil +} + +type CreateSCIMTokenRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The time until which the token should be valid. + // Must be in the future. May be null for no expiry. + ExpireTime *timestamppb.Timestamp +} + +func (b0 CreateSCIMTokenRequest_builder) Build() *CreateSCIMTokenRequest { + m0 := &CreateSCIMTokenRequest{} + b, x := &b0, m0 + _, _ = b, x + x.ExpireTime = b.ExpireTime + return m0 +} + type CreateSCIMTokenResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The plaintext token to use for authentication. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` unknownFields protoimpl.UnknownFields @@ -174,11 +248,6 @@ func (x *CreateSCIMTokenResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateSCIMTokenResponse.ProtoReflect.Descriptor instead. -func (*CreateSCIMTokenResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescGZIP(), []int{2} -} - func (x *CreateSCIMTokenResponse) GetToken() string { if x != nil { return x.Token @@ -186,8 +255,27 @@ func (x *CreateSCIMTokenResponse) GetToken() string { return "" } +func (x *CreateSCIMTokenResponse) SetToken(v string) { + x.Token = v +} + +type CreateSCIMTokenResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plaintext token to use for authentication. + Token string +} + +func (b0 CreateSCIMTokenResponse_builder) Build() *CreateSCIMTokenResponse { + m0 := &CreateSCIMTokenResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Token = b.Token + return m0 +} + type ListSCIMTokensRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The first page is returned if this is empty. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` @@ -221,11 +309,6 @@ func (x *ListSCIMTokensRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListSCIMTokensRequest.ProtoReflect.Descriptor instead. -func (*ListSCIMTokensRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescGZIP(), []int{3} -} - func (x *ListSCIMTokensRequest) GetPageSize() uint32 { if x != nil { return x.PageSize @@ -247,8 +330,39 @@ func (x *ListSCIMTokensRequest) GetReverse() bool { return false } +func (x *ListSCIMTokensRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListSCIMTokensRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListSCIMTokensRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListSCIMTokensRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListSCIMTokensRequest_builder) Build() *ListSCIMTokensRequest { + m0 := &ListSCIMTokensRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListSCIMTokensResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Tokens []*SCIMToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -281,11 +395,6 @@ func (x *ListSCIMTokensResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListSCIMTokensResponse.ProtoReflect.Descriptor instead. -func (*ListSCIMTokensResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescGZIP(), []int{4} -} - func (x *ListSCIMTokensResponse) GetTokens() []*SCIMToken { if x != nil { return x.Tokens @@ -300,8 +409,33 @@ func (x *ListSCIMTokensResponse) GetNextPageToken() string { return "" } +func (x *ListSCIMTokensResponse) SetTokens(v []*SCIMToken) { + x.Tokens = v +} + +func (x *ListSCIMTokensResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListSCIMTokensResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Tokens []*SCIMToken + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListSCIMTokensResponse_builder) Build() *ListSCIMTokensResponse { + m0 := &ListSCIMTokensResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Tokens = b.Tokens + x.NextPageToken = b.NextPageToken + return m0 +} + type DeleteSCIMTokenRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -332,11 +466,6 @@ func (x *DeleteSCIMTokenRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteSCIMTokenRequest.ProtoReflect.Descriptor instead. -func (*DeleteSCIMTokenRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescGZIP(), []int{5} -} - func (x *DeleteSCIMTokenRequest) GetTokenId() string { if x != nil { return x.TokenId @@ -344,8 +473,26 @@ func (x *DeleteSCIMTokenRequest) GetTokenId() string { return "" } +func (x *DeleteSCIMTokenRequest) SetTokenId(v string) { + x.TokenId = v +} + +type DeleteSCIMTokenRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TokenId string +} + +func (b0 DeleteSCIMTokenRequest_builder) Build() *DeleteSCIMTokenRequest { + m0 := &DeleteSCIMTokenRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TokenId = b.TokenId + return m0 +} + type DeleteSCIMTokenResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -375,9 +522,16 @@ func (x *DeleteSCIMTokenResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteSCIMTokenResponse.ProtoReflect.Descriptor instead. -func (*DeleteSCIMTokenResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescGZIP(), []int{6} +type DeleteSCIMTokenResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteSCIMTokenResponse_builder) Build() *DeleteSCIMTokenResponse { + m0 := &DeleteSCIMTokenResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } var File_buf_alpha_registry_v1alpha1_scim_token_proto protoreflect.FileDescriptor @@ -474,18 +628,6 @@ var file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDesc = []byte{ 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescData = file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_buf_alpha_registry_v1alpha1_scim_token_proto_goTypes = []any{ (*SCIMToken)(nil), // 0: buf.alpha.registry.v1alpha1.SCIMToken diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/scim_token_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/scim_token_protoopaque.pb.go new file mode 100644 index 0000000000..2e393b28a7 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/scim_token_protoopaque.pb.go @@ -0,0 +1,680 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/scim_token.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type SCIMToken struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + xxx_hidden_ExpireTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SCIMToken) Reset() { + *x = SCIMToken{} + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SCIMToken) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SCIMToken) ProtoMessage() {} + +func (x *SCIMToken) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SCIMToken) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *SCIMToken) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *SCIMToken) GetExpireTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ExpireTime + } + return nil +} + +func (x *SCIMToken) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *SCIMToken) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *SCIMToken) SetExpireTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ExpireTime = v +} + +func (x *SCIMToken) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *SCIMToken) HasExpireTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExpireTime != nil +} + +func (x *SCIMToken) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *SCIMToken) ClearExpireTime() { + x.xxx_hidden_ExpireTime = nil +} + +type SCIMToken_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + CreateTime *timestamppb.Timestamp + ExpireTime *timestamppb.Timestamp +} + +func (b0 SCIMToken_builder) Build() *SCIMToken { + m0 := &SCIMToken{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_ExpireTime = b.ExpireTime + return m0 +} + +type CreateSCIMTokenRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ExpireTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateSCIMTokenRequest) Reset() { + *x = CreateSCIMTokenRequest{} + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateSCIMTokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateSCIMTokenRequest) ProtoMessage() {} + +func (x *CreateSCIMTokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateSCIMTokenRequest) GetExpireTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ExpireTime + } + return nil +} + +func (x *CreateSCIMTokenRequest) SetExpireTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ExpireTime = v +} + +func (x *CreateSCIMTokenRequest) HasExpireTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExpireTime != nil +} + +func (x *CreateSCIMTokenRequest) ClearExpireTime() { + x.xxx_hidden_ExpireTime = nil +} + +type CreateSCIMTokenRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The time until which the token should be valid. + // Must be in the future. May be null for no expiry. + ExpireTime *timestamppb.Timestamp +} + +func (b0 CreateSCIMTokenRequest_builder) Build() *CreateSCIMTokenRequest { + m0 := &CreateSCIMTokenRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ExpireTime = b.ExpireTime + return m0 +} + +type CreateSCIMTokenResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateSCIMTokenResponse) Reset() { + *x = CreateSCIMTokenResponse{} + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateSCIMTokenResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateSCIMTokenResponse) ProtoMessage() {} + +func (x *CreateSCIMTokenResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateSCIMTokenResponse) GetToken() string { + if x != nil { + return x.xxx_hidden_Token + } + return "" +} + +func (x *CreateSCIMTokenResponse) SetToken(v string) { + x.xxx_hidden_Token = v +} + +type CreateSCIMTokenResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plaintext token to use for authentication. + Token string +} + +func (b0 CreateSCIMTokenResponse_builder) Build() *CreateSCIMTokenResponse { + m0 := &CreateSCIMTokenResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Token = b.Token + return m0 +} + +type ListSCIMTokensRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,3,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListSCIMTokensRequest) Reset() { + *x = ListSCIMTokensRequest{} + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListSCIMTokensRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSCIMTokensRequest) ProtoMessage() {} + +func (x *ListSCIMTokensRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListSCIMTokensRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListSCIMTokensRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListSCIMTokensRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListSCIMTokensRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListSCIMTokensRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListSCIMTokensRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListSCIMTokensRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListSCIMTokensRequest_builder) Build() *ListSCIMTokensRequest { + m0 := &ListSCIMTokensRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListSCIMTokensResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Tokens *[]*SCIMToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListSCIMTokensResponse) Reset() { + *x = ListSCIMTokensResponse{} + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListSCIMTokensResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSCIMTokensResponse) ProtoMessage() {} + +func (x *ListSCIMTokensResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListSCIMTokensResponse) GetTokens() []*SCIMToken { + if x != nil { + if x.xxx_hidden_Tokens != nil { + return *x.xxx_hidden_Tokens + } + } + return nil +} + +func (x *ListSCIMTokensResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListSCIMTokensResponse) SetTokens(v []*SCIMToken) { + x.xxx_hidden_Tokens = &v +} + +func (x *ListSCIMTokensResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListSCIMTokensResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Tokens []*SCIMToken + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListSCIMTokensResponse_builder) Build() *ListSCIMTokensResponse { + m0 := &ListSCIMTokensResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Tokens = &b.Tokens + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type DeleteSCIMTokenRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteSCIMTokenRequest) Reset() { + *x = DeleteSCIMTokenRequest{} + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteSCIMTokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteSCIMTokenRequest) ProtoMessage() {} + +func (x *DeleteSCIMTokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteSCIMTokenRequest) GetTokenId() string { + if x != nil { + return x.xxx_hidden_TokenId + } + return "" +} + +func (x *DeleteSCIMTokenRequest) SetTokenId(v string) { + x.xxx_hidden_TokenId = v +} + +type DeleteSCIMTokenRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TokenId string +} + +func (b0 DeleteSCIMTokenRequest_builder) Build() *DeleteSCIMTokenRequest { + m0 := &DeleteSCIMTokenRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TokenId = b.TokenId + return m0 +} + +type DeleteSCIMTokenResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteSCIMTokenResponse) Reset() { + *x = DeleteSCIMTokenResponse{} + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteSCIMTokenResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteSCIMTokenResponse) ProtoMessage() {} + +func (x *DeleteSCIMTokenResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteSCIMTokenResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteSCIMTokenResponse_builder) Build() *DeleteSCIMTokenResponse { + m0 := &DeleteSCIMTokenResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_buf_alpha_registry_v1alpha1_scim_token_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDesc = []byte{ + 0x0a, 0x2c, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x73, 0x63, + 0x69, 0x6d, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, 0x01, 0x0a, + 0x09, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 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, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, + 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, + 0x54, 0x69, 0x6d, 0x65, 0x22, 0x55, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x43, + 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, + 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x2f, 0x0a, 0x17, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6d, 0x0a, 0x15, + 0x4c, 0x69, 0x73, 0x74, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, + 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, + 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x16, + 0x4c, 0x69, 0x73, 0x74, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x06, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, + 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x49, 0x64, 0x22, 0x19, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x43, 0x49, + 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x94, + 0x03, 0x0a, 0x10, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x7c, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x43, 0x49, + 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x43, 0x49, 0x4d, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x7e, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x73, 0x12, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, + 0x01, 0x12, 0x81, 0x01, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x43, 0x49, 0x4d, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x43, 0x49, 0x4d, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, + 0x43, 0x49, 0x4d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x03, 0x90, 0x02, 0x02, 0x42, 0x9b, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0e, 0x53, 0x63, 0x69, 0x6d, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, + 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, + 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, + 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, + 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, + 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_buf_alpha_registry_v1alpha1_scim_token_proto_goTypes = []any{ + (*SCIMToken)(nil), // 0: buf.alpha.registry.v1alpha1.SCIMToken + (*CreateSCIMTokenRequest)(nil), // 1: buf.alpha.registry.v1alpha1.CreateSCIMTokenRequest + (*CreateSCIMTokenResponse)(nil), // 2: buf.alpha.registry.v1alpha1.CreateSCIMTokenResponse + (*ListSCIMTokensRequest)(nil), // 3: buf.alpha.registry.v1alpha1.ListSCIMTokensRequest + (*ListSCIMTokensResponse)(nil), // 4: buf.alpha.registry.v1alpha1.ListSCIMTokensResponse + (*DeleteSCIMTokenRequest)(nil), // 5: buf.alpha.registry.v1alpha1.DeleteSCIMTokenRequest + (*DeleteSCIMTokenResponse)(nil), // 6: buf.alpha.registry.v1alpha1.DeleteSCIMTokenResponse + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp +} +var file_buf_alpha_registry_v1alpha1_scim_token_proto_depIdxs = []int32{ + 7, // 0: buf.alpha.registry.v1alpha1.SCIMToken.create_time:type_name -> google.protobuf.Timestamp + 7, // 1: buf.alpha.registry.v1alpha1.SCIMToken.expire_time:type_name -> google.protobuf.Timestamp + 7, // 2: buf.alpha.registry.v1alpha1.CreateSCIMTokenRequest.expire_time:type_name -> google.protobuf.Timestamp + 0, // 3: buf.alpha.registry.v1alpha1.ListSCIMTokensResponse.tokens:type_name -> buf.alpha.registry.v1alpha1.SCIMToken + 1, // 4: buf.alpha.registry.v1alpha1.SCIMTokenService.CreateSCIMToken:input_type -> buf.alpha.registry.v1alpha1.CreateSCIMTokenRequest + 3, // 5: buf.alpha.registry.v1alpha1.SCIMTokenService.ListSCIMTokens:input_type -> buf.alpha.registry.v1alpha1.ListSCIMTokensRequest + 5, // 6: buf.alpha.registry.v1alpha1.SCIMTokenService.DeleteSCIMToken:input_type -> buf.alpha.registry.v1alpha1.DeleteSCIMTokenRequest + 2, // 7: buf.alpha.registry.v1alpha1.SCIMTokenService.CreateSCIMToken:output_type -> buf.alpha.registry.v1alpha1.CreateSCIMTokenResponse + 4, // 8: buf.alpha.registry.v1alpha1.SCIMTokenService.ListSCIMTokens:output_type -> buf.alpha.registry.v1alpha1.ListSCIMTokensResponse + 6, // 9: buf.alpha.registry.v1alpha1.SCIMTokenService.DeleteSCIMToken:output_type -> buf.alpha.registry.v1alpha1.DeleteSCIMTokenResponse + 7, // [7:10] is the sub-list for method output_type + 4, // [4:7] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_scim_token_proto_init() } +func file_buf_alpha_registry_v1alpha1_scim_token_proto_init() { + if File_buf_alpha_registry_v1alpha1_scim_token_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_scim_token_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_scim_token_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_scim_token_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_scim_token_proto = out.File + file_buf_alpha_registry_v1alpha1_scim_token_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_scim_token_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_scim_token_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/search.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/search.pb.go index 97151d5b8b..e596b7192e 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/search.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/search.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/search.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -94,11 +95,6 @@ func (x SearchFilter) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use SearchFilter.Descriptor instead. -func (SearchFilter) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{0} -} - type OrderBy int32 const ( @@ -146,11 +142,6 @@ func (x OrderBy) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use OrderBy.Descriptor instead. -func (OrderBy) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{1} -} - // SearchModuleElementType is the protobuf element type of a fully qualified name in a module element search result. // This is a subset of types in https://protobuf.com/docs/language-spec#named-elements that are exposing in the search. type SearchModuleElementType int32 @@ -203,11 +194,6 @@ func (x SearchModuleElementType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use SearchModuleElementType.Descriptor instead. -func (SearchModuleElementType) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{2} -} - type SearchModuleContentFilter int32 const ( @@ -254,13 +240,8 @@ func (x SearchModuleContentFilter) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use SearchModuleContentFilter.Descriptor instead. -func (SearchModuleContentFilter) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{3} -} - type RepositorySearchResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The name of the user or organization @@ -306,11 +287,6 @@ func (x *RepositorySearchResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepositorySearchResult.ProtoReflect.Descriptor instead. -func (*RepositorySearchResult) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{0} -} - func (x *RepositorySearchResult) GetId() string { if x != nil { return x.Id @@ -374,8 +350,92 @@ func (x *RepositorySearchResult) GetLatestCommitTime() *timestamppb.Timestamp { return nil } +func (x *RepositorySearchResult) SetId(v string) { + x.Id = v +} + +func (x *RepositorySearchResult) SetName(v string) { + x.Name = v +} + +func (x *RepositorySearchResult) SetOwner(v string) { + x.Owner = v +} + +func (x *RepositorySearchResult) SetVisibility(v Visibility) { + x.Visibility = v +} + +func (x *RepositorySearchResult) SetDeprecated(v bool) { + x.Deprecated = v +} + +func (x *RepositorySearchResult) SetLatestSpdxLicenseId(v string) { + x.LatestSpdxLicenseId = v +} + +func (x *RepositorySearchResult) SetOwnerVerificationStatus(v VerificationStatus) { + x.OwnerVerificationStatus = v +} + +func (x *RepositorySearchResult) SetUrl(v string) { + x.Url = v +} + +func (x *RepositorySearchResult) SetLatestCommitTime(v *timestamppb.Timestamp) { + x.LatestCommitTime = v +} + +func (x *RepositorySearchResult) HasLatestCommitTime() bool { + if x == nil { + return false + } + return x.LatestCommitTime != nil +} + +func (x *RepositorySearchResult) ClearLatestCommitTime() { + x.LatestCommitTime = nil +} + +type RepositorySearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Name string + // The name of the user or organization + // who is the owner of this repository. + Owner string + // The visibility of the repository. + Visibility Visibility + Deprecated bool + // The SPDX license ID of the latest main commit in the repository. + LatestSpdxLicenseId string + // The verification status of the owner of the repository. + OwnerVerificationStatus VerificationStatus + // The user configurable URL in the description of the repository. + Url string + // The commit time of the latest main commit in the repository. + LatestCommitTime *timestamppb.Timestamp +} + +func (b0 RepositorySearchResult_builder) Build() *RepositorySearchResult { + m0 := &RepositorySearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Name = b.Name + x.Owner = b.Owner + x.Visibility = b.Visibility + x.Deprecated = b.Deprecated + x.LatestSpdxLicenseId = b.LatestSpdxLicenseId + x.OwnerVerificationStatus = b.OwnerVerificationStatus + x.Url = b.Url + x.LatestCommitTime = b.LatestCommitTime + return m0 +} + type OrganizationSearchResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` @@ -408,11 +468,6 @@ func (x *OrganizationSearchResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OrganizationSearchResult.ProtoReflect.Descriptor instead. -func (*OrganizationSearchResult) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{1} -} - func (x *OrganizationSearchResult) GetId() string { if x != nil { return x.Id @@ -434,8 +489,49 @@ func (x *OrganizationSearchResult) GetCreateTime() *timestamppb.Timestamp { return nil } +func (x *OrganizationSearchResult) SetId(v string) { + x.Id = v +} + +func (x *OrganizationSearchResult) SetName(v string) { + x.Name = v +} + +func (x *OrganizationSearchResult) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *OrganizationSearchResult) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *OrganizationSearchResult) ClearCreateTime() { + x.CreateTime = nil +} + +type OrganizationSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Name string + CreateTime *timestamppb.Timestamp +} + +func (b0 OrganizationSearchResult_builder) Build() *OrganizationSearchResult { + m0 := &OrganizationSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Name = b.Name + x.CreateTime = b.CreateTime + return m0 +} + type UserSearchResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Deactivated bool `protobuf:"varint,3,opt,name=deactivated,proto3" json:"deactivated,omitempty"` @@ -469,11 +565,6 @@ func (x *UserSearchResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserSearchResult.ProtoReflect.Descriptor instead. -func (*UserSearchResult) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{2} -} - func (x *UserSearchResult) GetId() string { if x != nil { return x.Id @@ -502,8 +593,55 @@ func (x *UserSearchResult) GetCreateTime() *timestamppb.Timestamp { return nil } +func (x *UserSearchResult) SetId(v string) { + x.Id = v +} + +func (x *UserSearchResult) SetUsername(v string) { + x.Username = v +} + +func (x *UserSearchResult) SetDeactivated(v bool) { + x.Deactivated = v +} + +func (x *UserSearchResult) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *UserSearchResult) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *UserSearchResult) ClearCreateTime() { + x.CreateTime = nil +} + +type UserSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Username string + Deactivated bool + CreateTime *timestamppb.Timestamp +} + +func (b0 UserSearchResult_builder) Build() *UserSearchResult { + m0 := &UserSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Username = b.Username + x.Deactivated = b.Deactivated + x.CreateTime = b.CreateTime + return m0 +} + type TeamSearchResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` OrganizationName string `protobuf:"bytes,3,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"` @@ -536,11 +674,6 @@ func (x *TeamSearchResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TeamSearchResult.ProtoReflect.Descriptor instead. -func (*TeamSearchResult) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{3} -} - func (x *TeamSearchResult) GetId() string { if x != nil { return x.Id @@ -562,8 +695,38 @@ func (x *TeamSearchResult) GetOrganizationName() string { return "" } +func (x *TeamSearchResult) SetId(v string) { + x.Id = v +} + +func (x *TeamSearchResult) SetName(v string) { + x.Name = v +} + +func (x *TeamSearchResult) SetOrganizationName(v string) { + x.OrganizationName = v +} + +type TeamSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Name string + OrganizationName string +} + +func (b0 TeamSearchResult_builder) Build() *TeamSearchResult { + m0 := &TeamSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Name = b.Name + x.OrganizationName = b.OrganizationName + return m0 +} + type CuratedPluginSearchResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The name of the user or organization @@ -607,11 +770,6 @@ func (x *CuratedPluginSearchResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CuratedPluginSearchResult.ProtoReflect.Descriptor instead. -func (*CuratedPluginSearchResult) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{4} -} - func (x *CuratedPluginSearchResult) GetId() string { if x != nil { return x.Id @@ -668,8 +826,85 @@ func (x *CuratedPluginSearchResult) GetCreateTime() *timestamppb.Timestamp { return nil } +func (x *CuratedPluginSearchResult) SetId(v string) { + x.Id = v +} + +func (x *CuratedPluginSearchResult) SetName(v string) { + x.Name = v +} + +func (x *CuratedPluginSearchResult) SetOwner(v string) { + x.Owner = v +} + +func (x *CuratedPluginSearchResult) SetDeprecated(v bool) { + x.Deprecated = v +} + +func (x *CuratedPluginSearchResult) SetDescription(v string) { + x.Description = v +} + +func (x *CuratedPluginSearchResult) SetRegistryType(v PluginRegistryType) { + x.RegistryType = v +} + +func (x *CuratedPluginSearchResult) SetOutputLanguages(v []PluginLanguage) { + x.OutputLanguages = v +} + +func (x *CuratedPluginSearchResult) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *CuratedPluginSearchResult) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *CuratedPluginSearchResult) ClearCreateTime() { + x.CreateTime = nil +} + +type CuratedPluginSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Name string + // The name of the user or organization + // who is the owner of this plugin. + Owner string + Deprecated bool + // The description of the plugin and it's functionality. + Description string + // The registry type of the plugin. + RegistryType PluginRegistryType + // The output languages supported by the plugin. + OutputLanguages []PluginLanguage + // The plugins creation timestamp. + CreateTime *timestamppb.Timestamp +} + +func (b0 CuratedPluginSearchResult_builder) Build() *CuratedPluginSearchResult { + m0 := &CuratedPluginSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Name = b.Name + x.Owner = b.Owner + x.Deprecated = b.Deprecated + x.Description = b.Description + x.RegistryType = b.RegistryType + x.OutputLanguages = b.OutputLanguages + x.CreateTime = b.CreateTime + return m0 +} + type ModuleElementSearchResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` RepositoryOwner string `protobuf:"bytes,2,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` RepositoryName string `protobuf:"bytes,3,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` @@ -706,11 +941,6 @@ func (x *ModuleElementSearchResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ModuleElementSearchResult.ProtoReflect.Descriptor instead. -func (*ModuleElementSearchResult) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{5} -} - func (x *ModuleElementSearchResult) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -760,8 +990,62 @@ func (x *ModuleElementSearchResult) GetSearchModuleElementType() SearchModuleEle return SearchModuleElementType_SEARCH_MODULE_ELEMENT_TYPE_UNSPECIFIED } +func (x *ModuleElementSearchResult) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *ModuleElementSearchResult) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *ModuleElementSearchResult) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *ModuleElementSearchResult) SetProtoFilePath(v string) { + x.ProtoFilePath = v +} + +func (x *ModuleElementSearchResult) SetFullyQualifiedName(v string) { + x.FullyQualifiedName = v +} + +func (x *ModuleElementSearchResult) SetPackageName(v string) { + x.PackageName = v +} + +func (x *ModuleElementSearchResult) SetSearchModuleElementType(v SearchModuleElementType) { + x.SearchModuleElementType = v +} + +type ModuleElementSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryId string + RepositoryOwner string + RepositoryName string + ProtoFilePath string + FullyQualifiedName string + PackageName string + SearchModuleElementType SearchModuleElementType +} + +func (b0 ModuleElementSearchResult_builder) Build() *ModuleElementSearchResult { + m0 := &ModuleElementSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.ProtoFilePath = b.ProtoFilePath + x.FullyQualifiedName = b.FullyQualifiedName + x.PackageName = b.PackageName + x.SearchModuleElementType = b.SearchModuleElementType + return m0 +} + type ModuleFileSearchResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` RepositoryOwner string `protobuf:"bytes,2,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` RepositoryName string `protobuf:"bytes,3,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` @@ -795,11 +1079,6 @@ func (x *ModuleFileSearchResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ModuleFileSearchResult.ProtoReflect.Descriptor instead. -func (*ModuleFileSearchResult) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{6} -} - func (x *ModuleFileSearchResult) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -828,8 +1107,44 @@ func (x *ModuleFileSearchResult) GetProtoFilePath() string { return "" } +func (x *ModuleFileSearchResult) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *ModuleFileSearchResult) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *ModuleFileSearchResult) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *ModuleFileSearchResult) SetProtoFilePath(v string) { + x.ProtoFilePath = v +} + +type ModuleFileSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryId string + RepositoryOwner string + RepositoryName string + ProtoFilePath string +} + +func (b0 ModuleFileSearchResult_builder) Build() *ModuleFileSearchResult { + m0 := &ModuleFileSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.ProtoFilePath = b.ProtoFilePath + return m0 +} + type SearchResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Item: // // *SearchResult_Repository @@ -869,11 +1184,6 @@ func (x *SearchResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SearchResult.ProtoReflect.Descriptor instead. -func (*SearchResult) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{7} -} - func (x *SearchResult) GetItem() isSearchResult_Item { if x != nil { return x.Item @@ -944,6 +1254,256 @@ func (x *SearchResult) GetModuleFile() *ModuleFileSearchResult { return nil } +func (x *SearchResult) SetRepository(v *RepositorySearchResult) { + if v == nil { + x.Item = nil + return + } + x.Item = &SearchResult_Repository{v} +} + +func (x *SearchResult) SetOrganization(v *OrganizationSearchResult) { + if v == nil { + x.Item = nil + return + } + x.Item = &SearchResult_Organization{v} +} + +func (x *SearchResult) SetUser(v *UserSearchResult) { + if v == nil { + x.Item = nil + return + } + x.Item = &SearchResult_User{v} +} + +func (x *SearchResult) SetTeam(v *TeamSearchResult) { + if v == nil { + x.Item = nil + return + } + x.Item = &SearchResult_Team{v} +} + +func (x *SearchResult) SetCuratedPlugin(v *CuratedPluginSearchResult) { + if v == nil { + x.Item = nil + return + } + x.Item = &SearchResult_CuratedPlugin{v} +} + +func (x *SearchResult) SetModuleElement(v *ModuleElementSearchResult) { + if v == nil { + x.Item = nil + return + } + x.Item = &SearchResult_ModuleElement{v} +} + +func (x *SearchResult) SetModuleFile(v *ModuleFileSearchResult) { + if v == nil { + x.Item = nil + return + } + x.Item = &SearchResult_ModuleFile{v} +} + +func (x *SearchResult) HasItem() bool { + if x == nil { + return false + } + return x.Item != nil +} + +func (x *SearchResult) HasRepository() bool { + if x == nil { + return false + } + _, ok := x.Item.(*SearchResult_Repository) + return ok +} + +func (x *SearchResult) HasOrganization() bool { + if x == nil { + return false + } + _, ok := x.Item.(*SearchResult_Organization) + return ok +} + +func (x *SearchResult) HasUser() bool { + if x == nil { + return false + } + _, ok := x.Item.(*SearchResult_User) + return ok +} + +func (x *SearchResult) HasTeam() bool { + if x == nil { + return false + } + _, ok := x.Item.(*SearchResult_Team) + return ok +} + +func (x *SearchResult) HasCuratedPlugin() bool { + if x == nil { + return false + } + _, ok := x.Item.(*SearchResult_CuratedPlugin) + return ok +} + +func (x *SearchResult) HasModuleElement() bool { + if x == nil { + return false + } + _, ok := x.Item.(*SearchResult_ModuleElement) + return ok +} + +func (x *SearchResult) HasModuleFile() bool { + if x == nil { + return false + } + _, ok := x.Item.(*SearchResult_ModuleFile) + return ok +} + +func (x *SearchResult) ClearItem() { + x.Item = nil +} + +func (x *SearchResult) ClearRepository() { + if _, ok := x.Item.(*SearchResult_Repository); ok { + x.Item = nil + } +} + +func (x *SearchResult) ClearOrganization() { + if _, ok := x.Item.(*SearchResult_Organization); ok { + x.Item = nil + } +} + +func (x *SearchResult) ClearUser() { + if _, ok := x.Item.(*SearchResult_User); ok { + x.Item = nil + } +} + +func (x *SearchResult) ClearTeam() { + if _, ok := x.Item.(*SearchResult_Team); ok { + x.Item = nil + } +} + +func (x *SearchResult) ClearCuratedPlugin() { + if _, ok := x.Item.(*SearchResult_CuratedPlugin); ok { + x.Item = nil + } +} + +func (x *SearchResult) ClearModuleElement() { + if _, ok := x.Item.(*SearchResult_ModuleElement); ok { + x.Item = nil + } +} + +func (x *SearchResult) ClearModuleFile() { + if _, ok := x.Item.(*SearchResult_ModuleFile); ok { + x.Item = nil + } +} + +const SearchResult_Item_not_set_case case_SearchResult_Item = 0 +const SearchResult_Repository_case case_SearchResult_Item = 1 +const SearchResult_Organization_case case_SearchResult_Item = 2 +const SearchResult_User_case case_SearchResult_Item = 3 +const SearchResult_Team_case case_SearchResult_Item = 4 +const SearchResult_CuratedPlugin_case case_SearchResult_Item = 7 +const SearchResult_ModuleElement_case case_SearchResult_Item = 8 +const SearchResult_ModuleFile_case case_SearchResult_Item = 9 + +func (x *SearchResult) WhichItem() case_SearchResult_Item { + if x == nil { + return SearchResult_Item_not_set_case + } + switch x.Item.(type) { + case *SearchResult_Repository: + return SearchResult_Repository_case + case *SearchResult_Organization: + return SearchResult_Organization_case + case *SearchResult_User: + return SearchResult_User_case + case *SearchResult_Team: + return SearchResult_Team_case + case *SearchResult_CuratedPlugin: + return SearchResult_CuratedPlugin_case + case *SearchResult_ModuleElement: + return SearchResult_ModuleElement_case + case *SearchResult_ModuleFile: + return SearchResult_ModuleFile_case + default: + return SearchResult_Item_not_set_case + } +} + +type SearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Item: + Repository *RepositorySearchResult + Organization *OrganizationSearchResult + User *UserSearchResult + Team *TeamSearchResult + CuratedPlugin *CuratedPluginSearchResult + ModuleElement *ModuleElementSearchResult + ModuleFile *ModuleFileSearchResult + // -- end of Item +} + +func (b0 SearchResult_builder) Build() *SearchResult { + m0 := &SearchResult{} + b, x := &b0, m0 + _, _ = b, x + if b.Repository != nil { + x.Item = &SearchResult_Repository{b.Repository} + } + if b.Organization != nil { + x.Item = &SearchResult_Organization{b.Organization} + } + if b.User != nil { + x.Item = &SearchResult_User{b.User} + } + if b.Team != nil { + x.Item = &SearchResult_Team{b.Team} + } + if b.CuratedPlugin != nil { + x.Item = &SearchResult_CuratedPlugin{b.CuratedPlugin} + } + if b.ModuleElement != nil { + x.Item = &SearchResult_ModuleElement{b.ModuleElement} + } + if b.ModuleFile != nil { + x.Item = &SearchResult_ModuleFile{b.ModuleFile} + } + return m0 +} + +type case_SearchResult_Item protoreflect.FieldNumber + +func (x case_SearchResult_Item) String() string { + md := file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[7].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isSearchResult_Item interface { isSearchResult_Item() } @@ -991,7 +1551,7 @@ func (*SearchResult_ModuleElement) isSearchResult_Item() {} func (*SearchResult_ModuleFile) isSearchResult_Item() {} type ElementSearchResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` RepositoryOwner string `protobuf:"bytes,2,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` RepositoryName string `protobuf:"bytes,3,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` @@ -1034,11 +1594,6 @@ func (x *ElementSearchResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ElementSearchResult.ProtoReflect.Descriptor instead. -func (*ElementSearchResult) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{8} -} - func (x *ElementSearchResult) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -1078,52 +1633,274 @@ func (x *ElementSearchResult) GetDocument() isElementSearchResult_Document { if x != nil { return x.Document } - return nil + return nil +} + +func (x *ElementSearchResult) GetService() *Service { + if x != nil { + if x, ok := x.Document.(*ElementSearchResult_Service); ok { + return x.Service + } + } + return nil +} + +func (x *ElementSearchResult) GetMethod() *Method { + if x != nil { + if x, ok := x.Document.(*ElementSearchResult_Method); ok { + return x.Method + } + } + return nil +} + +func (x *ElementSearchResult) GetEnum() *Enum { + if x != nil { + if x, ok := x.Document.(*ElementSearchResult_Enum); ok { + return x.Enum + } + } + return nil +} + +func (x *ElementSearchResult) GetMessage() *Message { + if x != nil { + if x, ok := x.Document.(*ElementSearchResult_Message); ok { + return x.Message + } + } + return nil +} + +func (x *ElementSearchResult) GetFileExtension() *FileExtension { + if x != nil { + if x, ok := x.Document.(*ElementSearchResult_FileExtension); ok { + return x.FileExtension + } + } + return nil +} + +func (x *ElementSearchResult) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *ElementSearchResult) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *ElementSearchResult) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *ElementSearchResult) SetProtoFilePath(v string) { + x.ProtoFilePath = v +} + +func (x *ElementSearchResult) SetFullyQualifiedName(v string) { + x.FullyQualifiedName = v +} + +func (x *ElementSearchResult) SetService(v *Service) { + if v == nil { + x.Document = nil + return + } + x.Document = &ElementSearchResult_Service{v} +} + +func (x *ElementSearchResult) SetMethod(v *Method) { + if v == nil { + x.Document = nil + return + } + x.Document = &ElementSearchResult_Method{v} +} + +func (x *ElementSearchResult) SetEnum(v *Enum) { + if v == nil { + x.Document = nil + return + } + x.Document = &ElementSearchResult_Enum{v} +} + +func (x *ElementSearchResult) SetMessage(v *Message) { + if v == nil { + x.Document = nil + return + } + x.Document = &ElementSearchResult_Message{v} +} + +func (x *ElementSearchResult) SetFileExtension(v *FileExtension) { + if v == nil { + x.Document = nil + return + } + x.Document = &ElementSearchResult_FileExtension{v} +} + +func (x *ElementSearchResult) HasDocument() bool { + if x == nil { + return false + } + return x.Document != nil +} + +func (x *ElementSearchResult) HasService() bool { + if x == nil { + return false + } + _, ok := x.Document.(*ElementSearchResult_Service) + return ok +} + +func (x *ElementSearchResult) HasMethod() bool { + if x == nil { + return false + } + _, ok := x.Document.(*ElementSearchResult_Method) + return ok +} + +func (x *ElementSearchResult) HasEnum() bool { + if x == nil { + return false + } + _, ok := x.Document.(*ElementSearchResult_Enum) + return ok +} + +func (x *ElementSearchResult) HasMessage() bool { + if x == nil { + return false + } + _, ok := x.Document.(*ElementSearchResult_Message) + return ok +} + +func (x *ElementSearchResult) HasFileExtension() bool { + if x == nil { + return false + } + _, ok := x.Document.(*ElementSearchResult_FileExtension) + return ok +} + +func (x *ElementSearchResult) ClearDocument() { + x.Document = nil +} + +func (x *ElementSearchResult) ClearService() { + if _, ok := x.Document.(*ElementSearchResult_Service); ok { + x.Document = nil + } +} + +func (x *ElementSearchResult) ClearMethod() { + if _, ok := x.Document.(*ElementSearchResult_Method); ok { + x.Document = nil + } +} + +func (x *ElementSearchResult) ClearEnum() { + if _, ok := x.Document.(*ElementSearchResult_Enum); ok { + x.Document = nil + } } -func (x *ElementSearchResult) GetService() *Service { - if x != nil { - if x, ok := x.Document.(*ElementSearchResult_Service); ok { - return x.Service - } +func (x *ElementSearchResult) ClearMessage() { + if _, ok := x.Document.(*ElementSearchResult_Message); ok { + x.Document = nil } - return nil } -func (x *ElementSearchResult) GetMethod() *Method { - if x != nil { - if x, ok := x.Document.(*ElementSearchResult_Method); ok { - return x.Method - } +func (x *ElementSearchResult) ClearFileExtension() { + if _, ok := x.Document.(*ElementSearchResult_FileExtension); ok { + x.Document = nil } - return nil } -func (x *ElementSearchResult) GetEnum() *Enum { - if x != nil { - if x, ok := x.Document.(*ElementSearchResult_Enum); ok { - return x.Enum - } +const ElementSearchResult_Document_not_set_case case_ElementSearchResult_Document = 0 +const ElementSearchResult_Service_case case_ElementSearchResult_Document = 6 +const ElementSearchResult_Method_case case_ElementSearchResult_Document = 7 +const ElementSearchResult_Enum_case case_ElementSearchResult_Document = 8 +const ElementSearchResult_Message_case case_ElementSearchResult_Document = 9 +const ElementSearchResult_FileExtension_case case_ElementSearchResult_Document = 10 + +func (x *ElementSearchResult) WhichDocument() case_ElementSearchResult_Document { + if x == nil { + return ElementSearchResult_Document_not_set_case + } + switch x.Document.(type) { + case *ElementSearchResult_Service: + return ElementSearchResult_Service_case + case *ElementSearchResult_Method: + return ElementSearchResult_Method_case + case *ElementSearchResult_Enum: + return ElementSearchResult_Enum_case + case *ElementSearchResult_Message: + return ElementSearchResult_Message_case + case *ElementSearchResult_FileExtension: + return ElementSearchResult_FileExtension_case + default: + return ElementSearchResult_Document_not_set_case } - return nil } -func (x *ElementSearchResult) GetMessage() *Message { - if x != nil { - if x, ok := x.Document.(*ElementSearchResult_Message); ok { - return x.Message - } +type ElementSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryId string + RepositoryOwner string + RepositoryName string + ProtoFilePath string + FullyQualifiedName string + // Fields of oneof Document: + Service *Service + Method *Method + Enum *Enum + Message *Message + FileExtension *FileExtension + // -- end of Document +} + +func (b0 ElementSearchResult_builder) Build() *ElementSearchResult { + m0 := &ElementSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.ProtoFilePath = b.ProtoFilePath + x.FullyQualifiedName = b.FullyQualifiedName + if b.Service != nil { + x.Document = &ElementSearchResult_Service{b.Service} } - return nil + if b.Method != nil { + x.Document = &ElementSearchResult_Method{b.Method} + } + if b.Enum != nil { + x.Document = &ElementSearchResult_Enum{b.Enum} + } + if b.Message != nil { + x.Document = &ElementSearchResult_Message{b.Message} + } + if b.FileExtension != nil { + x.Document = &ElementSearchResult_FileExtension{b.FileExtension} + } + return m0 } -func (x *ElementSearchResult) GetFileExtension() *FileExtension { - if x != nil { - if x, ok := x.Document.(*ElementSearchResult_FileExtension); ok { - return x.FileExtension - } +type case_ElementSearchResult_Document protoreflect.FieldNumber + +func (x case_ElementSearchResult_Document) String() string { + md := file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[8].Descriptor() + if x == 0 { + return "not set" } - return nil + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) } type isElementSearchResult_Document interface { @@ -1161,7 +1938,7 @@ func (*ElementSearchResult_Message) isElementSearchResult_Document() {} func (*ElementSearchResult_FileExtension) isElementSearchResult_Document() {} type FileSearchResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` RepositoryOwner string `protobuf:"bytes,2,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` RepositoryName string `protobuf:"bytes,3,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` @@ -1196,11 +1973,6 @@ func (x *FileSearchResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FileSearchResult.ProtoReflect.Descriptor instead. -func (*FileSearchResult) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{9} -} - func (x *FileSearchResult) GetRepositoryId() string { if x != nil { return x.RepositoryId @@ -1236,8 +2008,53 @@ func (x *FileSearchResult) GetContent() []byte { return nil } +func (x *FileSearchResult) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *FileSearchResult) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *FileSearchResult) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *FileSearchResult) SetProtoFilePath(v string) { + x.ProtoFilePath = v +} + +func (x *FileSearchResult) SetContent(v []byte) { + if v == nil { + v = []byte{} + } + x.Content = v +} + +type FileSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryId string + RepositoryOwner string + RepositoryName string + ProtoFilePath string + Content []byte +} + +func (b0 FileSearchResult_builder) Build() *FileSearchResult { + m0 := &FileSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryId = b.RepositoryId + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.ProtoFilePath = b.ProtoFilePath + x.Content = b.Content + return m0 +} + type SearchModuleContentResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Item: // // *SearchModuleContentResult_Element @@ -1272,11 +2089,6 @@ func (x *SearchModuleContentResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SearchModuleContentResult.ProtoReflect.Descriptor instead. -func (*SearchModuleContentResult) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{10} -} - func (x *SearchModuleContentResult) GetItem() isSearchModuleContentResult_Item { if x != nil { return x.Item @@ -1302,6 +2114,111 @@ func (x *SearchModuleContentResult) GetFile() *FileSearchResult { return nil } +func (x *SearchModuleContentResult) SetElement(v *ElementSearchResult) { + if v == nil { + x.Item = nil + return + } + x.Item = &SearchModuleContentResult_Element{v} +} + +func (x *SearchModuleContentResult) SetFile(v *FileSearchResult) { + if v == nil { + x.Item = nil + return + } + x.Item = &SearchModuleContentResult_File{v} +} + +func (x *SearchModuleContentResult) HasItem() bool { + if x == nil { + return false + } + return x.Item != nil +} + +func (x *SearchModuleContentResult) HasElement() bool { + if x == nil { + return false + } + _, ok := x.Item.(*SearchModuleContentResult_Element) + return ok +} + +func (x *SearchModuleContentResult) HasFile() bool { + if x == nil { + return false + } + _, ok := x.Item.(*SearchModuleContentResult_File) + return ok +} + +func (x *SearchModuleContentResult) ClearItem() { + x.Item = nil +} + +func (x *SearchModuleContentResult) ClearElement() { + if _, ok := x.Item.(*SearchModuleContentResult_Element); ok { + x.Item = nil + } +} + +func (x *SearchModuleContentResult) ClearFile() { + if _, ok := x.Item.(*SearchModuleContentResult_File); ok { + x.Item = nil + } +} + +const SearchModuleContentResult_Item_not_set_case case_SearchModuleContentResult_Item = 0 +const SearchModuleContentResult_Element_case case_SearchModuleContentResult_Item = 1 +const SearchModuleContentResult_File_case case_SearchModuleContentResult_Item = 2 + +func (x *SearchModuleContentResult) WhichItem() case_SearchModuleContentResult_Item { + if x == nil { + return SearchModuleContentResult_Item_not_set_case + } + switch x.Item.(type) { + case *SearchModuleContentResult_Element: + return SearchModuleContentResult_Element_case + case *SearchModuleContentResult_File: + return SearchModuleContentResult_File_case + default: + return SearchModuleContentResult_Item_not_set_case + } +} + +type SearchModuleContentResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Item: + Element *ElementSearchResult + File *FileSearchResult + // -- end of Item +} + +func (b0 SearchModuleContentResult_builder) Build() *SearchModuleContentResult { + m0 := &SearchModuleContentResult{} + b, x := &b0, m0 + _, _ = b, x + if b.Element != nil { + x.Item = &SearchModuleContentResult_Element{b.Element} + } + if b.File != nil { + x.Item = &SearchModuleContentResult_File{b.File} + } + return m0 +} + +type case_SearchModuleContentResult_Item protoreflect.FieldNumber + +func (x case_SearchModuleContentResult_Item) String() string { + md := file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[10].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isSearchModuleContentResult_Item interface { isSearchModuleContentResult_Item() } @@ -1319,7 +2236,7 @@ func (*SearchModuleContentResult_Element) isSearchModuleContentResult_Item() {} func (*SearchModuleContentResult_File) isSearchModuleContentResult_Item() {} type SearchRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The search string. Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` @@ -1358,11 +2275,6 @@ func (x *SearchRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead. -func (*SearchRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{11} -} - func (x *SearchRequest) GetQuery() string { if x != nil { return x.Query @@ -1391,8 +2303,49 @@ func (x *SearchRequest) GetFilters() []SearchFilter { return nil } +func (x *SearchRequest) SetQuery(v string) { + x.Query = v +} + +func (x *SearchRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *SearchRequest) SetPageToken(v uint32) { + x.PageToken = v +} + +func (x *SearchRequest) SetFilters(v []SearchFilter) { + x.Filters = v +} + +type SearchRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The search string. + Query string + PageSize uint32 + // The first page is returned if this is 0. + PageToken uint32 + // Empty list means show all. Supplying one or more enums will + // limit the search to only the requested resources. + // Supplying all possible enums is equivalent to empty list of filters. + Filters []SearchFilter +} + +func (b0 SearchRequest_builder) Build() *SearchRequest { + m0 := &SearchRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Query = b.Query + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Filters = b.Filters + return m0 +} + type SearchResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` SearchResults []*SearchResult `protobuf:"bytes,1,rep,name=search_results,json=searchResults,proto3" json:"search_results,omitempty"` // There are no more pages if this is 0. NextPageToken uint32 `protobuf:"varint,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1425,11 +2378,6 @@ func (x *SearchResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead. -func (*SearchResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{12} -} - func (x *SearchResponse) GetSearchResults() []*SearchResult { if x != nil { return x.SearchResults @@ -1444,8 +2392,33 @@ func (x *SearchResponse) GetNextPageToken() uint32 { return 0 } +func (x *SearchResponse) SetSearchResults(v []*SearchResult) { + x.SearchResults = v +} + +func (x *SearchResponse) SetNextPageToken(v uint32) { + x.NextPageToken = v +} + +type SearchResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SearchResults []*SearchResult + // There are no more pages if this is 0. + NextPageToken uint32 +} + +func (b0 SearchResponse_builder) Build() *SearchResponse { + m0 := &SearchResponse{} + b, x := &b0, m0 + _, _ = b, x + x.SearchResults = b.SearchResults + x.NextPageToken = b.NextPageToken + return m0 +} + type SearchTagRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the repository. RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` // The name of the repository. @@ -1488,11 +2461,6 @@ func (x *SearchTagRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SearchTagRequest.ProtoReflect.Descriptor instead. -func (*SearchTagRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{13} -} - func (x *SearchTagRequest) GetRepositoryOwner() string { if x != nil { return x.RepositoryOwner @@ -1542,8 +2510,68 @@ func (x *SearchTagRequest) GetReverse() bool { return false } +func (x *SearchTagRequest) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *SearchTagRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *SearchTagRequest) SetQuery(v string) { + x.Query = v +} + +func (x *SearchTagRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *SearchTagRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *SearchTagRequest) SetOrderBy(v OrderBy) { + x.OrderBy = v +} + +func (x *SearchTagRequest) SetReverse(v bool) { + x.Reverse = v +} + +type SearchTagRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository. + RepositoryOwner string + // The name of the repository. + RepositoryName string + // The search string. + Query string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + // The field to order results by. + OrderBy OrderBy + // Reverse orders results in descending order. + Reverse bool +} + +func (b0 SearchTagRequest_builder) Build() *SearchTagRequest { + m0 := &SearchTagRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.Query = b.Query + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.OrderBy = b.OrderBy + x.Reverse = b.Reverse + return m0 +} + type SearchTagResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryTags []*RepositoryTag `protobuf:"bytes,1,rep,name=repository_tags,json=repositoryTags,proto3" json:"repository_tags,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1576,11 +2604,6 @@ func (x *SearchTagResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SearchTagResponse.ProtoReflect.Descriptor instead. -func (*SearchTagResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{14} -} - func (x *SearchTagResponse) GetRepositoryTags() []*RepositoryTag { if x != nil { return x.RepositoryTags @@ -1595,8 +2618,33 @@ func (x *SearchTagResponse) GetNextPageToken() string { return "" } +func (x *SearchTagResponse) SetRepositoryTags(v []*RepositoryTag) { + x.RepositoryTags = v +} + +func (x *SearchTagResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type SearchTagResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryTags []*RepositoryTag + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 SearchTagResponse_builder) Build() *SearchTagResponse { + m0 := &SearchTagResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryTags = b.RepositoryTags + x.NextPageToken = b.NextPageToken + return m0 +} + type SearchDraftRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The owner of the repository. RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` // The name of the repository. @@ -1639,11 +2687,6 @@ func (x *SearchDraftRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SearchDraftRequest.ProtoReflect.Descriptor instead. -func (*SearchDraftRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{15} -} - func (x *SearchDraftRequest) GetRepositoryOwner() string { if x != nil { return x.RepositoryOwner @@ -1693,8 +2736,68 @@ func (x *SearchDraftRequest) GetReverse() bool { return false } +func (x *SearchDraftRequest) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *SearchDraftRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *SearchDraftRequest) SetQuery(v string) { + x.Query = v +} + +func (x *SearchDraftRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *SearchDraftRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *SearchDraftRequest) SetOrderBy(v OrderBy) { + x.OrderBy = v +} + +func (x *SearchDraftRequest) SetReverse(v bool) { + x.Reverse = v +} + +type SearchDraftRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository. + RepositoryOwner string + // The name of the repository. + RepositoryName string + // The search string. + Query string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + // The field to order results by. + OrderBy OrderBy + // Reverse orders results in descending order. + Reverse bool +} + +func (b0 SearchDraftRequest_builder) Build() *SearchDraftRequest { + m0 := &SearchDraftRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.Query = b.Query + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.OrderBy = b.OrderBy + x.Reverse = b.Reverse + return m0 +} + type SearchDraftResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RepositoryCommits []*RepositoryCommit `protobuf:"bytes,1,rep,name=repository_commits,json=repositoryCommits,proto3" json:"repository_commits,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1727,11 +2830,6 @@ func (x *SearchDraftResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SearchDraftResponse.ProtoReflect.Descriptor instead. -func (*SearchDraftResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{16} -} - func (x *SearchDraftResponse) GetRepositoryCommits() []*RepositoryCommit { if x != nil { return x.RepositoryCommits @@ -1746,8 +2844,33 @@ func (x *SearchDraftResponse) GetNextPageToken() string { return "" } +func (x *SearchDraftResponse) SetRepositoryCommits(v []*RepositoryCommit) { + x.RepositoryCommits = v +} + +func (x *SearchDraftResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type SearchDraftResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryCommits []*RepositoryCommit + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 SearchDraftResponse_builder) Build() *SearchDraftResponse { + m0 := &SearchDraftResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryCommits = b.RepositoryCommits + x.NextPageToken = b.NextPageToken + return m0 +} + type SearchModuleContentRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The search string. Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` @@ -1791,11 +2914,6 @@ func (x *SearchModuleContentRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SearchModuleContentRequest.ProtoReflect.Descriptor instead. -func (*SearchModuleContentRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{17} -} - func (x *SearchModuleContentRequest) GetQuery() string { if x != nil { return x.Query @@ -1838,8 +2956,64 @@ func (x *SearchModuleContentRequest) GetRepositoryOwner() string { return "" } +func (x *SearchModuleContentRequest) SetQuery(v string) { + x.Query = v +} + +func (x *SearchModuleContentRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *SearchModuleContentRequest) SetPageToken(v uint32) { + x.PageToken = v +} + +func (x *SearchModuleContentRequest) SetFilters(v []SearchModuleContentFilter) { + x.Filters = v +} + +func (x *SearchModuleContentRequest) SetRepositoryFullName(v string) { + x.RepositoryFullName = v +} + +func (x *SearchModuleContentRequest) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +type SearchModuleContentRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The search string. + Query string + PageSize uint32 + // The first page is returned if this is 0. + PageToken uint32 + // Empty list means show all. Supplying one or more enums will + // limit the search to only the requested resources. + // Supplying all possible enums is equivalent to empty list of filters. + Filters []SearchModuleContentFilter + // Optional, if provided the search results will be limited to the provided repository. + RepositoryFullName string + // Optional, if provided the search results will be limited to the provided owner, + // ignored if repository_full_name is provided. + RepositoryOwner string +} + +func (b0 SearchModuleContentRequest_builder) Build() *SearchModuleContentRequest { + m0 := &SearchModuleContentRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Query = b.Query + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Filters = b.Filters + x.RepositoryFullName = b.RepositoryFullName + x.RepositoryOwner = b.RepositoryOwner + return m0 +} + type SearchModuleContentResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` SearchResults []*SearchModuleContentResult `protobuf:"bytes,1,rep,name=search_results,json=searchResults,proto3" json:"search_results,omitempty"` // There are no more pages if this is 0. NextPageToken uint32 `protobuf:"varint,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1872,11 +3046,6 @@ func (x *SearchModuleContentResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SearchModuleContentResponse.ProtoReflect.Descriptor instead. -func (*SearchModuleContentResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP(), []int{18} -} - func (x *SearchModuleContentResponse) GetSearchResults() []*SearchModuleContentResult { if x != nil { return x.SearchResults @@ -1891,6 +3060,31 @@ func (x *SearchModuleContentResponse) GetNextPageToken() uint32 { return 0 } +func (x *SearchModuleContentResponse) SetSearchResults(v []*SearchModuleContentResult) { + x.SearchResults = v +} + +func (x *SearchModuleContentResponse) SetNextPageToken(v uint32) { + x.NextPageToken = v +} + +type SearchModuleContentResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SearchResults []*SearchModuleContentResult + // There are no more pages if this is 0. + NextPageToken uint32 +} + +func (b0 SearchModuleContentResponse_builder) Build() *SearchModuleContentResponse { + m0 := &SearchModuleContentResponse{} + b, x := &b0, m0 + _, _ = b, x + x.SearchResults = b.SearchResults + x.NextPageToken = b.NextPageToken + return m0 +} + var File_buf_alpha_registry_v1alpha1_search_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_search_proto_rawDesc = []byte{ @@ -2337,18 +3531,6 @@ var file_buf_alpha_registry_v1alpha1_search_proto_rawDesc = []byte{ 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_search_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_search_proto_rawDescData = file_buf_alpha_registry_v1alpha1_search_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_search_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_search_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_search_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_search_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_search_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_search_proto_enumTypes = make([]protoimpl.EnumInfo, 4) var file_buf_alpha_registry_v1alpha1_search_proto_msgTypes = make([]protoimpl.MessageInfo, 19) var file_buf_alpha_registry_v1alpha1_search_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/search_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/search_protoopaque.pb.go new file mode 100644 index 0000000000..c2abd3cf39 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/search_protoopaque.pb.go @@ -0,0 +1,3595 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/search.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type SearchFilter int32 + +const ( + SearchFilter_SEARCH_FILTER_UNSPECIFIED SearchFilter = 0 + SearchFilter_SEARCH_FILTER_USER SearchFilter = 1 + SearchFilter_SEARCH_FILTER_ORGANIZATION SearchFilter = 2 + SearchFilter_SEARCH_FILTER_REPOSITORY SearchFilter = 3 + SearchFilter_SEARCH_FILTER_TEAM SearchFilter = 6 + SearchFilter_SEARCH_FILTER_CURATED_PLUGIN SearchFilter = 7 + SearchFilter_SEARCH_FILTER_MODULE_ELEMENT SearchFilter = 8 + SearchFilter_SEARCH_FILTER_MODULE_FILE SearchFilter = 9 +) + +// Enum value maps for SearchFilter. +var ( + SearchFilter_name = map[int32]string{ + 0: "SEARCH_FILTER_UNSPECIFIED", + 1: "SEARCH_FILTER_USER", + 2: "SEARCH_FILTER_ORGANIZATION", + 3: "SEARCH_FILTER_REPOSITORY", + 6: "SEARCH_FILTER_TEAM", + 7: "SEARCH_FILTER_CURATED_PLUGIN", + 8: "SEARCH_FILTER_MODULE_ELEMENT", + 9: "SEARCH_FILTER_MODULE_FILE", + } + SearchFilter_value = map[string]int32{ + "SEARCH_FILTER_UNSPECIFIED": 0, + "SEARCH_FILTER_USER": 1, + "SEARCH_FILTER_ORGANIZATION": 2, + "SEARCH_FILTER_REPOSITORY": 3, + "SEARCH_FILTER_TEAM": 6, + "SEARCH_FILTER_CURATED_PLUGIN": 7, + "SEARCH_FILTER_MODULE_ELEMENT": 8, + "SEARCH_FILTER_MODULE_FILE": 9, + } +) + +func (x SearchFilter) Enum() *SearchFilter { + p := new(SearchFilter) + *p = x + return p +} + +func (x SearchFilter) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SearchFilter) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_search_proto_enumTypes[0].Descriptor() +} + +func (SearchFilter) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_search_proto_enumTypes[0] +} + +func (x SearchFilter) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type OrderBy int32 + +const ( + OrderBy_ORDER_BY_UNSPECIFIED OrderBy = 0 + OrderBy_ORDER_BY_CREATE_TIME OrderBy = 1 + OrderBy_ORDER_BY_UPDATE_TIME OrderBy = 2 + OrderBy_ORDER_BY_NAME OrderBy = 3 +) + +// Enum value maps for OrderBy. +var ( + OrderBy_name = map[int32]string{ + 0: "ORDER_BY_UNSPECIFIED", + 1: "ORDER_BY_CREATE_TIME", + 2: "ORDER_BY_UPDATE_TIME", + 3: "ORDER_BY_NAME", + } + OrderBy_value = map[string]int32{ + "ORDER_BY_UNSPECIFIED": 0, + "ORDER_BY_CREATE_TIME": 1, + "ORDER_BY_UPDATE_TIME": 2, + "ORDER_BY_NAME": 3, + } +) + +func (x OrderBy) Enum() *OrderBy { + p := new(OrderBy) + *p = x + return p +} + +func (x OrderBy) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OrderBy) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_search_proto_enumTypes[1].Descriptor() +} + +func (OrderBy) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_search_proto_enumTypes[1] +} + +func (x OrderBy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// SearchModuleElementType is the protobuf element type of a fully qualified name in a module element search result. +// This is a subset of types in https://protobuf.com/docs/language-spec#named-elements that are exposing in the search. +type SearchModuleElementType int32 + +const ( + SearchModuleElementType_SEARCH_MODULE_ELEMENT_TYPE_UNSPECIFIED SearchModuleElementType = 0 + SearchModuleElementType_SEARCH_MODULE_ELEMENT_TYPE_SERVICE SearchModuleElementType = 1 + SearchModuleElementType_SEARCH_MODULE_ELEMENT_TYPE_METHOD SearchModuleElementType = 2 + SearchModuleElementType_SEARCH_MODULE_ELEMENT_TYPE_MESSAGE SearchModuleElementType = 3 + SearchModuleElementType_SEARCH_MODULE_ELEMENT_TYPE_ENUM SearchModuleElementType = 4 +) + +// Enum value maps for SearchModuleElementType. +var ( + SearchModuleElementType_name = map[int32]string{ + 0: "SEARCH_MODULE_ELEMENT_TYPE_UNSPECIFIED", + 1: "SEARCH_MODULE_ELEMENT_TYPE_SERVICE", + 2: "SEARCH_MODULE_ELEMENT_TYPE_METHOD", + 3: "SEARCH_MODULE_ELEMENT_TYPE_MESSAGE", + 4: "SEARCH_MODULE_ELEMENT_TYPE_ENUM", + } + SearchModuleElementType_value = map[string]int32{ + "SEARCH_MODULE_ELEMENT_TYPE_UNSPECIFIED": 0, + "SEARCH_MODULE_ELEMENT_TYPE_SERVICE": 1, + "SEARCH_MODULE_ELEMENT_TYPE_METHOD": 2, + "SEARCH_MODULE_ELEMENT_TYPE_MESSAGE": 3, + "SEARCH_MODULE_ELEMENT_TYPE_ENUM": 4, + } +) + +func (x SearchModuleElementType) Enum() *SearchModuleElementType { + p := new(SearchModuleElementType) + *p = x + return p +} + +func (x SearchModuleElementType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SearchModuleElementType) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_search_proto_enumTypes[2].Descriptor() +} + +func (SearchModuleElementType) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_search_proto_enumTypes[2] +} + +func (x SearchModuleElementType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type SearchModuleContentFilter int32 + +const ( + SearchModuleContentFilter_SEARCH_MODULE_CONTENT_FILTER_UNSPECIFIED SearchModuleContentFilter = 0 + // SEARCH_MODULE_CONTENT_FILTER_ELEMENT is the filter for elements, e.g. messages, services, and methods. + SearchModuleContentFilter_SEARCH_MODULE_CONTENT_FILTER_ELEMENT SearchModuleContentFilter = 1 + // SEARCH_MODULE_CONTENT_FILTER_FILE is the filter for files. + SearchModuleContentFilter_SEARCH_MODULE_CONTENT_FILTER_FILE SearchModuleContentFilter = 2 +) + +// Enum value maps for SearchModuleContentFilter. +var ( + SearchModuleContentFilter_name = map[int32]string{ + 0: "SEARCH_MODULE_CONTENT_FILTER_UNSPECIFIED", + 1: "SEARCH_MODULE_CONTENT_FILTER_ELEMENT", + 2: "SEARCH_MODULE_CONTENT_FILTER_FILE", + } + SearchModuleContentFilter_value = map[string]int32{ + "SEARCH_MODULE_CONTENT_FILTER_UNSPECIFIED": 0, + "SEARCH_MODULE_CONTENT_FILTER_ELEMENT": 1, + "SEARCH_MODULE_CONTENT_FILTER_FILE": 2, + } +) + +func (x SearchModuleContentFilter) Enum() *SearchModuleContentFilter { + p := new(SearchModuleContentFilter) + *p = x + return p +} + +func (x SearchModuleContentFilter) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SearchModuleContentFilter) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_search_proto_enumTypes[3].Descriptor() +} + +func (SearchModuleContentFilter) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_search_proto_enumTypes[3] +} + +func (x SearchModuleContentFilter) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type RepositorySearchResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Visibility Visibility `protobuf:"varint,4,opt,name=visibility,proto3,enum=buf.alpha.registry.v1alpha1.Visibility" json:"visibility,omitempty"` + xxx_hidden_Deprecated bool `protobuf:"varint,5,opt,name=deprecated,proto3" json:"deprecated,omitempty"` + xxx_hidden_LatestSpdxLicenseId string `protobuf:"bytes,6,opt,name=latest_spdx_license_id,json=latestSpdxLicenseId,proto3" json:"latest_spdx_license_id,omitempty"` + xxx_hidden_OwnerVerificationStatus VerificationStatus `protobuf:"varint,7,opt,name=owner_verification_status,json=ownerVerificationStatus,proto3,enum=buf.alpha.registry.v1alpha1.VerificationStatus" json:"owner_verification_status,omitempty"` + xxx_hidden_Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"` + xxx_hidden_LatestCommitTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=latest_commit_time,json=latestCommitTime,proto3" json:"latest_commit_time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepositorySearchResult) Reset() { + *x = RepositorySearchResult{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepositorySearchResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepositorySearchResult) ProtoMessage() {} + +func (x *RepositorySearchResult) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RepositorySearchResult) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *RepositorySearchResult) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *RepositorySearchResult) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *RepositorySearchResult) GetVisibility() Visibility { + if x != nil { + return x.xxx_hidden_Visibility + } + return Visibility_VISIBILITY_UNSPECIFIED +} + +func (x *RepositorySearchResult) GetDeprecated() bool { + if x != nil { + return x.xxx_hidden_Deprecated + } + return false +} + +func (x *RepositorySearchResult) GetLatestSpdxLicenseId() string { + if x != nil { + return x.xxx_hidden_LatestSpdxLicenseId + } + return "" +} + +func (x *RepositorySearchResult) GetOwnerVerificationStatus() VerificationStatus { + if x != nil { + return x.xxx_hidden_OwnerVerificationStatus + } + return VerificationStatus_VERIFICATION_STATUS_UNSPECIFIED +} + +func (x *RepositorySearchResult) GetUrl() string { + if x != nil { + return x.xxx_hidden_Url + } + return "" +} + +func (x *RepositorySearchResult) GetLatestCommitTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LatestCommitTime + } + return nil +} + +func (x *RepositorySearchResult) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *RepositorySearchResult) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *RepositorySearchResult) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *RepositorySearchResult) SetVisibility(v Visibility) { + x.xxx_hidden_Visibility = v +} + +func (x *RepositorySearchResult) SetDeprecated(v bool) { + x.xxx_hidden_Deprecated = v +} + +func (x *RepositorySearchResult) SetLatestSpdxLicenseId(v string) { + x.xxx_hidden_LatestSpdxLicenseId = v +} + +func (x *RepositorySearchResult) SetOwnerVerificationStatus(v VerificationStatus) { + x.xxx_hidden_OwnerVerificationStatus = v +} + +func (x *RepositorySearchResult) SetUrl(v string) { + x.xxx_hidden_Url = v +} + +func (x *RepositorySearchResult) SetLatestCommitTime(v *timestamppb.Timestamp) { + x.xxx_hidden_LatestCommitTime = v +} + +func (x *RepositorySearchResult) HasLatestCommitTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_LatestCommitTime != nil +} + +func (x *RepositorySearchResult) ClearLatestCommitTime() { + x.xxx_hidden_LatestCommitTime = nil +} + +type RepositorySearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Name string + // The name of the user or organization + // who is the owner of this repository. + Owner string + // The visibility of the repository. + Visibility Visibility + Deprecated bool + // The SPDX license ID of the latest main commit in the repository. + LatestSpdxLicenseId string + // The verification status of the owner of the repository. + OwnerVerificationStatus VerificationStatus + // The user configurable URL in the description of the repository. + Url string + // The commit time of the latest main commit in the repository. + LatestCommitTime *timestamppb.Timestamp +} + +func (b0 RepositorySearchResult_builder) Build() *RepositorySearchResult { + m0 := &RepositorySearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Visibility = b.Visibility + x.xxx_hidden_Deprecated = b.Deprecated + x.xxx_hidden_LatestSpdxLicenseId = b.LatestSpdxLicenseId + x.xxx_hidden_OwnerVerificationStatus = b.OwnerVerificationStatus + x.xxx_hidden_Url = b.Url + x.xxx_hidden_LatestCommitTime = b.LatestCommitTime + return m0 +} + +type OrganizationSearchResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OrganizationSearchResult) Reset() { + *x = OrganizationSearchResult{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrganizationSearchResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationSearchResult) ProtoMessage() {} + +func (x *OrganizationSearchResult) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *OrganizationSearchResult) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *OrganizationSearchResult) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *OrganizationSearchResult) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *OrganizationSearchResult) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *OrganizationSearchResult) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *OrganizationSearchResult) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *OrganizationSearchResult) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *OrganizationSearchResult) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +type OrganizationSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Name string + CreateTime *timestamppb.Timestamp +} + +func (b0 OrganizationSearchResult_builder) Build() *OrganizationSearchResult { + m0 := &OrganizationSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Name = b.Name + x.xxx_hidden_CreateTime = b.CreateTime + return m0 +} + +type UserSearchResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` + xxx_hidden_Deactivated bool `protobuf:"varint,3,opt,name=deactivated,proto3" json:"deactivated,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserSearchResult) Reset() { + *x = UserSearchResult{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserSearchResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserSearchResult) ProtoMessage() {} + +func (x *UserSearchResult) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserSearchResult) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *UserSearchResult) GetUsername() string { + if x != nil { + return x.xxx_hidden_Username + } + return "" +} + +func (x *UserSearchResult) GetDeactivated() bool { + if x != nil { + return x.xxx_hidden_Deactivated + } + return false +} + +func (x *UserSearchResult) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *UserSearchResult) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *UserSearchResult) SetUsername(v string) { + x.xxx_hidden_Username = v +} + +func (x *UserSearchResult) SetDeactivated(v bool) { + x.xxx_hidden_Deactivated = v +} + +func (x *UserSearchResult) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *UserSearchResult) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *UserSearchResult) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +type UserSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Username string + Deactivated bool + CreateTime *timestamppb.Timestamp +} + +func (b0 UserSearchResult_builder) Build() *UserSearchResult { + m0 := &UserSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Username = b.Username + x.xxx_hidden_Deactivated = b.Deactivated + x.xxx_hidden_CreateTime = b.CreateTime + return m0 +} + +type TeamSearchResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_OrganizationName string `protobuf:"bytes,3,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TeamSearchResult) Reset() { + *x = TeamSearchResult{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TeamSearchResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TeamSearchResult) ProtoMessage() {} + +func (x *TeamSearchResult) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TeamSearchResult) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *TeamSearchResult) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *TeamSearchResult) GetOrganizationName() string { + if x != nil { + return x.xxx_hidden_OrganizationName + } + return "" +} + +func (x *TeamSearchResult) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *TeamSearchResult) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *TeamSearchResult) SetOrganizationName(v string) { + x.xxx_hidden_OrganizationName = v +} + +type TeamSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Name string + OrganizationName string +} + +func (b0 TeamSearchResult_builder) Build() *TeamSearchResult { + m0 := &TeamSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Name = b.Name + x.xxx_hidden_OrganizationName = b.OrganizationName + return m0 +} + +type CuratedPluginSearchResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + xxx_hidden_Deprecated bool `protobuf:"varint,4,opt,name=deprecated,proto3" json:"deprecated,omitempty"` + xxx_hidden_Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + xxx_hidden_RegistryType PluginRegistryType `protobuf:"varint,6,opt,name=registry_type,json=registryType,proto3,enum=buf.alpha.registry.v1alpha1.PluginRegistryType" json:"registry_type,omitempty"` + xxx_hidden_OutputLanguages []PluginLanguage `protobuf:"varint,7,rep,packed,name=output_languages,json=outputLanguages,proto3,enum=buf.alpha.registry.v1alpha1.PluginLanguage" json:"output_languages,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CuratedPluginSearchResult) Reset() { + *x = CuratedPluginSearchResult{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CuratedPluginSearchResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CuratedPluginSearchResult) ProtoMessage() {} + +func (x *CuratedPluginSearchResult) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CuratedPluginSearchResult) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *CuratedPluginSearchResult) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *CuratedPluginSearchResult) GetOwner() string { + if x != nil { + return x.xxx_hidden_Owner + } + return "" +} + +func (x *CuratedPluginSearchResult) GetDeprecated() bool { + if x != nil { + return x.xxx_hidden_Deprecated + } + return false +} + +func (x *CuratedPluginSearchResult) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *CuratedPluginSearchResult) GetRegistryType() PluginRegistryType { + if x != nil { + return x.xxx_hidden_RegistryType + } + return PluginRegistryType_PLUGIN_REGISTRY_TYPE_UNSPECIFIED +} + +func (x *CuratedPluginSearchResult) GetOutputLanguages() []PluginLanguage { + if x != nil { + return x.xxx_hidden_OutputLanguages + } + return nil +} + +func (x *CuratedPluginSearchResult) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *CuratedPluginSearchResult) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *CuratedPluginSearchResult) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *CuratedPluginSearchResult) SetOwner(v string) { + x.xxx_hidden_Owner = v +} + +func (x *CuratedPluginSearchResult) SetDeprecated(v bool) { + x.xxx_hidden_Deprecated = v +} + +func (x *CuratedPluginSearchResult) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *CuratedPluginSearchResult) SetRegistryType(v PluginRegistryType) { + x.xxx_hidden_RegistryType = v +} + +func (x *CuratedPluginSearchResult) SetOutputLanguages(v []PluginLanguage) { + x.xxx_hidden_OutputLanguages = v +} + +func (x *CuratedPluginSearchResult) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *CuratedPluginSearchResult) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *CuratedPluginSearchResult) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +type CuratedPluginSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Name string + // The name of the user or organization + // who is the owner of this plugin. + Owner string + Deprecated bool + // The description of the plugin and it's functionality. + Description string + // The registry type of the plugin. + RegistryType PluginRegistryType + // The output languages supported by the plugin. + OutputLanguages []PluginLanguage + // The plugins creation timestamp. + CreateTime *timestamppb.Timestamp +} + +func (b0 CuratedPluginSearchResult_builder) Build() *CuratedPluginSearchResult { + m0 := &CuratedPluginSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Owner = b.Owner + x.xxx_hidden_Deprecated = b.Deprecated + x.xxx_hidden_Description = b.Description + x.xxx_hidden_RegistryType = b.RegistryType + x.xxx_hidden_OutputLanguages = b.OutputLanguages + x.xxx_hidden_CreateTime = b.CreateTime + return m0 +} + +type ModuleElementSearchResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,2,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,3,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_ProtoFilePath string `protobuf:"bytes,4,opt,name=proto_file_path,json=protoFilePath,proto3" json:"proto_file_path,omitempty"` + xxx_hidden_FullyQualifiedName string `protobuf:"bytes,5,opt,name=fully_qualified_name,json=fullyQualifiedName,proto3" json:"fully_qualified_name,omitempty"` + xxx_hidden_PackageName string `protobuf:"bytes,6,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"` + xxx_hidden_SearchModuleElementType SearchModuleElementType `protobuf:"varint,7,opt,name=search_module_element_type,json=searchModuleElementType,proto3,enum=buf.alpha.registry.v1alpha1.SearchModuleElementType" json:"search_module_element_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ModuleElementSearchResult) Reset() { + *x = ModuleElementSearchResult{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ModuleElementSearchResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModuleElementSearchResult) ProtoMessage() {} + +func (x *ModuleElementSearchResult) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ModuleElementSearchResult) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *ModuleElementSearchResult) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *ModuleElementSearchResult) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *ModuleElementSearchResult) GetProtoFilePath() string { + if x != nil { + return x.xxx_hidden_ProtoFilePath + } + return "" +} + +func (x *ModuleElementSearchResult) GetFullyQualifiedName() string { + if x != nil { + return x.xxx_hidden_FullyQualifiedName + } + return "" +} + +func (x *ModuleElementSearchResult) GetPackageName() string { + if x != nil { + return x.xxx_hidden_PackageName + } + return "" +} + +func (x *ModuleElementSearchResult) GetSearchModuleElementType() SearchModuleElementType { + if x != nil { + return x.xxx_hidden_SearchModuleElementType + } + return SearchModuleElementType_SEARCH_MODULE_ELEMENT_TYPE_UNSPECIFIED +} + +func (x *ModuleElementSearchResult) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *ModuleElementSearchResult) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *ModuleElementSearchResult) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *ModuleElementSearchResult) SetProtoFilePath(v string) { + x.xxx_hidden_ProtoFilePath = v +} + +func (x *ModuleElementSearchResult) SetFullyQualifiedName(v string) { + x.xxx_hidden_FullyQualifiedName = v +} + +func (x *ModuleElementSearchResult) SetPackageName(v string) { + x.xxx_hidden_PackageName = v +} + +func (x *ModuleElementSearchResult) SetSearchModuleElementType(v SearchModuleElementType) { + x.xxx_hidden_SearchModuleElementType = v +} + +type ModuleElementSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryId string + RepositoryOwner string + RepositoryName string + ProtoFilePath string + FullyQualifiedName string + PackageName string + SearchModuleElementType SearchModuleElementType +} + +func (b0 ModuleElementSearchResult_builder) Build() *ModuleElementSearchResult { + m0 := &ModuleElementSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_ProtoFilePath = b.ProtoFilePath + x.xxx_hidden_FullyQualifiedName = b.FullyQualifiedName + x.xxx_hidden_PackageName = b.PackageName + x.xxx_hidden_SearchModuleElementType = b.SearchModuleElementType + return m0 +} + +type ModuleFileSearchResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,2,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,3,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_ProtoFilePath string `protobuf:"bytes,4,opt,name=proto_file_path,json=protoFilePath,proto3" json:"proto_file_path,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ModuleFileSearchResult) Reset() { + *x = ModuleFileSearchResult{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ModuleFileSearchResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModuleFileSearchResult) ProtoMessage() {} + +func (x *ModuleFileSearchResult) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ModuleFileSearchResult) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *ModuleFileSearchResult) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *ModuleFileSearchResult) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *ModuleFileSearchResult) GetProtoFilePath() string { + if x != nil { + return x.xxx_hidden_ProtoFilePath + } + return "" +} + +func (x *ModuleFileSearchResult) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *ModuleFileSearchResult) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *ModuleFileSearchResult) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *ModuleFileSearchResult) SetProtoFilePath(v string) { + x.xxx_hidden_ProtoFilePath = v +} + +type ModuleFileSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryId string + RepositoryOwner string + RepositoryName string + ProtoFilePath string +} + +func (b0 ModuleFileSearchResult_builder) Build() *ModuleFileSearchResult { + m0 := &ModuleFileSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_ProtoFilePath = b.ProtoFilePath + return m0 +} + +type SearchResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Item isSearchResult_Item `protobuf_oneof:"item"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchResult) Reset() { + *x = SearchResult{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchResult) ProtoMessage() {} + +func (x *SearchResult) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SearchResult) GetRepository() *RepositorySearchResult { + if x != nil { + if x, ok := x.xxx_hidden_Item.(*searchResult_Repository); ok { + return x.Repository + } + } + return nil +} + +func (x *SearchResult) GetOrganization() *OrganizationSearchResult { + if x != nil { + if x, ok := x.xxx_hidden_Item.(*searchResult_Organization); ok { + return x.Organization + } + } + return nil +} + +func (x *SearchResult) GetUser() *UserSearchResult { + if x != nil { + if x, ok := x.xxx_hidden_Item.(*searchResult_User); ok { + return x.User + } + } + return nil +} + +func (x *SearchResult) GetTeam() *TeamSearchResult { + if x != nil { + if x, ok := x.xxx_hidden_Item.(*searchResult_Team); ok { + return x.Team + } + } + return nil +} + +func (x *SearchResult) GetCuratedPlugin() *CuratedPluginSearchResult { + if x != nil { + if x, ok := x.xxx_hidden_Item.(*searchResult_CuratedPlugin); ok { + return x.CuratedPlugin + } + } + return nil +} + +func (x *SearchResult) GetModuleElement() *ModuleElementSearchResult { + if x != nil { + if x, ok := x.xxx_hidden_Item.(*searchResult_ModuleElement); ok { + return x.ModuleElement + } + } + return nil +} + +func (x *SearchResult) GetModuleFile() *ModuleFileSearchResult { + if x != nil { + if x, ok := x.xxx_hidden_Item.(*searchResult_ModuleFile); ok { + return x.ModuleFile + } + } + return nil +} + +func (x *SearchResult) SetRepository(v *RepositorySearchResult) { + if v == nil { + x.xxx_hidden_Item = nil + return + } + x.xxx_hidden_Item = &searchResult_Repository{v} +} + +func (x *SearchResult) SetOrganization(v *OrganizationSearchResult) { + if v == nil { + x.xxx_hidden_Item = nil + return + } + x.xxx_hidden_Item = &searchResult_Organization{v} +} + +func (x *SearchResult) SetUser(v *UserSearchResult) { + if v == nil { + x.xxx_hidden_Item = nil + return + } + x.xxx_hidden_Item = &searchResult_User{v} +} + +func (x *SearchResult) SetTeam(v *TeamSearchResult) { + if v == nil { + x.xxx_hidden_Item = nil + return + } + x.xxx_hidden_Item = &searchResult_Team{v} +} + +func (x *SearchResult) SetCuratedPlugin(v *CuratedPluginSearchResult) { + if v == nil { + x.xxx_hidden_Item = nil + return + } + x.xxx_hidden_Item = &searchResult_CuratedPlugin{v} +} + +func (x *SearchResult) SetModuleElement(v *ModuleElementSearchResult) { + if v == nil { + x.xxx_hidden_Item = nil + return + } + x.xxx_hidden_Item = &searchResult_ModuleElement{v} +} + +func (x *SearchResult) SetModuleFile(v *ModuleFileSearchResult) { + if v == nil { + x.xxx_hidden_Item = nil + return + } + x.xxx_hidden_Item = &searchResult_ModuleFile{v} +} + +func (x *SearchResult) HasItem() bool { + if x == nil { + return false + } + return x.xxx_hidden_Item != nil +} + +func (x *SearchResult) HasRepository() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Item.(*searchResult_Repository) + return ok +} + +func (x *SearchResult) HasOrganization() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Item.(*searchResult_Organization) + return ok +} + +func (x *SearchResult) HasUser() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Item.(*searchResult_User) + return ok +} + +func (x *SearchResult) HasTeam() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Item.(*searchResult_Team) + return ok +} + +func (x *SearchResult) HasCuratedPlugin() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Item.(*searchResult_CuratedPlugin) + return ok +} + +func (x *SearchResult) HasModuleElement() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Item.(*searchResult_ModuleElement) + return ok +} + +func (x *SearchResult) HasModuleFile() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Item.(*searchResult_ModuleFile) + return ok +} + +func (x *SearchResult) ClearItem() { + x.xxx_hidden_Item = nil +} + +func (x *SearchResult) ClearRepository() { + if _, ok := x.xxx_hidden_Item.(*searchResult_Repository); ok { + x.xxx_hidden_Item = nil + } +} + +func (x *SearchResult) ClearOrganization() { + if _, ok := x.xxx_hidden_Item.(*searchResult_Organization); ok { + x.xxx_hidden_Item = nil + } +} + +func (x *SearchResult) ClearUser() { + if _, ok := x.xxx_hidden_Item.(*searchResult_User); ok { + x.xxx_hidden_Item = nil + } +} + +func (x *SearchResult) ClearTeam() { + if _, ok := x.xxx_hidden_Item.(*searchResult_Team); ok { + x.xxx_hidden_Item = nil + } +} + +func (x *SearchResult) ClearCuratedPlugin() { + if _, ok := x.xxx_hidden_Item.(*searchResult_CuratedPlugin); ok { + x.xxx_hidden_Item = nil + } +} + +func (x *SearchResult) ClearModuleElement() { + if _, ok := x.xxx_hidden_Item.(*searchResult_ModuleElement); ok { + x.xxx_hidden_Item = nil + } +} + +func (x *SearchResult) ClearModuleFile() { + if _, ok := x.xxx_hidden_Item.(*searchResult_ModuleFile); ok { + x.xxx_hidden_Item = nil + } +} + +const SearchResult_Item_not_set_case case_SearchResult_Item = 0 +const SearchResult_Repository_case case_SearchResult_Item = 1 +const SearchResult_Organization_case case_SearchResult_Item = 2 +const SearchResult_User_case case_SearchResult_Item = 3 +const SearchResult_Team_case case_SearchResult_Item = 4 +const SearchResult_CuratedPlugin_case case_SearchResult_Item = 7 +const SearchResult_ModuleElement_case case_SearchResult_Item = 8 +const SearchResult_ModuleFile_case case_SearchResult_Item = 9 + +func (x *SearchResult) WhichItem() case_SearchResult_Item { + if x == nil { + return SearchResult_Item_not_set_case + } + switch x.xxx_hidden_Item.(type) { + case *searchResult_Repository: + return SearchResult_Repository_case + case *searchResult_Organization: + return SearchResult_Organization_case + case *searchResult_User: + return SearchResult_User_case + case *searchResult_Team: + return SearchResult_Team_case + case *searchResult_CuratedPlugin: + return SearchResult_CuratedPlugin_case + case *searchResult_ModuleElement: + return SearchResult_ModuleElement_case + case *searchResult_ModuleFile: + return SearchResult_ModuleFile_case + default: + return SearchResult_Item_not_set_case + } +} + +type SearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Item: + Repository *RepositorySearchResult + Organization *OrganizationSearchResult + User *UserSearchResult + Team *TeamSearchResult + CuratedPlugin *CuratedPluginSearchResult + ModuleElement *ModuleElementSearchResult + ModuleFile *ModuleFileSearchResult + // -- end of xxx_hidden_Item +} + +func (b0 SearchResult_builder) Build() *SearchResult { + m0 := &SearchResult{} + b, x := &b0, m0 + _, _ = b, x + if b.Repository != nil { + x.xxx_hidden_Item = &searchResult_Repository{b.Repository} + } + if b.Organization != nil { + x.xxx_hidden_Item = &searchResult_Organization{b.Organization} + } + if b.User != nil { + x.xxx_hidden_Item = &searchResult_User{b.User} + } + if b.Team != nil { + x.xxx_hidden_Item = &searchResult_Team{b.Team} + } + if b.CuratedPlugin != nil { + x.xxx_hidden_Item = &searchResult_CuratedPlugin{b.CuratedPlugin} + } + if b.ModuleElement != nil { + x.xxx_hidden_Item = &searchResult_ModuleElement{b.ModuleElement} + } + if b.ModuleFile != nil { + x.xxx_hidden_Item = &searchResult_ModuleFile{b.ModuleFile} + } + return m0 +} + +type case_SearchResult_Item protoreflect.FieldNumber + +func (x case_SearchResult_Item) String() string { + md := file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[7].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isSearchResult_Item interface { + isSearchResult_Item() +} + +type searchResult_Repository struct { + Repository *RepositorySearchResult `protobuf:"bytes,1,opt,name=repository,proto3,oneof"` +} + +type searchResult_Organization struct { + Organization *OrganizationSearchResult `protobuf:"bytes,2,opt,name=organization,proto3,oneof"` +} + +type searchResult_User struct { + User *UserSearchResult `protobuf:"bytes,3,opt,name=user,proto3,oneof"` +} + +type searchResult_Team struct { + Team *TeamSearchResult `protobuf:"bytes,4,opt,name=team,proto3,oneof"` +} + +type searchResult_CuratedPlugin struct { + CuratedPlugin *CuratedPluginSearchResult `protobuf:"bytes,7,opt,name=curated_plugin,json=curatedPlugin,proto3,oneof"` +} + +type searchResult_ModuleElement struct { + ModuleElement *ModuleElementSearchResult `protobuf:"bytes,8,opt,name=module_element,json=moduleElement,proto3,oneof"` +} + +type searchResult_ModuleFile struct { + ModuleFile *ModuleFileSearchResult `protobuf:"bytes,9,opt,name=module_file,json=moduleFile,proto3,oneof"` +} + +func (*searchResult_Repository) isSearchResult_Item() {} + +func (*searchResult_Organization) isSearchResult_Item() {} + +func (*searchResult_User) isSearchResult_Item() {} + +func (*searchResult_Team) isSearchResult_Item() {} + +func (*searchResult_CuratedPlugin) isSearchResult_Item() {} + +func (*searchResult_ModuleElement) isSearchResult_Item() {} + +func (*searchResult_ModuleFile) isSearchResult_Item() {} + +type ElementSearchResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,2,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,3,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_ProtoFilePath string `protobuf:"bytes,4,opt,name=proto_file_path,json=protoFilePath,proto3" json:"proto_file_path,omitempty"` + xxx_hidden_FullyQualifiedName string `protobuf:"bytes,5,opt,name=fully_qualified_name,json=fullyQualifiedName,proto3" json:"fully_qualified_name,omitempty"` + xxx_hidden_Document isElementSearchResult_Document `protobuf_oneof:"document"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ElementSearchResult) Reset() { + *x = ElementSearchResult{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ElementSearchResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ElementSearchResult) ProtoMessage() {} + +func (x *ElementSearchResult) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ElementSearchResult) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *ElementSearchResult) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *ElementSearchResult) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *ElementSearchResult) GetProtoFilePath() string { + if x != nil { + return x.xxx_hidden_ProtoFilePath + } + return "" +} + +func (x *ElementSearchResult) GetFullyQualifiedName() string { + if x != nil { + return x.xxx_hidden_FullyQualifiedName + } + return "" +} + +func (x *ElementSearchResult) GetService() *Service { + if x != nil { + if x, ok := x.xxx_hidden_Document.(*elementSearchResult_Service); ok { + return x.Service + } + } + return nil +} + +func (x *ElementSearchResult) GetMethod() *Method { + if x != nil { + if x, ok := x.xxx_hidden_Document.(*elementSearchResult_Method); ok { + return x.Method + } + } + return nil +} + +func (x *ElementSearchResult) GetEnum() *Enum { + if x != nil { + if x, ok := x.xxx_hidden_Document.(*elementSearchResult_Enum); ok { + return x.Enum + } + } + return nil +} + +func (x *ElementSearchResult) GetMessage() *Message { + if x != nil { + if x, ok := x.xxx_hidden_Document.(*elementSearchResult_Message); ok { + return x.Message + } + } + return nil +} + +func (x *ElementSearchResult) GetFileExtension() *FileExtension { + if x != nil { + if x, ok := x.xxx_hidden_Document.(*elementSearchResult_FileExtension); ok { + return x.FileExtension + } + } + return nil +} + +func (x *ElementSearchResult) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *ElementSearchResult) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *ElementSearchResult) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *ElementSearchResult) SetProtoFilePath(v string) { + x.xxx_hidden_ProtoFilePath = v +} + +func (x *ElementSearchResult) SetFullyQualifiedName(v string) { + x.xxx_hidden_FullyQualifiedName = v +} + +func (x *ElementSearchResult) SetService(v *Service) { + if v == nil { + x.xxx_hidden_Document = nil + return + } + x.xxx_hidden_Document = &elementSearchResult_Service{v} +} + +func (x *ElementSearchResult) SetMethod(v *Method) { + if v == nil { + x.xxx_hidden_Document = nil + return + } + x.xxx_hidden_Document = &elementSearchResult_Method{v} +} + +func (x *ElementSearchResult) SetEnum(v *Enum) { + if v == nil { + x.xxx_hidden_Document = nil + return + } + x.xxx_hidden_Document = &elementSearchResult_Enum{v} +} + +func (x *ElementSearchResult) SetMessage(v *Message) { + if v == nil { + x.xxx_hidden_Document = nil + return + } + x.xxx_hidden_Document = &elementSearchResult_Message{v} +} + +func (x *ElementSearchResult) SetFileExtension(v *FileExtension) { + if v == nil { + x.xxx_hidden_Document = nil + return + } + x.xxx_hidden_Document = &elementSearchResult_FileExtension{v} +} + +func (x *ElementSearchResult) HasDocument() bool { + if x == nil { + return false + } + return x.xxx_hidden_Document != nil +} + +func (x *ElementSearchResult) HasService() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Document.(*elementSearchResult_Service) + return ok +} + +func (x *ElementSearchResult) HasMethod() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Document.(*elementSearchResult_Method) + return ok +} + +func (x *ElementSearchResult) HasEnum() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Document.(*elementSearchResult_Enum) + return ok +} + +func (x *ElementSearchResult) HasMessage() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Document.(*elementSearchResult_Message) + return ok +} + +func (x *ElementSearchResult) HasFileExtension() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Document.(*elementSearchResult_FileExtension) + return ok +} + +func (x *ElementSearchResult) ClearDocument() { + x.xxx_hidden_Document = nil +} + +func (x *ElementSearchResult) ClearService() { + if _, ok := x.xxx_hidden_Document.(*elementSearchResult_Service); ok { + x.xxx_hidden_Document = nil + } +} + +func (x *ElementSearchResult) ClearMethod() { + if _, ok := x.xxx_hidden_Document.(*elementSearchResult_Method); ok { + x.xxx_hidden_Document = nil + } +} + +func (x *ElementSearchResult) ClearEnum() { + if _, ok := x.xxx_hidden_Document.(*elementSearchResult_Enum); ok { + x.xxx_hidden_Document = nil + } +} + +func (x *ElementSearchResult) ClearMessage() { + if _, ok := x.xxx_hidden_Document.(*elementSearchResult_Message); ok { + x.xxx_hidden_Document = nil + } +} + +func (x *ElementSearchResult) ClearFileExtension() { + if _, ok := x.xxx_hidden_Document.(*elementSearchResult_FileExtension); ok { + x.xxx_hidden_Document = nil + } +} + +const ElementSearchResult_Document_not_set_case case_ElementSearchResult_Document = 0 +const ElementSearchResult_Service_case case_ElementSearchResult_Document = 6 +const ElementSearchResult_Method_case case_ElementSearchResult_Document = 7 +const ElementSearchResult_Enum_case case_ElementSearchResult_Document = 8 +const ElementSearchResult_Message_case case_ElementSearchResult_Document = 9 +const ElementSearchResult_FileExtension_case case_ElementSearchResult_Document = 10 + +func (x *ElementSearchResult) WhichDocument() case_ElementSearchResult_Document { + if x == nil { + return ElementSearchResult_Document_not_set_case + } + switch x.xxx_hidden_Document.(type) { + case *elementSearchResult_Service: + return ElementSearchResult_Service_case + case *elementSearchResult_Method: + return ElementSearchResult_Method_case + case *elementSearchResult_Enum: + return ElementSearchResult_Enum_case + case *elementSearchResult_Message: + return ElementSearchResult_Message_case + case *elementSearchResult_FileExtension: + return ElementSearchResult_FileExtension_case + default: + return ElementSearchResult_Document_not_set_case + } +} + +type ElementSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryId string + RepositoryOwner string + RepositoryName string + ProtoFilePath string + FullyQualifiedName string + // Fields of oneof xxx_hidden_Document: + Service *Service + Method *Method + Enum *Enum + Message *Message + FileExtension *FileExtension + // -- end of xxx_hidden_Document +} + +func (b0 ElementSearchResult_builder) Build() *ElementSearchResult { + m0 := &ElementSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_ProtoFilePath = b.ProtoFilePath + x.xxx_hidden_FullyQualifiedName = b.FullyQualifiedName + if b.Service != nil { + x.xxx_hidden_Document = &elementSearchResult_Service{b.Service} + } + if b.Method != nil { + x.xxx_hidden_Document = &elementSearchResult_Method{b.Method} + } + if b.Enum != nil { + x.xxx_hidden_Document = &elementSearchResult_Enum{b.Enum} + } + if b.Message != nil { + x.xxx_hidden_Document = &elementSearchResult_Message{b.Message} + } + if b.FileExtension != nil { + x.xxx_hidden_Document = &elementSearchResult_FileExtension{b.FileExtension} + } + return m0 +} + +type case_ElementSearchResult_Document protoreflect.FieldNumber + +func (x case_ElementSearchResult_Document) String() string { + md := file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[8].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isElementSearchResult_Document interface { + isElementSearchResult_Document() +} + +type elementSearchResult_Service struct { + Service *Service `protobuf:"bytes,6,opt,name=service,proto3,oneof"` +} + +type elementSearchResult_Method struct { + Method *Method `protobuf:"bytes,7,opt,name=method,proto3,oneof"` +} + +type elementSearchResult_Enum struct { + Enum *Enum `protobuf:"bytes,8,opt,name=enum,proto3,oneof"` +} + +type elementSearchResult_Message struct { + Message *Message `protobuf:"bytes,9,opt,name=message,proto3,oneof"` +} + +type elementSearchResult_FileExtension struct { + FileExtension *FileExtension `protobuf:"bytes,10,opt,name=file_extension,json=fileExtension,proto3,oneof"` +} + +func (*elementSearchResult_Service) isElementSearchResult_Document() {} + +func (*elementSearchResult_Method) isElementSearchResult_Document() {} + +func (*elementSearchResult_Enum) isElementSearchResult_Document() {} + +func (*elementSearchResult_Message) isElementSearchResult_Document() {} + +func (*elementSearchResult_FileExtension) isElementSearchResult_Document() {} + +type FileSearchResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryId string `protobuf:"bytes,1,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,2,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,3,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_ProtoFilePath string `protobuf:"bytes,4,opt,name=proto_file_path,json=protoFilePath,proto3" json:"proto_file_path,omitempty"` + xxx_hidden_Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FileSearchResult) Reset() { + *x = FileSearchResult{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FileSearchResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileSearchResult) ProtoMessage() {} + +func (x *FileSearchResult) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *FileSearchResult) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *FileSearchResult) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *FileSearchResult) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *FileSearchResult) GetProtoFilePath() string { + if x != nil { + return x.xxx_hidden_ProtoFilePath + } + return "" +} + +func (x *FileSearchResult) GetContent() []byte { + if x != nil { + return x.xxx_hidden_Content + } + return nil +} + +func (x *FileSearchResult) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *FileSearchResult) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *FileSearchResult) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *FileSearchResult) SetProtoFilePath(v string) { + x.xxx_hidden_ProtoFilePath = v +} + +func (x *FileSearchResult) SetContent(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Content = v +} + +type FileSearchResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryId string + RepositoryOwner string + RepositoryName string + ProtoFilePath string + Content []byte +} + +func (b0 FileSearchResult_builder) Build() *FileSearchResult { + m0 := &FileSearchResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_ProtoFilePath = b.ProtoFilePath + x.xxx_hidden_Content = b.Content + return m0 +} + +type SearchModuleContentResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Item isSearchModuleContentResult_Item `protobuf_oneof:"item"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchModuleContentResult) Reset() { + *x = SearchModuleContentResult{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchModuleContentResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchModuleContentResult) ProtoMessage() {} + +func (x *SearchModuleContentResult) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SearchModuleContentResult) GetElement() *ElementSearchResult { + if x != nil { + if x, ok := x.xxx_hidden_Item.(*searchModuleContentResult_Element); ok { + return x.Element + } + } + return nil +} + +func (x *SearchModuleContentResult) GetFile() *FileSearchResult { + if x != nil { + if x, ok := x.xxx_hidden_Item.(*searchModuleContentResult_File); ok { + return x.File + } + } + return nil +} + +func (x *SearchModuleContentResult) SetElement(v *ElementSearchResult) { + if v == nil { + x.xxx_hidden_Item = nil + return + } + x.xxx_hidden_Item = &searchModuleContentResult_Element{v} +} + +func (x *SearchModuleContentResult) SetFile(v *FileSearchResult) { + if v == nil { + x.xxx_hidden_Item = nil + return + } + x.xxx_hidden_Item = &searchModuleContentResult_File{v} +} + +func (x *SearchModuleContentResult) HasItem() bool { + if x == nil { + return false + } + return x.xxx_hidden_Item != nil +} + +func (x *SearchModuleContentResult) HasElement() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Item.(*searchModuleContentResult_Element) + return ok +} + +func (x *SearchModuleContentResult) HasFile() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Item.(*searchModuleContentResult_File) + return ok +} + +func (x *SearchModuleContentResult) ClearItem() { + x.xxx_hidden_Item = nil +} + +func (x *SearchModuleContentResult) ClearElement() { + if _, ok := x.xxx_hidden_Item.(*searchModuleContentResult_Element); ok { + x.xxx_hidden_Item = nil + } +} + +func (x *SearchModuleContentResult) ClearFile() { + if _, ok := x.xxx_hidden_Item.(*searchModuleContentResult_File); ok { + x.xxx_hidden_Item = nil + } +} + +const SearchModuleContentResult_Item_not_set_case case_SearchModuleContentResult_Item = 0 +const SearchModuleContentResult_Element_case case_SearchModuleContentResult_Item = 1 +const SearchModuleContentResult_File_case case_SearchModuleContentResult_Item = 2 + +func (x *SearchModuleContentResult) WhichItem() case_SearchModuleContentResult_Item { + if x == nil { + return SearchModuleContentResult_Item_not_set_case + } + switch x.xxx_hidden_Item.(type) { + case *searchModuleContentResult_Element: + return SearchModuleContentResult_Element_case + case *searchModuleContentResult_File: + return SearchModuleContentResult_File_case + default: + return SearchModuleContentResult_Item_not_set_case + } +} + +type SearchModuleContentResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Item: + Element *ElementSearchResult + File *FileSearchResult + // -- end of xxx_hidden_Item +} + +func (b0 SearchModuleContentResult_builder) Build() *SearchModuleContentResult { + m0 := &SearchModuleContentResult{} + b, x := &b0, m0 + _, _ = b, x + if b.Element != nil { + x.xxx_hidden_Item = &searchModuleContentResult_Element{b.Element} + } + if b.File != nil { + x.xxx_hidden_Item = &searchModuleContentResult_File{b.File} + } + return m0 +} + +type case_SearchModuleContentResult_Item protoreflect.FieldNumber + +func (x case_SearchModuleContentResult_Item) String() string { + md := file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[10].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isSearchModuleContentResult_Item interface { + isSearchModuleContentResult_Item() +} + +type searchModuleContentResult_Element struct { + Element *ElementSearchResult `protobuf:"bytes,1,opt,name=element,proto3,oneof"` +} + +type searchModuleContentResult_File struct { + File *FileSearchResult `protobuf:"bytes,2,opt,name=file,proto3,oneof"` +} + +func (*searchModuleContentResult_Element) isSearchModuleContentResult_Item() {} + +func (*searchModuleContentResult_File) isSearchModuleContentResult_Item() {} + +type SearchRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken uint32 `protobuf:"varint,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Filters []SearchFilter `protobuf:"varint,4,rep,packed,name=filters,proto3,enum=buf.alpha.registry.v1alpha1.SearchFilter" json:"filters,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchRequest) Reset() { + *x = SearchRequest{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchRequest) ProtoMessage() {} + +func (x *SearchRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SearchRequest) GetQuery() string { + if x != nil { + return x.xxx_hidden_Query + } + return "" +} + +func (x *SearchRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *SearchRequest) GetPageToken() uint32 { + if x != nil { + return x.xxx_hidden_PageToken + } + return 0 +} + +func (x *SearchRequest) GetFilters() []SearchFilter { + if x != nil { + return x.xxx_hidden_Filters + } + return nil +} + +func (x *SearchRequest) SetQuery(v string) { + x.xxx_hidden_Query = v +} + +func (x *SearchRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *SearchRequest) SetPageToken(v uint32) { + x.xxx_hidden_PageToken = v +} + +func (x *SearchRequest) SetFilters(v []SearchFilter) { + x.xxx_hidden_Filters = v +} + +type SearchRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The search string. + Query string + PageSize uint32 + // The first page is returned if this is 0. + PageToken uint32 + // Empty list means show all. Supplying one or more enums will + // limit the search to only the requested resources. + // Supplying all possible enums is equivalent to empty list of filters. + Filters []SearchFilter +} + +func (b0 SearchRequest_builder) Build() *SearchRequest { + m0 := &SearchRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Query = b.Query + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Filters = b.Filters + return m0 +} + +type SearchResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SearchResults *[]*SearchResult `protobuf:"bytes,1,rep,name=search_results,json=searchResults,proto3" json:"search_results,omitempty"` + xxx_hidden_NextPageToken uint32 `protobuf:"varint,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchResponse) Reset() { + *x = SearchResponse{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchResponse) ProtoMessage() {} + +func (x *SearchResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SearchResponse) GetSearchResults() []*SearchResult { + if x != nil { + if x.xxx_hidden_SearchResults != nil { + return *x.xxx_hidden_SearchResults + } + } + return nil +} + +func (x *SearchResponse) GetNextPageToken() uint32 { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return 0 +} + +func (x *SearchResponse) SetSearchResults(v []*SearchResult) { + x.xxx_hidden_SearchResults = &v +} + +func (x *SearchResponse) SetNextPageToken(v uint32) { + x.xxx_hidden_NextPageToken = v +} + +type SearchResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SearchResults []*SearchResult + // There are no more pages if this is 0. + NextPageToken uint32 +} + +func (b0 SearchResponse_builder) Build() *SearchResponse { + m0 := &SearchResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SearchResults = &b.SearchResults + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type SearchTagRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_OrderBy OrderBy `protobuf:"varint,6,opt,name=order_by,json=orderBy,proto3,enum=buf.alpha.registry.v1alpha1.OrderBy" json:"order_by,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,7,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchTagRequest) Reset() { + *x = SearchTagRequest{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchTagRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchTagRequest) ProtoMessage() {} + +func (x *SearchTagRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SearchTagRequest) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *SearchTagRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *SearchTagRequest) GetQuery() string { + if x != nil { + return x.xxx_hidden_Query + } + return "" +} + +func (x *SearchTagRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *SearchTagRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *SearchTagRequest) GetOrderBy() OrderBy { + if x != nil { + return x.xxx_hidden_OrderBy + } + return OrderBy_ORDER_BY_UNSPECIFIED +} + +func (x *SearchTagRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *SearchTagRequest) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *SearchTagRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *SearchTagRequest) SetQuery(v string) { + x.xxx_hidden_Query = v +} + +func (x *SearchTagRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *SearchTagRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *SearchTagRequest) SetOrderBy(v OrderBy) { + x.xxx_hidden_OrderBy = v +} + +func (x *SearchTagRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type SearchTagRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository. + RepositoryOwner string + // The name of the repository. + RepositoryName string + // The search string. + Query string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + // The field to order results by. + OrderBy OrderBy + // Reverse orders results in descending order. + Reverse bool +} + +func (b0 SearchTagRequest_builder) Build() *SearchTagRequest { + m0 := &SearchTagRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_Query = b.Query + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_OrderBy = b.OrderBy + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type SearchTagResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryTags *[]*RepositoryTag `protobuf:"bytes,1,rep,name=repository_tags,json=repositoryTags,proto3" json:"repository_tags,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchTagResponse) Reset() { + *x = SearchTagResponse{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchTagResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchTagResponse) ProtoMessage() {} + +func (x *SearchTagResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SearchTagResponse) GetRepositoryTags() []*RepositoryTag { + if x != nil { + if x.xxx_hidden_RepositoryTags != nil { + return *x.xxx_hidden_RepositoryTags + } + } + return nil +} + +func (x *SearchTagResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *SearchTagResponse) SetRepositoryTags(v []*RepositoryTag) { + x.xxx_hidden_RepositoryTags = &v +} + +func (x *SearchTagResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type SearchTagResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryTags []*RepositoryTag + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 SearchTagResponse_builder) Build() *SearchTagResponse { + m0 := &SearchTagResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryTags = &b.RepositoryTags + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type SearchDraftRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_OrderBy OrderBy `protobuf:"varint,6,opt,name=order_by,json=orderBy,proto3,enum=buf.alpha.registry.v1alpha1.OrderBy" json:"order_by,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,7,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchDraftRequest) Reset() { + *x = SearchDraftRequest{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchDraftRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchDraftRequest) ProtoMessage() {} + +func (x *SearchDraftRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SearchDraftRequest) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *SearchDraftRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *SearchDraftRequest) GetQuery() string { + if x != nil { + return x.xxx_hidden_Query + } + return "" +} + +func (x *SearchDraftRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *SearchDraftRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *SearchDraftRequest) GetOrderBy() OrderBy { + if x != nil { + return x.xxx_hidden_OrderBy + } + return OrderBy_ORDER_BY_UNSPECIFIED +} + +func (x *SearchDraftRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *SearchDraftRequest) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *SearchDraftRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *SearchDraftRequest) SetQuery(v string) { + x.xxx_hidden_Query = v +} + +func (x *SearchDraftRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *SearchDraftRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *SearchDraftRequest) SetOrderBy(v OrderBy) { + x.xxx_hidden_OrderBy = v +} + +func (x *SearchDraftRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type SearchDraftRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The owner of the repository. + RepositoryOwner string + // The name of the repository. + RepositoryName string + // The search string. + Query string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + // The field to order results by. + OrderBy OrderBy + // Reverse orders results in descending order. + Reverse bool +} + +func (b0 SearchDraftRequest_builder) Build() *SearchDraftRequest { + m0 := &SearchDraftRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_Query = b.Query + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_OrderBy = b.OrderBy + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type SearchDraftResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryCommits *[]*RepositoryCommit `protobuf:"bytes,1,rep,name=repository_commits,json=repositoryCommits,proto3" json:"repository_commits,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchDraftResponse) Reset() { + *x = SearchDraftResponse{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchDraftResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchDraftResponse) ProtoMessage() {} + +func (x *SearchDraftResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SearchDraftResponse) GetRepositoryCommits() []*RepositoryCommit { + if x != nil { + if x.xxx_hidden_RepositoryCommits != nil { + return *x.xxx_hidden_RepositoryCommits + } + } + return nil +} + +func (x *SearchDraftResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *SearchDraftResponse) SetRepositoryCommits(v []*RepositoryCommit) { + x.xxx_hidden_RepositoryCommits = &v +} + +func (x *SearchDraftResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type SearchDraftResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RepositoryCommits []*RepositoryCommit + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 SearchDraftResponse_builder) Build() *SearchDraftResponse { + m0 := &SearchDraftResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryCommits = &b.RepositoryCommits + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type SearchModuleContentRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken uint32 `protobuf:"varint,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Filters []SearchModuleContentFilter `protobuf:"varint,4,rep,packed,name=filters,proto3,enum=buf.alpha.registry.v1alpha1.SearchModuleContentFilter" json:"filters,omitempty"` + xxx_hidden_RepositoryFullName string `protobuf:"bytes,5,opt,name=repository_full_name,json=repositoryFullName,proto3" json:"repository_full_name,omitempty"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,6,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchModuleContentRequest) Reset() { + *x = SearchModuleContentRequest{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchModuleContentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchModuleContentRequest) ProtoMessage() {} + +func (x *SearchModuleContentRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SearchModuleContentRequest) GetQuery() string { + if x != nil { + return x.xxx_hidden_Query + } + return "" +} + +func (x *SearchModuleContentRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *SearchModuleContentRequest) GetPageToken() uint32 { + if x != nil { + return x.xxx_hidden_PageToken + } + return 0 +} + +func (x *SearchModuleContentRequest) GetFilters() []SearchModuleContentFilter { + if x != nil { + return x.xxx_hidden_Filters + } + return nil +} + +func (x *SearchModuleContentRequest) GetRepositoryFullName() string { + if x != nil { + return x.xxx_hidden_RepositoryFullName + } + return "" +} + +func (x *SearchModuleContentRequest) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *SearchModuleContentRequest) SetQuery(v string) { + x.xxx_hidden_Query = v +} + +func (x *SearchModuleContentRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *SearchModuleContentRequest) SetPageToken(v uint32) { + x.xxx_hidden_PageToken = v +} + +func (x *SearchModuleContentRequest) SetFilters(v []SearchModuleContentFilter) { + x.xxx_hidden_Filters = v +} + +func (x *SearchModuleContentRequest) SetRepositoryFullName(v string) { + x.xxx_hidden_RepositoryFullName = v +} + +func (x *SearchModuleContentRequest) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +type SearchModuleContentRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The search string. + Query string + PageSize uint32 + // The first page is returned if this is 0. + PageToken uint32 + // Empty list means show all. Supplying one or more enums will + // limit the search to only the requested resources. + // Supplying all possible enums is equivalent to empty list of filters. + Filters []SearchModuleContentFilter + // Optional, if provided the search results will be limited to the provided repository. + RepositoryFullName string + // Optional, if provided the search results will be limited to the provided owner, + // ignored if repository_full_name is provided. + RepositoryOwner string +} + +func (b0 SearchModuleContentRequest_builder) Build() *SearchModuleContentRequest { + m0 := &SearchModuleContentRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Query = b.Query + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Filters = b.Filters + x.xxx_hidden_RepositoryFullName = b.RepositoryFullName + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + return m0 +} + +type SearchModuleContentResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SearchResults *[]*SearchModuleContentResult `protobuf:"bytes,1,rep,name=search_results,json=searchResults,proto3" json:"search_results,omitempty"` + xxx_hidden_NextPageToken uint32 `protobuf:"varint,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchModuleContentResponse) Reset() { + *x = SearchModuleContentResponse{} + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchModuleContentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchModuleContentResponse) ProtoMessage() {} + +func (x *SearchModuleContentResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SearchModuleContentResponse) GetSearchResults() []*SearchModuleContentResult { + if x != nil { + if x.xxx_hidden_SearchResults != nil { + return *x.xxx_hidden_SearchResults + } + } + return nil +} + +func (x *SearchModuleContentResponse) GetNextPageToken() uint32 { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return 0 +} + +func (x *SearchModuleContentResponse) SetSearchResults(v []*SearchModuleContentResult) { + x.xxx_hidden_SearchResults = &v +} + +func (x *SearchModuleContentResponse) SetNextPageToken(v uint32) { + x.xxx_hidden_NextPageToken = v +} + +type SearchModuleContentResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SearchResults []*SearchModuleContentResult + // There are no more pages if this is 0. + NextPageToken uint32 +} + +func (b0 SearchModuleContentResponse_builder) Build() *SearchModuleContentResponse { + m0 := &SearchModuleContentResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SearchResults = &b.SearchResults + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +var File_buf_alpha_registry_v1alpha1_search_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_search_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x73, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x25, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2f, 0x64, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x31, + 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x5f, 0x63, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x2c, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x33, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x74, 0x61, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x35, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, + 0x03, 0x0a, 0x16, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 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, 0x14, 0x0a, + 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x52, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1e, 0x0a, 0x0a, + 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x33, 0x0a, 0x16, + 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x70, 0x64, 0x78, 0x5f, 0x6c, 0x69, 0x63, 0x65, + 0x6e, 0x73, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6c, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x53, 0x70, 0x64, 0x78, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x49, + 0x64, 0x12, 0x6b, 0x0a, 0x19, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x17, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, + 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, + 0x12, 0x48, 0x0a, 0x12, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x10, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x7b, 0x0a, 0x18, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 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, 0x3b, 0x0a, 0x0b, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, + 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, + 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x63, 0x0a, 0x10, 0x54, 0x65, 0x61, 0x6d, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 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, + 0x2b, 0x0a, 0x11, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x82, 0x03, 0x0a, + 0x19, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x53, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 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, 0x14, + 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x54, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x56, 0x0a, 0x10, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x73, + 0x18, 0x07, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4c, 0x61, 0x6e, 0x67, 0x75, + 0x61, 0x67, 0x65, 0x52, 0x0f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, + 0x61, 0x67, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, + 0x65, 0x22, 0x84, 0x03, 0x0a, 0x19, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x45, 0x6c, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, + 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, + 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x30, 0x0a, 0x14, 0x66, 0x75, 0x6c, 0x6c, 0x79, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, + 0x66, 0x75, 0x6c, 0x6c, 0x79, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x71, 0x0a, 0x1a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x17, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x45, 0x6c, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0xb9, 0x01, 0x0a, 0x16, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65, + 0x50, 0x61, 0x74, 0x68, 0x22, 0x8c, 0x05, 0x0a, 0x0c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x55, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, + 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x5b, 0x0a, 0x0c, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, 0x04, 0x75, 0x73, 0x65, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x43, + 0x0a, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x61, 0x6d, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x04, 0x74, + 0x65, 0x61, 0x6d, 0x12, 0x5f, 0x0a, 0x0e, 0x63, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x61, 0x74, 0x65, + 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x63, 0x75, 0x72, 0x61, 0x74, 0x65, 0x64, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x12, 0x5f, 0x0a, 0x0e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x65, + 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x45, 0x6c, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x56, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x66, 0x69, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x46, + 0x69, 0x6c, 0x65, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, + 0x00, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x42, 0x06, 0x0a, + 0x04, 0x69, 0x74, 0x65, 0x6d, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x4a, 0x04, 0x08, 0x06, 0x10, + 0x07, 0x52, 0x06, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x22, 0xc5, 0x04, 0x0a, 0x13, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, + 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x66, 0x69, + 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x30, 0x0a, 0x14, + 0x66, 0x75, 0x6c, 0x6c, 0x79, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x66, 0x75, 0x6c, 0x6c, + 0x79, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x40, + 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x00, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x3d, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x23, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x48, 0x00, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, + 0x37, 0x0a, 0x04, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x6e, 0x75, 0x6d, + 0x48, 0x00, 0x52, 0x04, 0x65, 0x6e, 0x75, 0x6d, 0x12, 0x40, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, + 0x00, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x53, 0x0a, 0x0e, 0x66, 0x69, + 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, + 0x52, 0x0d, 0x66, 0x69, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x42, + 0x0a, 0x0a, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xcd, 0x01, 0x0a, 0x10, + 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, + 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, + 0x68, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0xb6, 0x01, 0x0a, 0x19, + 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x4c, 0x0a, 0x07, 0x65, 0x6c, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x07, + 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x43, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, + 0x69, 0x74, 0x65, 0x6d, 0x22, 0xa6, 0x01, 0x0a, 0x0d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x43, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x22, 0x8a, 0x01, + 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x50, 0x0a, 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x52, 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x6e, 0x65, 0x78, + 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x93, 0x02, 0x0a, 0x10, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, + 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x3f, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, + 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x52, 0x07, 0x6f, + 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, + 0x22, 0x90, 0x01, 0x0a, 0x11, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x54, 0x61, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x52, 0x0e, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, + 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x95, 0x02, 0x0a, 0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x72, + 0x61, 0x66, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, + 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x12, 0x3f, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, + 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x13, + 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x72, 0x61, 0x66, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x11, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, + 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9d, 0x02, 0x0a, 0x1a, 0x53, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1b, + 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x50, 0x0a, 0x07, 0x66, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x30, 0x0a, 0x14, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, + 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0xa4, 0x01, 0x0a, 0x1b, 0x53, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x0e, 0x73, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, + 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, + 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x2a, 0xb8, 0x02, 0x0a, 0x0c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x46, 0x49, 0x4c, 0x54, + 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x16, 0x0a, 0x12, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, + 0x52, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x45, 0x41, 0x52, + 0x43, 0x48, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, + 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x45, 0x41, 0x52, + 0x43, 0x48, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, + 0x54, 0x4f, 0x52, 0x59, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, + 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x45, 0x41, 0x4d, 0x10, 0x06, 0x12, 0x20, + 0x0a, 0x1c, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, + 0x43, 0x55, 0x52, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x10, 0x07, + 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, + 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x45, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, + 0x10, 0x08, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x46, 0x49, 0x4c, + 0x54, 0x45, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, + 0x09, 0x22, 0x04, 0x08, 0x04, 0x10, 0x04, 0x22, 0x04, 0x08, 0x05, 0x10, 0x05, 0x2a, 0x14, 0x53, + 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x50, 0x4c, 0x55, + 0x47, 0x49, 0x4e, 0x2a, 0x16, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x46, 0x49, 0x4c, 0x54, + 0x45, 0x52, 0x5f, 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, 0x45, 0x2a, 0x6a, 0x0a, 0x07, 0x4f, + 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, + 0x42, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x42, 0x59, 0x5f, 0x43, 0x52, 0x45, + 0x41, 0x54, 0x45, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x52, + 0x44, 0x45, 0x52, 0x5f, 0x42, 0x59, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x54, 0x49, + 0x4d, 0x45, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x42, 0x59, + 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x03, 0x2a, 0xe1, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x61, 0x72, + 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x26, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x4d, 0x4f, + 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x45, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x26, 0x0a, 0x22, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x4d, 0x4f, 0x44, 0x55, 0x4c, 0x45, + 0x5f, 0x45, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, + 0x52, 0x56, 0x49, 0x43, 0x45, 0x10, 0x01, 0x12, 0x25, 0x0a, 0x21, 0x53, 0x45, 0x41, 0x52, 0x43, + 0x48, 0x5f, 0x4d, 0x4f, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x45, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x10, 0x02, 0x12, 0x26, + 0x0a, 0x22, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x4d, 0x4f, 0x44, 0x55, 0x4c, 0x45, 0x5f, + 0x45, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x53, + 0x53, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, 0x23, 0x0a, 0x1f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, + 0x5f, 0x4d, 0x4f, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x45, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x10, 0x04, 0x2a, 0x9a, 0x01, 0x0a, 0x19, + 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x28, 0x53, 0x45, 0x41, + 0x52, 0x43, 0x48, 0x5f, 0x4d, 0x4f, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, + 0x4e, 0x54, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x28, 0x0a, 0x24, 0x53, 0x45, 0x41, 0x52, 0x43, + 0x48, 0x5f, 0x4d, 0x4f, 0x44, 0x55, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, + 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x5f, 0x45, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, + 0x01, 0x12, 0x25, 0x0a, 0x21, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x4d, 0x4f, 0x44, 0x55, + 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, + 0x52, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x02, 0x32, 0xef, 0x03, 0x0a, 0x0d, 0x53, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x66, 0x0a, 0x06, 0x53, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x12, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, + 0x02, 0x01, 0x12, 0x6f, 0x0a, 0x09, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x54, 0x61, 0x67, 0x12, + 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x54, 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, + 0x90, 0x02, 0x01, 0x12, 0x75, 0x0a, 0x0b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x72, 0x61, + 0x66, 0x74, 0x12, 0x2f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x72, 0x61, 0x66, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x72, 0x61, 0x66, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x12, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, 0x98, 0x02, 0x0a, 0x1f, 0x63, + 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0b, + 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, + 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, + 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, + 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_search_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_buf_alpha_registry_v1alpha1_search_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_buf_alpha_registry_v1alpha1_search_proto_goTypes = []any{ + (SearchFilter)(0), // 0: buf.alpha.registry.v1alpha1.SearchFilter + (OrderBy)(0), // 1: buf.alpha.registry.v1alpha1.OrderBy + (SearchModuleElementType)(0), // 2: buf.alpha.registry.v1alpha1.SearchModuleElementType + (SearchModuleContentFilter)(0), // 3: buf.alpha.registry.v1alpha1.SearchModuleContentFilter + (*RepositorySearchResult)(nil), // 4: buf.alpha.registry.v1alpha1.RepositorySearchResult + (*OrganizationSearchResult)(nil), // 5: buf.alpha.registry.v1alpha1.OrganizationSearchResult + (*UserSearchResult)(nil), // 6: buf.alpha.registry.v1alpha1.UserSearchResult + (*TeamSearchResult)(nil), // 7: buf.alpha.registry.v1alpha1.TeamSearchResult + (*CuratedPluginSearchResult)(nil), // 8: buf.alpha.registry.v1alpha1.CuratedPluginSearchResult + (*ModuleElementSearchResult)(nil), // 9: buf.alpha.registry.v1alpha1.ModuleElementSearchResult + (*ModuleFileSearchResult)(nil), // 10: buf.alpha.registry.v1alpha1.ModuleFileSearchResult + (*SearchResult)(nil), // 11: buf.alpha.registry.v1alpha1.SearchResult + (*ElementSearchResult)(nil), // 12: buf.alpha.registry.v1alpha1.ElementSearchResult + (*FileSearchResult)(nil), // 13: buf.alpha.registry.v1alpha1.FileSearchResult + (*SearchModuleContentResult)(nil), // 14: buf.alpha.registry.v1alpha1.SearchModuleContentResult + (*SearchRequest)(nil), // 15: buf.alpha.registry.v1alpha1.SearchRequest + (*SearchResponse)(nil), // 16: buf.alpha.registry.v1alpha1.SearchResponse + (*SearchTagRequest)(nil), // 17: buf.alpha.registry.v1alpha1.SearchTagRequest + (*SearchTagResponse)(nil), // 18: buf.alpha.registry.v1alpha1.SearchTagResponse + (*SearchDraftRequest)(nil), // 19: buf.alpha.registry.v1alpha1.SearchDraftRequest + (*SearchDraftResponse)(nil), // 20: buf.alpha.registry.v1alpha1.SearchDraftResponse + (*SearchModuleContentRequest)(nil), // 21: buf.alpha.registry.v1alpha1.SearchModuleContentRequest + (*SearchModuleContentResponse)(nil), // 22: buf.alpha.registry.v1alpha1.SearchModuleContentResponse + (Visibility)(0), // 23: buf.alpha.registry.v1alpha1.Visibility + (VerificationStatus)(0), // 24: buf.alpha.registry.v1alpha1.VerificationStatus + (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp + (PluginRegistryType)(0), // 26: buf.alpha.registry.v1alpha1.PluginRegistryType + (PluginLanguage)(0), // 27: buf.alpha.registry.v1alpha1.PluginLanguage + (*Service)(nil), // 28: buf.alpha.registry.v1alpha1.Service + (*Method)(nil), // 29: buf.alpha.registry.v1alpha1.Method + (*Enum)(nil), // 30: buf.alpha.registry.v1alpha1.Enum + (*Message)(nil), // 31: buf.alpha.registry.v1alpha1.Message + (*FileExtension)(nil), // 32: buf.alpha.registry.v1alpha1.FileExtension + (*RepositoryTag)(nil), // 33: buf.alpha.registry.v1alpha1.RepositoryTag + (*RepositoryCommit)(nil), // 34: buf.alpha.registry.v1alpha1.RepositoryCommit +} +var file_buf_alpha_registry_v1alpha1_search_proto_depIdxs = []int32{ + 23, // 0: buf.alpha.registry.v1alpha1.RepositorySearchResult.visibility:type_name -> buf.alpha.registry.v1alpha1.Visibility + 24, // 1: buf.alpha.registry.v1alpha1.RepositorySearchResult.owner_verification_status:type_name -> buf.alpha.registry.v1alpha1.VerificationStatus + 25, // 2: buf.alpha.registry.v1alpha1.RepositorySearchResult.latest_commit_time:type_name -> google.protobuf.Timestamp + 25, // 3: buf.alpha.registry.v1alpha1.OrganizationSearchResult.create_time:type_name -> google.protobuf.Timestamp + 25, // 4: buf.alpha.registry.v1alpha1.UserSearchResult.create_time:type_name -> google.protobuf.Timestamp + 26, // 5: buf.alpha.registry.v1alpha1.CuratedPluginSearchResult.registry_type:type_name -> buf.alpha.registry.v1alpha1.PluginRegistryType + 27, // 6: buf.alpha.registry.v1alpha1.CuratedPluginSearchResult.output_languages:type_name -> buf.alpha.registry.v1alpha1.PluginLanguage + 25, // 7: buf.alpha.registry.v1alpha1.CuratedPluginSearchResult.create_time:type_name -> google.protobuf.Timestamp + 2, // 8: buf.alpha.registry.v1alpha1.ModuleElementSearchResult.search_module_element_type:type_name -> buf.alpha.registry.v1alpha1.SearchModuleElementType + 4, // 9: buf.alpha.registry.v1alpha1.SearchResult.repository:type_name -> buf.alpha.registry.v1alpha1.RepositorySearchResult + 5, // 10: buf.alpha.registry.v1alpha1.SearchResult.organization:type_name -> buf.alpha.registry.v1alpha1.OrganizationSearchResult + 6, // 11: buf.alpha.registry.v1alpha1.SearchResult.user:type_name -> buf.alpha.registry.v1alpha1.UserSearchResult + 7, // 12: buf.alpha.registry.v1alpha1.SearchResult.team:type_name -> buf.alpha.registry.v1alpha1.TeamSearchResult + 8, // 13: buf.alpha.registry.v1alpha1.SearchResult.curated_plugin:type_name -> buf.alpha.registry.v1alpha1.CuratedPluginSearchResult + 9, // 14: buf.alpha.registry.v1alpha1.SearchResult.module_element:type_name -> buf.alpha.registry.v1alpha1.ModuleElementSearchResult + 10, // 15: buf.alpha.registry.v1alpha1.SearchResult.module_file:type_name -> buf.alpha.registry.v1alpha1.ModuleFileSearchResult + 28, // 16: buf.alpha.registry.v1alpha1.ElementSearchResult.service:type_name -> buf.alpha.registry.v1alpha1.Service + 29, // 17: buf.alpha.registry.v1alpha1.ElementSearchResult.method:type_name -> buf.alpha.registry.v1alpha1.Method + 30, // 18: buf.alpha.registry.v1alpha1.ElementSearchResult.enum:type_name -> buf.alpha.registry.v1alpha1.Enum + 31, // 19: buf.alpha.registry.v1alpha1.ElementSearchResult.message:type_name -> buf.alpha.registry.v1alpha1.Message + 32, // 20: buf.alpha.registry.v1alpha1.ElementSearchResult.file_extension:type_name -> buf.alpha.registry.v1alpha1.FileExtension + 12, // 21: buf.alpha.registry.v1alpha1.SearchModuleContentResult.element:type_name -> buf.alpha.registry.v1alpha1.ElementSearchResult + 13, // 22: buf.alpha.registry.v1alpha1.SearchModuleContentResult.file:type_name -> buf.alpha.registry.v1alpha1.FileSearchResult + 0, // 23: buf.alpha.registry.v1alpha1.SearchRequest.filters:type_name -> buf.alpha.registry.v1alpha1.SearchFilter + 11, // 24: buf.alpha.registry.v1alpha1.SearchResponse.search_results:type_name -> buf.alpha.registry.v1alpha1.SearchResult + 1, // 25: buf.alpha.registry.v1alpha1.SearchTagRequest.order_by:type_name -> buf.alpha.registry.v1alpha1.OrderBy + 33, // 26: buf.alpha.registry.v1alpha1.SearchTagResponse.repository_tags:type_name -> buf.alpha.registry.v1alpha1.RepositoryTag + 1, // 27: buf.alpha.registry.v1alpha1.SearchDraftRequest.order_by:type_name -> buf.alpha.registry.v1alpha1.OrderBy + 34, // 28: buf.alpha.registry.v1alpha1.SearchDraftResponse.repository_commits:type_name -> buf.alpha.registry.v1alpha1.RepositoryCommit + 3, // 29: buf.alpha.registry.v1alpha1.SearchModuleContentRequest.filters:type_name -> buf.alpha.registry.v1alpha1.SearchModuleContentFilter + 14, // 30: buf.alpha.registry.v1alpha1.SearchModuleContentResponse.search_results:type_name -> buf.alpha.registry.v1alpha1.SearchModuleContentResult + 15, // 31: buf.alpha.registry.v1alpha1.SearchService.Search:input_type -> buf.alpha.registry.v1alpha1.SearchRequest + 17, // 32: buf.alpha.registry.v1alpha1.SearchService.SearchTag:input_type -> buf.alpha.registry.v1alpha1.SearchTagRequest + 19, // 33: buf.alpha.registry.v1alpha1.SearchService.SearchDraft:input_type -> buf.alpha.registry.v1alpha1.SearchDraftRequest + 21, // 34: buf.alpha.registry.v1alpha1.SearchService.SearchModuleContent:input_type -> buf.alpha.registry.v1alpha1.SearchModuleContentRequest + 16, // 35: buf.alpha.registry.v1alpha1.SearchService.Search:output_type -> buf.alpha.registry.v1alpha1.SearchResponse + 18, // 36: buf.alpha.registry.v1alpha1.SearchService.SearchTag:output_type -> buf.alpha.registry.v1alpha1.SearchTagResponse + 20, // 37: buf.alpha.registry.v1alpha1.SearchService.SearchDraft:output_type -> buf.alpha.registry.v1alpha1.SearchDraftResponse + 22, // 38: buf.alpha.registry.v1alpha1.SearchService.SearchModuleContent:output_type -> buf.alpha.registry.v1alpha1.SearchModuleContentResponse + 35, // [35:39] is the sub-list for method output_type + 31, // [31:35] is the sub-list for method input_type + 31, // [31:31] is the sub-list for extension type_name + 31, // [31:31] is the sub-list for extension extendee + 0, // [0:31] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_search_proto_init() } +func file_buf_alpha_registry_v1alpha1_search_proto_init() { + if File_buf_alpha_registry_v1alpha1_search_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_doc_proto_init() + file_buf_alpha_registry_v1alpha1_plugin_curation_proto_init() + file_buf_alpha_registry_v1alpha1_repository_proto_init() + file_buf_alpha_registry_v1alpha1_repository_commit_proto_init() + file_buf_alpha_registry_v1alpha1_repository_tag_proto_init() + file_buf_alpha_registry_v1alpha1_verification_status_proto_init() + file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[7].OneofWrappers = []any{ + (*searchResult_Repository)(nil), + (*searchResult_Organization)(nil), + (*searchResult_User)(nil), + (*searchResult_Team)(nil), + (*searchResult_CuratedPlugin)(nil), + (*searchResult_ModuleElement)(nil), + (*searchResult_ModuleFile)(nil), + } + file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[8].OneofWrappers = []any{ + (*elementSearchResult_Service)(nil), + (*elementSearchResult_Method)(nil), + (*elementSearchResult_Enum)(nil), + (*elementSearchResult_Message)(nil), + (*elementSearchResult_FileExtension)(nil), + } + file_buf_alpha_registry_v1alpha1_search_proto_msgTypes[10].OneofWrappers = []any{ + (*searchModuleContentResult_Element)(nil), + (*searchModuleContentResult_File)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_search_proto_rawDesc, + NumEnums: 4, + NumMessages: 19, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_search_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_search_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_search_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_search_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_search_proto = out.File + file_buf_alpha_registry_v1alpha1_search_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_search_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_search_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio.pb.go index 253a326c62..b4900ad749 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/studio.proto +//go:build !protoopaque + package registryv1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -79,14 +80,9 @@ func (x StudioAgentProtocol) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use StudioAgentProtocol.Descriptor instead. -func (StudioAgentProtocol) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_proto_rawDescGZIP(), []int{0} -} - // StudioAgentPreset is the information about an agent preset in the Studio. type StudioAgentPreset struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The agent URL in the Studio. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // The optional alias of the agent URL. @@ -124,11 +120,6 @@ func (x *StudioAgentPreset) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StudioAgentPreset.ProtoReflect.Descriptor instead. -func (*StudioAgentPreset) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_proto_rawDescGZIP(), []int{0} -} - func (x *StudioAgentPreset) GetUrl() string { if x != nil { return x.Url @@ -157,8 +148,48 @@ func (x *StudioAgentPreset) GetTargetUrl() string { return "" } +func (x *StudioAgentPreset) SetUrl(v string) { + x.Url = v +} + +func (x *StudioAgentPreset) SetAlias(v string) { + x.Alias = v +} + +func (x *StudioAgentPreset) SetProtocol(v StudioAgentProtocol) { + x.Protocol = v +} + +func (x *StudioAgentPreset) SetTargetUrl(v string) { + x.TargetUrl = v +} + +type StudioAgentPreset_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The agent URL in the Studio. + Url string + // The optional alias of the agent URL. + Alias string + // The protocol the agent should use to forward requests. + Protocol StudioAgentProtocol + // The URL of the target host. + TargetUrl string +} + +func (b0 StudioAgentPreset_builder) Build() *StudioAgentPreset { + m0 := &StudioAgentPreset{} + b, x := &b0, m0 + _, _ = b, x + x.Url = b.Url + x.Alias = b.Alias + x.Protocol = b.Protocol + x.TargetUrl = b.TargetUrl + return m0 +} + type ListStudioAgentPresetsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -188,13 +219,20 @@ func (x *ListStudioAgentPresetsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListStudioAgentPresetsRequest.ProtoReflect.Descriptor instead. -func (*ListStudioAgentPresetsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_proto_rawDescGZIP(), []int{1} +type ListStudioAgentPresetsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ListStudioAgentPresetsRequest_builder) Build() *ListStudioAgentPresetsRequest { + m0 := &ListStudioAgentPresetsRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ListStudioAgentPresetsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Agents []*StudioAgentPreset `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -225,11 +263,6 @@ func (x *ListStudioAgentPresetsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListStudioAgentPresetsResponse.ProtoReflect.Descriptor instead. -func (*ListStudioAgentPresetsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_proto_rawDescGZIP(), []int{2} -} - func (x *ListStudioAgentPresetsResponse) GetAgents() []*StudioAgentPreset { if x != nil { return x.Agents @@ -237,8 +270,26 @@ func (x *ListStudioAgentPresetsResponse) GetAgents() []*StudioAgentPreset { return nil } +func (x *ListStudioAgentPresetsResponse) SetAgents(v []*StudioAgentPreset) { + x.Agents = v +} + +type ListStudioAgentPresetsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Agents []*StudioAgentPreset +} + +func (b0 ListStudioAgentPresetsResponse_builder) Build() *ListStudioAgentPresetsResponse { + m0 := &ListStudioAgentPresetsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Agents = b.Agents + return m0 +} + type SetStudioAgentPresetsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Agents []*StudioAgentPreset `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -269,11 +320,6 @@ func (x *SetStudioAgentPresetsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetStudioAgentPresetsRequest.ProtoReflect.Descriptor instead. -func (*SetStudioAgentPresetsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_proto_rawDescGZIP(), []int{3} -} - func (x *SetStudioAgentPresetsRequest) GetAgents() []*StudioAgentPreset { if x != nil { return x.Agents @@ -281,8 +327,26 @@ func (x *SetStudioAgentPresetsRequest) GetAgents() []*StudioAgentPreset { return nil } +func (x *SetStudioAgentPresetsRequest) SetAgents(v []*StudioAgentPreset) { + x.Agents = v +} + +type SetStudioAgentPresetsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Agents []*StudioAgentPreset +} + +func (b0 SetStudioAgentPresetsRequest_builder) Build() *SetStudioAgentPresetsRequest { + m0 := &SetStudioAgentPresetsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Agents = b.Agents + return m0 +} + type SetStudioAgentPresetsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -312,9 +376,16 @@ func (x *SetStudioAgentPresetsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetStudioAgentPresetsResponse.ProtoReflect.Descriptor instead. -func (*SetStudioAgentPresetsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_proto_rawDescGZIP(), []int{4} +type SetStudioAgentPresetsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SetStudioAgentPresetsResponse_builder) Build() *SetStudioAgentPresetsResponse { + m0 := &SetStudioAgentPresetsResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } var File_buf_alpha_registry_v1alpha1_studio_proto protoreflect.FileDescriptor @@ -401,18 +472,6 @@ var file_buf_alpha_registry_v1alpha1_studio_proto_rawDesc = []byte{ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_studio_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_studio_proto_rawDescData = file_buf_alpha_registry_v1alpha1_studio_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_studio_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_studio_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_studio_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_studio_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_studio_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_studio_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_buf_alpha_registry_v1alpha1_studio_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio_protoopaque.pb.go new file mode 100644 index 0000000000..eeb773857b --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio_protoopaque.pb.go @@ -0,0 +1,524 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/studio.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The protocols supported by Studio agent. +type StudioAgentProtocol int32 + +const ( + StudioAgentProtocol_STUDIO_AGENT_PROTOCOL_UNSPECIFIED StudioAgentProtocol = 0 + StudioAgentProtocol_STUDIO_AGENT_PROTOCOL_GRPC StudioAgentProtocol = 1 + StudioAgentProtocol_STUDIO_AGENT_PROTOCOL_CONNECT StudioAgentProtocol = 2 +) + +// Enum value maps for StudioAgentProtocol. +var ( + StudioAgentProtocol_name = map[int32]string{ + 0: "STUDIO_AGENT_PROTOCOL_UNSPECIFIED", + 1: "STUDIO_AGENT_PROTOCOL_GRPC", + 2: "STUDIO_AGENT_PROTOCOL_CONNECT", + } + StudioAgentProtocol_value = map[string]int32{ + "STUDIO_AGENT_PROTOCOL_UNSPECIFIED": 0, + "STUDIO_AGENT_PROTOCOL_GRPC": 1, + "STUDIO_AGENT_PROTOCOL_CONNECT": 2, + } +) + +func (x StudioAgentProtocol) Enum() *StudioAgentProtocol { + p := new(StudioAgentProtocol) + *p = x + return p +} + +func (x StudioAgentProtocol) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StudioAgentProtocol) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_studio_proto_enumTypes[0].Descriptor() +} + +func (StudioAgentProtocol) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_studio_proto_enumTypes[0] +} + +func (x StudioAgentProtocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// StudioAgentPreset is the information about an agent preset in the Studio. +type StudioAgentPreset struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + xxx_hidden_Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` + xxx_hidden_Protocol StudioAgentProtocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=buf.alpha.registry.v1alpha1.StudioAgentProtocol" json:"protocol,omitempty"` + xxx_hidden_TargetUrl string `protobuf:"bytes,4,opt,name=target_url,json=targetUrl,proto3" json:"target_url,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StudioAgentPreset) Reset() { + *x = StudioAgentPreset{} + mi := &file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StudioAgentPreset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StudioAgentPreset) ProtoMessage() {} + +func (x *StudioAgentPreset) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StudioAgentPreset) GetUrl() string { + if x != nil { + return x.xxx_hidden_Url + } + return "" +} + +func (x *StudioAgentPreset) GetAlias() string { + if x != nil { + return x.xxx_hidden_Alias + } + return "" +} + +func (x *StudioAgentPreset) GetProtocol() StudioAgentProtocol { + if x != nil { + return x.xxx_hidden_Protocol + } + return StudioAgentProtocol_STUDIO_AGENT_PROTOCOL_UNSPECIFIED +} + +func (x *StudioAgentPreset) GetTargetUrl() string { + if x != nil { + return x.xxx_hidden_TargetUrl + } + return "" +} + +func (x *StudioAgentPreset) SetUrl(v string) { + x.xxx_hidden_Url = v +} + +func (x *StudioAgentPreset) SetAlias(v string) { + x.xxx_hidden_Alias = v +} + +func (x *StudioAgentPreset) SetProtocol(v StudioAgentProtocol) { + x.xxx_hidden_Protocol = v +} + +func (x *StudioAgentPreset) SetTargetUrl(v string) { + x.xxx_hidden_TargetUrl = v +} + +type StudioAgentPreset_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The agent URL in the Studio. + Url string + // The optional alias of the agent URL. + Alias string + // The protocol the agent should use to forward requests. + Protocol StudioAgentProtocol + // The URL of the target host. + TargetUrl string +} + +func (b0 StudioAgentPreset_builder) Build() *StudioAgentPreset { + m0 := &StudioAgentPreset{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Url = b.Url + x.xxx_hidden_Alias = b.Alias + x.xxx_hidden_Protocol = b.Protocol + x.xxx_hidden_TargetUrl = b.TargetUrl + return m0 +} + +type ListStudioAgentPresetsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListStudioAgentPresetsRequest) Reset() { + *x = ListStudioAgentPresetsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListStudioAgentPresetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListStudioAgentPresetsRequest) ProtoMessage() {} + +func (x *ListStudioAgentPresetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type ListStudioAgentPresetsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ListStudioAgentPresetsRequest_builder) Build() *ListStudioAgentPresetsRequest { + m0 := &ListStudioAgentPresetsRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ListStudioAgentPresetsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Agents *[]*StudioAgentPreset `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListStudioAgentPresetsResponse) Reset() { + *x = ListStudioAgentPresetsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListStudioAgentPresetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListStudioAgentPresetsResponse) ProtoMessage() {} + +func (x *ListStudioAgentPresetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListStudioAgentPresetsResponse) GetAgents() []*StudioAgentPreset { + if x != nil { + if x.xxx_hidden_Agents != nil { + return *x.xxx_hidden_Agents + } + } + return nil +} + +func (x *ListStudioAgentPresetsResponse) SetAgents(v []*StudioAgentPreset) { + x.xxx_hidden_Agents = &v +} + +type ListStudioAgentPresetsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Agents []*StudioAgentPreset +} + +func (b0 ListStudioAgentPresetsResponse_builder) Build() *ListStudioAgentPresetsResponse { + m0 := &ListStudioAgentPresetsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Agents = &b.Agents + return m0 +} + +type SetStudioAgentPresetsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Agents *[]*StudioAgentPreset `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetStudioAgentPresetsRequest) Reset() { + *x = SetStudioAgentPresetsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetStudioAgentPresetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetStudioAgentPresetsRequest) ProtoMessage() {} + +func (x *SetStudioAgentPresetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *SetStudioAgentPresetsRequest) GetAgents() []*StudioAgentPreset { + if x != nil { + if x.xxx_hidden_Agents != nil { + return *x.xxx_hidden_Agents + } + } + return nil +} + +func (x *SetStudioAgentPresetsRequest) SetAgents(v []*StudioAgentPreset) { + x.xxx_hidden_Agents = &v +} + +type SetStudioAgentPresetsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Agents []*StudioAgentPreset +} + +func (b0 SetStudioAgentPresetsRequest_builder) Build() *SetStudioAgentPresetsRequest { + m0 := &SetStudioAgentPresetsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Agents = &b.Agents + return m0 +} + +type SetStudioAgentPresetsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetStudioAgentPresetsResponse) Reset() { + *x = SetStudioAgentPresetsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetStudioAgentPresetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetStudioAgentPresetsResponse) ProtoMessage() {} + +func (x *SetStudioAgentPresetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type SetStudioAgentPresetsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SetStudioAgentPresetsResponse_builder) Build() *SetStudioAgentPresetsResponse { + m0 := &SetStudioAgentPresetsResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_buf_alpha_registry_v1alpha1_studio_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_studio_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x73, 0x74, + 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x22, 0xa8, 0x01, 0x0a, 0x11, 0x53, 0x74, 0x75, 0x64, + 0x69, 0x6f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x10, 0x0a, + 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, + 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x4c, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x75, 0x72, + 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, + 0x72, 0x6c, 0x22, 0x1f, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0x68, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x75, 0x64, 0x69, + 0x6f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, + 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x66, 0x0a, + 0x1c, 0x53, 0x65, 0x74, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, + 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, + 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x75, 0x64, + 0x69, 0x6f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x1f, 0x0a, 0x1d, 0x53, 0x65, 0x74, 0x53, 0x74, 0x75, 0x64, + 0x69, 0x6f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x7f, 0x0a, 0x13, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x25, 0x0a, + 0x21, 0x53, 0x54, 0x55, 0x44, 0x49, 0x4f, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x52, + 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x54, 0x55, 0x44, 0x49, 0x4f, 0x5f, 0x41, + 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x47, 0x52, + 0x50, 0x43, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x54, 0x55, 0x44, 0x49, 0x4f, 0x5f, 0x41, + 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x43, 0x4f, + 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x10, 0x02, 0x32, 0xb9, 0x02, 0x0a, 0x0d, 0x53, 0x74, 0x75, 0x64, + 0x69, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x96, 0x01, 0x0a, 0x16, 0x4c, 0x69, + 0x73, 0x74, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x65, + 0x73, 0x65, 0x74, 0x73, 0x12, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x3b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, + 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, + 0x02, 0x01, 0x12, 0x8e, 0x01, 0x0a, 0x15, 0x53, 0x65, 0x74, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x12, 0x39, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, + 0x75, 0x64, 0x69, 0x6f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x42, 0x98, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0b, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, + 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_studio_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_buf_alpha_registry_v1alpha1_studio_proto_goTypes = []any{ + (StudioAgentProtocol)(0), // 0: buf.alpha.registry.v1alpha1.StudioAgentProtocol + (*StudioAgentPreset)(nil), // 1: buf.alpha.registry.v1alpha1.StudioAgentPreset + (*ListStudioAgentPresetsRequest)(nil), // 2: buf.alpha.registry.v1alpha1.ListStudioAgentPresetsRequest + (*ListStudioAgentPresetsResponse)(nil), // 3: buf.alpha.registry.v1alpha1.ListStudioAgentPresetsResponse + (*SetStudioAgentPresetsRequest)(nil), // 4: buf.alpha.registry.v1alpha1.SetStudioAgentPresetsRequest + (*SetStudioAgentPresetsResponse)(nil), // 5: buf.alpha.registry.v1alpha1.SetStudioAgentPresetsResponse +} +var file_buf_alpha_registry_v1alpha1_studio_proto_depIdxs = []int32{ + 0, // 0: buf.alpha.registry.v1alpha1.StudioAgentPreset.protocol:type_name -> buf.alpha.registry.v1alpha1.StudioAgentProtocol + 1, // 1: buf.alpha.registry.v1alpha1.ListStudioAgentPresetsResponse.agents:type_name -> buf.alpha.registry.v1alpha1.StudioAgentPreset + 1, // 2: buf.alpha.registry.v1alpha1.SetStudioAgentPresetsRequest.agents:type_name -> buf.alpha.registry.v1alpha1.StudioAgentPreset + 2, // 3: buf.alpha.registry.v1alpha1.StudioService.ListStudioAgentPresets:input_type -> buf.alpha.registry.v1alpha1.ListStudioAgentPresetsRequest + 4, // 4: buf.alpha.registry.v1alpha1.StudioService.SetStudioAgentPresets:input_type -> buf.alpha.registry.v1alpha1.SetStudioAgentPresetsRequest + 3, // 5: buf.alpha.registry.v1alpha1.StudioService.ListStudioAgentPresets:output_type -> buf.alpha.registry.v1alpha1.ListStudioAgentPresetsResponse + 5, // 6: buf.alpha.registry.v1alpha1.StudioService.SetStudioAgentPresets:output_type -> buf.alpha.registry.v1alpha1.SetStudioAgentPresetsResponse + 5, // [5:7] is the sub-list for method output_type + 3, // [3:5] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_studio_proto_init() } +func file_buf_alpha_registry_v1alpha1_studio_proto_init() { + if File_buf_alpha_registry_v1alpha1_studio_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_studio_proto_rawDesc, + NumEnums: 1, + NumMessages: 5, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_studio_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_studio_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_studio_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_studio_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_studio_proto = out.File + file_buf_alpha_registry_v1alpha1_studio_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_studio_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_studio_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio_request.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio_request.pb.go index 103d754fa0..85d70eff72 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio_request.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio_request.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/studio_request.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -88,15 +89,10 @@ func (x StudioProtocol) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use StudioProtocol.Descriptor instead. -func (StudioProtocol) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescGZIP(), []int{0} -} - // CreateStudioRequestRequest is the proto request representation of the // CreateStudioRequest method. type CreateStudioRequestRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The linked BSR repository owner name (user or organization). RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` // The linked BSR repository name. @@ -149,11 +145,6 @@ func (x *CreateStudioRequestRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateStudioRequestRequest.ProtoReflect.Descriptor instead. -func (*CreateStudioRequestRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescGZIP(), []int{0} -} - func (x *CreateStudioRequestRequest) GetRepositoryOwner() string { if x != nil { return x.RepositoryOwner @@ -231,9 +222,99 @@ func (x *CreateStudioRequestRequest) GetAgentUrl() string { return "" } +func (x *CreateStudioRequestRequest) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *CreateStudioRequestRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *CreateStudioRequestRequest) SetName(v string) { + x.Name = v +} + +func (x *CreateStudioRequestRequest) SetTargetBaseUrl(v string) { + x.TargetBaseUrl = v +} + +func (x *CreateStudioRequestRequest) SetService(v string) { + x.Service = v +} + +func (x *CreateStudioRequestRequest) SetMethod(v string) { + x.Method = v +} + +func (x *CreateStudioRequestRequest) SetBody(v string) { + x.Body = v +} + +func (x *CreateStudioRequestRequest) SetHeaders(v map[string]string) { + x.Headers = v +} + +func (x *CreateStudioRequestRequest) SetIncludeCookies(v bool) { + x.IncludeCookies = v +} + +func (x *CreateStudioRequestRequest) SetProtocol(v StudioProtocol) { + x.Protocol = v +} + +func (x *CreateStudioRequestRequest) SetAgentUrl(v string) { + x.AgentUrl = v +} + +type CreateStudioRequestRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The linked BSR repository owner name (user or organization). + RepositoryOwner string + // The linked BSR repository name. + RepositoryName string + // The friendly name of this request. + Name string + // The target base URL of this request. + TargetBaseUrl string + // The target service name as defined in the BSR repository. + Service string + // The target RPC method name as defined in the BSR repository. + Method string + // The request body as defined in Studio. + Body string + // The request headers as defined in Studio. + Headers map[string]string + // Should this request include cookies from the Studio current session? + IncludeCookies bool + // The protocol that Studio uses to send this request. + Protocol StudioProtocol + // The agent url (if any) used by Studio to send the request. See + // https://docs.buf.build/bsr/studio#via-buf-studio-agent for details. + AgentUrl string +} + +func (b0 CreateStudioRequestRequest_builder) Build() *CreateStudioRequestRequest { + m0 := &CreateStudioRequestRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.Name = b.Name + x.TargetBaseUrl = b.TargetBaseUrl + x.Service = b.Service + x.Method = b.Method + x.Body = b.Body + x.Headers = b.Headers + x.IncludeCookies = b.IncludeCookies + x.Protocol = b.Protocol + x.AgentUrl = b.AgentUrl + return m0 +} + // CreateStudioRequestResponse returns the created StudioRequest. type CreateStudioRequestResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Created Studio Request. CreatedRequest *StudioRequest `protobuf:"bytes,1,opt,name=created_request,json=createdRequest,proto3" json:"created_request,omitempty"` unknownFields protoimpl.UnknownFields @@ -265,11 +346,6 @@ func (x *CreateStudioRequestResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateStudioRequestResponse.ProtoReflect.Descriptor instead. -func (*CreateStudioRequestResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescGZIP(), []int{1} -} - func (x *CreateStudioRequestResponse) GetCreatedRequest() *StudioRequest { if x != nil { return x.CreatedRequest @@ -277,10 +353,40 @@ func (x *CreateStudioRequestResponse) GetCreatedRequest() *StudioRequest { return nil } +func (x *CreateStudioRequestResponse) SetCreatedRequest(v *StudioRequest) { + x.CreatedRequest = v +} + +func (x *CreateStudioRequestResponse) HasCreatedRequest() bool { + if x == nil { + return false + } + return x.CreatedRequest != nil +} + +func (x *CreateStudioRequestResponse) ClearCreatedRequest() { + x.CreatedRequest = nil +} + +type CreateStudioRequestResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Created Studio Request. + CreatedRequest *StudioRequest +} + +func (b0 CreateStudioRequestResponse_builder) Build() *CreateStudioRequestResponse { + m0 := &CreateStudioRequestResponse{} + b, x := &b0, m0 + _, _ = b, x + x.CreatedRequest = b.CreatedRequest + return m0 +} + // RenameStudioRequestRequest is the proto request representation of the // RenameStudioRequest method. type RenameStudioRequestRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The Studio Request ID that will be renamed. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The new name for the request. @@ -314,11 +420,6 @@ func (x *RenameStudioRequestRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RenameStudioRequestRequest.ProtoReflect.Descriptor instead. -func (*RenameStudioRequestRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescGZIP(), []int{2} -} - func (x *RenameStudioRequestRequest) GetId() string { if x != nil { return x.Id @@ -333,9 +434,35 @@ func (x *RenameStudioRequestRequest) GetNewName() string { return "" } +func (x *RenameStudioRequestRequest) SetId(v string) { + x.Id = v +} + +func (x *RenameStudioRequestRequest) SetNewName(v string) { + x.NewName = v +} + +type RenameStudioRequestRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The Studio Request ID that will be renamed. + Id string + // The new name for the request. + NewName string +} + +func (b0 RenameStudioRequestRequest_builder) Build() *RenameStudioRequestRequest { + m0 := &RenameStudioRequestRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.NewName = b.NewName + return m0 +} + // RenameStudioRequestResponse returns empty on successful renaming. type RenameStudioRequestResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -365,15 +492,22 @@ func (x *RenameStudioRequestResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RenameStudioRequestResponse.ProtoReflect.Descriptor instead. -func (*RenameStudioRequestResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescGZIP(), []int{3} +type RenameStudioRequestResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RenameStudioRequestResponse_builder) Build() *RenameStudioRequestResponse { + m0 := &RenameStudioRequestResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // DeleteStudioRequestRequest is the proto request representation of the // DeleteStudioRequest method. type DeleteStudioRequestRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The Studio Request ID that will be deleted. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields @@ -405,11 +539,6 @@ func (x *DeleteStudioRequestRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteStudioRequestRequest.ProtoReflect.Descriptor instead. -func (*DeleteStudioRequestRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescGZIP(), []int{4} -} - func (x *DeleteStudioRequestRequest) GetId() string { if x != nil { return x.Id @@ -417,9 +546,28 @@ func (x *DeleteStudioRequestRequest) GetId() string { return "" } +func (x *DeleteStudioRequestRequest) SetId(v string) { + x.Id = v +} + +type DeleteStudioRequestRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The Studio Request ID that will be deleted. + Id string +} + +func (b0 DeleteStudioRequestRequest_builder) Build() *DeleteStudioRequestRequest { + m0 := &DeleteStudioRequestRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + // DeleteStudioRequestResponse returns empty on successful deletions. type DeleteStudioRequestResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -449,15 +597,22 @@ func (x *DeleteStudioRequestResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteStudioRequestResponse.ProtoReflect.Descriptor instead. -func (*DeleteStudioRequestResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescGZIP(), []int{5} +type DeleteStudioRequestResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteStudioRequestResponse_builder) Build() *DeleteStudioRequestResponse { + m0 := &DeleteStudioRequestResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // ListStudioRequestsRequest is the proto request representation of the // ListStudioRequests method. type ListStudioRequestsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The page size for listing studio requests, values between 1-250. PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The page token for paginating. The first page is returned if this is empty. @@ -494,11 +649,6 @@ func (x *ListStudioRequestsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListStudioRequestsRequest.ProtoReflect.Descriptor instead. -func (*ListStudioRequestsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescGZIP(), []int{6} -} - func (x *ListStudioRequestsRequest) GetPageSize() uint32 { if x != nil { return x.PageSize @@ -520,10 +670,44 @@ func (x *ListStudioRequestsRequest) GetReverse() bool { return false } +func (x *ListStudioRequestsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListStudioRequestsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListStudioRequestsRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListStudioRequestsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The page size for listing studio requests, values between 1-250. + PageSize uint32 + // The page token for paginating. The first page is returned if this is empty. + PageToken string + // The listed studio requests are order by created time in ascending order. + // You can reverse that order setting this value to true. + Reverse bool +} + +func (b0 ListStudioRequestsRequest_builder) Build() *ListStudioRequestsRequest { + m0 := &ListStudioRequestsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + // ListStudioRequestsResponse is the proto response representation of the // ListStudioRequests method. type ListStudioRequestsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The list of requests in the current page. Requests []*StudioRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // The requests' next page token. There are no more pages if this is empty. @@ -557,11 +741,6 @@ func (x *ListStudioRequestsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListStudioRequestsResponse.ProtoReflect.Descriptor instead. -func (*ListStudioRequestsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescGZIP(), []int{7} -} - func (x *ListStudioRequestsResponse) GetRequests() []*StudioRequest { if x != nil { return x.Requests @@ -576,10 +755,36 @@ func (x *ListStudioRequestsResponse) GetNextPageToken() string { return "" } +func (x *ListStudioRequestsResponse) SetRequests(v []*StudioRequest) { + x.Requests = v +} + +func (x *ListStudioRequestsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListStudioRequestsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of requests in the current page. + Requests []*StudioRequest + // The requests' next page token. There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListStudioRequestsResponse_builder) Build() *ListStudioRequestsResponse { + m0 := &ListStudioRequestsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Requests = b.Requests + x.NextPageToken = b.NextPageToken + return m0 +} + // StudioRequest represents a saved request in Studio, that is synced to a BSR // user's profile. type StudioRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of this Studio Request. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The request creation timestamp. @@ -642,11 +847,6 @@ func (x *StudioRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StudioRequest.ProtoReflect.Descriptor instead. -func (*StudioRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescGZIP(), []int{8} -} - func (x *StudioRequest) GetId() string { if x != nil { return x.Id @@ -759,6 +959,153 @@ func (x *StudioRequest) GetAgentUrl() string { return "" } +func (x *StudioRequest) SetId(v string) { + x.Id = v +} + +func (x *StudioRequest) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *StudioRequest) SetUpdateTime(v *timestamppb.Timestamp) { + x.UpdateTime = v +} + +func (x *StudioRequest) SetAuthorUserId(v string) { + x.AuthorUserId = v +} + +func (x *StudioRequest) SetRepositoryId(v string) { + x.RepositoryId = v +} + +func (x *StudioRequest) SetName(v string) { + x.Name = v +} + +func (x *StudioRequest) SetTargetBaseUrl(v string) { + x.TargetBaseUrl = v +} + +func (x *StudioRequest) SetRepositoryOwner(v string) { + x.RepositoryOwner = v +} + +func (x *StudioRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *StudioRequest) SetService(v string) { + x.Service = v +} + +func (x *StudioRequest) SetMethod(v string) { + x.Method = v +} + +func (x *StudioRequest) SetBody(v string) { + x.Body = v +} + +func (x *StudioRequest) SetHeaders(v map[string]string) { + x.Headers = v +} + +func (x *StudioRequest) SetIncludeCookies(v bool) { + x.IncludeCookies = v +} + +func (x *StudioRequest) SetProtocol(v StudioProtocol) { + x.Protocol = v +} + +func (x *StudioRequest) SetAgentUrl(v string) { + x.AgentUrl = v +} + +func (x *StudioRequest) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *StudioRequest) HasUpdateTime() bool { + if x == nil { + return false + } + return x.UpdateTime != nil +} + +func (x *StudioRequest) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *StudioRequest) ClearUpdateTime() { + x.UpdateTime = nil +} + +type StudioRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of this Studio Request. + Id string + // The request creation timestamp. + CreateTime *timestamppb.Timestamp + // The request last updated timestamp. + UpdateTime *timestamppb.Timestamp + // User ID who created and saved this request. + AuthorUserId string + // BSR repository ID this request is linked to. + RepositoryId string + // The friendly name of this request. + Name string + // The target base URL of this request. + TargetBaseUrl string + // The BSR repository owner name (user or organization). + RepositoryOwner string + // The BSR repository name. + RepositoryName string + // The target service name as defined in the BSR repository. + Service string + // The target RPC method name as defined in the BSR repository. + Method string + // The request body as defined in Studio. + Body string + // The request headers as defined in Studio. + Headers map[string]string + // Should this request include cookies from the Studio current session? + IncludeCookies bool + // The protocol that Studio uses to send this request. + Protocol StudioProtocol + // The agent url (if any) used by Studio to send the request. See + // https://docs.buf.build/bsr/studio#via-buf-studio-agent for details. + AgentUrl string +} + +func (b0 StudioRequest_builder) Build() *StudioRequest { + m0 := &StudioRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.CreateTime = b.CreateTime + x.UpdateTime = b.UpdateTime + x.AuthorUserId = b.AuthorUserId + x.RepositoryId = b.RepositoryId + x.Name = b.Name + x.TargetBaseUrl = b.TargetBaseUrl + x.RepositoryOwner = b.RepositoryOwner + x.RepositoryName = b.RepositoryName + x.Service = b.Service + x.Method = b.Method + x.Body = b.Body + x.Headers = b.Headers + x.IncludeCookies = b.IncludeCookies + x.Protocol = b.Protocol + x.AgentUrl = b.AgentUrl + return m0 +} + var File_buf_alpha_registry_v1alpha1_studio_request_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDesc = []byte{ @@ -950,18 +1297,6 @@ var file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDesc = []byte{ 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescData = file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_studio_request_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_buf_alpha_registry_v1alpha1_studio_request_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio_request_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio_request_protoopaque.pb.go new file mode 100644 index 0000000000..07e46f8ee2 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/studio_request_protoopaque.pb.go @@ -0,0 +1,1328 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/studio_request.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// StudioProtocol are the supported protocols for Studio Requests. +type StudioProtocol int32 + +const ( + // STUDIO_PROTOCOL_UNSPECIFIED is a safe default for requests with no protocol + // defined. + StudioProtocol_STUDIO_PROTOCOL_UNSPECIFIED StudioProtocol = 0 + // STUDIO_PROTOCOL_CONNECT is the Connect protocol in Studio. + StudioProtocol_STUDIO_PROTOCOL_CONNECT StudioProtocol = 1 + // STUDIO_PROTOCOL_GRPC is the gRPC protocol in Studio. + StudioProtocol_STUDIO_PROTOCOL_GRPC StudioProtocol = 2 + // STUDIO_PROTOCOL_GRPC_WEB is the gRPC-web protocol in Studio. + StudioProtocol_STUDIO_PROTOCOL_GRPC_WEB StudioProtocol = 3 +) + +// Enum value maps for StudioProtocol. +var ( + StudioProtocol_name = map[int32]string{ + 0: "STUDIO_PROTOCOL_UNSPECIFIED", + 1: "STUDIO_PROTOCOL_CONNECT", + 2: "STUDIO_PROTOCOL_GRPC", + 3: "STUDIO_PROTOCOL_GRPC_WEB", + } + StudioProtocol_value = map[string]int32{ + "STUDIO_PROTOCOL_UNSPECIFIED": 0, + "STUDIO_PROTOCOL_CONNECT": 1, + "STUDIO_PROTOCOL_GRPC": 2, + "STUDIO_PROTOCOL_GRPC_WEB": 3, + } +) + +func (x StudioProtocol) Enum() *StudioProtocol { + p := new(StudioProtocol) + *p = x + return p +} + +func (x StudioProtocol) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StudioProtocol) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_studio_request_proto_enumTypes[0].Descriptor() +} + +func (StudioProtocol) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_studio_request_proto_enumTypes[0] +} + +func (x StudioProtocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// CreateStudioRequestRequest is the proto request representation of the +// CreateStudioRequest method. +type CreateStudioRequestRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,1,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,2,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_TargetBaseUrl string `protobuf:"bytes,4,opt,name=target_base_url,json=targetBaseUrl,proto3" json:"target_base_url,omitempty"` + xxx_hidden_Service string `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"` + xxx_hidden_Method string `protobuf:"bytes,6,opt,name=method,proto3" json:"method,omitempty"` + xxx_hidden_Body string `protobuf:"bytes,7,opt,name=body,proto3" json:"body,omitempty"` + xxx_hidden_Headers map[string]string `protobuf:"bytes,8,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_IncludeCookies bool `protobuf:"varint,9,opt,name=include_cookies,json=includeCookies,proto3" json:"include_cookies,omitempty"` + xxx_hidden_Protocol StudioProtocol `protobuf:"varint,10,opt,name=protocol,proto3,enum=buf.alpha.registry.v1alpha1.StudioProtocol" json:"protocol,omitempty"` + xxx_hidden_AgentUrl string `protobuf:"bytes,11,opt,name=agent_url,json=agentUrl,proto3" json:"agent_url,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateStudioRequestRequest) Reset() { + *x = CreateStudioRequestRequest{} + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateStudioRequestRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateStudioRequestRequest) ProtoMessage() {} + +func (x *CreateStudioRequestRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateStudioRequestRequest) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *CreateStudioRequestRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *CreateStudioRequestRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *CreateStudioRequestRequest) GetTargetBaseUrl() string { + if x != nil { + return x.xxx_hidden_TargetBaseUrl + } + return "" +} + +func (x *CreateStudioRequestRequest) GetService() string { + if x != nil { + return x.xxx_hidden_Service + } + return "" +} + +func (x *CreateStudioRequestRequest) GetMethod() string { + if x != nil { + return x.xxx_hidden_Method + } + return "" +} + +func (x *CreateStudioRequestRequest) GetBody() string { + if x != nil { + return x.xxx_hidden_Body + } + return "" +} + +func (x *CreateStudioRequestRequest) GetHeaders() map[string]string { + if x != nil { + return x.xxx_hidden_Headers + } + return nil +} + +func (x *CreateStudioRequestRequest) GetIncludeCookies() bool { + if x != nil { + return x.xxx_hidden_IncludeCookies + } + return false +} + +func (x *CreateStudioRequestRequest) GetProtocol() StudioProtocol { + if x != nil { + return x.xxx_hidden_Protocol + } + return StudioProtocol_STUDIO_PROTOCOL_UNSPECIFIED +} + +func (x *CreateStudioRequestRequest) GetAgentUrl() string { + if x != nil { + return x.xxx_hidden_AgentUrl + } + return "" +} + +func (x *CreateStudioRequestRequest) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *CreateStudioRequestRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *CreateStudioRequestRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *CreateStudioRequestRequest) SetTargetBaseUrl(v string) { + x.xxx_hidden_TargetBaseUrl = v +} + +func (x *CreateStudioRequestRequest) SetService(v string) { + x.xxx_hidden_Service = v +} + +func (x *CreateStudioRequestRequest) SetMethod(v string) { + x.xxx_hidden_Method = v +} + +func (x *CreateStudioRequestRequest) SetBody(v string) { + x.xxx_hidden_Body = v +} + +func (x *CreateStudioRequestRequest) SetHeaders(v map[string]string) { + x.xxx_hidden_Headers = v +} + +func (x *CreateStudioRequestRequest) SetIncludeCookies(v bool) { + x.xxx_hidden_IncludeCookies = v +} + +func (x *CreateStudioRequestRequest) SetProtocol(v StudioProtocol) { + x.xxx_hidden_Protocol = v +} + +func (x *CreateStudioRequestRequest) SetAgentUrl(v string) { + x.xxx_hidden_AgentUrl = v +} + +type CreateStudioRequestRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The linked BSR repository owner name (user or organization). + RepositoryOwner string + // The linked BSR repository name. + RepositoryName string + // The friendly name of this request. + Name string + // The target base URL of this request. + TargetBaseUrl string + // The target service name as defined in the BSR repository. + Service string + // The target RPC method name as defined in the BSR repository. + Method string + // The request body as defined in Studio. + Body string + // The request headers as defined in Studio. + Headers map[string]string + // Should this request include cookies from the Studio current session? + IncludeCookies bool + // The protocol that Studio uses to send this request. + Protocol StudioProtocol + // The agent url (if any) used by Studio to send the request. See + // https://docs.buf.build/bsr/studio#via-buf-studio-agent for details. + AgentUrl string +} + +func (b0 CreateStudioRequestRequest_builder) Build() *CreateStudioRequestRequest { + m0 := &CreateStudioRequestRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_Name = b.Name + x.xxx_hidden_TargetBaseUrl = b.TargetBaseUrl + x.xxx_hidden_Service = b.Service + x.xxx_hidden_Method = b.Method + x.xxx_hidden_Body = b.Body + x.xxx_hidden_Headers = b.Headers + x.xxx_hidden_IncludeCookies = b.IncludeCookies + x.xxx_hidden_Protocol = b.Protocol + x.xxx_hidden_AgentUrl = b.AgentUrl + return m0 +} + +// CreateStudioRequestResponse returns the created StudioRequest. +type CreateStudioRequestResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CreatedRequest *StudioRequest `protobuf:"bytes,1,opt,name=created_request,json=createdRequest,proto3" json:"created_request,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateStudioRequestResponse) Reset() { + *x = CreateStudioRequestResponse{} + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateStudioRequestResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateStudioRequestResponse) ProtoMessage() {} + +func (x *CreateStudioRequestResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateStudioRequestResponse) GetCreatedRequest() *StudioRequest { + if x != nil { + return x.xxx_hidden_CreatedRequest + } + return nil +} + +func (x *CreateStudioRequestResponse) SetCreatedRequest(v *StudioRequest) { + x.xxx_hidden_CreatedRequest = v +} + +func (x *CreateStudioRequestResponse) HasCreatedRequest() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreatedRequest != nil +} + +func (x *CreateStudioRequestResponse) ClearCreatedRequest() { + x.xxx_hidden_CreatedRequest = nil +} + +type CreateStudioRequestResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Created Studio Request. + CreatedRequest *StudioRequest +} + +func (b0 CreateStudioRequestResponse_builder) Build() *CreateStudioRequestResponse { + m0 := &CreateStudioRequestResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CreatedRequest = b.CreatedRequest + return m0 +} + +// RenameStudioRequestRequest is the proto request representation of the +// RenameStudioRequest method. +type RenameStudioRequestRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_NewName string `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RenameStudioRequestRequest) Reset() { + *x = RenameStudioRequestRequest{} + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RenameStudioRequestRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RenameStudioRequestRequest) ProtoMessage() {} + +func (x *RenameStudioRequestRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RenameStudioRequestRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *RenameStudioRequestRequest) GetNewName() string { + if x != nil { + return x.xxx_hidden_NewName + } + return "" +} + +func (x *RenameStudioRequestRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *RenameStudioRequestRequest) SetNewName(v string) { + x.xxx_hidden_NewName = v +} + +type RenameStudioRequestRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The Studio Request ID that will be renamed. + Id string + // The new name for the request. + NewName string +} + +func (b0 RenameStudioRequestRequest_builder) Build() *RenameStudioRequestRequest { + m0 := &RenameStudioRequestRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_NewName = b.NewName + return m0 +} + +// RenameStudioRequestResponse returns empty on successful renaming. +type RenameStudioRequestResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RenameStudioRequestResponse) Reset() { + *x = RenameStudioRequestResponse{} + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RenameStudioRequestResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RenameStudioRequestResponse) ProtoMessage() {} + +func (x *RenameStudioRequestResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type RenameStudioRequestResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 RenameStudioRequestResponse_builder) Build() *RenameStudioRequestResponse { + m0 := &RenameStudioRequestResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// DeleteStudioRequestRequest is the proto request representation of the +// DeleteStudioRequest method. +type DeleteStudioRequestRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteStudioRequestRequest) Reset() { + *x = DeleteStudioRequestRequest{} + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteStudioRequestRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteStudioRequestRequest) ProtoMessage() {} + +func (x *DeleteStudioRequestRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteStudioRequestRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *DeleteStudioRequestRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +type DeleteStudioRequestRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The Studio Request ID that will be deleted. + Id string +} + +func (b0 DeleteStudioRequestRequest_builder) Build() *DeleteStudioRequestRequest { + m0 := &DeleteStudioRequestRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +// DeleteStudioRequestResponse returns empty on successful deletions. +type DeleteStudioRequestResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteStudioRequestResponse) Reset() { + *x = DeleteStudioRequestResponse{} + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteStudioRequestResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteStudioRequestResponse) ProtoMessage() {} + +func (x *DeleteStudioRequestResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteStudioRequestResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteStudioRequestResponse_builder) Build() *DeleteStudioRequestResponse { + m0 := &DeleteStudioRequestResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// ListStudioRequestsRequest is the proto request representation of the +// ListStudioRequests method. +type ListStudioRequestsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,3,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListStudioRequestsRequest) Reset() { + *x = ListStudioRequestsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListStudioRequestsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListStudioRequestsRequest) ProtoMessage() {} + +func (x *ListStudioRequestsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListStudioRequestsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListStudioRequestsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListStudioRequestsRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListStudioRequestsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListStudioRequestsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListStudioRequestsRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListStudioRequestsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The page size for listing studio requests, values between 1-250. + PageSize uint32 + // The page token for paginating. The first page is returned if this is empty. + PageToken string + // The listed studio requests are order by created time in ascending order. + // You can reverse that order setting this value to true. + Reverse bool +} + +func (b0 ListStudioRequestsRequest_builder) Build() *ListStudioRequestsRequest { + m0 := &ListStudioRequestsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +// ListStudioRequestsResponse is the proto response representation of the +// ListStudioRequests method. +type ListStudioRequestsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Requests *[]*StudioRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListStudioRequestsResponse) Reset() { + *x = ListStudioRequestsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListStudioRequestsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListStudioRequestsResponse) ProtoMessage() {} + +func (x *ListStudioRequestsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListStudioRequestsResponse) GetRequests() []*StudioRequest { + if x != nil { + if x.xxx_hidden_Requests != nil { + return *x.xxx_hidden_Requests + } + } + return nil +} + +func (x *ListStudioRequestsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListStudioRequestsResponse) SetRequests(v []*StudioRequest) { + x.xxx_hidden_Requests = &v +} + +func (x *ListStudioRequestsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListStudioRequestsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of requests in the current page. + Requests []*StudioRequest + // The requests' next page token. There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListStudioRequestsResponse_builder) Build() *ListStudioRequestsResponse { + m0 := &ListStudioRequestsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Requests = &b.Requests + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +// StudioRequest represents a saved request in Studio, that is synced to a BSR +// user's profile. +type StudioRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + xxx_hidden_UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + xxx_hidden_AuthorUserId string `protobuf:"bytes,4,opt,name=author_user_id,json=authorUserId,proto3" json:"author_user_id,omitempty"` + xxx_hidden_RepositoryId string `protobuf:"bytes,5,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` + xxx_hidden_Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_TargetBaseUrl string `protobuf:"bytes,7,opt,name=target_base_url,json=targetBaseUrl,proto3" json:"target_base_url,omitempty"` + xxx_hidden_RepositoryOwner string `protobuf:"bytes,8,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,9,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_Service string `protobuf:"bytes,10,opt,name=service,proto3" json:"service,omitempty"` + xxx_hidden_Method string `protobuf:"bytes,11,opt,name=method,proto3" json:"method,omitempty"` + xxx_hidden_Body string `protobuf:"bytes,12,opt,name=body,proto3" json:"body,omitempty"` + xxx_hidden_Headers map[string]string `protobuf:"bytes,13,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_IncludeCookies bool `protobuf:"varint,14,opt,name=include_cookies,json=includeCookies,proto3" json:"include_cookies,omitempty"` + xxx_hidden_Protocol StudioProtocol `protobuf:"varint,15,opt,name=protocol,proto3,enum=buf.alpha.registry.v1alpha1.StudioProtocol" json:"protocol,omitempty"` + xxx_hidden_AgentUrl string `protobuf:"bytes,16,opt,name=agent_url,json=agentUrl,proto3" json:"agent_url,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StudioRequest) Reset() { + *x = StudioRequest{} + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StudioRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StudioRequest) ProtoMessage() {} + +func (x *StudioRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *StudioRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *StudioRequest) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *StudioRequest) GetUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_UpdateTime + } + return nil +} + +func (x *StudioRequest) GetAuthorUserId() string { + if x != nil { + return x.xxx_hidden_AuthorUserId + } + return "" +} + +func (x *StudioRequest) GetRepositoryId() string { + if x != nil { + return x.xxx_hidden_RepositoryId + } + return "" +} + +func (x *StudioRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *StudioRequest) GetTargetBaseUrl() string { + if x != nil { + return x.xxx_hidden_TargetBaseUrl + } + return "" +} + +func (x *StudioRequest) GetRepositoryOwner() string { + if x != nil { + return x.xxx_hidden_RepositoryOwner + } + return "" +} + +func (x *StudioRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *StudioRequest) GetService() string { + if x != nil { + return x.xxx_hidden_Service + } + return "" +} + +func (x *StudioRequest) GetMethod() string { + if x != nil { + return x.xxx_hidden_Method + } + return "" +} + +func (x *StudioRequest) GetBody() string { + if x != nil { + return x.xxx_hidden_Body + } + return "" +} + +func (x *StudioRequest) GetHeaders() map[string]string { + if x != nil { + return x.xxx_hidden_Headers + } + return nil +} + +func (x *StudioRequest) GetIncludeCookies() bool { + if x != nil { + return x.xxx_hidden_IncludeCookies + } + return false +} + +func (x *StudioRequest) GetProtocol() StudioProtocol { + if x != nil { + return x.xxx_hidden_Protocol + } + return StudioProtocol_STUDIO_PROTOCOL_UNSPECIFIED +} + +func (x *StudioRequest) GetAgentUrl() string { + if x != nil { + return x.xxx_hidden_AgentUrl + } + return "" +} + +func (x *StudioRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *StudioRequest) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *StudioRequest) SetUpdateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_UpdateTime = v +} + +func (x *StudioRequest) SetAuthorUserId(v string) { + x.xxx_hidden_AuthorUserId = v +} + +func (x *StudioRequest) SetRepositoryId(v string) { + x.xxx_hidden_RepositoryId = v +} + +func (x *StudioRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *StudioRequest) SetTargetBaseUrl(v string) { + x.xxx_hidden_TargetBaseUrl = v +} + +func (x *StudioRequest) SetRepositoryOwner(v string) { + x.xxx_hidden_RepositoryOwner = v +} + +func (x *StudioRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *StudioRequest) SetService(v string) { + x.xxx_hidden_Service = v +} + +func (x *StudioRequest) SetMethod(v string) { + x.xxx_hidden_Method = v +} + +func (x *StudioRequest) SetBody(v string) { + x.xxx_hidden_Body = v +} + +func (x *StudioRequest) SetHeaders(v map[string]string) { + x.xxx_hidden_Headers = v +} + +func (x *StudioRequest) SetIncludeCookies(v bool) { + x.xxx_hidden_IncludeCookies = v +} + +func (x *StudioRequest) SetProtocol(v StudioProtocol) { + x.xxx_hidden_Protocol = v +} + +func (x *StudioRequest) SetAgentUrl(v string) { + x.xxx_hidden_AgentUrl = v +} + +func (x *StudioRequest) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *StudioRequest) HasUpdateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateTime != nil +} + +func (x *StudioRequest) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *StudioRequest) ClearUpdateTime() { + x.xxx_hidden_UpdateTime = nil +} + +type StudioRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of this Studio Request. + Id string + // The request creation timestamp. + CreateTime *timestamppb.Timestamp + // The request last updated timestamp. + UpdateTime *timestamppb.Timestamp + // User ID who created and saved this request. + AuthorUserId string + // BSR repository ID this request is linked to. + RepositoryId string + // The friendly name of this request. + Name string + // The target base URL of this request. + TargetBaseUrl string + // The BSR repository owner name (user or organization). + RepositoryOwner string + // The BSR repository name. + RepositoryName string + // The target service name as defined in the BSR repository. + Service string + // The target RPC method name as defined in the BSR repository. + Method string + // The request body as defined in Studio. + Body string + // The request headers as defined in Studio. + Headers map[string]string + // Should this request include cookies from the Studio current session? + IncludeCookies bool + // The protocol that Studio uses to send this request. + Protocol StudioProtocol + // The agent url (if any) used by Studio to send the request. See + // https://docs.buf.build/bsr/studio#via-buf-studio-agent for details. + AgentUrl string +} + +func (b0 StudioRequest_builder) Build() *StudioRequest { + m0 := &StudioRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_UpdateTime = b.UpdateTime + x.xxx_hidden_AuthorUserId = b.AuthorUserId + x.xxx_hidden_RepositoryId = b.RepositoryId + x.xxx_hidden_Name = b.Name + x.xxx_hidden_TargetBaseUrl = b.TargetBaseUrl + x.xxx_hidden_RepositoryOwner = b.RepositoryOwner + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_Service = b.Service + x.xxx_hidden_Method = b.Method + x.xxx_hidden_Body = b.Body + x.xxx_hidden_Headers = b.Headers + x.xxx_hidden_IncludeCookies = b.IncludeCookies + x.xxx_hidden_Protocol = b.Protocol + x.xxx_hidden_AgentUrl = b.AgentUrl + return m0 +} + +var File_buf_alpha_registry_v1alpha1_studio_request_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDesc = []byte{ + 0x0a, 0x30, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x73, 0x74, + 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x9d, 0x04, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x75, 0x64, 0x69, + 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x42, 0x61, 0x73, 0x65, 0x55, 0x72, 0x6c, 0x12, + 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x5e, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, + 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x75, 0x64, 0x69, + 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, + 0x5f, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, + 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x12, 0x47, + 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, + 0x74, 0x75, 0x64, 0x69, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x55, 0x72, 0x6c, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0x72, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x53, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x22, 0x47, 0x0a, 0x1a, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x74, + 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x1d, 0x0a, + 0x1b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x0a, 0x1a, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x1d, 0x0a, 0x1b, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x71, 0x0a, 0x19, 0x4c, 0x69, 0x73, + 0x74, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x8c, 0x01, 0x0a, + 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x75, 0x64, + 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, + 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xd8, 0x05, 0x0a, 0x0d, + 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3b, 0x0a, + 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 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, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x23, 0x0a, + 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x42, 0x61, 0x73, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x29, + 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x51, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x69, + 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x73, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x43, 0x6f, 0x6f, + 0x6b, 0x69, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1b, 0x0a, + 0x09, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x55, 0x72, 0x6c, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x86, 0x01, 0x0a, 0x0e, 0x53, 0x74, 0x75, 0x64, 0x69, + 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x54, 0x55, + 0x44, 0x49, 0x4f, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, + 0x55, 0x44, 0x49, 0x4f, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x43, 0x4f, + 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x54, 0x55, 0x44, 0x49, + 0x4f, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x47, 0x52, 0x50, 0x43, 0x10, + 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x55, 0x44, 0x49, 0x4f, 0x5f, 0x50, 0x52, 0x4f, 0x54, + 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x47, 0x52, 0x50, 0x43, 0x5f, 0x57, 0x45, 0x42, 0x10, 0x03, 0x32, + 0xcd, 0x04, 0x0a, 0x14, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, + 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8a, 0x01, 0x0a, 0x13, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, + 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6e, 0x61, + 0x6d, 0x65, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x74, 0x75, 0x64, 0x69, + 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x75, + 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, + 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, + 0x02, 0x02, 0x12, 0x8a, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x75, 0x64, 0x69, + 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x75, 0x64, + 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x42, + 0x9f, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x42, 0x12, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, + 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, + 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, + 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, + 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_studio_request_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_buf_alpha_registry_v1alpha1_studio_request_proto_goTypes = []any{ + (StudioProtocol)(0), // 0: buf.alpha.registry.v1alpha1.StudioProtocol + (*CreateStudioRequestRequest)(nil), // 1: buf.alpha.registry.v1alpha1.CreateStudioRequestRequest + (*CreateStudioRequestResponse)(nil), // 2: buf.alpha.registry.v1alpha1.CreateStudioRequestResponse + (*RenameStudioRequestRequest)(nil), // 3: buf.alpha.registry.v1alpha1.RenameStudioRequestRequest + (*RenameStudioRequestResponse)(nil), // 4: buf.alpha.registry.v1alpha1.RenameStudioRequestResponse + (*DeleteStudioRequestRequest)(nil), // 5: buf.alpha.registry.v1alpha1.DeleteStudioRequestRequest + (*DeleteStudioRequestResponse)(nil), // 6: buf.alpha.registry.v1alpha1.DeleteStudioRequestResponse + (*ListStudioRequestsRequest)(nil), // 7: buf.alpha.registry.v1alpha1.ListStudioRequestsRequest + (*ListStudioRequestsResponse)(nil), // 8: buf.alpha.registry.v1alpha1.ListStudioRequestsResponse + (*StudioRequest)(nil), // 9: buf.alpha.registry.v1alpha1.StudioRequest + nil, // 10: buf.alpha.registry.v1alpha1.CreateStudioRequestRequest.HeadersEntry + nil, // 11: buf.alpha.registry.v1alpha1.StudioRequest.HeadersEntry + (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp +} +var file_buf_alpha_registry_v1alpha1_studio_request_proto_depIdxs = []int32{ + 10, // 0: buf.alpha.registry.v1alpha1.CreateStudioRequestRequest.headers:type_name -> buf.alpha.registry.v1alpha1.CreateStudioRequestRequest.HeadersEntry + 0, // 1: buf.alpha.registry.v1alpha1.CreateStudioRequestRequest.protocol:type_name -> buf.alpha.registry.v1alpha1.StudioProtocol + 9, // 2: buf.alpha.registry.v1alpha1.CreateStudioRequestResponse.created_request:type_name -> buf.alpha.registry.v1alpha1.StudioRequest + 9, // 3: buf.alpha.registry.v1alpha1.ListStudioRequestsResponse.requests:type_name -> buf.alpha.registry.v1alpha1.StudioRequest + 12, // 4: buf.alpha.registry.v1alpha1.StudioRequest.create_time:type_name -> google.protobuf.Timestamp + 12, // 5: buf.alpha.registry.v1alpha1.StudioRequest.update_time:type_name -> google.protobuf.Timestamp + 11, // 6: buf.alpha.registry.v1alpha1.StudioRequest.headers:type_name -> buf.alpha.registry.v1alpha1.StudioRequest.HeadersEntry + 0, // 7: buf.alpha.registry.v1alpha1.StudioRequest.protocol:type_name -> buf.alpha.registry.v1alpha1.StudioProtocol + 1, // 8: buf.alpha.registry.v1alpha1.StudioRequestService.CreateStudioRequest:input_type -> buf.alpha.registry.v1alpha1.CreateStudioRequestRequest + 3, // 9: buf.alpha.registry.v1alpha1.StudioRequestService.RenameStudioRequest:input_type -> buf.alpha.registry.v1alpha1.RenameStudioRequestRequest + 5, // 10: buf.alpha.registry.v1alpha1.StudioRequestService.DeleteStudioRequest:input_type -> buf.alpha.registry.v1alpha1.DeleteStudioRequestRequest + 7, // 11: buf.alpha.registry.v1alpha1.StudioRequestService.ListStudioRequests:input_type -> buf.alpha.registry.v1alpha1.ListStudioRequestsRequest + 2, // 12: buf.alpha.registry.v1alpha1.StudioRequestService.CreateStudioRequest:output_type -> buf.alpha.registry.v1alpha1.CreateStudioRequestResponse + 4, // 13: buf.alpha.registry.v1alpha1.StudioRequestService.RenameStudioRequest:output_type -> buf.alpha.registry.v1alpha1.RenameStudioRequestResponse + 6, // 14: buf.alpha.registry.v1alpha1.StudioRequestService.DeleteStudioRequest:output_type -> buf.alpha.registry.v1alpha1.DeleteStudioRequestResponse + 8, // 15: buf.alpha.registry.v1alpha1.StudioRequestService.ListStudioRequests:output_type -> buf.alpha.registry.v1alpha1.ListStudioRequestsResponse + 12, // [12:16] is the sub-list for method output_type + 8, // [8:12] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_studio_request_proto_init() } +func file_buf_alpha_registry_v1alpha1_studio_request_proto_init() { + if File_buf_alpha_registry_v1alpha1_studio_request_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDesc, + NumEnums: 1, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_studio_request_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_studio_request_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_studio_request_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_studio_request_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_studio_request_proto = out.File + file_buf_alpha_registry_v1alpha1_studio_request_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_studio_request_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_studio_request_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/token.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/token.pb.go index b71cdf1418..e4cc271d1f 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/token.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/token.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/token.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -36,7 +37,7 @@ const ( ) type Token struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` ExpireTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` @@ -70,11 +71,6 @@ func (x *Token) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Token.ProtoReflect.Descriptor instead. -func (*Token) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_token_proto_rawDescGZIP(), []int{0} -} - func (x *Token) GetId() string { if x != nil { return x.Id @@ -103,8 +99,66 @@ func (x *Token) GetNote() string { return "" } +func (x *Token) SetId(v string) { + x.Id = v +} + +func (x *Token) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *Token) SetExpireTime(v *timestamppb.Timestamp) { + x.ExpireTime = v +} + +func (x *Token) SetNote(v string) { + x.Note = v +} + +func (x *Token) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *Token) HasExpireTime() bool { + if x == nil { + return false + } + return x.ExpireTime != nil +} + +func (x *Token) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *Token) ClearExpireTime() { + x.ExpireTime = nil +} + +type Token_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + CreateTime *timestamppb.Timestamp + ExpireTime *timestamppb.Timestamp + Note string +} + +func (b0 Token_builder) Build() *Token { + m0 := &Token{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.CreateTime = b.CreateTime + x.ExpireTime = b.ExpireTime + x.Note = b.Note + return m0 +} + type CreateTokenRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Note string `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"` // The time until which the token should be valid. // Must be in the future. May be null for no expiry. @@ -142,11 +196,6 @@ func (x *CreateTokenRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateTokenRequest.ProtoReflect.Descriptor instead. -func (*CreateTokenRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_token_proto_rawDescGZIP(), []int{1} -} - func (x *CreateTokenRequest) GetNote() string { if x != nil { return x.Note @@ -168,8 +217,54 @@ func (x *CreateTokenRequest) GetUserId() string { return "" } +func (x *CreateTokenRequest) SetNote(v string) { + x.Note = v +} + +func (x *CreateTokenRequest) SetExpireTime(v *timestamppb.Timestamp) { + x.ExpireTime = v +} + +func (x *CreateTokenRequest) SetUserId(v string) { + x.UserId = v +} + +func (x *CreateTokenRequest) HasExpireTime() bool { + if x == nil { + return false + } + return x.ExpireTime != nil +} + +func (x *CreateTokenRequest) ClearExpireTime() { + x.ExpireTime = nil +} + +type CreateTokenRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Note string + // The time until which the token should be valid. + // Must be in the future. May be null for no expiry. + ExpireTime *timestamppb.Timestamp + // The ID of the user to create a new token, can only be + // the user who perform this action, or a machine user. + // Default to the user who perform this action if this is empty. + UserId string +} + +func (b0 CreateTokenRequest_builder) Build() *CreateTokenRequest { + m0 := &CreateTokenRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Note = b.Note + x.ExpireTime = b.ExpireTime + x.UserId = b.UserId + return m0 +} + type CreateTokenResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The plaintext token to use for authentication. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` unknownFields protoimpl.UnknownFields @@ -201,11 +296,6 @@ func (x *CreateTokenResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateTokenResponse.ProtoReflect.Descriptor instead. -func (*CreateTokenResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_token_proto_rawDescGZIP(), []int{2} -} - func (x *CreateTokenResponse) GetToken() string { if x != nil { return x.Token @@ -213,8 +303,27 @@ func (x *CreateTokenResponse) GetToken() string { return "" } +func (x *CreateTokenResponse) SetToken(v string) { + x.Token = v +} + +type CreateTokenResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plaintext token to use for authentication. + Token string +} + +func (b0 CreateTokenResponse_builder) Build() *CreateTokenResponse { + m0 := &CreateTokenResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Token = b.Token + return m0 +} + type GetTokenRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -245,11 +354,6 @@ func (x *GetTokenRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetTokenRequest.ProtoReflect.Descriptor instead. -func (*GetTokenRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_token_proto_rawDescGZIP(), []int{3} -} - func (x *GetTokenRequest) GetTokenId() string { if x != nil { return x.TokenId @@ -257,8 +361,26 @@ func (x *GetTokenRequest) GetTokenId() string { return "" } +func (x *GetTokenRequest) SetTokenId(v string) { + x.TokenId = v +} + +type GetTokenRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TokenId string +} + +func (b0 GetTokenRequest_builder) Build() *GetTokenRequest { + m0 := &GetTokenRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TokenId = b.TokenId + return m0 +} + type GetTokenResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -289,11 +411,6 @@ func (x *GetTokenResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetTokenResponse.ProtoReflect.Descriptor instead. -func (*GetTokenResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_token_proto_rawDescGZIP(), []int{4} -} - func (x *GetTokenResponse) GetToken() *Token { if x != nil { return x.Token @@ -301,8 +418,37 @@ func (x *GetTokenResponse) GetToken() *Token { return nil } +func (x *GetTokenResponse) SetToken(v *Token) { + x.Token = v +} + +func (x *GetTokenResponse) HasToken() bool { + if x == nil { + return false + } + return x.Token != nil +} + +func (x *GetTokenResponse) ClearToken() { + x.Token = nil +} + +type GetTokenResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Token *Token +} + +func (b0 GetTokenResponse_builder) Build() *GetTokenResponse { + m0 := &GetTokenResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Token = b.Token + return m0 +} + type ListTokensRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The first page is returned if this is empty. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` @@ -340,11 +486,6 @@ func (x *ListTokensRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListTokensRequest.ProtoReflect.Descriptor instead. -func (*ListTokensRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_token_proto_rawDescGZIP(), []int{5} -} - func (x *ListTokensRequest) GetPageSize() uint32 { if x != nil { return x.PageSize @@ -373,8 +514,48 @@ func (x *ListTokensRequest) GetUserId() string { return "" } +func (x *ListTokensRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListTokensRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListTokensRequest) SetReverse(v bool) { + x.Reverse = v +} + +func (x *ListTokensRequest) SetUserId(v string) { + x.UserId = v +} + +type ListTokensRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool + // The ID of the user to list tokens, can only be + // the user who perform this action, or a machine user. + // Default to the user who perform this action if this is empty. + UserId string +} + +func (b0 ListTokensRequest_builder) Build() *ListTokensRequest { + m0 := &ListTokensRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + x.UserId = b.UserId + return m0 +} + type ListTokensResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Tokens []*Token `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -407,11 +588,6 @@ func (x *ListTokensResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListTokensResponse.ProtoReflect.Descriptor instead. -func (*ListTokensResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_token_proto_rawDescGZIP(), []int{6} -} - func (x *ListTokensResponse) GetTokens() []*Token { if x != nil { return x.Tokens @@ -426,8 +602,33 @@ func (x *ListTokensResponse) GetNextPageToken() string { return "" } +func (x *ListTokensResponse) SetTokens(v []*Token) { + x.Tokens = v +} + +func (x *ListTokensResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListTokensResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Tokens []*Token + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListTokensResponse_builder) Build() *ListTokensResponse { + m0 := &ListTokensResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Tokens = b.Tokens + x.NextPageToken = b.NextPageToken + return m0 +} + type DeleteTokenRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -458,11 +659,6 @@ func (x *DeleteTokenRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteTokenRequest.ProtoReflect.Descriptor instead. -func (*DeleteTokenRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_token_proto_rawDescGZIP(), []int{7} -} - func (x *DeleteTokenRequest) GetTokenId() string { if x != nil { return x.TokenId @@ -470,8 +666,26 @@ func (x *DeleteTokenRequest) GetTokenId() string { return "" } +func (x *DeleteTokenRequest) SetTokenId(v string) { + x.TokenId = v +} + +type DeleteTokenRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TokenId string +} + +func (b0 DeleteTokenRequest_builder) Build() *DeleteTokenRequest { + m0 := &DeleteTokenRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TokenId = b.TokenId + return m0 +} + type DeleteTokenResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -501,9 +715,16 @@ func (x *DeleteTokenResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteTokenResponse.ProtoReflect.Descriptor instead. -func (*DeleteTokenResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_token_proto_rawDescGZIP(), []int{8} +type DeleteTokenResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteTokenResponse_builder) Build() *DeleteTokenResponse { + m0 := &DeleteTokenResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } var File_buf_alpha_registry_v1alpha1_token_proto protoreflect.FileDescriptor @@ -615,18 +836,6 @@ var file_buf_alpha_registry_v1alpha1_token_proto_rawDesc = []byte{ 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_token_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_token_proto_rawDescData = file_buf_alpha_registry_v1alpha1_token_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_token_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_token_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_token_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_token_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_token_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_token_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_buf_alpha_registry_v1alpha1_token_proto_goTypes = []any{ (*Token)(nil), // 0: buf.alpha.registry.v1alpha1.Token diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/token_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/token_protoopaque.pb.go new file mode 100644 index 0000000000..56dc18961f --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/token_protoopaque.pb.go @@ -0,0 +1,887 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/token.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Token struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + xxx_hidden_ExpireTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + xxx_hidden_Note string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Token) Reset() { + *x = Token{} + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Token) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Token) ProtoMessage() {} + +func (x *Token) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Token) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *Token) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *Token) GetExpireTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ExpireTime + } + return nil +} + +func (x *Token) GetNote() string { + if x != nil { + return x.xxx_hidden_Note + } + return "" +} + +func (x *Token) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *Token) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *Token) SetExpireTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ExpireTime = v +} + +func (x *Token) SetNote(v string) { + x.xxx_hidden_Note = v +} + +func (x *Token) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *Token) HasExpireTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExpireTime != nil +} + +func (x *Token) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *Token) ClearExpireTime() { + x.xxx_hidden_ExpireTime = nil +} + +type Token_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + CreateTime *timestamppb.Timestamp + ExpireTime *timestamppb.Timestamp + Note string +} + +func (b0 Token_builder) Build() *Token { + m0 := &Token{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_ExpireTime = b.ExpireTime + x.xxx_hidden_Note = b.Note + return m0 +} + +type CreateTokenRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Note string `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"` + xxx_hidden_ExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` + xxx_hidden_UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateTokenRequest) Reset() { + *x = CreateTokenRequest{} + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateTokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTokenRequest) ProtoMessage() {} + +func (x *CreateTokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateTokenRequest) GetNote() string { + if x != nil { + return x.xxx_hidden_Note + } + return "" +} + +func (x *CreateTokenRequest) GetExpireTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ExpireTime + } + return nil +} + +func (x *CreateTokenRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *CreateTokenRequest) SetNote(v string) { + x.xxx_hidden_Note = v +} + +func (x *CreateTokenRequest) SetExpireTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ExpireTime = v +} + +func (x *CreateTokenRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +func (x *CreateTokenRequest) HasExpireTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExpireTime != nil +} + +func (x *CreateTokenRequest) ClearExpireTime() { + x.xxx_hidden_ExpireTime = nil +} + +type CreateTokenRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Note string + // The time until which the token should be valid. + // Must be in the future. May be null for no expiry. + ExpireTime *timestamppb.Timestamp + // The ID of the user to create a new token, can only be + // the user who perform this action, or a machine user. + // Default to the user who perform this action if this is empty. + UserId string +} + +func (b0 CreateTokenRequest_builder) Build() *CreateTokenRequest { + m0 := &CreateTokenRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Note = b.Note + x.xxx_hidden_ExpireTime = b.ExpireTime + x.xxx_hidden_UserId = b.UserId + return m0 +} + +type CreateTokenResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateTokenResponse) Reset() { + *x = CreateTokenResponse{} + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateTokenResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTokenResponse) ProtoMessage() {} + +func (x *CreateTokenResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateTokenResponse) GetToken() string { + if x != nil { + return x.xxx_hidden_Token + } + return "" +} + +func (x *CreateTokenResponse) SetToken(v string) { + x.xxx_hidden_Token = v +} + +type CreateTokenResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The plaintext token to use for authentication. + Token string +} + +func (b0 CreateTokenResponse_builder) Build() *CreateTokenResponse { + m0 := &CreateTokenResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Token = b.Token + return m0 +} + +type GetTokenRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetTokenRequest) Reset() { + *x = GetTokenRequest{} + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetTokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTokenRequest) ProtoMessage() {} + +func (x *GetTokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetTokenRequest) GetTokenId() string { + if x != nil { + return x.xxx_hidden_TokenId + } + return "" +} + +func (x *GetTokenRequest) SetTokenId(v string) { + x.xxx_hidden_TokenId = v +} + +type GetTokenRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TokenId string +} + +func (b0 GetTokenRequest_builder) Build() *GetTokenRequest { + m0 := &GetTokenRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TokenId = b.TokenId + return m0 +} + +type GetTokenResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetTokenResponse) Reset() { + *x = GetTokenResponse{} + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetTokenResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTokenResponse) ProtoMessage() {} + +func (x *GetTokenResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetTokenResponse) GetToken() *Token { + if x != nil { + return x.xxx_hidden_Token + } + return nil +} + +func (x *GetTokenResponse) SetToken(v *Token) { + x.xxx_hidden_Token = v +} + +func (x *GetTokenResponse) HasToken() bool { + if x == nil { + return false + } + return x.xxx_hidden_Token != nil +} + +func (x *GetTokenResponse) ClearToken() { + x.xxx_hidden_Token = nil +} + +type GetTokenResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Token *Token +} + +func (b0 GetTokenResponse_builder) Build() *GetTokenResponse { + m0 := &GetTokenResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Token = b.Token + return m0 +} + +type ListTokensRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,3,opt,name=reverse,proto3" json:"reverse,omitempty"` + xxx_hidden_UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListTokensRequest) Reset() { + *x = ListTokensRequest{} + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListTokensRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListTokensRequest) ProtoMessage() {} + +func (x *ListTokensRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListTokensRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListTokensRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListTokensRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListTokensRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *ListTokensRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListTokensRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListTokensRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +func (x *ListTokensRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +type ListTokensRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool + // The ID of the user to list tokens, can only be + // the user who perform this action, or a machine user. + // Default to the user who perform this action if this is empty. + UserId string +} + +func (b0 ListTokensRequest_builder) Build() *ListTokensRequest { + m0 := &ListTokensRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + x.xxx_hidden_UserId = b.UserId + return m0 +} + +type ListTokensResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Tokens *[]*Token `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListTokensResponse) Reset() { + *x = ListTokensResponse{} + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListTokensResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListTokensResponse) ProtoMessage() {} + +func (x *ListTokensResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListTokensResponse) GetTokens() []*Token { + if x != nil { + if x.xxx_hidden_Tokens != nil { + return *x.xxx_hidden_Tokens + } + } + return nil +} + +func (x *ListTokensResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListTokensResponse) SetTokens(v []*Token) { + x.xxx_hidden_Tokens = &v +} + +func (x *ListTokensResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListTokensResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Tokens []*Token + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListTokensResponse_builder) Build() *ListTokensResponse { + m0 := &ListTokensResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Tokens = &b.Tokens + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type DeleteTokenRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteTokenRequest) Reset() { + *x = DeleteTokenRequest{} + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteTokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteTokenRequest) ProtoMessage() {} + +func (x *DeleteTokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteTokenRequest) GetTokenId() string { + if x != nil { + return x.xxx_hidden_TokenId + } + return "" +} + +func (x *DeleteTokenRequest) SetTokenId(v string) { + x.xxx_hidden_TokenId = v +} + +type DeleteTokenRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TokenId string +} + +func (b0 DeleteTokenRequest_builder) Build() *DeleteTokenRequest { + m0 := &DeleteTokenRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TokenId = b.TokenId + return m0 +} + +type DeleteTokenResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteTokenResponse) Reset() { + *x = DeleteTokenResponse{} + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteTokenResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteTokenResponse) ProtoMessage() {} + +func (x *DeleteTokenResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_token_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteTokenResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteTokenResponse_builder) Build() *DeleteTokenResponse { + m0 := &DeleteTokenResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_buf_alpha_registry_v1alpha1_token_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_token_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa5, 0x01, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 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, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, + 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x6f, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x22, + 0x7e, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, + 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 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, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, + 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, + 0x2b, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x2c, 0x0a, 0x0f, + 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x22, 0x4c, 0x0a, 0x10, 0x47, 0x65, + 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, + 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x82, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, + 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, + 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, + 0x65, 0x72, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x78, 0x0a, + 0x12, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, + 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, + 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x2f, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, + 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, + 0xd9, 0x03, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x70, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x2f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x30, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2c, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, + 0x12, 0x72, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x2e, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x03, 0x90, 0x02, 0x01, 0x12, 0x75, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x12, 0x2f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x42, 0x97, 0x02, 0x0a, 0x1f, + 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, + 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, + 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, + 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, + 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_token_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_buf_alpha_registry_v1alpha1_token_proto_goTypes = []any{ + (*Token)(nil), // 0: buf.alpha.registry.v1alpha1.Token + (*CreateTokenRequest)(nil), // 1: buf.alpha.registry.v1alpha1.CreateTokenRequest + (*CreateTokenResponse)(nil), // 2: buf.alpha.registry.v1alpha1.CreateTokenResponse + (*GetTokenRequest)(nil), // 3: buf.alpha.registry.v1alpha1.GetTokenRequest + (*GetTokenResponse)(nil), // 4: buf.alpha.registry.v1alpha1.GetTokenResponse + (*ListTokensRequest)(nil), // 5: buf.alpha.registry.v1alpha1.ListTokensRequest + (*ListTokensResponse)(nil), // 6: buf.alpha.registry.v1alpha1.ListTokensResponse + (*DeleteTokenRequest)(nil), // 7: buf.alpha.registry.v1alpha1.DeleteTokenRequest + (*DeleteTokenResponse)(nil), // 8: buf.alpha.registry.v1alpha1.DeleteTokenResponse + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp +} +var file_buf_alpha_registry_v1alpha1_token_proto_depIdxs = []int32{ + 9, // 0: buf.alpha.registry.v1alpha1.Token.create_time:type_name -> google.protobuf.Timestamp + 9, // 1: buf.alpha.registry.v1alpha1.Token.expire_time:type_name -> google.protobuf.Timestamp + 9, // 2: buf.alpha.registry.v1alpha1.CreateTokenRequest.expire_time:type_name -> google.protobuf.Timestamp + 0, // 3: buf.alpha.registry.v1alpha1.GetTokenResponse.token:type_name -> buf.alpha.registry.v1alpha1.Token + 0, // 4: buf.alpha.registry.v1alpha1.ListTokensResponse.tokens:type_name -> buf.alpha.registry.v1alpha1.Token + 1, // 5: buf.alpha.registry.v1alpha1.TokenService.CreateToken:input_type -> buf.alpha.registry.v1alpha1.CreateTokenRequest + 3, // 6: buf.alpha.registry.v1alpha1.TokenService.GetToken:input_type -> buf.alpha.registry.v1alpha1.GetTokenRequest + 5, // 7: buf.alpha.registry.v1alpha1.TokenService.ListTokens:input_type -> buf.alpha.registry.v1alpha1.ListTokensRequest + 7, // 8: buf.alpha.registry.v1alpha1.TokenService.DeleteToken:input_type -> buf.alpha.registry.v1alpha1.DeleteTokenRequest + 2, // 9: buf.alpha.registry.v1alpha1.TokenService.CreateToken:output_type -> buf.alpha.registry.v1alpha1.CreateTokenResponse + 4, // 10: buf.alpha.registry.v1alpha1.TokenService.GetToken:output_type -> buf.alpha.registry.v1alpha1.GetTokenResponse + 6, // 11: buf.alpha.registry.v1alpha1.TokenService.ListTokens:output_type -> buf.alpha.registry.v1alpha1.ListTokensResponse + 8, // 12: buf.alpha.registry.v1alpha1.TokenService.DeleteToken:output_type -> buf.alpha.registry.v1alpha1.DeleteTokenResponse + 9, // [9:13] is the sub-list for method output_type + 5, // [5:9] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_token_proto_init() } +func file_buf_alpha_registry_v1alpha1_token_proto_init() { + if File_buf_alpha_registry_v1alpha1_token_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_token_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_token_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_token_proto_depIdxs, + MessageInfos: file_buf_alpha_registry_v1alpha1_token_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_token_proto = out.File + file_buf_alpha_registry_v1alpha1_token_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_token_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_token_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/user.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/user.pb.go index c946028dbf..6099c622e9 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/user.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/user.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/user.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -79,11 +80,6 @@ func (x UserState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use UserState.Descriptor instead. -func (UserState) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{0} -} - type UserType int32 const ( @@ -131,13 +127,8 @@ func (x UserType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use UserType.Descriptor instead. -func (UserType) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{1} -} - type User struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // primary key, unique, immutable Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // immutable @@ -186,11 +177,6 @@ func (x *User) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use User.ProtoReflect.Descriptor instead. -func (*User) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{0} -} - func (x *User) GetId() string { if x != nil { return x.Id @@ -254,9 +240,107 @@ func (x *User) GetUserType() UserType { return UserType_USER_TYPE_UNSPECIFIED } +func (x *User) SetId(v string) { + x.Id = v +} + +func (x *User) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *User) SetUpdateTime(v *timestamppb.Timestamp) { + x.UpdateTime = v +} + +func (x *User) SetUsername(v string) { + x.Username = v +} + +func (x *User) SetDeactivated(v bool) { + x.Deactivated = v +} + +func (x *User) SetDescription(v string) { + x.Description = v +} + +func (x *User) SetUrl(v string) { + x.Url = v +} + +func (x *User) SetVerificationStatus(v VerificationStatus) { + x.VerificationStatus = v +} + +func (x *User) SetUserType(v UserType) { + x.UserType = v +} + +func (x *User) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *User) HasUpdateTime() bool { + if x == nil { + return false + } + return x.UpdateTime != nil +} + +func (x *User) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *User) ClearUpdateTime() { + x.UpdateTime = nil +} + +type User_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique, immutable + Id string + // immutable + CreateTime *timestamppb.Timestamp + // mutable + UpdateTime *timestamppb.Timestamp + // unique, mutable + Username string + // mutable + Deactivated bool + // description is the user configurable description of the user. + Description string + // url is the user configurable URL in the description of the user, + // always included the scheme and will not have a #fragment suffix. + Url string + // verification status of the user, configurable by server admin. + VerificationStatus VerificationStatus + // user type of the user, depends on how the user was created. + UserType UserType +} + +func (b0 User_builder) Build() *User { + m0 := &User{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.CreateTime = b.CreateTime + x.UpdateTime = b.UpdateTime + x.Username = b.Username + x.Deactivated = b.Deactivated + x.Description = b.Description + x.Url = b.Url + x.VerificationStatus = b.VerificationStatus + x.UserType = b.UserType + return m0 +} + // TODO: #663 move this to organization service type OrganizationUser struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // The ID of the organization for which the role belongs to. OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` @@ -293,11 +377,6 @@ func (x *OrganizationUser) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OrganizationUser.ProtoReflect.Descriptor instead. -func (*OrganizationUser) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{1} -} - func (x *OrganizationUser) GetUser() *User { if x != nil { return x.User @@ -326,12 +405,62 @@ func (x *OrganizationUser) GetOrganizationRoleSource() OrganizationRoleSource { return OrganizationRoleSource_ORGANIZATION_ROLE_SOURCE_UNSPECIFIED } +func (x *OrganizationUser) SetUser(v *User) { + x.User = v +} + +func (x *OrganizationUser) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *OrganizationUser) SetOrganizationRole(v OrganizationRole) { + x.OrganizationRole = v +} + +func (x *OrganizationUser) SetOrganizationRoleSource(v OrganizationRoleSource) { + x.OrganizationRoleSource = v +} + +func (x *OrganizationUser) HasUser() bool { + if x == nil { + return false + } + return x.User != nil +} + +func (x *OrganizationUser) ClearUser() { + x.User = nil +} + +type OrganizationUser_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User + // The ID of the organization for which the role belongs to. + OrganizationId string + // The role that the user has in the organization above. + OrganizationRole OrganizationRole + // The source of the user's role in the organization above. + OrganizationRoleSource OrganizationRoleSource +} + +func (b0 OrganizationUser_builder) Build() *OrganizationUser { + m0 := &OrganizationUser{} + b, x := &b0, m0 + _, _ = b, x + x.User = b.User + x.OrganizationId = b.OrganizationId + x.OrganizationRole = b.OrganizationRole + x.OrganizationRoleSource = b.OrganizationRoleSource + return m0 +} + // UserPluginPreference contains the user's preferred language and the // list of plugins for that language, which they selected in the BSR's Generated SDKs UI flow. // These preferences are stored in the database so the language and plugins // are pre-selected when the user navigates back to the Generated SDKs page from any device or browser. type UserPluginPreference struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The language that the user has indicidated as their preferred language for plugins. SelectedLanguage PluginLanguage `protobuf:"varint,2,opt,name=selected_language,json=selectedLanguage,proto3,enum=buf.alpha.registry.v1alpha1.PluginLanguage" json:"selected_language,omitempty"` // A list of plugin names selected by the user. @@ -365,11 +494,6 @@ func (x *UserPluginPreference) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserPluginPreference.ProtoReflect.Descriptor instead. -func (*UserPluginPreference) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{2} -} - func (x *UserPluginPreference) GetSelectedLanguage() PluginLanguage { if x != nil { return x.SelectedLanguage @@ -384,8 +508,34 @@ func (x *UserPluginPreference) GetSelectedPlugins() []string { return nil } +func (x *UserPluginPreference) SetSelectedLanguage(v PluginLanguage) { + x.SelectedLanguage = v +} + +func (x *UserPluginPreference) SetSelectedPlugins(v []string) { + x.SelectedPlugins = v +} + +type UserPluginPreference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The language that the user has indicidated as their preferred language for plugins. + SelectedLanguage PluginLanguage + // A list of plugin names selected by the user. + SelectedPlugins []string +} + +func (b0 UserPluginPreference_builder) Build() *UserPluginPreference { + m0 := &UserPluginPreference{} + b, x := &b0, m0 + _, _ = b, x + x.SelectedLanguage = b.SelectedLanguage + x.SelectedPlugins = b.SelectedPlugins + return m0 +} + type CreateUserRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -416,11 +566,6 @@ func (x *CreateUserRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead. -func (*CreateUserRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{3} -} - func (x *CreateUserRequest) GetUsername() string { if x != nil { return x.Username @@ -428,8 +573,26 @@ func (x *CreateUserRequest) GetUsername() string { return "" } +func (x *CreateUserRequest) SetUsername(v string) { + x.Username = v +} + +type CreateUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Username string +} + +func (b0 CreateUserRequest_builder) Build() *CreateUserRequest { + m0 := &CreateUserRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Username = b.Username + return m0 +} + type CreateUserResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -460,11 +623,6 @@ func (x *CreateUserResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead. -func (*CreateUserResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{4} -} - func (x *CreateUserResponse) GetUser() *User { if x != nil { return x.User @@ -472,8 +630,37 @@ func (x *CreateUserResponse) GetUser() *User { return nil } +func (x *CreateUserResponse) SetUser(v *User) { + x.User = v +} + +func (x *CreateUserResponse) HasUser() bool { + if x == nil { + return false + } + return x.User != nil +} + +func (x *CreateUserResponse) ClearUser() { + x.User = nil +} + +type CreateUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User +} + +func (b0 CreateUserResponse_builder) Build() *CreateUserResponse { + m0 := &CreateUserResponse{} + b, x := &b0, m0 + _, _ = b, x + x.User = b.User + return m0 +} + type GetUserRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -504,11 +691,6 @@ func (x *GetUserRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead. -func (*GetUserRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{5} -} - func (x *GetUserRequest) GetId() string { if x != nil { return x.Id @@ -516,8 +698,26 @@ func (x *GetUserRequest) GetId() string { return "" } +func (x *GetUserRequest) SetId(v string) { + x.Id = v +} + +type GetUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 GetUserRequest_builder) Build() *GetUserRequest { + m0 := &GetUserRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + type GetUserResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -548,11 +748,6 @@ func (x *GetUserResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead. -func (*GetUserResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{6} -} - func (x *GetUserResponse) GetUser() *User { if x != nil { return x.User @@ -560,8 +755,37 @@ func (x *GetUserResponse) GetUser() *User { return nil } +func (x *GetUserResponse) SetUser(v *User) { + x.User = v +} + +func (x *GetUserResponse) HasUser() bool { + if x == nil { + return false + } + return x.User != nil +} + +func (x *GetUserResponse) ClearUser() { + x.User = nil +} + +type GetUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User +} + +func (b0 GetUserResponse_builder) Build() *GetUserResponse { + m0 := &GetUserResponse{} + b, x := &b0, m0 + _, _ = b, x + x.User = b.User + return m0 +} + type GetUserByUsernameRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -592,11 +816,6 @@ func (x *GetUserByUsernameRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUserByUsernameRequest.ProtoReflect.Descriptor instead. -func (*GetUserByUsernameRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{7} -} - func (x *GetUserByUsernameRequest) GetUsername() string { if x != nil { return x.Username @@ -604,8 +823,26 @@ func (x *GetUserByUsernameRequest) GetUsername() string { return "" } +func (x *GetUserByUsernameRequest) SetUsername(v string) { + x.Username = v +} + +type GetUserByUsernameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Username string +} + +func (b0 GetUserByUsernameRequest_builder) Build() *GetUserByUsernameRequest { + m0 := &GetUserByUsernameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Username = b.Username + return m0 +} + type GetUserByUsernameResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -636,11 +873,6 @@ func (x *GetUserByUsernameResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUserByUsernameResponse.ProtoReflect.Descriptor instead. -func (*GetUserByUsernameResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{8} -} - func (x *GetUserByUsernameResponse) GetUser() *User { if x != nil { return x.User @@ -648,8 +880,37 @@ func (x *GetUserByUsernameResponse) GetUser() *User { return nil } +func (x *GetUserByUsernameResponse) SetUser(v *User) { + x.User = v +} + +func (x *GetUserByUsernameResponse) HasUser() bool { + if x == nil { + return false + } + return x.User != nil +} + +func (x *GetUserByUsernameResponse) ClearUser() { + x.User = nil +} + +type GetUserByUsernameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User +} + +func (b0 GetUserByUsernameResponse_builder) Build() *GetUserByUsernameResponse { + m0 := &GetUserByUsernameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.User = b.User + return m0 +} + type ListUsersRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The first page is returned if this is empty. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` @@ -687,11 +948,6 @@ func (x *ListUsersRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead. -func (*ListUsersRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{9} -} - func (x *ListUsersRequest) GetPageSize() uint32 { if x != nil { return x.PageSize @@ -727,8 +983,53 @@ func (x *ListUsersRequest) GetUserTypeFilters() []UserType { return nil } +func (x *ListUsersRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListUsersRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListUsersRequest) SetReverse(v bool) { + x.Reverse = v +} + +func (x *ListUsersRequest) SetUserStateFilter(v UserState) { + x.UserStateFilter = v +} + +func (x *ListUsersRequest) SetUserTypeFilters(v []UserType) { + x.UserTypeFilters = v +} + +type ListUsersRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool + // If the user_state_filter is unspecified, users of all states are included. + UserStateFilter UserState + // If the user_type_filters is empty, users of all types are included. + UserTypeFilters []UserType +} + +func (b0 ListUsersRequest_builder) Build() *ListUsersRequest { + m0 := &ListUsersRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + x.UserStateFilter = b.UserStateFilter + x.UserTypeFilters = b.UserTypeFilters + return m0 +} + type ListUsersResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -761,11 +1062,6 @@ func (x *ListUsersResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead. -func (*ListUsersResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{10} -} - func (x *ListUsersResponse) GetUsers() []*User { if x != nil { return x.Users @@ -780,8 +1076,33 @@ func (x *ListUsersResponse) GetNextPageToken() string { return "" } +func (x *ListUsersResponse) SetUsers(v []*User) { + x.Users = v +} + +func (x *ListUsersResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListUsersResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Users []*User + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListUsersResponse_builder) Build() *ListUsersResponse { + m0 := &ListUsersResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Users = b.Users + x.NextPageToken = b.NextPageToken + return m0 +} + type ListOrganizationUsersRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The first page is returned if this is empty. @@ -816,11 +1137,6 @@ func (x *ListOrganizationUsersRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListOrganizationUsersRequest.ProtoReflect.Descriptor instead. -func (*ListOrganizationUsersRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{11} -} - func (x *ListOrganizationUsersRequest) GetOrganizationId() string { if x != nil { return x.OrganizationId @@ -849,8 +1165,45 @@ func (x *ListOrganizationUsersRequest) GetReverse() bool { return false } +func (x *ListOrganizationUsersRequest) SetOrganizationId(v string) { + x.OrganizationId = v +} + +func (x *ListOrganizationUsersRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListOrganizationUsersRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ListOrganizationUsersRequest) SetReverse(v bool) { + x.Reverse = v +} + +type ListOrganizationUsersRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + OrganizationId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListOrganizationUsersRequest_builder) Build() *ListOrganizationUsersRequest { + m0 := &ListOrganizationUsersRequest{} + b, x := &b0, m0 + _, _ = b, x + x.OrganizationId = b.OrganizationId + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Reverse = b.Reverse + return m0 +} + type ListOrganizationUsersResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Users []*OrganizationUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // There are no more pages if this is empty. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -883,11 +1236,6 @@ func (x *ListOrganizationUsersResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListOrganizationUsersResponse.ProtoReflect.Descriptor instead. -func (*ListOrganizationUsersResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{12} -} - func (x *ListOrganizationUsersResponse) GetUsers() []*OrganizationUser { if x != nil { return x.Users @@ -902,8 +1250,33 @@ func (x *ListOrganizationUsersResponse) GetNextPageToken() string { return "" } +func (x *ListOrganizationUsersResponse) SetUsers(v []*OrganizationUser) { + x.Users = v +} + +func (x *ListOrganizationUsersResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListOrganizationUsersResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Users []*OrganizationUser + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListOrganizationUsersResponse_builder) Build() *ListOrganizationUsersResponse { + m0 := &ListOrganizationUsersResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Users = b.Users + x.NextPageToken = b.NextPageToken + return m0 +} + type DeleteUserRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -933,13 +1306,20 @@ func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead. -func (*DeleteUserRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{13} +type DeleteUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteUserRequest_builder) Build() *DeleteUserRequest { + m0 := &DeleteUserRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type DeleteUserResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -969,13 +1349,20 @@ func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead. -func (*DeleteUserResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{14} +type DeleteUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteUserResponse_builder) Build() *DeleteUserResponse { + m0 := &DeleteUserResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type DeactivateUserRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1006,11 +1393,6 @@ func (x *DeactivateUserRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeactivateUserRequest.ProtoReflect.Descriptor instead. -func (*DeactivateUserRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{15} -} - func (x *DeactivateUserRequest) GetId() string { if x != nil { return x.Id @@ -1018,8 +1400,26 @@ func (x *DeactivateUserRequest) GetId() string { return "" } +func (x *DeactivateUserRequest) SetId(v string) { + x.Id = v +} + +type DeactivateUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 DeactivateUserRequest_builder) Build() *DeactivateUserRequest { + m0 := &DeactivateUserRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + type DeactivateUserResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1049,13 +1449,20 @@ func (x *DeactivateUserResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeactivateUserResponse.ProtoReflect.Descriptor instead. -func (*DeactivateUserResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{16} +type DeactivateUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeactivateUserResponse_builder) Build() *DeactivateUserResponse { + m0 := &DeactivateUserResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type UpdateUserServerRoleRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The ID of the user for which to be updated a role. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The new role of the user in the server. @@ -1089,11 +1496,6 @@ func (x *UpdateUserServerRoleRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateUserServerRoleRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserServerRoleRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{17} -} - func (x *UpdateUserServerRoleRequest) GetUserId() string { if x != nil { return x.UserId @@ -1108,8 +1510,34 @@ func (x *UpdateUserServerRoleRequest) GetServerRole() ServerRole { return ServerRole_SERVER_ROLE_UNSPECIFIED } +func (x *UpdateUserServerRoleRequest) SetUserId(v string) { + x.UserId = v +} + +func (x *UpdateUserServerRoleRequest) SetServerRole(v ServerRole) { + x.ServerRole = v +} + +type UpdateUserServerRoleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the user for which to be updated a role. + UserId string + // The new role of the user in the server. + ServerRole ServerRole +} + +func (b0 UpdateUserServerRoleRequest_builder) Build() *UpdateUserServerRoleRequest { + m0 := &UpdateUserServerRoleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.UserId = b.UserId + x.ServerRole = b.ServerRole + return m0 +} + type UpdateUserServerRoleResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1139,13 +1567,20 @@ func (x *UpdateUserServerRoleResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateUserServerRoleResponse.ProtoReflect.Descriptor instead. -func (*UpdateUserServerRoleResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{18} +type UpdateUserServerRoleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateUserServerRoleResponse_builder) Build() *UpdateUserServerRoleResponse { + m0 := &UpdateUserServerRoleResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type CountUsersRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // If the user_state_filter is unspecified, all users are included. UserStateFilter UserState `protobuf:"varint,1,opt,name=user_state_filter,json=userStateFilter,proto3,enum=buf.alpha.registry.v1alpha1.UserState" json:"user_state_filter,omitempty"` unknownFields protoimpl.UnknownFields @@ -1177,11 +1612,6 @@ func (x *CountUsersRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CountUsersRequest.ProtoReflect.Descriptor instead. -func (*CountUsersRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{19} -} - func (x *CountUsersRequest) GetUserStateFilter() UserState { if x != nil { return x.UserStateFilter @@ -1189,8 +1619,27 @@ func (x *CountUsersRequest) GetUserStateFilter() UserState { return UserState_USER_STATE_UNSPECIFIED } +func (x *CountUsersRequest) SetUserStateFilter(v UserState) { + x.UserStateFilter = v +} + +type CountUsersRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If the user_state_filter is unspecified, all users are included. + UserStateFilter UserState +} + +func (b0 CountUsersRequest_builder) Build() *CountUsersRequest { + m0 := &CountUsersRequest{} + b, x := &b0, m0 + _, _ = b, x + x.UserStateFilter = b.UserStateFilter + return m0 +} + type CountUsersResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TotalCount uint32 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1221,11 +1670,6 @@ func (x *CountUsersResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CountUsersResponse.ProtoReflect.Descriptor instead. -func (*CountUsersResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{20} -} - func (x *CountUsersResponse) GetTotalCount() uint32 { if x != nil { return x.TotalCount @@ -1233,8 +1677,26 @@ func (x *CountUsersResponse) GetTotalCount() uint32 { return 0 } +func (x *CountUsersResponse) SetTotalCount(v uint32) { + x.TotalCount = v +} + +type CountUsersResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TotalCount uint32 +} + +func (b0 CountUsersResponse_builder) Build() *CountUsersResponse { + m0 := &CountUsersResponse{} + b, x := &b0, m0 + _, _ = b, x + x.TotalCount = b.TotalCount + return m0 +} + type UpdateUserSettingsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // optional, update to description will only be made when this is present Description *string `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"` @@ -1269,11 +1731,6 @@ func (x *UpdateUserSettingsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateUserSettingsRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserSettingsRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{21} -} - func (x *UpdateUserSettingsRequest) GetUserId() string { if x != nil { return x.UserId @@ -1295,8 +1752,62 @@ func (x *UpdateUserSettingsRequest) GetUrl() string { return "" } +func (x *UpdateUserSettingsRequest) SetUserId(v string) { + x.UserId = v +} + +func (x *UpdateUserSettingsRequest) SetDescription(v string) { + x.Description = &v +} + +func (x *UpdateUserSettingsRequest) SetUrl(v string) { + x.Url = &v +} + +func (x *UpdateUserSettingsRequest) HasDescription() bool { + if x == nil { + return false + } + return x.Description != nil +} + +func (x *UpdateUserSettingsRequest) HasUrl() bool { + if x == nil { + return false + } + return x.Url != nil +} + +func (x *UpdateUserSettingsRequest) ClearDescription() { + x.Description = nil +} + +func (x *UpdateUserSettingsRequest) ClearUrl() { + x.Url = nil +} + +type UpdateUserSettingsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + UserId string + // optional, update to description will only be made when this is present + Description *string + // optional, update to url will only be made when this is present + Url *string +} + +func (b0 UpdateUserSettingsRequest_builder) Build() *UpdateUserSettingsRequest { + m0 := &UpdateUserSettingsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.UserId = b.UserId + x.Description = b.Description + x.Url = b.Url + return m0 +} + type UpdateUserSettingsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1326,13 +1837,20 @@ func (x *UpdateUserSettingsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateUserSettingsResponse.ProtoReflect.Descriptor instead. -func (*UpdateUserSettingsResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{22} +type UpdateUserSettingsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateUserSettingsResponse_builder) Build() *UpdateUserSettingsResponse { + m0 := &UpdateUserSettingsResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetUserPluginPreferencesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1362,13 +1880,20 @@ func (x *GetUserPluginPreferencesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUserPluginPreferencesRequest.ProtoReflect.Descriptor instead. -func (*GetUserPluginPreferencesRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{23} +type GetUserPluginPreferencesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetUserPluginPreferencesRequest_builder) Build() *GetUserPluginPreferencesRequest { + m0 := &GetUserPluginPreferencesRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type GetUserPluginPreferencesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Preference *UserPluginPreference `protobuf:"bytes,1,opt,name=preference,proto3" json:"preference,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1399,11 +1924,6 @@ func (x *GetUserPluginPreferencesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUserPluginPreferencesResponse.ProtoReflect.Descriptor instead. -func (*GetUserPluginPreferencesResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{24} -} - func (x *GetUserPluginPreferencesResponse) GetPreference() *UserPluginPreference { if x != nil { return x.Preference @@ -1411,8 +1931,37 @@ func (x *GetUserPluginPreferencesResponse) GetPreference() *UserPluginPreference return nil } +func (x *GetUserPluginPreferencesResponse) SetPreference(v *UserPluginPreference) { + x.Preference = v +} + +func (x *GetUserPluginPreferencesResponse) HasPreference() bool { + if x == nil { + return false + } + return x.Preference != nil +} + +func (x *GetUserPluginPreferencesResponse) ClearPreference() { + x.Preference = nil +} + +type GetUserPluginPreferencesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Preference *UserPluginPreference +} + +func (b0 GetUserPluginPreferencesResponse_builder) Build() *GetUserPluginPreferencesResponse { + m0 := &GetUserPluginPreferencesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Preference = b.Preference + return m0 +} + type UpdateUserPluginPreferencesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Preference *UserPluginPreference `protobuf:"bytes,1,opt,name=preference,proto3" json:"preference,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1443,11 +1992,6 @@ func (x *UpdateUserPluginPreferencesRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use UpdateUserPluginPreferencesRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserPluginPreferencesRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{25} -} - func (x *UpdateUserPluginPreferencesRequest) GetPreference() *UserPluginPreference { if x != nil { return x.Preference @@ -1455,8 +1999,37 @@ func (x *UpdateUserPluginPreferencesRequest) GetPreference() *UserPluginPreferen return nil } +func (x *UpdateUserPluginPreferencesRequest) SetPreference(v *UserPluginPreference) { + x.Preference = v +} + +func (x *UpdateUserPluginPreferencesRequest) HasPreference() bool { + if x == nil { + return false + } + return x.Preference != nil +} + +func (x *UpdateUserPluginPreferencesRequest) ClearPreference() { + x.Preference = nil +} + +type UpdateUserPluginPreferencesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Preference *UserPluginPreference +} + +func (b0 UpdateUserPluginPreferencesRequest_builder) Build() *UpdateUserPluginPreferencesRequest { + m0 := &UpdateUserPluginPreferencesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Preference = b.Preference + return m0 +} + type UpdateUserPluginPreferencesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Preference *UserPluginPreference `protobuf:"bytes,1,opt,name=preference,proto3" json:"preference,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1487,11 +2060,6 @@ func (x *UpdateUserPluginPreferencesResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use UpdateUserPluginPreferencesResponse.ProtoReflect.Descriptor instead. -func (*UpdateUserPluginPreferencesResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP(), []int{26} -} - func (x *UpdateUserPluginPreferencesResponse) GetPreference() *UserPluginPreference { if x != nil { return x.Preference @@ -1499,6 +2067,35 @@ func (x *UpdateUserPluginPreferencesResponse) GetPreference() *UserPluginPrefere return nil } +func (x *UpdateUserPluginPreferencesResponse) SetPreference(v *UserPluginPreference) { + x.Preference = v +} + +func (x *UpdateUserPluginPreferencesResponse) HasPreference() bool { + if x == nil { + return false + } + return x.Preference != nil +} + +func (x *UpdateUserPluginPreferencesResponse) ClearPreference() { + x.Preference = nil +} + +type UpdateUserPluginPreferencesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Preference *UserPluginPreference +} + +func (b0 UpdateUserPluginPreferencesResponse_builder) Build() *UpdateUserPluginPreferencesResponse { + m0 := &UpdateUserPluginPreferencesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Preference = b.Preference + return m0 +} + var File_buf_alpha_registry_v1alpha1_user_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_user_proto_rawDesc = []byte{ @@ -1838,18 +2435,6 @@ var file_buf_alpha_registry_v1alpha1_user_proto_rawDesc = []byte{ 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_user_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_user_proto_rawDescData = file_buf_alpha_registry_v1alpha1_user_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_user_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_user_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_user_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_user_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_user_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_buf_alpha_registry_v1alpha1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 27) var file_buf_alpha_registry_v1alpha1_user_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/user_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/user_protoopaque.pb.go new file mode 100644 index 0000000000..95758f3e8c --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/user_protoopaque.pb.go @@ -0,0 +1,2553 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/user.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type UserState int32 + +const ( + UserState_USER_STATE_UNSPECIFIED UserState = 0 + UserState_USER_STATE_ACTIVE UserState = 1 + UserState_USER_STATE_DEACTIVATED UserState = 2 +) + +// Enum value maps for UserState. +var ( + UserState_name = map[int32]string{ + 0: "USER_STATE_UNSPECIFIED", + 1: "USER_STATE_ACTIVE", + 2: "USER_STATE_DEACTIVATED", + } + UserState_value = map[string]int32{ + "USER_STATE_UNSPECIFIED": 0, + "USER_STATE_ACTIVE": 1, + "USER_STATE_DEACTIVATED": 2, + } +) + +func (x UserState) Enum() *UserState { + p := new(UserState) + *p = x + return p +} + +func (x UserState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (UserState) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_user_proto_enumTypes[0].Descriptor() +} + +func (UserState) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_user_proto_enumTypes[0] +} + +func (x UserState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type UserType int32 + +const ( + UserType_USER_TYPE_UNSPECIFIED UserType = 0 + UserType_USER_TYPE_PERSONAL UserType = 1 + UserType_USER_TYPE_MACHINE UserType = 2 + UserType_USER_TYPE_SYSTEM UserType = 3 +) + +// Enum value maps for UserType. +var ( + UserType_name = map[int32]string{ + 0: "USER_TYPE_UNSPECIFIED", + 1: "USER_TYPE_PERSONAL", + 2: "USER_TYPE_MACHINE", + 3: "USER_TYPE_SYSTEM", + } + UserType_value = map[string]int32{ + "USER_TYPE_UNSPECIFIED": 0, + "USER_TYPE_PERSONAL": 1, + "USER_TYPE_MACHINE": 2, + "USER_TYPE_SYSTEM": 3, + } +) + +func (x UserType) Enum() *UserType { + p := new(UserType) + *p = x + return p +} + +func (x UserType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (UserType) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_user_proto_enumTypes[1].Descriptor() +} + +func (UserType) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_user_proto_enumTypes[1] +} + +func (x UserType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type User struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + xxx_hidden_UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + xxx_hidden_Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` + xxx_hidden_Deactivated bool `protobuf:"varint,5,opt,name=deactivated,proto3" json:"deactivated,omitempty"` + xxx_hidden_Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + xxx_hidden_Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` + xxx_hidden_VerificationStatus VerificationStatus `protobuf:"varint,8,opt,name=verification_status,json=verificationStatus,proto3,enum=buf.alpha.registry.v1alpha1.VerificationStatus" json:"verification_status,omitempty"` + xxx_hidden_UserType UserType `protobuf:"varint,9,opt,name=user_type,json=userType,proto3,enum=buf.alpha.registry.v1alpha1.UserType" json:"user_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *User) Reset() { + *x = User{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *User) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*User) ProtoMessage() {} + +func (x *User) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *User) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *User) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *User) GetUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_UpdateTime + } + return nil +} + +func (x *User) GetUsername() string { + if x != nil { + return x.xxx_hidden_Username + } + return "" +} + +func (x *User) GetDeactivated() bool { + if x != nil { + return x.xxx_hidden_Deactivated + } + return false +} + +func (x *User) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *User) GetUrl() string { + if x != nil { + return x.xxx_hidden_Url + } + return "" +} + +func (x *User) GetVerificationStatus() VerificationStatus { + if x != nil { + return x.xxx_hidden_VerificationStatus + } + return VerificationStatus_VERIFICATION_STATUS_UNSPECIFIED +} + +func (x *User) GetUserType() UserType { + if x != nil { + return x.xxx_hidden_UserType + } + return UserType_USER_TYPE_UNSPECIFIED +} + +func (x *User) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *User) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *User) SetUpdateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_UpdateTime = v +} + +func (x *User) SetUsername(v string) { + x.xxx_hidden_Username = v +} + +func (x *User) SetDeactivated(v bool) { + x.xxx_hidden_Deactivated = v +} + +func (x *User) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *User) SetUrl(v string) { + x.xxx_hidden_Url = v +} + +func (x *User) SetVerificationStatus(v VerificationStatus) { + x.xxx_hidden_VerificationStatus = v +} + +func (x *User) SetUserType(v UserType) { + x.xxx_hidden_UserType = v +} + +func (x *User) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *User) HasUpdateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateTime != nil +} + +func (x *User) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *User) ClearUpdateTime() { + x.xxx_hidden_UpdateTime = nil +} + +type User_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // primary key, unique, immutable + Id string + // immutable + CreateTime *timestamppb.Timestamp + // mutable + UpdateTime *timestamppb.Timestamp + // unique, mutable + Username string + // mutable + Deactivated bool + // description is the user configurable description of the user. + Description string + // url is the user configurable URL in the description of the user, + // always included the scheme and will not have a #fragment suffix. + Url string + // verification status of the user, configurable by server admin. + VerificationStatus VerificationStatus + // user type of the user, depends on how the user was created. + UserType UserType +} + +func (b0 User_builder) Build() *User { + m0 := &User{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_UpdateTime = b.UpdateTime + x.xxx_hidden_Username = b.Username + x.xxx_hidden_Deactivated = b.Deactivated + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Url = b.Url + x.xxx_hidden_VerificationStatus = b.VerificationStatus + x.xxx_hidden_UserType = b.UserType + return m0 +} + +// TODO: #663 move this to organization service +type OrganizationUser struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + xxx_hidden_OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_OrganizationRole OrganizationRole `protobuf:"varint,3,opt,name=organization_role,json=organizationRole,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRole" json:"organization_role,omitempty"` + xxx_hidden_OrganizationRoleSource OrganizationRoleSource `protobuf:"varint,4,opt,name=organization_role_source,json=organizationRoleSource,proto3,enum=buf.alpha.registry.v1alpha1.OrganizationRoleSource" json:"organization_role_source,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OrganizationUser) Reset() { + *x = OrganizationUser{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrganizationUser) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationUser) ProtoMessage() {} + +func (x *OrganizationUser) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *OrganizationUser) GetUser() *User { + if x != nil { + return x.xxx_hidden_User + } + return nil +} + +func (x *OrganizationUser) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *OrganizationUser) GetOrganizationRole() OrganizationRole { + if x != nil { + return x.xxx_hidden_OrganizationRole + } + return OrganizationRole_ORGANIZATION_ROLE_UNSPECIFIED +} + +func (x *OrganizationUser) GetOrganizationRoleSource() OrganizationRoleSource { + if x != nil { + return x.xxx_hidden_OrganizationRoleSource + } + return OrganizationRoleSource_ORGANIZATION_ROLE_SOURCE_UNSPECIFIED +} + +func (x *OrganizationUser) SetUser(v *User) { + x.xxx_hidden_User = v +} + +func (x *OrganizationUser) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *OrganizationUser) SetOrganizationRole(v OrganizationRole) { + x.xxx_hidden_OrganizationRole = v +} + +func (x *OrganizationUser) SetOrganizationRoleSource(v OrganizationRoleSource) { + x.xxx_hidden_OrganizationRoleSource = v +} + +func (x *OrganizationUser) HasUser() bool { + if x == nil { + return false + } + return x.xxx_hidden_User != nil +} + +func (x *OrganizationUser) ClearUser() { + x.xxx_hidden_User = nil +} + +type OrganizationUser_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User + // The ID of the organization for which the role belongs to. + OrganizationId string + // The role that the user has in the organization above. + OrganizationRole OrganizationRole + // The source of the user's role in the organization above. + OrganizationRoleSource OrganizationRoleSource +} + +func (b0 OrganizationUser_builder) Build() *OrganizationUser { + m0 := &OrganizationUser{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_User = b.User + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_OrganizationRole = b.OrganizationRole + x.xxx_hidden_OrganizationRoleSource = b.OrganizationRoleSource + return m0 +} + +// UserPluginPreference contains the user's preferred language and the +// list of plugins for that language, which they selected in the BSR's Generated SDKs UI flow. +// These preferences are stored in the database so the language and plugins +// are pre-selected when the user navigates back to the Generated SDKs page from any device or browser. +type UserPluginPreference struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SelectedLanguage PluginLanguage `protobuf:"varint,2,opt,name=selected_language,json=selectedLanguage,proto3,enum=buf.alpha.registry.v1alpha1.PluginLanguage" json:"selected_language,omitempty"` + xxx_hidden_SelectedPlugins []string `protobuf:"bytes,3,rep,name=selected_plugins,json=selectedPlugins,proto3" json:"selected_plugins,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserPluginPreference) Reset() { + *x = UserPluginPreference{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserPluginPreference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserPluginPreference) ProtoMessage() {} + +func (x *UserPluginPreference) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UserPluginPreference) GetSelectedLanguage() PluginLanguage { + if x != nil { + return x.xxx_hidden_SelectedLanguage + } + return PluginLanguage_PLUGIN_LANGUAGE_UNSPECIFIED +} + +func (x *UserPluginPreference) GetSelectedPlugins() []string { + if x != nil { + return x.xxx_hidden_SelectedPlugins + } + return nil +} + +func (x *UserPluginPreference) SetSelectedLanguage(v PluginLanguage) { + x.xxx_hidden_SelectedLanguage = v +} + +func (x *UserPluginPreference) SetSelectedPlugins(v []string) { + x.xxx_hidden_SelectedPlugins = v +} + +type UserPluginPreference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The language that the user has indicidated as their preferred language for plugins. + SelectedLanguage PluginLanguage + // A list of plugin names selected by the user. + SelectedPlugins []string +} + +func (b0 UserPluginPreference_builder) Build() *UserPluginPreference { + m0 := &UserPluginPreference{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SelectedLanguage = b.SelectedLanguage + x.xxx_hidden_SelectedPlugins = b.SelectedPlugins + return m0 +} + +type CreateUserRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateUserRequest) Reset() { + *x = CreateUserRequest{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserRequest) ProtoMessage() {} + +func (x *CreateUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateUserRequest) GetUsername() string { + if x != nil { + return x.xxx_hidden_Username + } + return "" +} + +func (x *CreateUserRequest) SetUsername(v string) { + x.xxx_hidden_Username = v +} + +type CreateUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Username string +} + +func (b0 CreateUserRequest_builder) Build() *CreateUserRequest { + m0 := &CreateUserRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Username = b.Username + return m0 +} + +type CreateUserResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateUserResponse) Reset() { + *x = CreateUserResponse{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserResponse) ProtoMessage() {} + +func (x *CreateUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateUserResponse) GetUser() *User { + if x != nil { + return x.xxx_hidden_User + } + return nil +} + +func (x *CreateUserResponse) SetUser(v *User) { + x.xxx_hidden_User = v +} + +func (x *CreateUserResponse) HasUser() bool { + if x == nil { + return false + } + return x.xxx_hidden_User != nil +} + +func (x *CreateUserResponse) ClearUser() { + x.xxx_hidden_User = nil +} + +type CreateUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User +} + +func (b0 CreateUserResponse_builder) Build() *CreateUserResponse { + m0 := &CreateUserResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_User = b.User + return m0 +} + +type GetUserRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUserRequest) Reset() { + *x = GetUserRequest{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserRequest) ProtoMessage() {} + +func (x *GetUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetUserRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *GetUserRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +type GetUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 GetUserRequest_builder) Build() *GetUserRequest { + m0 := &GetUserRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +type GetUserResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUserResponse) Reset() { + *x = GetUserResponse{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserResponse) ProtoMessage() {} + +func (x *GetUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetUserResponse) GetUser() *User { + if x != nil { + return x.xxx_hidden_User + } + return nil +} + +func (x *GetUserResponse) SetUser(v *User) { + x.xxx_hidden_User = v +} + +func (x *GetUserResponse) HasUser() bool { + if x == nil { + return false + } + return x.xxx_hidden_User != nil +} + +func (x *GetUserResponse) ClearUser() { + x.xxx_hidden_User = nil +} + +type GetUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User +} + +func (b0 GetUserResponse_builder) Build() *GetUserResponse { + m0 := &GetUserResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_User = b.User + return m0 +} + +type GetUserByUsernameRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUserByUsernameRequest) Reset() { + *x = GetUserByUsernameRequest{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUserByUsernameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserByUsernameRequest) ProtoMessage() {} + +func (x *GetUserByUsernameRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetUserByUsernameRequest) GetUsername() string { + if x != nil { + return x.xxx_hidden_Username + } + return "" +} + +func (x *GetUserByUsernameRequest) SetUsername(v string) { + x.xxx_hidden_Username = v +} + +type GetUserByUsernameRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Username string +} + +func (b0 GetUserByUsernameRequest_builder) Build() *GetUserByUsernameRequest { + m0 := &GetUserByUsernameRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Username = b.Username + return m0 +} + +type GetUserByUsernameResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUserByUsernameResponse) Reset() { + *x = GetUserByUsernameResponse{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUserByUsernameResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserByUsernameResponse) ProtoMessage() {} + +func (x *GetUserByUsernameResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetUserByUsernameResponse) GetUser() *User { + if x != nil { + return x.xxx_hidden_User + } + return nil +} + +func (x *GetUserByUsernameResponse) SetUser(v *User) { + x.xxx_hidden_User = v +} + +func (x *GetUserByUsernameResponse) HasUser() bool { + if x == nil { + return false + } + return x.xxx_hidden_User != nil +} + +func (x *GetUserByUsernameResponse) ClearUser() { + x.xxx_hidden_User = nil +} + +type GetUserByUsernameResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + User *User +} + +func (b0 GetUserByUsernameResponse_builder) Build() *GetUserByUsernameResponse { + m0 := &GetUserByUsernameResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_User = b.User + return m0 +} + +type ListUsersRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,3,opt,name=reverse,proto3" json:"reverse,omitempty"` + xxx_hidden_UserStateFilter UserState `protobuf:"varint,4,opt,name=user_state_filter,json=userStateFilter,proto3,enum=buf.alpha.registry.v1alpha1.UserState" json:"user_state_filter,omitempty"` + xxx_hidden_UserTypeFilters []UserType `protobuf:"varint,5,rep,packed,name=user_type_filters,json=userTypeFilters,proto3,enum=buf.alpha.registry.v1alpha1.UserType" json:"user_type_filters,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUsersRequest) Reset() { + *x = ListUsersRequest{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUsersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUsersRequest) ProtoMessage() {} + +func (x *ListUsersRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListUsersRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListUsersRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListUsersRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListUsersRequest) GetUserStateFilter() UserState { + if x != nil { + return x.xxx_hidden_UserStateFilter + } + return UserState_USER_STATE_UNSPECIFIED +} + +func (x *ListUsersRequest) GetUserTypeFilters() []UserType { + if x != nil { + return x.xxx_hidden_UserTypeFilters + } + return nil +} + +func (x *ListUsersRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListUsersRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListUsersRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +func (x *ListUsersRequest) SetUserStateFilter(v UserState) { + x.xxx_hidden_UserStateFilter = v +} + +func (x *ListUsersRequest) SetUserTypeFilters(v []UserType) { + x.xxx_hidden_UserTypeFilters = v +} + +type ListUsersRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool + // If the user_state_filter is unspecified, users of all states are included. + UserStateFilter UserState + // If the user_type_filters is empty, users of all types are included. + UserTypeFilters []UserType +} + +func (b0 ListUsersRequest_builder) Build() *ListUsersRequest { + m0 := &ListUsersRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + x.xxx_hidden_UserStateFilter = b.UserStateFilter + x.xxx_hidden_UserTypeFilters = b.UserTypeFilters + return m0 +} + +type ListUsersResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Users *[]*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListUsersResponse) Reset() { + *x = ListUsersResponse{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListUsersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUsersResponse) ProtoMessage() {} + +func (x *ListUsersResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListUsersResponse) GetUsers() []*User { + if x != nil { + if x.xxx_hidden_Users != nil { + return *x.xxx_hidden_Users + } + } + return nil +} + +func (x *ListUsersResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListUsersResponse) SetUsers(v []*User) { + x.xxx_hidden_Users = &v +} + +func (x *ListUsersResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListUsersResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Users []*User + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListUsersResponse_builder) Build() *ListUsersResponse { + m0 := &ListUsersResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Users = &b.Users + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type ListOrganizationUsersRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + xxx_hidden_Reverse bool `protobuf:"varint,4,opt,name=reverse,proto3" json:"reverse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListOrganizationUsersRequest) Reset() { + *x = ListOrganizationUsersRequest{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListOrganizationUsersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOrganizationUsersRequest) ProtoMessage() {} + +func (x *ListOrganizationUsersRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListOrganizationUsersRequest) GetOrganizationId() string { + if x != nil { + return x.xxx_hidden_OrganizationId + } + return "" +} + +func (x *ListOrganizationUsersRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListOrganizationUsersRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListOrganizationUsersRequest) GetReverse() bool { + if x != nil { + return x.xxx_hidden_Reverse + } + return false +} + +func (x *ListOrganizationUsersRequest) SetOrganizationId(v string) { + x.xxx_hidden_OrganizationId = v +} + +func (x *ListOrganizationUsersRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListOrganizationUsersRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ListOrganizationUsersRequest) SetReverse(v bool) { + x.xxx_hidden_Reverse = v +} + +type ListOrganizationUsersRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + OrganizationId string + PageSize uint32 + // The first page is returned if this is empty. + PageToken string + Reverse bool +} + +func (b0 ListOrganizationUsersRequest_builder) Build() *ListOrganizationUsersRequest { + m0 := &ListOrganizationUsersRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_OrganizationId = b.OrganizationId + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Reverse = b.Reverse + return m0 +} + +type ListOrganizationUsersResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Users *[]*OrganizationUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListOrganizationUsersResponse) Reset() { + *x = ListOrganizationUsersResponse{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListOrganizationUsersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOrganizationUsersResponse) ProtoMessage() {} + +func (x *ListOrganizationUsersResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListOrganizationUsersResponse) GetUsers() []*OrganizationUser { + if x != nil { + if x.xxx_hidden_Users != nil { + return *x.xxx_hidden_Users + } + } + return nil +} + +func (x *ListOrganizationUsersResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListOrganizationUsersResponse) SetUsers(v []*OrganizationUser) { + x.xxx_hidden_Users = &v +} + +func (x *ListOrganizationUsersResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListOrganizationUsersResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Users []*OrganizationUser + // There are no more pages if this is empty. + NextPageToken string +} + +func (b0 ListOrganizationUsersResponse_builder) Build() *ListOrganizationUsersResponse { + m0 := &ListOrganizationUsersResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Users = &b.Users + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type DeleteUserRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteUserRequest) Reset() { + *x = DeleteUserRequest{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteUserRequest) ProtoMessage() {} + +func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteUserRequest_builder) Build() *DeleteUserRequest { + m0 := &DeleteUserRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type DeleteUserResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteUserResponse) Reset() { + *x = DeleteUserResponse{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteUserResponse) ProtoMessage() {} + +func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteUserResponse_builder) Build() *DeleteUserResponse { + m0 := &DeleteUserResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type DeactivateUserRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeactivateUserRequest) Reset() { + *x = DeactivateUserRequest{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeactivateUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeactivateUserRequest) ProtoMessage() {} + +func (x *DeactivateUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeactivateUserRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *DeactivateUserRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +type DeactivateUserRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 DeactivateUserRequest_builder) Build() *DeactivateUserRequest { + m0 := &DeactivateUserRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +type DeactivateUserResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeactivateUserResponse) Reset() { + *x = DeactivateUserResponse{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeactivateUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeactivateUserResponse) ProtoMessage() {} + +func (x *DeactivateUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeactivateUserResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeactivateUserResponse_builder) Build() *DeactivateUserResponse { + m0 := &DeactivateUserResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type UpdateUserServerRoleRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + xxx_hidden_ServerRole ServerRole `protobuf:"varint,2,opt,name=server_role,json=serverRole,proto3,enum=buf.alpha.registry.v1alpha1.ServerRole" json:"server_role,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUserServerRoleRequest) Reset() { + *x = UpdateUserServerRoleRequest{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUserServerRoleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserServerRoleRequest) ProtoMessage() {} + +func (x *UpdateUserServerRoleRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateUserServerRoleRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *UpdateUserServerRoleRequest) GetServerRole() ServerRole { + if x != nil { + return x.xxx_hidden_ServerRole + } + return ServerRole_SERVER_ROLE_UNSPECIFIED +} + +func (x *UpdateUserServerRoleRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +func (x *UpdateUserServerRoleRequest) SetServerRole(v ServerRole) { + x.xxx_hidden_ServerRole = v +} + +type UpdateUserServerRoleRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The ID of the user for which to be updated a role. + UserId string + // The new role of the user in the server. + ServerRole ServerRole +} + +func (b0 UpdateUserServerRoleRequest_builder) Build() *UpdateUserServerRoleRequest { + m0 := &UpdateUserServerRoleRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UserId = b.UserId + x.xxx_hidden_ServerRole = b.ServerRole + return m0 +} + +type UpdateUserServerRoleResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUserServerRoleResponse) Reset() { + *x = UpdateUserServerRoleResponse{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUserServerRoleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserServerRoleResponse) ProtoMessage() {} + +func (x *UpdateUserServerRoleResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UpdateUserServerRoleResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateUserServerRoleResponse_builder) Build() *UpdateUserServerRoleResponse { + m0 := &UpdateUserServerRoleResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type CountUsersRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UserStateFilter UserState `protobuf:"varint,1,opt,name=user_state_filter,json=userStateFilter,proto3,enum=buf.alpha.registry.v1alpha1.UserState" json:"user_state_filter,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CountUsersRequest) Reset() { + *x = CountUsersRequest{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CountUsersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountUsersRequest) ProtoMessage() {} + +func (x *CountUsersRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CountUsersRequest) GetUserStateFilter() UserState { + if x != nil { + return x.xxx_hidden_UserStateFilter + } + return UserState_USER_STATE_UNSPECIFIED +} + +func (x *CountUsersRequest) SetUserStateFilter(v UserState) { + x.xxx_hidden_UserStateFilter = v +} + +type CountUsersRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If the user_state_filter is unspecified, all users are included. + UserStateFilter UserState +} + +func (b0 CountUsersRequest_builder) Build() *CountUsersRequest { + m0 := &CountUsersRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UserStateFilter = b.UserStateFilter + return m0 +} + +type CountUsersResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TotalCount uint32 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CountUsersResponse) Reset() { + *x = CountUsersResponse{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CountUsersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountUsersResponse) ProtoMessage() {} + +func (x *CountUsersResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CountUsersResponse) GetTotalCount() uint32 { + if x != nil { + return x.xxx_hidden_TotalCount + } + return 0 +} + +func (x *CountUsersResponse) SetTotalCount(v uint32) { + x.xxx_hidden_TotalCount = v +} + +type CountUsersResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TotalCount uint32 +} + +func (b0 CountUsersResponse_builder) Build() *CountUsersResponse { + m0 := &CountUsersResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TotalCount = b.TotalCount + return m0 +} + +type UpdateUserSettingsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + xxx_hidden_Description *string `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"` + xxx_hidden_Url *string `protobuf:"bytes,3,opt,name=url,proto3,oneof" json:"url,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUserSettingsRequest) Reset() { + *x = UpdateUserSettingsRequest{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUserSettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserSettingsRequest) ProtoMessage() {} + +func (x *UpdateUserSettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateUserSettingsRequest) GetUserId() string { + if x != nil { + return x.xxx_hidden_UserId + } + return "" +} + +func (x *UpdateUserSettingsRequest) GetDescription() string { + if x != nil { + if x.xxx_hidden_Description != nil { + return *x.xxx_hidden_Description + } + return "" + } + return "" +} + +func (x *UpdateUserSettingsRequest) GetUrl() string { + if x != nil { + if x.xxx_hidden_Url != nil { + return *x.xxx_hidden_Url + } + return "" + } + return "" +} + +func (x *UpdateUserSettingsRequest) SetUserId(v string) { + x.xxx_hidden_UserId = v +} + +func (x *UpdateUserSettingsRequest) SetDescription(v string) { + x.xxx_hidden_Description = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 3) +} + +func (x *UpdateUserSettingsRequest) SetUrl(v string) { + x.xxx_hidden_Url = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 3) +} + +func (x *UpdateUserSettingsRequest) HasDescription() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *UpdateUserSettingsRequest) HasUrl() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 2) +} + +func (x *UpdateUserSettingsRequest) ClearDescription() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_Description = nil +} + +func (x *UpdateUserSettingsRequest) ClearUrl() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2) + x.xxx_hidden_Url = nil +} + +type UpdateUserSettingsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + UserId string + // optional, update to description will only be made when this is present + Description *string + // optional, update to url will only be made when this is present + Url *string +} + +func (b0 UpdateUserSettingsRequest_builder) Build() *UpdateUserSettingsRequest { + m0 := &UpdateUserSettingsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UserId = b.UserId + if b.Description != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 3) + x.xxx_hidden_Description = b.Description + } + if b.Url != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 3) + x.xxx_hidden_Url = b.Url + } + return m0 +} + +type UpdateUserSettingsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUserSettingsResponse) Reset() { + *x = UpdateUserSettingsResponse{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUserSettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserSettingsResponse) ProtoMessage() {} + +func (x *UpdateUserSettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type UpdateUserSettingsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 UpdateUserSettingsResponse_builder) Build() *UpdateUserSettingsResponse { + m0 := &UpdateUserSettingsResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetUserPluginPreferencesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUserPluginPreferencesRequest) Reset() { + *x = GetUserPluginPreferencesRequest{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUserPluginPreferencesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserPluginPreferencesRequest) ProtoMessage() {} + +func (x *GetUserPluginPreferencesRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type GetUserPluginPreferencesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GetUserPluginPreferencesRequest_builder) Build() *GetUserPluginPreferencesRequest { + m0 := &GetUserPluginPreferencesRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type GetUserPluginPreferencesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Preference *UserPluginPreference `protobuf:"bytes,1,opt,name=preference,proto3" json:"preference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUserPluginPreferencesResponse) Reset() { + *x = GetUserPluginPreferencesResponse{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUserPluginPreferencesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserPluginPreferencesResponse) ProtoMessage() {} + +func (x *GetUserPluginPreferencesResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *GetUserPluginPreferencesResponse) GetPreference() *UserPluginPreference { + if x != nil { + return x.xxx_hidden_Preference + } + return nil +} + +func (x *GetUserPluginPreferencesResponse) SetPreference(v *UserPluginPreference) { + x.xxx_hidden_Preference = v +} + +func (x *GetUserPluginPreferencesResponse) HasPreference() bool { + if x == nil { + return false + } + return x.xxx_hidden_Preference != nil +} + +func (x *GetUserPluginPreferencesResponse) ClearPreference() { + x.xxx_hidden_Preference = nil +} + +type GetUserPluginPreferencesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Preference *UserPluginPreference +} + +func (b0 GetUserPluginPreferencesResponse_builder) Build() *GetUserPluginPreferencesResponse { + m0 := &GetUserPluginPreferencesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Preference = b.Preference + return m0 +} + +type UpdateUserPluginPreferencesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Preference *UserPluginPreference `protobuf:"bytes,1,opt,name=preference,proto3" json:"preference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUserPluginPreferencesRequest) Reset() { + *x = UpdateUserPluginPreferencesRequest{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUserPluginPreferencesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserPluginPreferencesRequest) ProtoMessage() {} + +func (x *UpdateUserPluginPreferencesRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateUserPluginPreferencesRequest) GetPreference() *UserPluginPreference { + if x != nil { + return x.xxx_hidden_Preference + } + return nil +} + +func (x *UpdateUserPluginPreferencesRequest) SetPreference(v *UserPluginPreference) { + x.xxx_hidden_Preference = v +} + +func (x *UpdateUserPluginPreferencesRequest) HasPreference() bool { + if x == nil { + return false + } + return x.xxx_hidden_Preference != nil +} + +func (x *UpdateUserPluginPreferencesRequest) ClearPreference() { + x.xxx_hidden_Preference = nil +} + +type UpdateUserPluginPreferencesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Preference *UserPluginPreference +} + +func (b0 UpdateUserPluginPreferencesRequest_builder) Build() *UpdateUserPluginPreferencesRequest { + m0 := &UpdateUserPluginPreferencesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Preference = b.Preference + return m0 +} + +type UpdateUserPluginPreferencesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Preference *UserPluginPreference `protobuf:"bytes,1,opt,name=preference,proto3" json:"preference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateUserPluginPreferencesResponse) Reset() { + *x = UpdateUserPluginPreferencesResponse{} + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateUserPluginPreferencesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserPluginPreferencesResponse) ProtoMessage() {} + +func (x *UpdateUserPluginPreferencesResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *UpdateUserPluginPreferencesResponse) GetPreference() *UserPluginPreference { + if x != nil { + return x.xxx_hidden_Preference + } + return nil +} + +func (x *UpdateUserPluginPreferencesResponse) SetPreference(v *UserPluginPreference) { + x.xxx_hidden_Preference = v +} + +func (x *UpdateUserPluginPreferencesResponse) HasPreference() bool { + if x == nil { + return false + } + return x.xxx_hidden_Preference != nil +} + +func (x *UpdateUserPluginPreferencesResponse) ClearPreference() { + x.xxx_hidden_Preference = nil +} + +type UpdateUserPluginPreferencesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Preference *UserPluginPreference +} + +func (b0 UpdateUserPluginPreferencesResponse_builder) Build() *UpdateUserPluginPreferencesResponse { + m0 := &UpdateUserPluginPreferencesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Preference = b.Preference + return m0 +} + +var File_buf_alpha_registry_v1alpha1_user_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_user_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x31, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x63, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x35, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x76, 0x65, + 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa8, 0x03, 0x0a, 0x04, 0x55, 0x73, 0x65, + 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 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, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, + 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, + 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, + 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x65, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, + 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x60, 0x0a, + 0x13, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x12, 0x76, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x42, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, + 0x79, 0x70, 0x65, 0x22, 0xbd, 0x02, 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, + 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x5a, 0x0a, 0x11, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, + 0x6c, 0x65, 0x52, 0x10, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x6d, 0x0a, 0x18, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x16, 0x6f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x58, 0x0a, 0x11, + 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4c, 0x61, 0x6e, 0x67, + 0x75, 0x61, 0x67, 0x65, 0x52, 0x10, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4c, 0x61, + 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, + 0x65, 0x64, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x22, 0x2f, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x4b, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x20, + 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x22, 0x48, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x36, 0x0a, 0x18, 0x47, 0x65, + 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x52, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x55, + 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x35, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x8f, 0x02, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, + 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, + 0x65, 0x12, 0x52, 0x0a, 0x11, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x11, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0e, + 0x32, 0x25, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, + 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x22, 0x74, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, + 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9d, + 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, + 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x8c, + 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x43, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x13, 0x0a, + 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x0a, 0x15, 0x44, 0x65, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x22, 0x18, 0x0a, 0x16, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x1b, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x72, + 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x6f, + 0x6c, 0x65, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x1e, + 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, + 0x0a, 0x11, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x11, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x35, 0x0a, 0x12, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, + 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x8a, + 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, + 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x03, 0x75, 0x72, 0x6c, + 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x75, 0x72, 0x6c, 0x22, 0x1c, 0x0a, 0x1a, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x0a, 0x1f, 0x47, 0x65, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4a, 0x04, 0x08, 0x01, + 0x10, 0x02, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x75, 0x0a, 0x20, 0x47, + 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x51, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x22, 0x77, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, + 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x78, 0x0a, 0x23, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2a, 0x5a, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, + 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, + 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x53, 0x54, + 0x41, 0x54, 0x45, 0x5f, 0x44, 0x45, 0x41, 0x43, 0x54, 0x49, 0x56, 0x41, 0x54, 0x45, 0x44, 0x10, + 0x02, 0x2a, 0x6a, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, + 0x15, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x53, 0x45, 0x52, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x4f, 0x4e, 0x41, 0x4c, 0x10, 0x01, + 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x41, + 0x43, 0x48, 0x49, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x53, 0x45, 0x52, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x03, 0x32, 0xbd, 0x0c, + 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x72, 0x0a, + 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, + 0x02, 0x12, 0x69, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x87, 0x01, 0x0a, + 0x11, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x35, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, + 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, + 0x79, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x6f, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, + 0x65, 0x72, 0x73, 0x12, 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x93, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x73, 0x65, 0x72, + 0x73, 0x12, 0x39, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x72, 0x0a, + 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2e, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, + 0x02, 0x12, 0x7e, 0x0a, 0x0e, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x12, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, + 0x02, 0x12, 0x8b, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x38, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x72, 0x0a, 0x0a, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x2e, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, + 0x90, 0x02, 0x01, 0x12, 0x85, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, + 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x36, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9c, 0x01, 0x0a, 0x18, + 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x3c, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0xa0, 0x01, 0x0a, 0x1b, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x3f, 0x2e, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x96, 0x02, + 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x42, 0x09, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, + 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, + 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, + 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, + 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, + 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, + 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, + 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_user_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_buf_alpha_registry_v1alpha1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 27) +var file_buf_alpha_registry_v1alpha1_user_proto_goTypes = []any{ + (UserState)(0), // 0: buf.alpha.registry.v1alpha1.UserState + (UserType)(0), // 1: buf.alpha.registry.v1alpha1.UserType + (*User)(nil), // 2: buf.alpha.registry.v1alpha1.User + (*OrganizationUser)(nil), // 3: buf.alpha.registry.v1alpha1.OrganizationUser + (*UserPluginPreference)(nil), // 4: buf.alpha.registry.v1alpha1.UserPluginPreference + (*CreateUserRequest)(nil), // 5: buf.alpha.registry.v1alpha1.CreateUserRequest + (*CreateUserResponse)(nil), // 6: buf.alpha.registry.v1alpha1.CreateUserResponse + (*GetUserRequest)(nil), // 7: buf.alpha.registry.v1alpha1.GetUserRequest + (*GetUserResponse)(nil), // 8: buf.alpha.registry.v1alpha1.GetUserResponse + (*GetUserByUsernameRequest)(nil), // 9: buf.alpha.registry.v1alpha1.GetUserByUsernameRequest + (*GetUserByUsernameResponse)(nil), // 10: buf.alpha.registry.v1alpha1.GetUserByUsernameResponse + (*ListUsersRequest)(nil), // 11: buf.alpha.registry.v1alpha1.ListUsersRequest + (*ListUsersResponse)(nil), // 12: buf.alpha.registry.v1alpha1.ListUsersResponse + (*ListOrganizationUsersRequest)(nil), // 13: buf.alpha.registry.v1alpha1.ListOrganizationUsersRequest + (*ListOrganizationUsersResponse)(nil), // 14: buf.alpha.registry.v1alpha1.ListOrganizationUsersResponse + (*DeleteUserRequest)(nil), // 15: buf.alpha.registry.v1alpha1.DeleteUserRequest + (*DeleteUserResponse)(nil), // 16: buf.alpha.registry.v1alpha1.DeleteUserResponse + (*DeactivateUserRequest)(nil), // 17: buf.alpha.registry.v1alpha1.DeactivateUserRequest + (*DeactivateUserResponse)(nil), // 18: buf.alpha.registry.v1alpha1.DeactivateUserResponse + (*UpdateUserServerRoleRequest)(nil), // 19: buf.alpha.registry.v1alpha1.UpdateUserServerRoleRequest + (*UpdateUserServerRoleResponse)(nil), // 20: buf.alpha.registry.v1alpha1.UpdateUserServerRoleResponse + (*CountUsersRequest)(nil), // 21: buf.alpha.registry.v1alpha1.CountUsersRequest + (*CountUsersResponse)(nil), // 22: buf.alpha.registry.v1alpha1.CountUsersResponse + (*UpdateUserSettingsRequest)(nil), // 23: buf.alpha.registry.v1alpha1.UpdateUserSettingsRequest + (*UpdateUserSettingsResponse)(nil), // 24: buf.alpha.registry.v1alpha1.UpdateUserSettingsResponse + (*GetUserPluginPreferencesRequest)(nil), // 25: buf.alpha.registry.v1alpha1.GetUserPluginPreferencesRequest + (*GetUserPluginPreferencesResponse)(nil), // 26: buf.alpha.registry.v1alpha1.GetUserPluginPreferencesResponse + (*UpdateUserPluginPreferencesRequest)(nil), // 27: buf.alpha.registry.v1alpha1.UpdateUserPluginPreferencesRequest + (*UpdateUserPluginPreferencesResponse)(nil), // 28: buf.alpha.registry.v1alpha1.UpdateUserPluginPreferencesResponse + (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp + (VerificationStatus)(0), // 30: buf.alpha.registry.v1alpha1.VerificationStatus + (OrganizationRole)(0), // 31: buf.alpha.registry.v1alpha1.OrganizationRole + (OrganizationRoleSource)(0), // 32: buf.alpha.registry.v1alpha1.OrganizationRoleSource + (PluginLanguage)(0), // 33: buf.alpha.registry.v1alpha1.PluginLanguage + (ServerRole)(0), // 34: buf.alpha.registry.v1alpha1.ServerRole +} +var file_buf_alpha_registry_v1alpha1_user_proto_depIdxs = []int32{ + 29, // 0: buf.alpha.registry.v1alpha1.User.create_time:type_name -> google.protobuf.Timestamp + 29, // 1: buf.alpha.registry.v1alpha1.User.update_time:type_name -> google.protobuf.Timestamp + 30, // 2: buf.alpha.registry.v1alpha1.User.verification_status:type_name -> buf.alpha.registry.v1alpha1.VerificationStatus + 1, // 3: buf.alpha.registry.v1alpha1.User.user_type:type_name -> buf.alpha.registry.v1alpha1.UserType + 2, // 4: buf.alpha.registry.v1alpha1.OrganizationUser.user:type_name -> buf.alpha.registry.v1alpha1.User + 31, // 5: buf.alpha.registry.v1alpha1.OrganizationUser.organization_role:type_name -> buf.alpha.registry.v1alpha1.OrganizationRole + 32, // 6: buf.alpha.registry.v1alpha1.OrganizationUser.organization_role_source:type_name -> buf.alpha.registry.v1alpha1.OrganizationRoleSource + 33, // 7: buf.alpha.registry.v1alpha1.UserPluginPreference.selected_language:type_name -> buf.alpha.registry.v1alpha1.PluginLanguage + 2, // 8: buf.alpha.registry.v1alpha1.CreateUserResponse.user:type_name -> buf.alpha.registry.v1alpha1.User + 2, // 9: buf.alpha.registry.v1alpha1.GetUserResponse.user:type_name -> buf.alpha.registry.v1alpha1.User + 2, // 10: buf.alpha.registry.v1alpha1.GetUserByUsernameResponse.user:type_name -> buf.alpha.registry.v1alpha1.User + 0, // 11: buf.alpha.registry.v1alpha1.ListUsersRequest.user_state_filter:type_name -> buf.alpha.registry.v1alpha1.UserState + 1, // 12: buf.alpha.registry.v1alpha1.ListUsersRequest.user_type_filters:type_name -> buf.alpha.registry.v1alpha1.UserType + 2, // 13: buf.alpha.registry.v1alpha1.ListUsersResponse.users:type_name -> buf.alpha.registry.v1alpha1.User + 3, // 14: buf.alpha.registry.v1alpha1.ListOrganizationUsersResponse.users:type_name -> buf.alpha.registry.v1alpha1.OrganizationUser + 34, // 15: buf.alpha.registry.v1alpha1.UpdateUserServerRoleRequest.server_role:type_name -> buf.alpha.registry.v1alpha1.ServerRole + 0, // 16: buf.alpha.registry.v1alpha1.CountUsersRequest.user_state_filter:type_name -> buf.alpha.registry.v1alpha1.UserState + 4, // 17: buf.alpha.registry.v1alpha1.GetUserPluginPreferencesResponse.preference:type_name -> buf.alpha.registry.v1alpha1.UserPluginPreference + 4, // 18: buf.alpha.registry.v1alpha1.UpdateUserPluginPreferencesRequest.preference:type_name -> buf.alpha.registry.v1alpha1.UserPluginPreference + 4, // 19: buf.alpha.registry.v1alpha1.UpdateUserPluginPreferencesResponse.preference:type_name -> buf.alpha.registry.v1alpha1.UserPluginPreference + 5, // 20: buf.alpha.registry.v1alpha1.UserService.CreateUser:input_type -> buf.alpha.registry.v1alpha1.CreateUserRequest + 7, // 21: buf.alpha.registry.v1alpha1.UserService.GetUser:input_type -> buf.alpha.registry.v1alpha1.GetUserRequest + 9, // 22: buf.alpha.registry.v1alpha1.UserService.GetUserByUsername:input_type -> buf.alpha.registry.v1alpha1.GetUserByUsernameRequest + 11, // 23: buf.alpha.registry.v1alpha1.UserService.ListUsers:input_type -> buf.alpha.registry.v1alpha1.ListUsersRequest + 13, // 24: buf.alpha.registry.v1alpha1.UserService.ListOrganizationUsers:input_type -> buf.alpha.registry.v1alpha1.ListOrganizationUsersRequest + 15, // 25: buf.alpha.registry.v1alpha1.UserService.DeleteUser:input_type -> buf.alpha.registry.v1alpha1.DeleteUserRequest + 17, // 26: buf.alpha.registry.v1alpha1.UserService.DeactivateUser:input_type -> buf.alpha.registry.v1alpha1.DeactivateUserRequest + 19, // 27: buf.alpha.registry.v1alpha1.UserService.UpdateUserServerRole:input_type -> buf.alpha.registry.v1alpha1.UpdateUserServerRoleRequest + 21, // 28: buf.alpha.registry.v1alpha1.UserService.CountUsers:input_type -> buf.alpha.registry.v1alpha1.CountUsersRequest + 23, // 29: buf.alpha.registry.v1alpha1.UserService.UpdateUserSettings:input_type -> buf.alpha.registry.v1alpha1.UpdateUserSettingsRequest + 25, // 30: buf.alpha.registry.v1alpha1.UserService.GetUserPluginPreferences:input_type -> buf.alpha.registry.v1alpha1.GetUserPluginPreferencesRequest + 27, // 31: buf.alpha.registry.v1alpha1.UserService.UpdateUserPluginPreferences:input_type -> buf.alpha.registry.v1alpha1.UpdateUserPluginPreferencesRequest + 6, // 32: buf.alpha.registry.v1alpha1.UserService.CreateUser:output_type -> buf.alpha.registry.v1alpha1.CreateUserResponse + 8, // 33: buf.alpha.registry.v1alpha1.UserService.GetUser:output_type -> buf.alpha.registry.v1alpha1.GetUserResponse + 10, // 34: buf.alpha.registry.v1alpha1.UserService.GetUserByUsername:output_type -> buf.alpha.registry.v1alpha1.GetUserByUsernameResponse + 12, // 35: buf.alpha.registry.v1alpha1.UserService.ListUsers:output_type -> buf.alpha.registry.v1alpha1.ListUsersResponse + 14, // 36: buf.alpha.registry.v1alpha1.UserService.ListOrganizationUsers:output_type -> buf.alpha.registry.v1alpha1.ListOrganizationUsersResponse + 16, // 37: buf.alpha.registry.v1alpha1.UserService.DeleteUser:output_type -> buf.alpha.registry.v1alpha1.DeleteUserResponse + 18, // 38: buf.alpha.registry.v1alpha1.UserService.DeactivateUser:output_type -> buf.alpha.registry.v1alpha1.DeactivateUserResponse + 20, // 39: buf.alpha.registry.v1alpha1.UserService.UpdateUserServerRole:output_type -> buf.alpha.registry.v1alpha1.UpdateUserServerRoleResponse + 22, // 40: buf.alpha.registry.v1alpha1.UserService.CountUsers:output_type -> buf.alpha.registry.v1alpha1.CountUsersResponse + 24, // 41: buf.alpha.registry.v1alpha1.UserService.UpdateUserSettings:output_type -> buf.alpha.registry.v1alpha1.UpdateUserSettingsResponse + 26, // 42: buf.alpha.registry.v1alpha1.UserService.GetUserPluginPreferences:output_type -> buf.alpha.registry.v1alpha1.GetUserPluginPreferencesResponse + 28, // 43: buf.alpha.registry.v1alpha1.UserService.UpdateUserPluginPreferences:output_type -> buf.alpha.registry.v1alpha1.UpdateUserPluginPreferencesResponse + 32, // [32:44] is the sub-list for method output_type + 20, // [20:32] is the sub-list for method input_type + 20, // [20:20] is the sub-list for extension type_name + 20, // [20:20] is the sub-list for extension extendee + 0, // [0:20] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_user_proto_init() } +func file_buf_alpha_registry_v1alpha1_user_proto_init() { + if File_buf_alpha_registry_v1alpha1_user_proto != nil { + return + } + file_buf_alpha_registry_v1alpha1_plugin_curation_proto_init() + file_buf_alpha_registry_v1alpha1_role_proto_init() + file_buf_alpha_registry_v1alpha1_verification_status_proto_init() + file_buf_alpha_registry_v1alpha1_user_proto_msgTypes[21].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_user_proto_rawDesc, + NumEnums: 2, + NumMessages: 27, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_user_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_user_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_user_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_user_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_user_proto = out.File + file_buf_alpha_registry_v1alpha1_user_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_user_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_user_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/verification_status.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/verification_status.pb.go index c1c8bd928e..24aa02bd4d 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/verification_status.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/verification_status.pb.go @@ -18,13 +18,14 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/verification_status.proto +//go:build !protoopaque + package registryv1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -83,11 +84,6 @@ func (x VerificationStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use VerificationStatus.Descriptor instead. -func (VerificationStatus) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDescGZIP(), []int{0} -} - var File_buf_alpha_registry_v1alpha1_verification_status_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDesc = []byte{ @@ -126,18 +122,6 @@ var file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDesc = []byte{ 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDescData = file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_verification_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_buf_alpha_registry_v1alpha1_verification_status_proto_goTypes = []any{ (VerificationStatus)(0), // 0: buf.alpha.registry.v1alpha1.VerificationStatus diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/verification_status_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/verification_status_protoopaque.pb.go new file mode 100644 index 0000000000..606d9bb820 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/verification_status_protoopaque.pb.go @@ -0,0 +1,160 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/verification_status.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// VerificationStatus is the verification status of an owner on if we recognize them, +// an owner can be either user or organization. +type VerificationStatus int32 + +const ( + VerificationStatus_VERIFICATION_STATUS_UNSPECIFIED VerificationStatus = 0 + // OFFICIAL indicates that the owner is maintained by Buf. + VerificationStatus_VERIFICATION_STATUS_OFFICIAL VerificationStatus = 1 + // VERIFIED_PUBLISHER indicates that the owner is a third-party that has been + // verified by Buf. + VerificationStatus_VERIFICATION_STATUS_VERIFIED_PUBLISHER VerificationStatus = 2 +) + +// Enum value maps for VerificationStatus. +var ( + VerificationStatus_name = map[int32]string{ + 0: "VERIFICATION_STATUS_UNSPECIFIED", + 1: "VERIFICATION_STATUS_OFFICIAL", + 2: "VERIFICATION_STATUS_VERIFIED_PUBLISHER", + } + VerificationStatus_value = map[string]int32{ + "VERIFICATION_STATUS_UNSPECIFIED": 0, + "VERIFICATION_STATUS_OFFICIAL": 1, + "VERIFICATION_STATUS_VERIFIED_PUBLISHER": 2, + } +) + +func (x VerificationStatus) Enum() *VerificationStatus { + p := new(VerificationStatus) + *p = x + return p +} + +func (x VerificationStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (VerificationStatus) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_verification_status_proto_enumTypes[0].Descriptor() +} + +func (VerificationStatus) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_verification_status_proto_enumTypes[0] +} + +func (x VerificationStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +var File_buf_alpha_registry_v1alpha1_verification_status_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDesc = []byte{ + 0x0a, 0x35, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x76, 0x65, + 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2a, 0x87, 0x01, 0x0a, 0x12, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x1f, 0x56, + 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x20, 0x0a, 0x1c, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x46, 0x46, 0x49, 0x43, 0x49, 0x41, 0x4c, + 0x10, 0x01, 0x12, 0x2a, 0x0a, 0x26, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x53, 0x48, 0x45, 0x52, 0x10, 0x02, 0x42, 0xa4, + 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x42, 0x17, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, + 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, + 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, + 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_verification_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_buf_alpha_registry_v1alpha1_verification_status_proto_goTypes = []any{ + (VerificationStatus)(0), // 0: buf.alpha.registry.v1alpha1.VerificationStatus +} +var file_buf_alpha_registry_v1alpha1_verification_status_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_verification_status_proto_init() } +func file_buf_alpha_registry_v1alpha1_verification_status_proto_init() { + if File_buf_alpha_registry_v1alpha1_verification_status_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDesc, + NumEnums: 1, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_verification_status_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_verification_status_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_verification_status_proto_enumTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_verification_status_proto = out.File + file_buf_alpha_registry_v1alpha1_verification_status_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_verification_status_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_verification_status_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/webhook.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/webhook.pb.go index 0310f8a86a..9e39248741 100644 --- a/private/gen/proto/go/buf/alpha/registry/v1alpha1/webhook.pb.go +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/webhook.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/registry/v1alpha1/webhook.proto +//go:build !protoopaque + package registryv1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -82,15 +83,10 @@ func (x WebhookEvent) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use WebhookEvent.Descriptor instead. -func (WebhookEvent) EnumDescriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescGZIP(), []int{0} -} - // CreateWebhookRequest is the proto request representation of a // webhook request body. type CreateWebhookRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The event to subscribe to for the given repository. WebhookEvent WebhookEvent `protobuf:"varint,1,opt,name=webhook_event,json=webhookEvent,proto3,enum=buf.alpha.registry.v1alpha1.WebhookEvent" json:"webhook_event,omitempty"` // The owner name of the repository in the corresponding subscription request. @@ -128,11 +124,6 @@ func (x *CreateWebhookRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateWebhookRequest.ProtoReflect.Descriptor instead. -func (*CreateWebhookRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescGZIP(), []int{0} -} - func (x *CreateWebhookRequest) GetWebhookEvent() WebhookEvent { if x != nil { return x.WebhookEvent @@ -161,10 +152,50 @@ func (x *CreateWebhookRequest) GetCallbackUrl() string { return "" } +func (x *CreateWebhookRequest) SetWebhookEvent(v WebhookEvent) { + x.WebhookEvent = v +} + +func (x *CreateWebhookRequest) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *CreateWebhookRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *CreateWebhookRequest) SetCallbackUrl(v string) { + x.CallbackUrl = v +} + +type CreateWebhookRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The event to subscribe to for the given repository. + WebhookEvent WebhookEvent + // The owner name of the repository in the corresponding subscription request. + OwnerName string + // The repository name that the subscriber wishes create a subscription for. + RepositoryName string + // The subscriber's callback URL where notifications should be delivered. + CallbackUrl string +} + +func (b0 CreateWebhookRequest_builder) Build() *CreateWebhookRequest { + m0 := &CreateWebhookRequest{} + b, x := &b0, m0 + _, _ = b, x + x.WebhookEvent = b.WebhookEvent + x.OwnerName = b.OwnerName + x.RepositoryName = b.RepositoryName + x.CallbackUrl = b.CallbackUrl + return m0 +} + // CreateWebhookResponse is the proto response representation // of a webhook request. type CreateWebhookResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Created webhook subscription. Webhook *Webhook `protobuf:"bytes,1,opt,name=webhook,proto3" json:"webhook,omitempty"` unknownFields protoimpl.UnknownFields @@ -196,11 +227,6 @@ func (x *CreateWebhookResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateWebhookResponse.ProtoReflect.Descriptor instead. -func (*CreateWebhookResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescGZIP(), []int{1} -} - func (x *CreateWebhookResponse) GetWebhook() *Webhook { if x != nil { return x.Webhook @@ -208,9 +234,39 @@ func (x *CreateWebhookResponse) GetWebhook() *Webhook { return nil } +func (x *CreateWebhookResponse) SetWebhook(v *Webhook) { + x.Webhook = v +} + +func (x *CreateWebhookResponse) HasWebhook() bool { + if x == nil { + return false + } + return x.Webhook != nil +} + +func (x *CreateWebhookResponse) ClearWebhook() { + x.Webhook = nil +} + +type CreateWebhookResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Created webhook subscription. + Webhook *Webhook +} + +func (b0 CreateWebhookResponse_builder) Build() *CreateWebhookResponse { + m0 := &CreateWebhookResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Webhook = b.Webhook + return m0 +} + // DeleteWebhookRequest is the request for unsubscribing to a webhook. type DeleteWebhookRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The id of the webhook subscription to delete. WebhookId string `protobuf:"bytes,1,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -242,11 +298,6 @@ func (x *DeleteWebhookRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteWebhookRequest.ProtoReflect.Descriptor instead. -func (*DeleteWebhookRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescGZIP(), []int{2} -} - func (x *DeleteWebhookRequest) GetWebhookId() string { if x != nil { return x.WebhookId @@ -254,10 +305,29 @@ func (x *DeleteWebhookRequest) GetWebhookId() string { return "" } +func (x *DeleteWebhookRequest) SetWebhookId(v string) { + x.WebhookId = v +} + +type DeleteWebhookRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the webhook subscription to delete. + WebhookId string +} + +func (b0 DeleteWebhookRequest_builder) Build() *DeleteWebhookRequest { + m0 := &DeleteWebhookRequest{} + b, x := &b0, m0 + _, _ = b, x + x.WebhookId = b.WebhookId + return m0 +} + // DeleteWebhookResponse is the response for unsubscribing // from a webhook. type DeleteWebhookResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -287,15 +357,22 @@ func (x *DeleteWebhookResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteWebhookResponse.ProtoReflect.Descriptor instead. -func (*DeleteWebhookResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescGZIP(), []int{3} +type DeleteWebhookResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteWebhookResponse_builder) Build() *DeleteWebhookResponse { + m0 := &DeleteWebhookResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // ListWebhooksRequest is the request to get the // list of subscribed webhooks for a given repository. type ListWebhooksRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The repository name given in the corresponding subscription request. RepositoryName string `protobuf:"bytes,1,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` // The owner associated with the repository. @@ -331,11 +408,6 @@ func (x *ListWebhooksRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListWebhooksRequest.ProtoReflect.Descriptor instead. -func (*ListWebhooksRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescGZIP(), []int{4} -} - func (x *ListWebhooksRequest) GetRepositoryName() string { if x != nil { return x.RepositoryName @@ -357,10 +429,43 @@ func (x *ListWebhooksRequest) GetPageToken() string { return "" } +func (x *ListWebhooksRequest) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *ListWebhooksRequest) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *ListWebhooksRequest) SetPageToken(v string) { + x.PageToken = v +} + +type ListWebhooksRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The repository name given in the corresponding subscription request. + RepositoryName string + // The owner associated with the repository. + OwnerName string + // The page token for paginating. + PageToken string +} + +func (b0 ListWebhooksRequest_builder) Build() *ListWebhooksRequest { + m0 := &ListWebhooksRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RepositoryName = b.RepositoryName + x.OwnerName = b.OwnerName + x.PageToken = b.PageToken + return m0 +} + // ListWebhooksResponse is the response for the list of // subscribed webhooks for a given repository. type ListWebhooksResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The list of subscribed webhooks for a given repository. Webhooks []*Webhook `protobuf:"bytes,1,rep,name=webhooks,proto3" json:"webhooks,omitempty"` // The next page token for paginating. @@ -394,11 +499,6 @@ func (x *ListWebhooksResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListWebhooksResponse.ProtoReflect.Descriptor instead. -func (*ListWebhooksResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescGZIP(), []int{5} -} - func (x *ListWebhooksResponse) GetWebhooks() []*Webhook { if x != nil { return x.Webhooks @@ -413,9 +513,35 @@ func (x *ListWebhooksResponse) GetNextPageToken() string { return "" } +func (x *ListWebhooksResponse) SetWebhooks(v []*Webhook) { + x.Webhooks = v +} + +func (x *ListWebhooksResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type ListWebhooksResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of subscribed webhooks for a given repository. + Webhooks []*Webhook + // The next page token for paginating. + NextPageToken string +} + +func (b0 ListWebhooksResponse_builder) Build() *ListWebhooksResponse { + m0 := &ListWebhooksResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Webhooks = b.Webhooks + x.NextPageToken = b.NextPageToken + return m0 +} + // Webhook is the representation of a webhook repository event subscription. type Webhook struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The event associated with the subscription id. Event WebhookEvent `protobuf:"varint,1,opt,name=event,proto3,enum=buf.alpha.registry.v1alpha1.WebhookEvent" json:"event,omitempty"` // The id of the associated subscription. @@ -463,11 +589,6 @@ func (x *Webhook) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Webhook.ProtoReflect.Descriptor instead. -func (*Webhook) Descriptor() ([]byte, []int) { - return file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescGZIP(), []int{6} -} - func (x *Webhook) GetEvent() WebhookEvent { if x != nil { return x.Event @@ -517,6 +638,93 @@ func (x *Webhook) GetCallbackUrl() string { return "" } +func (x *Webhook) SetEvent(v WebhookEvent) { + x.Event = v +} + +func (x *Webhook) SetWebhookId(v string) { + x.WebhookId = v +} + +func (x *Webhook) SetCreateTime(v *timestamppb.Timestamp) { + x.CreateTime = v +} + +func (x *Webhook) SetUpdateTime(v *timestamppb.Timestamp) { + x.UpdateTime = v +} + +func (x *Webhook) SetRepositoryName(v string) { + x.RepositoryName = v +} + +func (x *Webhook) SetOwnerName(v string) { + x.OwnerName = v +} + +func (x *Webhook) SetCallbackUrl(v string) { + x.CallbackUrl = v +} + +func (x *Webhook) HasCreateTime() bool { + if x == nil { + return false + } + return x.CreateTime != nil +} + +func (x *Webhook) HasUpdateTime() bool { + if x == nil { + return false + } + return x.UpdateTime != nil +} + +func (x *Webhook) ClearCreateTime() { + x.CreateTime = nil +} + +func (x *Webhook) ClearUpdateTime() { + x.UpdateTime = nil +} + +type Webhook_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The event associated with the subscription id. + Event WebhookEvent + // The id of the associated subscription. + WebhookId string + // The webhook creation timestamp. + CreateTime *timestamppb.Timestamp + // The webhook last updated timestamp. + UpdateTime *timestamppb.Timestamp + // The webhook repository name. + RepositoryName string + // The webhook repository owner name. + OwnerName string + // The subscriber's callback URL where notifications are delivered. Currently + // we only support Connect-powered backends with application/proto as the + // content type. Make sure that your URL ends with + // "/buf.alpha.webhook.v1alpha1.EventService/Event". For more information + // about Connect, see https://connectrpc.com. + CallbackUrl string +} + +func (b0 Webhook_builder) Build() *Webhook { + m0 := &Webhook{} + b, x := &b0, m0 + _, _ = b, x + x.Event = b.Event + x.WebhookId = b.WebhookId + x.CreateTime = b.CreateTime + x.UpdateTime = b.UpdateTime + x.RepositoryName = b.RepositoryName + x.OwnerName = b.OwnerName + x.CallbackUrl = b.CallbackUrl + return m0 +} + var File_buf_alpha_registry_v1alpha1_webhook_proto protoreflect.FileDescriptor var file_buf_alpha_registry_v1alpha1_webhook_proto_rawDesc = []byte{ @@ -638,18 +846,6 @@ var file_buf_alpha_registry_v1alpha1_webhook_proto_rawDesc = []byte{ 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescOnce sync.Once - file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescData = file_buf_alpha_registry_v1alpha1_webhook_proto_rawDesc -) - -func file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescGZIP() []byte { - file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescOnce.Do(func() { - file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescData) - }) - return file_buf_alpha_registry_v1alpha1_webhook_proto_rawDescData -} - var file_buf_alpha_registry_v1alpha1_webhook_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_buf_alpha_registry_v1alpha1_webhook_proto_goTypes = []any{ diff --git a/private/gen/proto/go/buf/alpha/registry/v1alpha1/webhook_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/registry/v1alpha1/webhook_protoopaque.pb.go new file mode 100644 index 0000000000..fc6aac1d59 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/registry/v1alpha1/webhook_protoopaque.pb.go @@ -0,0 +1,886 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/registry/v1alpha1/webhook.proto + +//go:build protoopaque + +package registryv1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// WebhookEvent contains the currently supported webhook event types. +type WebhookEvent int32 + +const ( + // WEBHOOK_EVENT_UNSPECIFIED is a safe noop default for webhook events + // subscription. It will trigger an error if trying to register a webhook with + // this event. + WebhookEvent_WEBHOOK_EVENT_UNSPECIFIED WebhookEvent = 0 + // WEBHOOK_EVENT_REPOSITORY_PUSH is emitted whenever a successful buf push is + // completed for a specific repository. + WebhookEvent_WEBHOOK_EVENT_REPOSITORY_PUSH WebhookEvent = 1 +) + +// Enum value maps for WebhookEvent. +var ( + WebhookEvent_name = map[int32]string{ + 0: "WEBHOOK_EVENT_UNSPECIFIED", + 1: "WEBHOOK_EVENT_REPOSITORY_PUSH", + } + WebhookEvent_value = map[string]int32{ + "WEBHOOK_EVENT_UNSPECIFIED": 0, + "WEBHOOK_EVENT_REPOSITORY_PUSH": 1, + } +) + +func (x WebhookEvent) Enum() *WebhookEvent { + p := new(WebhookEvent) + *p = x + return p +} + +func (x WebhookEvent) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WebhookEvent) Descriptor() protoreflect.EnumDescriptor { + return file_buf_alpha_registry_v1alpha1_webhook_proto_enumTypes[0].Descriptor() +} + +func (WebhookEvent) Type() protoreflect.EnumType { + return &file_buf_alpha_registry_v1alpha1_webhook_proto_enumTypes[0] +} + +func (x WebhookEvent) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// CreateWebhookRequest is the proto request representation of a +// webhook request body. +type CreateWebhookRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WebhookEvent WebhookEvent `protobuf:"varint,1,opt,name=webhook_event,json=webhookEvent,proto3,enum=buf.alpha.registry.v1alpha1.WebhookEvent" json:"webhook_event,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,3,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_CallbackUrl string `protobuf:"bytes,4,opt,name=callback_url,json=callbackUrl,proto3" json:"callback_url,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateWebhookRequest) Reset() { + *x = CreateWebhookRequest{} + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateWebhookRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateWebhookRequest) ProtoMessage() {} + +func (x *CreateWebhookRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateWebhookRequest) GetWebhookEvent() WebhookEvent { + if x != nil { + return x.xxx_hidden_WebhookEvent + } + return WebhookEvent_WEBHOOK_EVENT_UNSPECIFIED +} + +func (x *CreateWebhookRequest) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *CreateWebhookRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *CreateWebhookRequest) GetCallbackUrl() string { + if x != nil { + return x.xxx_hidden_CallbackUrl + } + return "" +} + +func (x *CreateWebhookRequest) SetWebhookEvent(v WebhookEvent) { + x.xxx_hidden_WebhookEvent = v +} + +func (x *CreateWebhookRequest) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *CreateWebhookRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *CreateWebhookRequest) SetCallbackUrl(v string) { + x.xxx_hidden_CallbackUrl = v +} + +type CreateWebhookRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The event to subscribe to for the given repository. + WebhookEvent WebhookEvent + // The owner name of the repository in the corresponding subscription request. + OwnerName string + // The repository name that the subscriber wishes create a subscription for. + RepositoryName string + // The subscriber's callback URL where notifications should be delivered. + CallbackUrl string +} + +func (b0 CreateWebhookRequest_builder) Build() *CreateWebhookRequest { + m0 := &CreateWebhookRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WebhookEvent = b.WebhookEvent + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_CallbackUrl = b.CallbackUrl + return m0 +} + +// CreateWebhookResponse is the proto response representation +// of a webhook request. +type CreateWebhookResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Webhook *Webhook `protobuf:"bytes,1,opt,name=webhook,proto3" json:"webhook,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateWebhookResponse) Reset() { + *x = CreateWebhookResponse{} + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateWebhookResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateWebhookResponse) ProtoMessage() {} + +func (x *CreateWebhookResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateWebhookResponse) GetWebhook() *Webhook { + if x != nil { + return x.xxx_hidden_Webhook + } + return nil +} + +func (x *CreateWebhookResponse) SetWebhook(v *Webhook) { + x.xxx_hidden_Webhook = v +} + +func (x *CreateWebhookResponse) HasWebhook() bool { + if x == nil { + return false + } + return x.xxx_hidden_Webhook != nil +} + +func (x *CreateWebhookResponse) ClearWebhook() { + x.xxx_hidden_Webhook = nil +} + +type CreateWebhookResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Created webhook subscription. + Webhook *Webhook +} + +func (b0 CreateWebhookResponse_builder) Build() *CreateWebhookResponse { + m0 := &CreateWebhookResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Webhook = b.Webhook + return m0 +} + +// DeleteWebhookRequest is the request for unsubscribing to a webhook. +type DeleteWebhookRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_WebhookId string `protobuf:"bytes,1,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteWebhookRequest) Reset() { + *x = DeleteWebhookRequest{} + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteWebhookRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteWebhookRequest) ProtoMessage() {} + +func (x *DeleteWebhookRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *DeleteWebhookRequest) GetWebhookId() string { + if x != nil { + return x.xxx_hidden_WebhookId + } + return "" +} + +func (x *DeleteWebhookRequest) SetWebhookId(v string) { + x.xxx_hidden_WebhookId = v +} + +type DeleteWebhookRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The id of the webhook subscription to delete. + WebhookId string +} + +func (b0 DeleteWebhookRequest_builder) Build() *DeleteWebhookRequest { + m0 := &DeleteWebhookRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_WebhookId = b.WebhookId + return m0 +} + +// DeleteWebhookResponse is the response for unsubscribing +// from a webhook. +type DeleteWebhookResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteWebhookResponse) Reset() { + *x = DeleteWebhookResponse{} + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteWebhookResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteWebhookResponse) ProtoMessage() {} + +func (x *DeleteWebhookResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type DeleteWebhookResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DeleteWebhookResponse_builder) Build() *DeleteWebhookResponse { + m0 := &DeleteWebhookResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// ListWebhooksRequest is the request to get the +// list of subscribed webhooks for a given repository. +type ListWebhooksRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RepositoryName string `protobuf:"bytes,1,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,2,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListWebhooksRequest) Reset() { + *x = ListWebhooksRequest{} + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListWebhooksRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListWebhooksRequest) ProtoMessage() {} + +func (x *ListWebhooksRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListWebhooksRequest) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *ListWebhooksRequest) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *ListWebhooksRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ListWebhooksRequest) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *ListWebhooksRequest) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *ListWebhooksRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +type ListWebhooksRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The repository name given in the corresponding subscription request. + RepositoryName string + // The owner associated with the repository. + OwnerName string + // The page token for paginating. + PageToken string +} + +func (b0 ListWebhooksRequest_builder) Build() *ListWebhooksRequest { + m0 := &ListWebhooksRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_PageToken = b.PageToken + return m0 +} + +// ListWebhooksResponse is the response for the list of +// subscribed webhooks for a given repository. +type ListWebhooksResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Webhooks *[]*Webhook `protobuf:"bytes,1,rep,name=webhooks,proto3" json:"webhooks,omitempty"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListWebhooksResponse) Reset() { + *x = ListWebhooksResponse{} + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListWebhooksResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListWebhooksResponse) ProtoMessage() {} + +func (x *ListWebhooksResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListWebhooksResponse) GetWebhooks() []*Webhook { + if x != nil { + if x.xxx_hidden_Webhooks != nil { + return *x.xxx_hidden_Webhooks + } + } + return nil +} + +func (x *ListWebhooksResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ListWebhooksResponse) SetWebhooks(v []*Webhook) { + x.xxx_hidden_Webhooks = &v +} + +func (x *ListWebhooksResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type ListWebhooksResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The list of subscribed webhooks for a given repository. + Webhooks []*Webhook + // The next page token for paginating. + NextPageToken string +} + +func (b0 ListWebhooksResponse_builder) Build() *ListWebhooksResponse { + m0 := &ListWebhooksResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Webhooks = &b.Webhooks + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +// Webhook is the representation of a webhook repository event subscription. +type Webhook struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Event WebhookEvent `protobuf:"varint,1,opt,name=event,proto3,enum=buf.alpha.registry.v1alpha1.WebhookEvent" json:"event,omitempty"` + xxx_hidden_WebhookId string `protobuf:"bytes,2,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + xxx_hidden_UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + xxx_hidden_RepositoryName string `protobuf:"bytes,5,opt,name=repository_name,json=repositoryName,proto3" json:"repository_name,omitempty"` + xxx_hidden_OwnerName string `protobuf:"bytes,6,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"` + xxx_hidden_CallbackUrl string `protobuf:"bytes,7,opt,name=callback_url,json=callbackUrl,proto3" json:"callback_url,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Webhook) Reset() { + *x = Webhook{} + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Webhook) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Webhook) ProtoMessage() {} + +func (x *Webhook) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Webhook) GetEvent() WebhookEvent { + if x != nil { + return x.xxx_hidden_Event + } + return WebhookEvent_WEBHOOK_EVENT_UNSPECIFIED +} + +func (x *Webhook) GetWebhookId() string { + if x != nil { + return x.xxx_hidden_WebhookId + } + return "" +} + +func (x *Webhook) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreateTime + } + return nil +} + +func (x *Webhook) GetUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_UpdateTime + } + return nil +} + +func (x *Webhook) GetRepositoryName() string { + if x != nil { + return x.xxx_hidden_RepositoryName + } + return "" +} + +func (x *Webhook) GetOwnerName() string { + if x != nil { + return x.xxx_hidden_OwnerName + } + return "" +} + +func (x *Webhook) GetCallbackUrl() string { + if x != nil { + return x.xxx_hidden_CallbackUrl + } + return "" +} + +func (x *Webhook) SetEvent(v WebhookEvent) { + x.xxx_hidden_Event = v +} + +func (x *Webhook) SetWebhookId(v string) { + x.xxx_hidden_WebhookId = v +} + +func (x *Webhook) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v +} + +func (x *Webhook) SetUpdateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_UpdateTime = v +} + +func (x *Webhook) SetRepositoryName(v string) { + x.xxx_hidden_RepositoryName = v +} + +func (x *Webhook) SetOwnerName(v string) { + x.xxx_hidden_OwnerName = v +} + +func (x *Webhook) SetCallbackUrl(v string) { + x.xxx_hidden_CallbackUrl = v +} + +func (x *Webhook) HasCreateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreateTime != nil +} + +func (x *Webhook) HasUpdateTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateTime != nil +} + +func (x *Webhook) ClearCreateTime() { + x.xxx_hidden_CreateTime = nil +} + +func (x *Webhook) ClearUpdateTime() { + x.xxx_hidden_UpdateTime = nil +} + +type Webhook_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The event associated with the subscription id. + Event WebhookEvent + // The id of the associated subscription. + WebhookId string + // The webhook creation timestamp. + CreateTime *timestamppb.Timestamp + // The webhook last updated timestamp. + UpdateTime *timestamppb.Timestamp + // The webhook repository name. + RepositoryName string + // The webhook repository owner name. + OwnerName string + // The subscriber's callback URL where notifications are delivered. Currently + // we only support Connect-powered backends with application/proto as the + // content type. Make sure that your URL ends with + // "/buf.alpha.webhook.v1alpha1.EventService/Event". For more information + // about Connect, see https://connectrpc.com. + CallbackUrl string +} + +func (b0 Webhook_builder) Build() *Webhook { + m0 := &Webhook{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Event = b.Event + x.xxx_hidden_WebhookId = b.WebhookId + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_UpdateTime = b.UpdateTime + x.xxx_hidden_RepositoryName = b.RepositoryName + x.xxx_hidden_OwnerName = b.OwnerName + x.xxx_hidden_CallbackUrl = b.CallbackUrl + return m0 +} + +var File_buf_alpha_registry_v1alpha1_webhook_proto protoreflect.FileDescriptor + +var file_buf_alpha_registry_v1alpha1_webhook_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x77, 0x65, + 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x62, 0x75, 0x66, + 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd1, 0x01, 0x0a, 0x14, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0d, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x52, 0x0c, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, + 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x55, 0x72, 0x6c, 0x22, 0x57, 0x0a, + 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, + 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x07, 0x77, + 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x22, 0x35, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x49, 0x64, 0x22, 0x17, 0x0a, + 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7c, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x65, + 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, + 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x80, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x65, 0x62, + 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, + 0x08, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x57, 0x65, + 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x08, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x12, + 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, + 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xce, 0x02, 0x0a, 0x07, 0x57, 0x65, 0x62, 0x68, + 0x6f, 0x6f, 0x6b, 0x12, 0x3f, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, + 0x6b, 0x49, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x27, 0x0a, + 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, + 0x6b, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x6c, + 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x55, 0x72, 0x6c, 0x2a, 0x50, 0x0a, 0x0c, 0x57, 0x65, 0x62, 0x68, + 0x6f, 0x6f, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x19, 0x57, 0x45, 0x42, 0x48, + 0x4f, 0x4f, 0x4b, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x57, 0x45, 0x42, 0x48, 0x4f, + 0x4f, 0x4b, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x53, 0x49, 0x54, + 0x4f, 0x52, 0x59, 0x5f, 0x50, 0x55, 0x53, 0x48, 0x10, 0x01, 0x32, 0x84, 0x03, 0x0a, 0x0e, 0x57, + 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7b, 0x0a, + 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x31, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x32, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0x7b, 0x0a, 0x0d, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x31, 0x2e, 0x62, 0x75, + 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, + 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x02, 0x12, 0x78, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x57, + 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x12, 0x30, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, + 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x62, 0x75, 0x66, 0x2e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x65, 0x62, 0x68, + 0x6f, 0x6f, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, + 0x01, 0x42, 0x99, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0c, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xa2, 0x02, 0x03, 0x42, 0x41, 0x52, 0xaa, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1b, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, + 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0xe2, 0x02, 0x27, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x42, + 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_registry_v1alpha1_webhook_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_buf_alpha_registry_v1alpha1_webhook_proto_goTypes = []any{ + (WebhookEvent)(0), // 0: buf.alpha.registry.v1alpha1.WebhookEvent + (*CreateWebhookRequest)(nil), // 1: buf.alpha.registry.v1alpha1.CreateWebhookRequest + (*CreateWebhookResponse)(nil), // 2: buf.alpha.registry.v1alpha1.CreateWebhookResponse + (*DeleteWebhookRequest)(nil), // 3: buf.alpha.registry.v1alpha1.DeleteWebhookRequest + (*DeleteWebhookResponse)(nil), // 4: buf.alpha.registry.v1alpha1.DeleteWebhookResponse + (*ListWebhooksRequest)(nil), // 5: buf.alpha.registry.v1alpha1.ListWebhooksRequest + (*ListWebhooksResponse)(nil), // 6: buf.alpha.registry.v1alpha1.ListWebhooksResponse + (*Webhook)(nil), // 7: buf.alpha.registry.v1alpha1.Webhook + (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp +} +var file_buf_alpha_registry_v1alpha1_webhook_proto_depIdxs = []int32{ + 0, // 0: buf.alpha.registry.v1alpha1.CreateWebhookRequest.webhook_event:type_name -> buf.alpha.registry.v1alpha1.WebhookEvent + 7, // 1: buf.alpha.registry.v1alpha1.CreateWebhookResponse.webhook:type_name -> buf.alpha.registry.v1alpha1.Webhook + 7, // 2: buf.alpha.registry.v1alpha1.ListWebhooksResponse.webhooks:type_name -> buf.alpha.registry.v1alpha1.Webhook + 0, // 3: buf.alpha.registry.v1alpha1.Webhook.event:type_name -> buf.alpha.registry.v1alpha1.WebhookEvent + 8, // 4: buf.alpha.registry.v1alpha1.Webhook.create_time:type_name -> google.protobuf.Timestamp + 8, // 5: buf.alpha.registry.v1alpha1.Webhook.update_time:type_name -> google.protobuf.Timestamp + 1, // 6: buf.alpha.registry.v1alpha1.WebhookService.CreateWebhook:input_type -> buf.alpha.registry.v1alpha1.CreateWebhookRequest + 3, // 7: buf.alpha.registry.v1alpha1.WebhookService.DeleteWebhook:input_type -> buf.alpha.registry.v1alpha1.DeleteWebhookRequest + 5, // 8: buf.alpha.registry.v1alpha1.WebhookService.ListWebhooks:input_type -> buf.alpha.registry.v1alpha1.ListWebhooksRequest + 2, // 9: buf.alpha.registry.v1alpha1.WebhookService.CreateWebhook:output_type -> buf.alpha.registry.v1alpha1.CreateWebhookResponse + 4, // 10: buf.alpha.registry.v1alpha1.WebhookService.DeleteWebhook:output_type -> buf.alpha.registry.v1alpha1.DeleteWebhookResponse + 6, // 11: buf.alpha.registry.v1alpha1.WebhookService.ListWebhooks:output_type -> buf.alpha.registry.v1alpha1.ListWebhooksResponse + 9, // [9:12] is the sub-list for method output_type + 6, // [6:9] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_buf_alpha_registry_v1alpha1_webhook_proto_init() } +func file_buf_alpha_registry_v1alpha1_webhook_proto_init() { + if File_buf_alpha_registry_v1alpha1_webhook_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_registry_v1alpha1_webhook_proto_rawDesc, + NumEnums: 1, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_registry_v1alpha1_webhook_proto_goTypes, + DependencyIndexes: file_buf_alpha_registry_v1alpha1_webhook_proto_depIdxs, + EnumInfos: file_buf_alpha_registry_v1alpha1_webhook_proto_enumTypes, + MessageInfos: file_buf_alpha_registry_v1alpha1_webhook_proto_msgTypes, + }.Build() + File_buf_alpha_registry_v1alpha1_webhook_proto = out.File + file_buf_alpha_registry_v1alpha1_webhook_proto_rawDesc = nil + file_buf_alpha_registry_v1alpha1_webhook_proto_goTypes = nil + file_buf_alpha_registry_v1alpha1_webhook_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/studio/v1alpha1/invoke.pb.go b/private/gen/proto/go/buf/alpha/studio/v1alpha1/invoke.pb.go index f369d7354d..131cba877c 100644 --- a/private/gen/proto/go/buf/alpha/studio/v1alpha1/invoke.pb.go +++ b/private/gen/proto/go/buf/alpha/studio/v1alpha1/invoke.pb.go @@ -42,13 +42,14 @@ // We may explore other transports such as WebSockets or WebTransport, at which // point we should define proper proto services and methods here as well. +//go:build !protoopaque + package studiov1alpha1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -60,7 +61,7 @@ const ( // Headers encode HTTP headers. type Headers struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields @@ -92,11 +93,6 @@ func (x *Headers) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Headers.ProtoReflect.Descriptor instead. -func (*Headers) Descriptor() ([]byte, []int) { - return file_buf_alpha_studio_v1alpha1_invoke_proto_rawDescGZIP(), []int{0} -} - func (x *Headers) GetKey() string { if x != nil { return x.Key @@ -111,10 +107,34 @@ func (x *Headers) GetValue() []string { return nil } +func (x *Headers) SetKey(v string) { + x.Key = v +} + +func (x *Headers) SetValue(v []string) { + x.Value = v +} + +type Headers_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Key string + Value []string +} + +func (b0 Headers_builder) Build() *Headers { + m0 := &Headers{} + b, x := &b0, m0 + _, _ = b, x + x.Key = b.Key + x.Value = b.Value + return m0 +} + // InvokeRequest encodes an enveloped RPC request. See the package documentation // for more information. type InvokeRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Target server the agent should forward this request to, e.g. // "https://api.acme.corp/pkg.Service/Method". Using the "http" scheme will // cause the request to be forwarded as h2c, whereas "https" forwards the @@ -154,11 +174,6 @@ func (x *InvokeRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use InvokeRequest.ProtoReflect.Descriptor instead. -func (*InvokeRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_studio_v1alpha1_invoke_proto_rawDescGZIP(), []int{1} -} - func (x *InvokeRequest) GetTarget() string { if x != nil { return x.Target @@ -180,10 +195,50 @@ func (x *InvokeRequest) GetBody() []byte { return nil } +func (x *InvokeRequest) SetTarget(v string) { + x.Target = v +} + +func (x *InvokeRequest) SetHeaders(v []*Headers) { + x.Headers = v +} + +func (x *InvokeRequest) SetBody(v []byte) { + if v == nil { + v = []byte{} + } + x.Body = v +} + +type InvokeRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Target server the agent should forward this request to, e.g. + // "https://api.acme.corp/pkg.Service/Method". Using the "http" scheme will + // cause the request to be forwarded as h2c, whereas "https" forwards the + // request with regular h2. + Target string + // Headers to send with the request. If body is set, a Content-Type header + // must be specified. + Headers []*Headers + // The message to be sent in the request (without any protocol specific framing). + Body []byte +} + +func (b0 InvokeRequest_builder) Build() *InvokeRequest { + m0 := &InvokeRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Target = b.Target + x.Headers = b.Headers + x.Body = b.Body + return m0 +} + // InvokeResponse encodes an enveloped RPC response. See the package documentation // for more information. type InvokeResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Headers received in the response. Headers []*Headers `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` // The encoded message received in the response (without protocol specific framing). @@ -219,11 +274,6 @@ func (x *InvokeResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use InvokeResponse.ProtoReflect.Descriptor instead. -func (*InvokeResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_studio_v1alpha1_invoke_proto_rawDescGZIP(), []int{2} -} - func (x *InvokeResponse) GetHeaders() []*Headers { if x != nil { return x.Headers @@ -245,6 +295,42 @@ func (x *InvokeResponse) GetTrailers() []*Headers { return nil } +func (x *InvokeResponse) SetHeaders(v []*Headers) { + x.Headers = v +} + +func (x *InvokeResponse) SetBody(v []byte) { + if v == nil { + v = []byte{} + } + x.Body = v +} + +func (x *InvokeResponse) SetTrailers(v []*Headers) { + x.Trailers = v +} + +type InvokeResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Headers received in the response. + Headers []*Headers + // The encoded message received in the response (without protocol specific framing). + Body []byte + // Trailers received in the response. + Trailers []*Headers +} + +func (b0 InvokeResponse_builder) Build() *InvokeResponse { + m0 := &InvokeResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Headers = b.Headers + x.Body = b.Body + x.Trailers = b.Trailers + return m0 +} + var File_buf_alpha_studio_v1alpha1_invoke_proto protoreflect.FileDescriptor var file_buf_alpha_studio_v1alpha1_invoke_proto_rawDesc = []byte{ @@ -293,18 +379,6 @@ var file_buf_alpha_studio_v1alpha1_invoke_proto_rawDesc = []byte{ 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_buf_alpha_studio_v1alpha1_invoke_proto_rawDescOnce sync.Once - file_buf_alpha_studio_v1alpha1_invoke_proto_rawDescData = file_buf_alpha_studio_v1alpha1_invoke_proto_rawDesc -) - -func file_buf_alpha_studio_v1alpha1_invoke_proto_rawDescGZIP() []byte { - file_buf_alpha_studio_v1alpha1_invoke_proto_rawDescOnce.Do(func() { - file_buf_alpha_studio_v1alpha1_invoke_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_studio_v1alpha1_invoke_proto_rawDescData) - }) - return file_buf_alpha_studio_v1alpha1_invoke_proto_rawDescData -} - var file_buf_alpha_studio_v1alpha1_invoke_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_buf_alpha_studio_v1alpha1_invoke_proto_goTypes = []any{ (*Headers)(nil), // 0: buf.alpha.studio.v1alpha1.Headers diff --git a/private/gen/proto/go/buf/alpha/studio/v1alpha1/invoke_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/studio/v1alpha1/invoke_protoopaque.pb.go new file mode 100644 index 0000000000..526157fba3 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/studio/v1alpha1/invoke_protoopaque.pb.go @@ -0,0 +1,418 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/studio/v1alpha1/invoke.proto + +// The buf.alpha.studio.v1alpha1 package contains types used by the buf studio +// agent. Because browsers are not capable of sending gRPC requests directly, +// users can run a studio agent to that receives enveloped requests from the +// browser and forwards them as gRPC requests. +// +// Ideally the agent would be simple protocol translating HTTP proxy without +// requiring any custom envelope. Unfortunately, js in the browser cannot set +// per request proxy configuration and we cannot specify that we want to open a +// connection to the request agent while specifying a different server in the +// request's Host header. The studio agent and UI could communicate this through +// a custom header instead, but reading custom headers requires a CORS-preflight +// request. +// +// To facilitate easier deployment it in environments with complicated edge +// configuration, it is a goal for the agent and UI to communicate without the +// need for a CORS-preflight requests. This limits our ability to use custom +// headers and restricts allowed values for the Content-Type header. Due to this +// we cannot simply use gRPC-Web with an additional header, but instead rely on +// enveloping the request and responses in a base64 encoded binary proto message +// sent over a POST endpoint with text/plain as Content-Type. +// +// We may explore other transports such as WebSockets or WebTransport, at which +// point we should define proper proto services and methods here as well. + +//go:build protoopaque + +package studiov1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Headers encode HTTP headers. +type Headers struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + xxx_hidden_Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Headers) Reset() { + *x = Headers{} + mi := &file_buf_alpha_studio_v1alpha1_invoke_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Headers) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Headers) ProtoMessage() {} + +func (x *Headers) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_studio_v1alpha1_invoke_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Headers) GetKey() string { + if x != nil { + return x.xxx_hidden_Key + } + return "" +} + +func (x *Headers) GetValue() []string { + if x != nil { + return x.xxx_hidden_Value + } + return nil +} + +func (x *Headers) SetKey(v string) { + x.xxx_hidden_Key = v +} + +func (x *Headers) SetValue(v []string) { + x.xxx_hidden_Value = v +} + +type Headers_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Key string + Value []string +} + +func (b0 Headers_builder) Build() *Headers { + m0 := &Headers{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Key = b.Key + x.xxx_hidden_Value = b.Value + return m0 +} + +// InvokeRequest encodes an enveloped RPC request. See the package documentation +// for more information. +type InvokeRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + xxx_hidden_Headers *[]*Headers `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` + xxx_hidden_Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *InvokeRequest) Reset() { + *x = InvokeRequest{} + mi := &file_buf_alpha_studio_v1alpha1_invoke_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InvokeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InvokeRequest) ProtoMessage() {} + +func (x *InvokeRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_studio_v1alpha1_invoke_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *InvokeRequest) GetTarget() string { + if x != nil { + return x.xxx_hidden_Target + } + return "" +} + +func (x *InvokeRequest) GetHeaders() []*Headers { + if x != nil { + if x.xxx_hidden_Headers != nil { + return *x.xxx_hidden_Headers + } + } + return nil +} + +func (x *InvokeRequest) GetBody() []byte { + if x != nil { + return x.xxx_hidden_Body + } + return nil +} + +func (x *InvokeRequest) SetTarget(v string) { + x.xxx_hidden_Target = v +} + +func (x *InvokeRequest) SetHeaders(v []*Headers) { + x.xxx_hidden_Headers = &v +} + +func (x *InvokeRequest) SetBody(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Body = v +} + +type InvokeRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Target server the agent should forward this request to, e.g. + // "https://api.acme.corp/pkg.Service/Method". Using the "http" scheme will + // cause the request to be forwarded as h2c, whereas "https" forwards the + // request with regular h2. + Target string + // Headers to send with the request. If body is set, a Content-Type header + // must be specified. + Headers []*Headers + // The message to be sent in the request (without any protocol specific framing). + Body []byte +} + +func (b0 InvokeRequest_builder) Build() *InvokeRequest { + m0 := &InvokeRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Target = b.Target + x.xxx_hidden_Headers = &b.Headers + x.xxx_hidden_Body = b.Body + return m0 +} + +// InvokeResponse encodes an enveloped RPC response. See the package documentation +// for more information. +type InvokeResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Headers *[]*Headers `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` + xxx_hidden_Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + xxx_hidden_Trailers *[]*Headers `protobuf:"bytes,3,rep,name=trailers,proto3" json:"trailers,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *InvokeResponse) Reset() { + *x = InvokeResponse{} + mi := &file_buf_alpha_studio_v1alpha1_invoke_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InvokeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InvokeResponse) ProtoMessage() {} + +func (x *InvokeResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_studio_v1alpha1_invoke_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *InvokeResponse) GetHeaders() []*Headers { + if x != nil { + if x.xxx_hidden_Headers != nil { + return *x.xxx_hidden_Headers + } + } + return nil +} + +func (x *InvokeResponse) GetBody() []byte { + if x != nil { + return x.xxx_hidden_Body + } + return nil +} + +func (x *InvokeResponse) GetTrailers() []*Headers { + if x != nil { + if x.xxx_hidden_Trailers != nil { + return *x.xxx_hidden_Trailers + } + } + return nil +} + +func (x *InvokeResponse) SetHeaders(v []*Headers) { + x.xxx_hidden_Headers = &v +} + +func (x *InvokeResponse) SetBody(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Body = v +} + +func (x *InvokeResponse) SetTrailers(v []*Headers) { + x.xxx_hidden_Trailers = &v +} + +type InvokeResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Headers received in the response. + Headers []*Headers + // The encoded message received in the response (without protocol specific framing). + Body []byte + // Trailers received in the response. + Trailers []*Headers +} + +func (b0 InvokeResponse_builder) Build() *InvokeResponse { + m0 := &InvokeResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Headers = &b.Headers + x.xxx_hidden_Body = b.Body + x.xxx_hidden_Trailers = &b.Trailers + return m0 +} + +var File_buf_alpha_studio_v1alpha1_invoke_proto protoreflect.FileDescriptor + +var file_buf_alpha_studio_v1alpha1_invoke_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x73, 0x74, 0x75, 0x64, + 0x69, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x6f, + 0x6b, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x22, 0x31, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x79, 0x0a, 0x0d, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, + 0x3c, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x73, 0x74, 0x75, + 0x64, 0x69, 0x6f, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x73, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, + 0x79, 0x22, 0xa2, 0x01, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x3e, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, + 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x08, 0x74, 0x72, + 0x61, 0x69, 0x6c, 0x65, 0x72, 0x73, 0x42, 0x8a, 0x02, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x73, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0b, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x55, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, + 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, + 0x73, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, + 0x73, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xa2, 0x02, + 0x03, 0x42, 0x41, 0x53, 0xaa, 0x02, 0x19, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0xca, 0x02, 0x19, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x53, 0x74, 0x75, + 0x64, 0x69, 0x6f, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0xe2, 0x02, 0x25, 0x42, + 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, 0x42, 0x75, 0x66, 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, + 0x61, 0x3a, 0x3a, 0x53, 0x74, 0x75, 0x64, 0x69, 0x6f, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_buf_alpha_studio_v1alpha1_invoke_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_buf_alpha_studio_v1alpha1_invoke_proto_goTypes = []any{ + (*Headers)(nil), // 0: buf.alpha.studio.v1alpha1.Headers + (*InvokeRequest)(nil), // 1: buf.alpha.studio.v1alpha1.InvokeRequest + (*InvokeResponse)(nil), // 2: buf.alpha.studio.v1alpha1.InvokeResponse +} +var file_buf_alpha_studio_v1alpha1_invoke_proto_depIdxs = []int32{ + 0, // 0: buf.alpha.studio.v1alpha1.InvokeRequest.headers:type_name -> buf.alpha.studio.v1alpha1.Headers + 0, // 1: buf.alpha.studio.v1alpha1.InvokeResponse.headers:type_name -> buf.alpha.studio.v1alpha1.Headers + 0, // 2: buf.alpha.studio.v1alpha1.InvokeResponse.trailers:type_name -> buf.alpha.studio.v1alpha1.Headers + 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 + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_buf_alpha_studio_v1alpha1_invoke_proto_init() } +func file_buf_alpha_studio_v1alpha1_invoke_proto_init() { + if File_buf_alpha_studio_v1alpha1_invoke_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_studio_v1alpha1_invoke_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_buf_alpha_studio_v1alpha1_invoke_proto_goTypes, + DependencyIndexes: file_buf_alpha_studio_v1alpha1_invoke_proto_depIdxs, + MessageInfos: file_buf_alpha_studio_v1alpha1_invoke_proto_msgTypes, + }.Build() + File_buf_alpha_studio_v1alpha1_invoke_proto = out.File + file_buf_alpha_studio_v1alpha1_invoke_proto_rawDesc = nil + file_buf_alpha_studio_v1alpha1_invoke_proto_goTypes = nil + file_buf_alpha_studio_v1alpha1_invoke_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/buf/alpha/webhook/v1alpha1/event.pb.go b/private/gen/proto/go/buf/alpha/webhook/v1alpha1/event.pb.go index 1f3413c55b..65281b7946 100644 --- a/private/gen/proto/go/buf/alpha/webhook/v1alpha1/event.pb.go +++ b/private/gen/proto/go/buf/alpha/webhook/v1alpha1/event.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: buf/alpha/webhook/v1alpha1/event.proto +//go:build !protoopaque + package webhookv1alpha1 import ( @@ -26,7 +28,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" ) const ( @@ -39,7 +40,7 @@ const ( // EventRequest is the request payload that will be sent to the customer // that is subscribed to webhook events in the BSR. type EventRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The webhook event that was triggered. This event is the same one that is // registered when creating a webhook in the BSR. Event v1alpha1.WebhookEvent `protobuf:"varint,1,opt,name=event,proto3,enum=buf.alpha.registry.v1alpha1.WebhookEvent" json:"event,omitempty"` @@ -74,11 +75,6 @@ func (x *EventRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EventRequest.ProtoReflect.Descriptor instead. -func (*EventRequest) Descriptor() ([]byte, []int) { - return file_buf_alpha_webhook_v1alpha1_event_proto_rawDescGZIP(), []int{0} -} - func (x *EventRequest) GetEvent() v1alpha1.WebhookEvent { if x != nil { return x.Event @@ -93,10 +89,48 @@ func (x *EventRequest) GetPayload() *EventPayload { return nil } +func (x *EventRequest) SetEvent(v v1alpha1.WebhookEvent) { + x.Event = v +} + +func (x *EventRequest) SetPayload(v *EventPayload) { + x.Payload = v +} + +func (x *EventRequest) HasPayload() bool { + if x == nil { + return false + } + return x.Payload != nil +} + +func (x *EventRequest) ClearPayload() { + x.Payload = nil +} + +type EventRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The webhook event that was triggered. This event is the same one that is + // registered when creating a webhook in the BSR. + Event v1alpha1.WebhookEvent + // The event payload of the event was triggered. + Payload *EventPayload +} + +func (b0 EventRequest_builder) Build() *EventRequest { + m0 := &EventRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Event = b.Event + x.Payload = b.Payload + return m0 +} + // EventPayload contains the actual event payload for all possible // webhook event types. type EventPayload struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Payload: // // *EventPayload_RepositoryPush @@ -130,11 +164,6 @@ func (x *EventPayload) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EventPayload.ProtoReflect.Descriptor instead. -func (*EventPayload) Descriptor() ([]byte, []int) { - return file_buf_alpha_webhook_v1alpha1_event_proto_rawDescGZIP(), []int{1} -} - func (x *EventPayload) GetPayload() isEventPayload_Payload { if x != nil { return x.Payload @@ -151,6 +180,82 @@ func (x *EventPayload) GetRepositoryPush() *RepositoryPushEvent { return nil } +func (x *EventPayload) SetRepositoryPush(v *RepositoryPushEvent) { + if v == nil { + x.Payload = nil + return + } + x.Payload = &EventPayload_RepositoryPush{v} +} + +func (x *EventPayload) HasPayload() bool { + if x == nil { + return false + } + return x.Payload != nil +} + +func (x *EventPayload) HasRepositoryPush() bool { + if x == nil { + return false + } + _, ok := x.Payload.(*EventPayload_RepositoryPush) + return ok +} + +func (x *EventPayload) ClearPayload() { + x.Payload = nil +} + +func (x *EventPayload) ClearRepositoryPush() { + if _, ok := x.Payload.(*EventPayload_RepositoryPush); ok { + x.Payload = nil + } +} + +const EventPayload_Payload_not_set_case case_EventPayload_Payload = 0 +const EventPayload_RepositoryPush_case case_EventPayload_Payload = 1 + +func (x *EventPayload) WhichPayload() case_EventPayload_Payload { + if x == nil { + return EventPayload_Payload_not_set_case + } + switch x.Payload.(type) { + case *EventPayload_RepositoryPush: + return EventPayload_RepositoryPush_case + default: + return EventPayload_Payload_not_set_case + } +} + +type EventPayload_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Payload: + RepositoryPush *RepositoryPushEvent + // -- end of Payload +} + +func (b0 EventPayload_builder) Build() *EventPayload { + m0 := &EventPayload{} + b, x := &b0, m0 + _, _ = b, x + if b.RepositoryPush != nil { + x.Payload = &EventPayload_RepositoryPush{b.RepositoryPush} + } + return m0 +} + +type case_EventPayload_Payload protoreflect.FieldNumber + +func (x case_EventPayload_Payload) String() string { + md := file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes[1].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isEventPayload_Payload interface { isEventPayload_Payload() } @@ -163,7 +268,7 @@ func (*EventPayload_RepositoryPush) isEventPayload_Payload() {} // EventResponse is the empty response payload from the customer to Buf. type EventResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -193,14 +298,21 @@ func (x *EventResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EventResponse.ProtoReflect.Descriptor instead. -func (*EventResponse) Descriptor() ([]byte, []int) { - return file_buf_alpha_webhook_v1alpha1_event_proto_rawDescGZIP(), []int{2} +type EventResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 EventResponse_builder) Build() *EventResponse { + m0 := &EventResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // Payload for the event WEBHOOK_EVENT_REPOSITORY_PUSH. type RepositoryPushEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The timestamp of the commit push. EventTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` // The repository commit that was pushed. @@ -236,11 +348,6 @@ func (x *RepositoryPushEvent) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepositoryPushEvent.ProtoReflect.Descriptor instead. -func (*RepositoryPushEvent) Descriptor() ([]byte, []int) { - return file_buf_alpha_webhook_v1alpha1_event_proto_rawDescGZIP(), []int{3} -} - func (x *RepositoryPushEvent) GetEventTime() *timestamppb.Timestamp { if x != nil { return x.EventTime @@ -262,6 +369,72 @@ func (x *RepositoryPushEvent) GetRepository() *v1alpha1.Repository { return nil } +func (x *RepositoryPushEvent) SetEventTime(v *timestamppb.Timestamp) { + x.EventTime = v +} + +func (x *RepositoryPushEvent) SetRepositoryCommit(v *v1alpha1.RepositoryCommit) { + x.RepositoryCommit = v +} + +func (x *RepositoryPushEvent) SetRepository(v *v1alpha1.Repository) { + x.Repository = v +} + +func (x *RepositoryPushEvent) HasEventTime() bool { + if x == nil { + return false + } + return x.EventTime != nil +} + +func (x *RepositoryPushEvent) HasRepositoryCommit() bool { + if x == nil { + return false + } + return x.RepositoryCommit != nil +} + +func (x *RepositoryPushEvent) HasRepository() bool { + if x == nil { + return false + } + return x.Repository != nil +} + +func (x *RepositoryPushEvent) ClearEventTime() { + x.EventTime = nil +} + +func (x *RepositoryPushEvent) ClearRepositoryCommit() { + x.RepositoryCommit = nil +} + +func (x *RepositoryPushEvent) ClearRepository() { + x.Repository = nil +} + +type RepositoryPushEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The timestamp of the commit push. + EventTime *timestamppb.Timestamp + // The repository commit that was pushed. + RepositoryCommit *v1alpha1.RepositoryCommit + // The repository that was pushed. + Repository *v1alpha1.Repository +} + +func (b0 RepositoryPushEvent_builder) Build() *RepositoryPushEvent { + m0 := &RepositoryPushEvent{} + b, x := &b0, m0 + _, _ = b, x + x.EventTime = b.EventTime + x.RepositoryCommit = b.RepositoryCommit + x.Repository = b.Repository + return m0 +} + var File_buf_alpha_webhook_v1alpha1_event_proto protoreflect.FileDescriptor var file_buf_alpha_webhook_v1alpha1_event_proto_rawDesc = []byte{ @@ -341,18 +514,6 @@ var file_buf_alpha_webhook_v1alpha1_event_proto_rawDesc = []byte{ 0x6f, 0x33, } -var ( - file_buf_alpha_webhook_v1alpha1_event_proto_rawDescOnce sync.Once - file_buf_alpha_webhook_v1alpha1_event_proto_rawDescData = file_buf_alpha_webhook_v1alpha1_event_proto_rawDesc -) - -func file_buf_alpha_webhook_v1alpha1_event_proto_rawDescGZIP() []byte { - file_buf_alpha_webhook_v1alpha1_event_proto_rawDescOnce.Do(func() { - file_buf_alpha_webhook_v1alpha1_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_buf_alpha_webhook_v1alpha1_event_proto_rawDescData) - }) - return file_buf_alpha_webhook_v1alpha1_event_proto_rawDescData -} - var file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_buf_alpha_webhook_v1alpha1_event_proto_goTypes = []any{ (*EventRequest)(nil), // 0: buf.alpha.webhook.v1alpha1.EventRequest diff --git a/private/gen/proto/go/buf/alpha/webhook/v1alpha1/event_protoopaque.pb.go b/private/gen/proto/go/buf/alpha/webhook/v1alpha1/event_protoopaque.pb.go new file mode 100644 index 0000000000..45e8d7c402 --- /dev/null +++ b/private/gen/proto/go/buf/alpha/webhook/v1alpha1/event_protoopaque.pb.go @@ -0,0 +1,554 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: buf/alpha/webhook/v1alpha1/event.proto + +//go:build protoopaque + +package webhookv1alpha1 + +import ( + v1alpha1 "github.com/bufbuild/buf/private/gen/proto/go/buf/alpha/registry/v1alpha1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// EventRequest is the request payload that will be sent to the customer +// that is subscribed to webhook events in the BSR. +type EventRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Event v1alpha1.WebhookEvent `protobuf:"varint,1,opt,name=event,proto3,enum=buf.alpha.registry.v1alpha1.WebhookEvent" json:"event,omitempty"` + xxx_hidden_Payload *EventPayload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EventRequest) Reset() { + *x = EventRequest{} + mi := &file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EventRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventRequest) ProtoMessage() {} + +func (x *EventRequest) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *EventRequest) GetEvent() v1alpha1.WebhookEvent { + if x != nil { + return x.xxx_hidden_Event + } + return v1alpha1.WebhookEvent(0) +} + +func (x *EventRequest) GetPayload() *EventPayload { + if x != nil { + return x.xxx_hidden_Payload + } + return nil +} + +func (x *EventRequest) SetEvent(v v1alpha1.WebhookEvent) { + x.xxx_hidden_Event = v +} + +func (x *EventRequest) SetPayload(v *EventPayload) { + x.xxx_hidden_Payload = v +} + +func (x *EventRequest) HasPayload() bool { + if x == nil { + return false + } + return x.xxx_hidden_Payload != nil +} + +func (x *EventRequest) ClearPayload() { + x.xxx_hidden_Payload = nil +} + +type EventRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The webhook event that was triggered. This event is the same one that is + // registered when creating a webhook in the BSR. + Event v1alpha1.WebhookEvent + // The event payload of the event was triggered. + Payload *EventPayload +} + +func (b0 EventRequest_builder) Build() *EventRequest { + m0 := &EventRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Event = b.Event + x.xxx_hidden_Payload = b.Payload + return m0 +} + +// EventPayload contains the actual event payload for all possible +// webhook event types. +type EventPayload struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Payload isEventPayload_Payload `protobuf_oneof:"payload"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EventPayload) Reset() { + *x = EventPayload{} + mi := &file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EventPayload) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventPayload) ProtoMessage() {} + +func (x *EventPayload) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *EventPayload) GetRepositoryPush() *RepositoryPushEvent { + if x != nil { + if x, ok := x.xxx_hidden_Payload.(*eventPayload_RepositoryPush); ok { + return x.RepositoryPush + } + } + return nil +} + +func (x *EventPayload) SetRepositoryPush(v *RepositoryPushEvent) { + if v == nil { + x.xxx_hidden_Payload = nil + return + } + x.xxx_hidden_Payload = &eventPayload_RepositoryPush{v} +} + +func (x *EventPayload) HasPayload() bool { + if x == nil { + return false + } + return x.xxx_hidden_Payload != nil +} + +func (x *EventPayload) HasRepositoryPush() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Payload.(*eventPayload_RepositoryPush) + return ok +} + +func (x *EventPayload) ClearPayload() { + x.xxx_hidden_Payload = nil +} + +func (x *EventPayload) ClearRepositoryPush() { + if _, ok := x.xxx_hidden_Payload.(*eventPayload_RepositoryPush); ok { + x.xxx_hidden_Payload = nil + } +} + +const EventPayload_Payload_not_set_case case_EventPayload_Payload = 0 +const EventPayload_RepositoryPush_case case_EventPayload_Payload = 1 + +func (x *EventPayload) WhichPayload() case_EventPayload_Payload { + if x == nil { + return EventPayload_Payload_not_set_case + } + switch x.xxx_hidden_Payload.(type) { + case *eventPayload_RepositoryPush: + return EventPayload_RepositoryPush_case + default: + return EventPayload_Payload_not_set_case + } +} + +type EventPayload_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Payload: + RepositoryPush *RepositoryPushEvent + // -- end of xxx_hidden_Payload +} + +func (b0 EventPayload_builder) Build() *EventPayload { + m0 := &EventPayload{} + b, x := &b0, m0 + _, _ = b, x + if b.RepositoryPush != nil { + x.xxx_hidden_Payload = &eventPayload_RepositoryPush{b.RepositoryPush} + } + return m0 +} + +type case_EventPayload_Payload protoreflect.FieldNumber + +func (x case_EventPayload_Payload) String() string { + md := file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes[1].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isEventPayload_Payload interface { + isEventPayload_Payload() +} + +type eventPayload_RepositoryPush struct { + RepositoryPush *RepositoryPushEvent `protobuf:"bytes,1,opt,name=repository_push,json=repositoryPush,proto3,oneof"` +} + +func (*eventPayload_RepositoryPush) isEventPayload_Payload() {} + +// EventResponse is the empty response payload from the customer to Buf. +type EventResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EventResponse) Reset() { + *x = EventResponse{} + mi := &file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EventResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventResponse) ProtoMessage() {} + +func (x *EventResponse) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type EventResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 EventResponse_builder) Build() *EventResponse { + m0 := &EventResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// Payload for the event WEBHOOK_EVENT_REPOSITORY_PUSH. +type RepositoryPushEvent struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EventTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` + xxx_hidden_RepositoryCommit *v1alpha1.RepositoryCommit `protobuf:"bytes,2,opt,name=repository_commit,json=repositoryCommit,proto3" json:"repository_commit,omitempty"` + xxx_hidden_Repository *v1alpha1.Repository `protobuf:"bytes,3,opt,name=repository,proto3" json:"repository,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepositoryPushEvent) Reset() { + *x = RepositoryPushEvent{} + mi := &file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepositoryPushEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepositoryPushEvent) ProtoMessage() {} + +func (x *RepositoryPushEvent) ProtoReflect() protoreflect.Message { + mi := &file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *RepositoryPushEvent) GetEventTime() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_EventTime + } + return nil +} + +func (x *RepositoryPushEvent) GetRepositoryCommit() *v1alpha1.RepositoryCommit { + if x != nil { + return x.xxx_hidden_RepositoryCommit + } + return nil +} + +func (x *RepositoryPushEvent) GetRepository() *v1alpha1.Repository { + if x != nil { + return x.xxx_hidden_Repository + } + return nil +} + +func (x *RepositoryPushEvent) SetEventTime(v *timestamppb.Timestamp) { + x.xxx_hidden_EventTime = v +} + +func (x *RepositoryPushEvent) SetRepositoryCommit(v *v1alpha1.RepositoryCommit) { + x.xxx_hidden_RepositoryCommit = v +} + +func (x *RepositoryPushEvent) SetRepository(v *v1alpha1.Repository) { + x.xxx_hidden_Repository = v +} + +func (x *RepositoryPushEvent) HasEventTime() bool { + if x == nil { + return false + } + return x.xxx_hidden_EventTime != nil +} + +func (x *RepositoryPushEvent) HasRepositoryCommit() bool { + if x == nil { + return false + } + return x.xxx_hidden_RepositoryCommit != nil +} + +func (x *RepositoryPushEvent) HasRepository() bool { + if x == nil { + return false + } + return x.xxx_hidden_Repository != nil +} + +func (x *RepositoryPushEvent) ClearEventTime() { + x.xxx_hidden_EventTime = nil +} + +func (x *RepositoryPushEvent) ClearRepositoryCommit() { + x.xxx_hidden_RepositoryCommit = nil +} + +func (x *RepositoryPushEvent) ClearRepository() { + x.xxx_hidden_Repository = nil +} + +type RepositoryPushEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The timestamp of the commit push. + EventTime *timestamppb.Timestamp + // The repository commit that was pushed. + RepositoryCommit *v1alpha1.RepositoryCommit + // The repository that was pushed. + Repository *v1alpha1.Repository +} + +func (b0 RepositoryPushEvent_builder) Build() *RepositoryPushEvent { + m0 := &RepositoryPushEvent{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EventTime = b.EventTime + x.xxx_hidden_RepositoryCommit = b.RepositoryCommit + x.xxx_hidden_Repository = b.Repository + return m0 +} + +var File_buf_alpha_webhook_v1alpha1_event_proto protoreflect.FileDescriptor + +var file_buf_alpha_webhook_v1alpha1_event_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x77, 0x65, 0x62, 0x68, + 0x6f, 0x6f, 0x6b, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x1a, 0x2c, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x33, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x93, 0x01, 0x0a, 0x0c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x75, 0x0a, 0x0c, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x5a, 0x0a, 0x0f, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x70, 0x75, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x77, + 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x50, 0x75, 0x73, 0x68, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x50, 0x75, 0x73, 0x68, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x22, 0x0f, 0x0a, 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0xf5, 0x01, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x50, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x5a, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, + 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x10, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x12, 0x47, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x72, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x32, 0x6c, 0x0a, 0x0c, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x05, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x12, 0x28, 0x2e, 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x77, + 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, + 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x90, 0x02, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, + 0x62, 0x75, 0x66, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, + 0x6b, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0a, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x57, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, + 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x3b, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xa2, 0x02, 0x03, 0x42, 0x41, 0x57, 0xaa, 0x02, 0x1a, 0x42, 0x75, 0x66, 0x2e, 0x41, 0x6c, + 0x70, 0x68, 0x61, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0xca, 0x02, 0x1a, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, + 0x5c, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0xe2, 0x02, 0x26, 0x42, 0x75, 0x66, 0x5c, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x57, 0x65, + 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x42, 0x75, 0x66, + 0x3a, 0x3a, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x3a, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, + 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_buf_alpha_webhook_v1alpha1_event_proto_goTypes = []any{ + (*EventRequest)(nil), // 0: buf.alpha.webhook.v1alpha1.EventRequest + (*EventPayload)(nil), // 1: buf.alpha.webhook.v1alpha1.EventPayload + (*EventResponse)(nil), // 2: buf.alpha.webhook.v1alpha1.EventResponse + (*RepositoryPushEvent)(nil), // 3: buf.alpha.webhook.v1alpha1.RepositoryPushEvent + (v1alpha1.WebhookEvent)(0), // 4: buf.alpha.registry.v1alpha1.WebhookEvent + (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*v1alpha1.RepositoryCommit)(nil), // 6: buf.alpha.registry.v1alpha1.RepositoryCommit + (*v1alpha1.Repository)(nil), // 7: buf.alpha.registry.v1alpha1.Repository +} +var file_buf_alpha_webhook_v1alpha1_event_proto_depIdxs = []int32{ + 4, // 0: buf.alpha.webhook.v1alpha1.EventRequest.event:type_name -> buf.alpha.registry.v1alpha1.WebhookEvent + 1, // 1: buf.alpha.webhook.v1alpha1.EventRequest.payload:type_name -> buf.alpha.webhook.v1alpha1.EventPayload + 3, // 2: buf.alpha.webhook.v1alpha1.EventPayload.repository_push:type_name -> buf.alpha.webhook.v1alpha1.RepositoryPushEvent + 5, // 3: buf.alpha.webhook.v1alpha1.RepositoryPushEvent.event_time:type_name -> google.protobuf.Timestamp + 6, // 4: buf.alpha.webhook.v1alpha1.RepositoryPushEvent.repository_commit:type_name -> buf.alpha.registry.v1alpha1.RepositoryCommit + 7, // 5: buf.alpha.webhook.v1alpha1.RepositoryPushEvent.repository:type_name -> buf.alpha.registry.v1alpha1.Repository + 0, // 6: buf.alpha.webhook.v1alpha1.EventService.Event:input_type -> buf.alpha.webhook.v1alpha1.EventRequest + 2, // 7: buf.alpha.webhook.v1alpha1.EventService.Event:output_type -> buf.alpha.webhook.v1alpha1.EventResponse + 7, // [7:8] is the sub-list for method output_type + 6, // [6:7] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_buf_alpha_webhook_v1alpha1_event_proto_init() } +func file_buf_alpha_webhook_v1alpha1_event_proto_init() { + if File_buf_alpha_webhook_v1alpha1_event_proto != nil { + return + } + file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes[1].OneofWrappers = []any{ + (*eventPayload_RepositoryPush)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_buf_alpha_webhook_v1alpha1_event_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_buf_alpha_webhook_v1alpha1_event_proto_goTypes, + DependencyIndexes: file_buf_alpha_webhook_v1alpha1_event_proto_depIdxs, + MessageInfos: file_buf_alpha_webhook_v1alpha1_event_proto_msgTypes, + }.Build() + File_buf_alpha_webhook_v1alpha1_event_proto = out.File + file_buf_alpha_webhook_v1alpha1_event_proto_rawDesc = nil + file_buf_alpha_webhook_v1alpha1_event_proto_goTypes = nil + file_buf_alpha_webhook_v1alpha1_event_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/google/protobuf/cpp_features.pb.go b/private/gen/proto/go/google/protobuf/cpp_features.pb.go index 9a51614e2f..11173db4e8 100644 --- a/private/gen/proto/go/google/protobuf/cpp_features.pb.go +++ b/private/gen/proto/go/google/protobuf/cpp_features.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: google/protobuf/cpp_features.proto +//go:build !protoopaque + package protobuf import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" - sync "sync" ) const ( @@ -82,23 +83,8 @@ func (x CppFeatures_StringType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Do not use. -func (x *CppFeatures_StringType) UnmarshalJSON(b []byte) error { - num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) - if err != nil { - return err - } - *x = CppFeatures_StringType(num) - return nil -} - -// Deprecated: Use CppFeatures_StringType.Descriptor instead. -func (CppFeatures_StringType) EnumDescriptor() ([]byte, []int) { - return file_google_protobuf_cpp_features_proto_rawDescGZIP(), []int{0, 0} -} - type CppFeatures struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Whether or not to treat an enum field as closed. This option is only // applicable to enum fields, and will be removed in the future. It is // consistent with the legacy behavior of using proto3 enum types for proto2 @@ -134,11 +120,6 @@ func (x *CppFeatures) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CppFeatures.ProtoReflect.Descriptor instead. -func (*CppFeatures) Descriptor() ([]byte, []int) { - return file_google_protobuf_cpp_features_proto_rawDescGZIP(), []int{0} -} - func (x *CppFeatures) GetLegacyClosedEnum() bool { if x != nil && x.LegacyClosedEnum != nil { return *x.LegacyClosedEnum @@ -153,6 +134,56 @@ func (x *CppFeatures) GetStringType() CppFeatures_StringType { return CppFeatures_STRING_TYPE_UNKNOWN } +func (x *CppFeatures) SetLegacyClosedEnum(v bool) { + x.LegacyClosedEnum = &v +} + +func (x *CppFeatures) SetStringType(v CppFeatures_StringType) { + x.StringType = &v +} + +func (x *CppFeatures) HasLegacyClosedEnum() bool { + if x == nil { + return false + } + return x.LegacyClosedEnum != nil +} + +func (x *CppFeatures) HasStringType() bool { + if x == nil { + return false + } + return x.StringType != nil +} + +func (x *CppFeatures) ClearLegacyClosedEnum() { + x.LegacyClosedEnum = nil +} + +func (x *CppFeatures) ClearStringType() { + x.StringType = nil +} + +type CppFeatures_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Whether or not to treat an enum field as closed. This option is only + // applicable to enum fields, and will be removed in the future. It is + // consistent with the legacy behavior of using proto3 enum types for proto2 + // fields. + LegacyClosedEnum *bool + StringType *CppFeatures_StringType +} + +func (b0 CppFeatures_builder) Build() *CppFeatures { + m0 := &CppFeatures{} + b, x := &b0, m0 + _, _ = b, x + x.LegacyClosedEnum = b.LegacyClosedEnum + x.StringType = b.StringType + return m0 +} + var file_google_protobuf_cpp_features_proto_extTypes = []protoimpl.ExtensionInfo{ { ExtendedType: (*descriptorpb.FeatureSet)(nil), @@ -213,18 +244,6 @@ var file_google_protobuf_cpp_features_proto_rawDesc = []byte{ 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x03, 0x63, 0x70, 0x70, } -var ( - file_google_protobuf_cpp_features_proto_rawDescOnce sync.Once - file_google_protobuf_cpp_features_proto_rawDescData = file_google_protobuf_cpp_features_proto_rawDesc -) - -func file_google_protobuf_cpp_features_proto_rawDescGZIP() []byte { - file_google_protobuf_cpp_features_proto_rawDescOnce.Do(func() { - file_google_protobuf_cpp_features_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_cpp_features_proto_rawDescData) - }) - return file_google_protobuf_cpp_features_proto_rawDescData -} - var file_google_protobuf_cpp_features_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_protobuf_cpp_features_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_protobuf_cpp_features_proto_goTypes = []any{ diff --git a/private/gen/proto/go/google/protobuf/cpp_features_protoopaque.pb.go b/private/gen/proto/go/google/protobuf/cpp_features_protoopaque.pb.go new file mode 100644 index 0000000000..fb741ed859 --- /dev/null +++ b/private/gen/proto/go/google/protobuf/cpp_features_protoopaque.pb.go @@ -0,0 +1,300 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: google/protobuf/cpp_features.proto + +//go:build protoopaque + +package protobuf + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type CppFeatures_StringType int32 + +const ( + CppFeatures_STRING_TYPE_UNKNOWN CppFeatures_StringType = 0 + CppFeatures_VIEW CppFeatures_StringType = 1 + CppFeatures_CORD CppFeatures_StringType = 2 + CppFeatures_STRING CppFeatures_StringType = 3 +) + +// Enum value maps for CppFeatures_StringType. +var ( + CppFeatures_StringType_name = map[int32]string{ + 0: "STRING_TYPE_UNKNOWN", + 1: "VIEW", + 2: "CORD", + 3: "STRING", + } + CppFeatures_StringType_value = map[string]int32{ + "STRING_TYPE_UNKNOWN": 0, + "VIEW": 1, + "CORD": 2, + "STRING": 3, + } +) + +func (x CppFeatures_StringType) Enum() *CppFeatures_StringType { + p := new(CppFeatures_StringType) + *p = x + return p +} + +func (x CppFeatures_StringType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CppFeatures_StringType) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_cpp_features_proto_enumTypes[0].Descriptor() +} + +func (CppFeatures_StringType) Type() protoreflect.EnumType { + return &file_google_protobuf_cpp_features_proto_enumTypes[0] +} + +func (x CppFeatures_StringType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type CppFeatures struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_LegacyClosedEnum bool `protobuf:"varint,1,opt,name=legacy_closed_enum,json=legacyClosedEnum" json:"legacy_closed_enum,omitempty"` + xxx_hidden_StringType CppFeatures_StringType `protobuf:"varint,2,opt,name=string_type,json=stringType,enum=pb.CppFeatures_StringType" json:"string_type,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CppFeatures) Reset() { + *x = CppFeatures{} + mi := &file_google_protobuf_cpp_features_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CppFeatures) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CppFeatures) ProtoMessage() {} + +func (x *CppFeatures) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_cpp_features_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CppFeatures) GetLegacyClosedEnum() bool { + if x != nil { + return x.xxx_hidden_LegacyClosedEnum + } + return false +} + +func (x *CppFeatures) GetStringType() CppFeatures_StringType { + if x != nil { + if protoimpl.X.Present(&(x.XXX_presence[0]), 1) { + return x.xxx_hidden_StringType + } + } + return CppFeatures_STRING_TYPE_UNKNOWN +} + +func (x *CppFeatures) SetLegacyClosedEnum(v bool) { + x.xxx_hidden_LegacyClosedEnum = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 2) +} + +func (x *CppFeatures) SetStringType(v CppFeatures_StringType) { + x.xxx_hidden_StringType = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 2) +} + +func (x *CppFeatures) HasLegacyClosedEnum() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *CppFeatures) HasStringType() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *CppFeatures) ClearLegacyClosedEnum() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_LegacyClosedEnum = false +} + +func (x *CppFeatures) ClearStringType() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_StringType = CppFeatures_STRING_TYPE_UNKNOWN +} + +type CppFeatures_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Whether or not to treat an enum field as closed. This option is only + // applicable to enum fields, and will be removed in the future. It is + // consistent with the legacy behavior of using proto3 enum types for proto2 + // fields. + LegacyClosedEnum *bool + StringType *CppFeatures_StringType +} + +func (b0 CppFeatures_builder) Build() *CppFeatures { + m0 := &CppFeatures{} + b, x := &b0, m0 + _, _ = b, x + if b.LegacyClosedEnum != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 2) + x.xxx_hidden_LegacyClosedEnum = *b.LegacyClosedEnum + } + if b.StringType != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 2) + x.xxx_hidden_StringType = *b.StringType + } + return m0 +} + +var file_google_protobuf_cpp_features_proto_extTypes = []protoimpl.ExtensionInfo{ + { + ExtendedType: (*descriptorpb.FeatureSet)(nil), + ExtensionType: (*CppFeatures)(nil), + Field: 1000, + Name: "pb.cpp", + Tag: "bytes,1000,opt,name=cpp", + Filename: "google/protobuf/cpp_features.proto", + }, +} + +// Extension fields to descriptorpb.FeatureSet. +var ( + // optional pb.CppFeatures cpp = 1000; + E_Cpp = &file_google_protobuf_cpp_features_proto_extTypes[0] +) + +var File_google_protobuf_cpp_features_proto protoreflect.FileDescriptor + +var file_google_protobuf_cpp_features_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x63, 0x70, 0x70, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x03, 0x0a, 0x0b, 0x43, + 0x70, 0x70, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x8d, 0x02, 0x0a, 0x12, 0x6c, + 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, + 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0xde, 0x01, 0x88, 0x01, 0x01, 0x98, 0x01, 0x04, + 0x98, 0x01, 0x01, 0xa2, 0x01, 0x09, 0x12, 0x04, 0x74, 0x72, 0x75, 0x65, 0x18, 0xe6, 0x07, 0xa2, + 0x01, 0x0a, 0x12, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x18, 0xe7, 0x07, 0xb2, 0x01, 0xb8, 0x01, + 0x08, 0xe8, 0x07, 0x10, 0xe8, 0x07, 0x1a, 0xaf, 0x01, 0x54, 0x68, 0x65, 0x20, 0x6c, 0x65, 0x67, + 0x61, 0x63, 0x79, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x20, 0x65, 0x6e, 0x75, 0x6d, 0x20, + 0x74, 0x72, 0x65, 0x61, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x69, 0x6e, 0x20, 0x43, 0x2b, 0x2b, + 0x20, 0x69, 0x73, 0x20, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x20, 0x61, + 0x6e, 0x64, 0x20, 0x69, 0x73, 0x20, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x20, + 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x20, 0x69, 0x6e, + 0x20, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x32, 0x30, 0x32, 0x35, 0x2e, 0x20, 0x20, + 0x4d, 0x61, 0x72, 0x6b, 0x20, 0x65, 0x6e, 0x75, 0x6d, 0x20, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, + 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x6e, 0x75, 0x6d, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x6d, 0x73, 0x65, 0x6c, 0x76, 0x65, + 0x73, 0x20, 0x72, 0x61, 0x74, 0x68, 0x65, 0x72, 0x20, 0x74, 0x68, 0x61, 0x6e, 0x20, 0x6f, 0x6e, + 0x20, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x2e, 0x52, 0x10, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, + 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x66, 0x0a, 0x0b, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x70, 0x70, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, + 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x42, 0x29, 0x88, 0x01, 0x01, + 0x98, 0x01, 0x04, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x0b, 0x12, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, + 0x47, 0x18, 0xe6, 0x07, 0xa2, 0x01, 0x09, 0x12, 0x04, 0x56, 0x49, 0x45, 0x57, 0x18, 0xe9, 0x07, + 0xb2, 0x01, 0x03, 0x08, 0xe8, 0x07, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x79, + 0x70, 0x65, 0x22, 0x45, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x56, 0x49, 0x45, + 0x57, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x4f, 0x52, 0x44, 0x10, 0x02, 0x12, 0x0a, 0x0a, + 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x3a, 0x3f, 0x0a, 0x03, 0x63, 0x70, 0x70, + 0x12, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe8, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x70, 0x70, 0x46, 0x65, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x03, 0x63, 0x70, 0x70, +} + +var file_google_protobuf_cpp_features_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_google_protobuf_cpp_features_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_cpp_features_proto_goTypes = []any{ + (CppFeatures_StringType)(0), // 0: pb.CppFeatures.StringType + (*CppFeatures)(nil), // 1: pb.CppFeatures + (*descriptorpb.FeatureSet)(nil), // 2: google.protobuf.FeatureSet +} +var file_google_protobuf_cpp_features_proto_depIdxs = []int32{ + 0, // 0: pb.CppFeatures.string_type:type_name -> pb.CppFeatures.StringType + 2, // 1: pb.cpp:extendee -> google.protobuf.FeatureSet + 1, // 2: pb.cpp:type_name -> pb.CppFeatures + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 2, // [2:3] is the sub-list for extension type_name + 1, // [1:2] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_google_protobuf_cpp_features_proto_init() } +func file_google_protobuf_cpp_features_proto_init() { + if File_google_protobuf_cpp_features_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_cpp_features_proto_rawDesc, + NumEnums: 1, + NumMessages: 1, + NumExtensions: 1, + NumServices: 0, + }, + GoTypes: file_google_protobuf_cpp_features_proto_goTypes, + DependencyIndexes: file_google_protobuf_cpp_features_proto_depIdxs, + EnumInfos: file_google_protobuf_cpp_features_proto_enumTypes, + MessageInfos: file_google_protobuf_cpp_features_proto_msgTypes, + ExtensionInfos: file_google_protobuf_cpp_features_proto_extTypes, + }.Build() + File_google_protobuf_cpp_features_proto = out.File + file_google_protobuf_cpp_features_proto_rawDesc = nil + file_google_protobuf_cpp_features_proto_goTypes = nil + file_google_protobuf_cpp_features_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/google/protobuf/java_features.pb.go b/private/gen/proto/go/google/protobuf/java_features.pb.go index 0cdf803de7..fb728981f4 100644 --- a/private/gen/proto/go/google/protobuf/java_features.pb.go +++ b/private/gen/proto/go/google/protobuf/java_features.pb.go @@ -18,6 +18,8 @@ // protoc (unknown) // source: google/protobuf/java_features.proto +//go:build !protoopaque + package protobuf import ( @@ -25,7 +27,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" - sync "sync" ) const ( @@ -86,23 +87,8 @@ func (x JavaFeatures_Utf8Validation) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Do not use. -func (x *JavaFeatures_Utf8Validation) UnmarshalJSON(b []byte) error { - num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) - if err != nil { - return err - } - *x = JavaFeatures_Utf8Validation(num) - return nil -} - -// Deprecated: Use JavaFeatures_Utf8Validation.Descriptor instead. -func (JavaFeatures_Utf8Validation) EnumDescriptor() ([]byte, []int) { - return file_google_protobuf_java_features_proto_rawDescGZIP(), []int{0, 0} -} - type JavaFeatures struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Whether or not to treat an enum field as closed. This option is only // applicable to enum fields, and will be removed in the future. It is // consistent with the legacy behavior of using proto3 enum types for proto2 @@ -138,11 +124,6 @@ func (x *JavaFeatures) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use JavaFeatures.ProtoReflect.Descriptor instead. -func (*JavaFeatures) Descriptor() ([]byte, []int) { - return file_google_protobuf_java_features_proto_rawDescGZIP(), []int{0} -} - func (x *JavaFeatures) GetLegacyClosedEnum() bool { if x != nil && x.LegacyClosedEnum != nil { return *x.LegacyClosedEnum @@ -157,6 +138,56 @@ func (x *JavaFeatures) GetUtf8Validation() JavaFeatures_Utf8Validation { return JavaFeatures_UTF8_VALIDATION_UNKNOWN } +func (x *JavaFeatures) SetLegacyClosedEnum(v bool) { + x.LegacyClosedEnum = &v +} + +func (x *JavaFeatures) SetUtf8Validation(v JavaFeatures_Utf8Validation) { + x.Utf8Validation = &v +} + +func (x *JavaFeatures) HasLegacyClosedEnum() bool { + if x == nil { + return false + } + return x.LegacyClosedEnum != nil +} + +func (x *JavaFeatures) HasUtf8Validation() bool { + if x == nil { + return false + } + return x.Utf8Validation != nil +} + +func (x *JavaFeatures) ClearLegacyClosedEnum() { + x.LegacyClosedEnum = nil +} + +func (x *JavaFeatures) ClearUtf8Validation() { + x.Utf8Validation = nil +} + +type JavaFeatures_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Whether or not to treat an enum field as closed. This option is only + // applicable to enum fields, and will be removed in the future. It is + // consistent with the legacy behavior of using proto3 enum types for proto2 + // fields. + LegacyClosedEnum *bool + Utf8Validation *JavaFeatures_Utf8Validation +} + +func (b0 JavaFeatures_builder) Build() *JavaFeatures { + m0 := &JavaFeatures{} + b, x := &b0, m0 + _, _ = b, x + x.LegacyClosedEnum = b.LegacyClosedEnum + x.Utf8Validation = b.Utf8Validation + return m0 +} + var file_google_protobuf_java_features_proto_extTypes = []protoimpl.ExtensionInfo{ { ExtendedType: (*descriptorpb.FeatureSet)(nil), @@ -233,18 +264,6 @@ var file_google_protobuf_java_features_proto_rawDesc = []byte{ 0x50, 0x72, 0x6f, 0x74, 0x6f, } -var ( - file_google_protobuf_java_features_proto_rawDescOnce sync.Once - file_google_protobuf_java_features_proto_rawDescData = file_google_protobuf_java_features_proto_rawDesc -) - -func file_google_protobuf_java_features_proto_rawDescGZIP() []byte { - file_google_protobuf_java_features_proto_rawDescOnce.Do(func() { - file_google_protobuf_java_features_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_java_features_proto_rawDescData) - }) - return file_google_protobuf_java_features_proto_rawDescData -} - var file_google_protobuf_java_features_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_protobuf_java_features_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_google_protobuf_java_features_proto_goTypes = []any{ diff --git a/private/gen/proto/go/google/protobuf/java_features_protoopaque.pb.go b/private/gen/proto/go/google/protobuf/java_features_protoopaque.pb.go new file mode 100644 index 0000000000..20a7e9781e --- /dev/null +++ b/private/gen/proto/go/google/protobuf/java_features_protoopaque.pb.go @@ -0,0 +1,320 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: google/protobuf/java_features.proto + +//go:build protoopaque + +package protobuf + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The UTF8 validation strategy to use. See go/editions-utf8-validation for +// more information on this feature. +type JavaFeatures_Utf8Validation int32 + +const ( + // Invalid default, which should never be used. + JavaFeatures_UTF8_VALIDATION_UNKNOWN JavaFeatures_Utf8Validation = 0 + // Respect the UTF8 validation behavior specified by the global + // utf8_validation feature. + JavaFeatures_DEFAULT JavaFeatures_Utf8Validation = 1 + // Verifies UTF8 validity overriding the global utf8_validation + // feature. This represents the legacy java_string_check_utf8 option. + JavaFeatures_VERIFY JavaFeatures_Utf8Validation = 2 +) + +// Enum value maps for JavaFeatures_Utf8Validation. +var ( + JavaFeatures_Utf8Validation_name = map[int32]string{ + 0: "UTF8_VALIDATION_UNKNOWN", + 1: "DEFAULT", + 2: "VERIFY", + } + JavaFeatures_Utf8Validation_value = map[string]int32{ + "UTF8_VALIDATION_UNKNOWN": 0, + "DEFAULT": 1, + "VERIFY": 2, + } +) + +func (x JavaFeatures_Utf8Validation) Enum() *JavaFeatures_Utf8Validation { + p := new(JavaFeatures_Utf8Validation) + *p = x + return p +} + +func (x JavaFeatures_Utf8Validation) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (JavaFeatures_Utf8Validation) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_java_features_proto_enumTypes[0].Descriptor() +} + +func (JavaFeatures_Utf8Validation) Type() protoreflect.EnumType { + return &file_google_protobuf_java_features_proto_enumTypes[0] +} + +func (x JavaFeatures_Utf8Validation) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type JavaFeatures struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_LegacyClosedEnum bool `protobuf:"varint,1,opt,name=legacy_closed_enum,json=legacyClosedEnum" json:"legacy_closed_enum,omitempty"` + xxx_hidden_Utf8Validation JavaFeatures_Utf8Validation `protobuf:"varint,2,opt,name=utf8_validation,json=utf8Validation,enum=pb.JavaFeatures_Utf8Validation" json:"utf8_validation,omitempty"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *JavaFeatures) Reset() { + *x = JavaFeatures{} + mi := &file_google_protobuf_java_features_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *JavaFeatures) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JavaFeatures) ProtoMessage() {} + +func (x *JavaFeatures) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_java_features_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *JavaFeatures) GetLegacyClosedEnum() bool { + if x != nil { + return x.xxx_hidden_LegacyClosedEnum + } + return false +} + +func (x *JavaFeatures) GetUtf8Validation() JavaFeatures_Utf8Validation { + if x != nil { + if protoimpl.X.Present(&(x.XXX_presence[0]), 1) { + return x.xxx_hidden_Utf8Validation + } + } + return JavaFeatures_UTF8_VALIDATION_UNKNOWN +} + +func (x *JavaFeatures) SetLegacyClosedEnum(v bool) { + x.xxx_hidden_LegacyClosedEnum = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 2) +} + +func (x *JavaFeatures) SetUtf8Validation(v JavaFeatures_Utf8Validation) { + x.xxx_hidden_Utf8Validation = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 2) +} + +func (x *JavaFeatures) HasLegacyClosedEnum() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *JavaFeatures) HasUtf8Validation() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *JavaFeatures) ClearLegacyClosedEnum() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_LegacyClosedEnum = false +} + +func (x *JavaFeatures) ClearUtf8Validation() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_Utf8Validation = JavaFeatures_UTF8_VALIDATION_UNKNOWN +} + +type JavaFeatures_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Whether or not to treat an enum field as closed. This option is only + // applicable to enum fields, and will be removed in the future. It is + // consistent with the legacy behavior of using proto3 enum types for proto2 + // fields. + LegacyClosedEnum *bool + Utf8Validation *JavaFeatures_Utf8Validation +} + +func (b0 JavaFeatures_builder) Build() *JavaFeatures { + m0 := &JavaFeatures{} + b, x := &b0, m0 + _, _ = b, x + if b.LegacyClosedEnum != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 2) + x.xxx_hidden_LegacyClosedEnum = *b.LegacyClosedEnum + } + if b.Utf8Validation != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 2) + x.xxx_hidden_Utf8Validation = *b.Utf8Validation + } + return m0 +} + +var file_google_protobuf_java_features_proto_extTypes = []protoimpl.ExtensionInfo{ + { + ExtendedType: (*descriptorpb.FeatureSet)(nil), + ExtensionType: (*JavaFeatures)(nil), + Field: 1001, + Name: "pb.java", + Tag: "bytes,1001,opt,name=java", + Filename: "google/protobuf/java_features.proto", + }, +} + +// Extension fields to descriptorpb.FeatureSet. +var ( + // optional pb.JavaFeatures java = 1001; + E_Java = &file_google_protobuf_java_features_proto_extTypes[0] +) + +var File_google_protobuf_java_features_proto protoreflect.FileDescriptor + +var file_google_protobuf_java_features_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x05, 0x0a, 0x0c, + 0x4a, 0x61, 0x76, 0x61, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x8e, 0x02, 0x0a, + 0x12, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x65, + 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0xdf, 0x01, 0x88, 0x01, 0x01, 0x98, + 0x01, 0x04, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x09, 0x12, 0x04, 0x74, 0x72, 0x75, 0x65, 0x18, 0xe6, + 0x07, 0xa2, 0x01, 0x0a, 0x12, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x18, 0xe7, 0x07, 0xb2, 0x01, + 0xb9, 0x01, 0x08, 0xe8, 0x07, 0x10, 0xe8, 0x07, 0x1a, 0xb0, 0x01, 0x54, 0x68, 0x65, 0x20, 0x6c, + 0x65, 0x67, 0x61, 0x63, 0x79, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x20, 0x65, 0x6e, 0x75, + 0x6d, 0x20, 0x74, 0x72, 0x65, 0x61, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x69, 0x6e, 0x20, 0x4a, + 0x61, 0x76, 0x61, 0x20, 0x69, 0x73, 0x20, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x69, 0x73, 0x20, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, + 0x20, 0x69, 0x6e, 0x20, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x32, 0x30, 0x32, 0x35, + 0x2e, 0x20, 0x20, 0x4d, 0x61, 0x72, 0x6b, 0x20, 0x65, 0x6e, 0x75, 0x6d, 0x20, 0x74, 0x79, 0x70, + 0x65, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x6e, 0x75, 0x6d, 0x20, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x6d, 0x73, 0x65, + 0x6c, 0x76, 0x65, 0x73, 0x20, 0x72, 0x61, 0x74, 0x68, 0x65, 0x72, 0x20, 0x74, 0x68, 0x61, 0x6e, + 0x20, 0x6f, 0x6e, 0x20, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x2e, 0x52, 0x10, 0x6c, 0x65, 0x67, + 0x61, 0x63, 0x79, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0xaf, 0x02, + 0x0a, 0x0f, 0x75, 0x74, 0x66, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x4a, 0x61, 0x76, + 0x61, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x55, 0x74, 0x66, 0x38, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xe4, 0x01, 0x88, 0x01, 0x01, 0x98, 0x01, + 0x04, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x0c, 0x12, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, + 0x18, 0xe6, 0x07, 0xb2, 0x01, 0xc8, 0x01, 0x08, 0xe8, 0x07, 0x10, 0xe8, 0x07, 0x1a, 0xbf, 0x01, + 0x54, 0x68, 0x65, 0x20, 0x4a, 0x61, 0x76, 0x61, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, + 0x63, 0x20, 0x75, 0x74, 0x66, 0x38, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x20, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x20, 0x69, 0x73, 0x20, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x69, 0x73, 0x20, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x62, 0x65, 0x20, 0x72, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x20, 0x32, 0x30, 0x32, 0x35, 0x2e, 0x20, 0x20, 0x55, 0x74, 0x66, 0x38, 0x20, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, + 0x72, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x75, 0x73, 0x65, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x20, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x2d, 0x6c, 0x61, + 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x20, 0x75, 0x74, 0x66, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x52, + 0x0e, 0x75, 0x74, 0x66, 0x38, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x46, 0x0a, 0x0e, 0x55, 0x74, 0x66, 0x38, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x55, 0x54, 0x46, 0x38, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, + 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x56, + 0x45, 0x52, 0x49, 0x46, 0x59, 0x10, 0x02, 0x3a, 0x42, 0x0a, 0x04, 0x6a, 0x61, 0x76, 0x61, 0x12, + 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe9, 0x07, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x4a, 0x61, 0x76, 0x61, 0x46, 0x65, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x04, 0x6a, 0x61, 0x76, 0x61, 0x42, 0x28, 0x0a, 0x13, 0x63, + 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x42, 0x11, 0x4a, 0x61, 0x76, 0x61, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, + 0x50, 0x72, 0x6f, 0x74, 0x6f, +} + +var file_google_protobuf_java_features_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_google_protobuf_java_features_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_java_features_proto_goTypes = []any{ + (JavaFeatures_Utf8Validation)(0), // 0: pb.JavaFeatures.Utf8Validation + (*JavaFeatures)(nil), // 1: pb.JavaFeatures + (*descriptorpb.FeatureSet)(nil), // 2: google.protobuf.FeatureSet +} +var file_google_protobuf_java_features_proto_depIdxs = []int32{ + 0, // 0: pb.JavaFeatures.utf8_validation:type_name -> pb.JavaFeatures.Utf8Validation + 2, // 1: pb.java:extendee -> google.protobuf.FeatureSet + 1, // 2: pb.java:type_name -> pb.JavaFeatures + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 2, // [2:3] is the sub-list for extension type_name + 1, // [1:2] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_google_protobuf_java_features_proto_init() } +func file_google_protobuf_java_features_proto_init() { + if File_google_protobuf_java_features_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_java_features_proto_rawDesc, + NumEnums: 1, + NumMessages: 1, + NumExtensions: 1, + NumServices: 0, + }, + GoTypes: file_google_protobuf_java_features_proto_goTypes, + DependencyIndexes: file_google_protobuf_java_features_proto_depIdxs, + EnumInfos: file_google_protobuf_java_features_proto_enumTypes, + MessageInfos: file_google_protobuf_java_features_proto_msgTypes, + ExtensionInfos: file_google_protobuf_java_features_proto_extTypes, + }.Build() + File_google_protobuf_java_features_proto = out.File + file_google_protobuf_java_features_proto_rawDesc = nil + file_google_protobuf_java_features_proto_goTypes = nil + file_google_protobuf_java_features_proto_depIdxs = nil +} diff --git a/private/gen/proto/go/grpc/reflection/v1/reflection.pb.go b/private/gen/proto/go/grpc/reflection/v1/reflection.pb.go index 5f2cf56bd1..d3e0bdaf96 100644 --- a/private/gen/proto/go/grpc/reflection/v1/reflection.pb.go +++ b/private/gen/proto/go/grpc/reflection/v1/reflection.pb.go @@ -25,13 +25,14 @@ // protoc (unknown) // source: grpc/reflection/v1/reflection.proto +//go:build !protoopaque + package reflectionv1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -43,7 +44,7 @@ const ( // The message sent by the client when calling ServerReflectionInfo method. type ServerReflectionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // To use reflection service, the client should set one of the following // fields in message_request. The server distinguishes requests by their @@ -86,11 +87,6 @@ func (x *ServerReflectionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ServerReflectionRequest.ProtoReflect.Descriptor instead. -func (*ServerReflectionRequest) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{0} -} - func (x *ServerReflectionRequest) GetHost() string { if x != nil { return x.Host @@ -150,6 +146,208 @@ func (x *ServerReflectionRequest) GetListServices() string { return "" } +func (x *ServerReflectionRequest) SetHost(v string) { + x.Host = v +} + +func (x *ServerReflectionRequest) SetFileByFilename(v string) { + x.MessageRequest = &ServerReflectionRequest_FileByFilename{v} +} + +func (x *ServerReflectionRequest) SetFileContainingSymbol(v string) { + x.MessageRequest = &ServerReflectionRequest_FileContainingSymbol{v} +} + +func (x *ServerReflectionRequest) SetFileContainingExtension(v *ExtensionRequest) { + if v == nil { + x.MessageRequest = nil + return + } + x.MessageRequest = &ServerReflectionRequest_FileContainingExtension{v} +} + +func (x *ServerReflectionRequest) SetAllExtensionNumbersOfType(v string) { + x.MessageRequest = &ServerReflectionRequest_AllExtensionNumbersOfType{v} +} + +func (x *ServerReflectionRequest) SetListServices(v string) { + x.MessageRequest = &ServerReflectionRequest_ListServices{v} +} + +func (x *ServerReflectionRequest) HasMessageRequest() bool { + if x == nil { + return false + } + return x.MessageRequest != nil +} + +func (x *ServerReflectionRequest) HasFileByFilename() bool { + if x == nil { + return false + } + _, ok := x.MessageRequest.(*ServerReflectionRequest_FileByFilename) + return ok +} + +func (x *ServerReflectionRequest) HasFileContainingSymbol() bool { + if x == nil { + return false + } + _, ok := x.MessageRequest.(*ServerReflectionRequest_FileContainingSymbol) + return ok +} + +func (x *ServerReflectionRequest) HasFileContainingExtension() bool { + if x == nil { + return false + } + _, ok := x.MessageRequest.(*ServerReflectionRequest_FileContainingExtension) + return ok +} + +func (x *ServerReflectionRequest) HasAllExtensionNumbersOfType() bool { + if x == nil { + return false + } + _, ok := x.MessageRequest.(*ServerReflectionRequest_AllExtensionNumbersOfType) + return ok +} + +func (x *ServerReflectionRequest) HasListServices() bool { + if x == nil { + return false + } + _, ok := x.MessageRequest.(*ServerReflectionRequest_ListServices) + return ok +} + +func (x *ServerReflectionRequest) ClearMessageRequest() { + x.MessageRequest = nil +} + +func (x *ServerReflectionRequest) ClearFileByFilename() { + if _, ok := x.MessageRequest.(*ServerReflectionRequest_FileByFilename); ok { + x.MessageRequest = nil + } +} + +func (x *ServerReflectionRequest) ClearFileContainingSymbol() { + if _, ok := x.MessageRequest.(*ServerReflectionRequest_FileContainingSymbol); ok { + x.MessageRequest = nil + } +} + +func (x *ServerReflectionRequest) ClearFileContainingExtension() { + if _, ok := x.MessageRequest.(*ServerReflectionRequest_FileContainingExtension); ok { + x.MessageRequest = nil + } +} + +func (x *ServerReflectionRequest) ClearAllExtensionNumbersOfType() { + if _, ok := x.MessageRequest.(*ServerReflectionRequest_AllExtensionNumbersOfType); ok { + x.MessageRequest = nil + } +} + +func (x *ServerReflectionRequest) ClearListServices() { + if _, ok := x.MessageRequest.(*ServerReflectionRequest_ListServices); ok { + x.MessageRequest = nil + } +} + +const ServerReflectionRequest_MessageRequest_not_set_case case_ServerReflectionRequest_MessageRequest = 0 +const ServerReflectionRequest_FileByFilename_case case_ServerReflectionRequest_MessageRequest = 3 +const ServerReflectionRequest_FileContainingSymbol_case case_ServerReflectionRequest_MessageRequest = 4 +const ServerReflectionRequest_FileContainingExtension_case case_ServerReflectionRequest_MessageRequest = 5 +const ServerReflectionRequest_AllExtensionNumbersOfType_case case_ServerReflectionRequest_MessageRequest = 6 +const ServerReflectionRequest_ListServices_case case_ServerReflectionRequest_MessageRequest = 7 + +func (x *ServerReflectionRequest) WhichMessageRequest() case_ServerReflectionRequest_MessageRequest { + if x == nil { + return ServerReflectionRequest_MessageRequest_not_set_case + } + switch x.MessageRequest.(type) { + case *ServerReflectionRequest_FileByFilename: + return ServerReflectionRequest_FileByFilename_case + case *ServerReflectionRequest_FileContainingSymbol: + return ServerReflectionRequest_FileContainingSymbol_case + case *ServerReflectionRequest_FileContainingExtension: + return ServerReflectionRequest_FileContainingExtension_case + case *ServerReflectionRequest_AllExtensionNumbersOfType: + return ServerReflectionRequest_AllExtensionNumbersOfType_case + case *ServerReflectionRequest_ListServices: + return ServerReflectionRequest_ListServices_case + default: + return ServerReflectionRequest_MessageRequest_not_set_case + } +} + +type ServerReflectionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Host string + // To use reflection service, the client should set one of the following + // fields in message_request. The server distinguishes requests by their + // defined field and then handles them using corresponding methods. + + // Fields of oneof MessageRequest: + // Find a proto file by the file name. + FileByFilename *string + // Find the proto file that declares the given fully-qualified symbol name. + // This field should be a fully-qualified symbol name + // (e.g. .[.] or .). + FileContainingSymbol *string + // Find the proto file which defines an extension extending the given + // message type with the given field number. + FileContainingExtension *ExtensionRequest + // Finds the tag numbers used by all known extensions of the given message + // type, and appends them to ExtensionNumberResponse in an undefined order. + // Its corresponding method is best-effort: it's not guaranteed that the + // reflection service will implement this method, and it's not guaranteed + // that this method will provide all extensions. Returns + // StatusCode::UNIMPLEMENTED if it's not implemented. + // This field should be a fully-qualified type name. The format is + // . + AllExtensionNumbersOfType *string + // List the full names of registered services. The content will not be + // checked. + ListServices *string + // -- end of MessageRequest +} + +func (b0 ServerReflectionRequest_builder) Build() *ServerReflectionRequest { + m0 := &ServerReflectionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Host = b.Host + if b.FileByFilename != nil { + x.MessageRequest = &ServerReflectionRequest_FileByFilename{*b.FileByFilename} + } + if b.FileContainingSymbol != nil { + x.MessageRequest = &ServerReflectionRequest_FileContainingSymbol{*b.FileContainingSymbol} + } + if b.FileContainingExtension != nil { + x.MessageRequest = &ServerReflectionRequest_FileContainingExtension{b.FileContainingExtension} + } + if b.AllExtensionNumbersOfType != nil { + x.MessageRequest = &ServerReflectionRequest_AllExtensionNumbersOfType{*b.AllExtensionNumbersOfType} + } + if b.ListServices != nil { + x.MessageRequest = &ServerReflectionRequest_ListServices{*b.ListServices} + } + return m0 +} + +type case_ServerReflectionRequest_MessageRequest protoreflect.FieldNumber + +func (x case_ServerReflectionRequest_MessageRequest) String() string { + md := file_grpc_reflection_v1_reflection_proto_msgTypes[0].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isServerReflectionRequest_MessageRequest interface { isServerReflectionRequest_MessageRequest() } @@ -204,7 +402,7 @@ func (*ServerReflectionRequest_ListServices) isServerReflectionRequest_MessageRe // The type name and extension number sent by the client when requesting // file_containing_extension. type ExtensionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Fully-qualified type name. The format should be . ContainingType string `protobuf:"bytes,1,opt,name=containing_type,json=containingType,proto3" json:"containing_type,omitempty"` ExtensionNumber int32 `protobuf:"varint,2,opt,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"` @@ -237,11 +435,6 @@ func (x *ExtensionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExtensionRequest.ProtoReflect.Descriptor instead. -func (*ExtensionRequest) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{1} -} - func (x *ExtensionRequest) GetContainingType() string { if x != nil { return x.ContainingType @@ -256,9 +449,34 @@ func (x *ExtensionRequest) GetExtensionNumber() int32 { return 0 } +func (x *ExtensionRequest) SetContainingType(v string) { + x.ContainingType = v +} + +func (x *ExtensionRequest) SetExtensionNumber(v int32) { + x.ExtensionNumber = v +} + +type ExtensionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fully-qualified type name. The format should be . + ContainingType string + ExtensionNumber int32 +} + +func (b0 ExtensionRequest_builder) Build() *ExtensionRequest { + m0 := &ExtensionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.ContainingType = b.ContainingType + x.ExtensionNumber = b.ExtensionNumber + return m0 +} + // The message sent by the server to answer ServerReflectionInfo method. type ServerReflectionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ValidHost string `protobuf:"bytes,1,opt,name=valid_host,json=validHost,proto3" json:"valid_host,omitempty"` OriginalRequest *ServerReflectionRequest `protobuf:"bytes,2,opt,name=original_request,json=originalRequest,proto3" json:"original_request,omitempty"` // The server sets one of the following fields according to the message_request @@ -300,11 +518,6 @@ func (x *ServerReflectionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ServerReflectionResponse.ProtoReflect.Descriptor instead. -func (*ServerReflectionResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{2} -} - func (x *ServerReflectionResponse) GetValidHost() string { if x != nil { return x.ValidHost @@ -362,6 +575,204 @@ func (x *ServerReflectionResponse) GetErrorResponse() *ErrorResponse { return nil } +func (x *ServerReflectionResponse) SetValidHost(v string) { + x.ValidHost = v +} + +func (x *ServerReflectionResponse) SetOriginalRequest(v *ServerReflectionRequest) { + x.OriginalRequest = v +} + +func (x *ServerReflectionResponse) SetFileDescriptorResponse(v *FileDescriptorResponse) { + if v == nil { + x.MessageResponse = nil + return + } + x.MessageResponse = &ServerReflectionResponse_FileDescriptorResponse{v} +} + +func (x *ServerReflectionResponse) SetAllExtensionNumbersResponse(v *ExtensionNumberResponse) { + if v == nil { + x.MessageResponse = nil + return + } + x.MessageResponse = &ServerReflectionResponse_AllExtensionNumbersResponse{v} +} + +func (x *ServerReflectionResponse) SetListServicesResponse(v *ListServiceResponse) { + if v == nil { + x.MessageResponse = nil + return + } + x.MessageResponse = &ServerReflectionResponse_ListServicesResponse{v} +} + +func (x *ServerReflectionResponse) SetErrorResponse(v *ErrorResponse) { + if v == nil { + x.MessageResponse = nil + return + } + x.MessageResponse = &ServerReflectionResponse_ErrorResponse{v} +} + +func (x *ServerReflectionResponse) HasOriginalRequest() bool { + if x == nil { + return false + } + return x.OriginalRequest != nil +} + +func (x *ServerReflectionResponse) HasMessageResponse() bool { + if x == nil { + return false + } + return x.MessageResponse != nil +} + +func (x *ServerReflectionResponse) HasFileDescriptorResponse() bool { + if x == nil { + return false + } + _, ok := x.MessageResponse.(*ServerReflectionResponse_FileDescriptorResponse) + return ok +} + +func (x *ServerReflectionResponse) HasAllExtensionNumbersResponse() bool { + if x == nil { + return false + } + _, ok := x.MessageResponse.(*ServerReflectionResponse_AllExtensionNumbersResponse) + return ok +} + +func (x *ServerReflectionResponse) HasListServicesResponse() bool { + if x == nil { + return false + } + _, ok := x.MessageResponse.(*ServerReflectionResponse_ListServicesResponse) + return ok +} + +func (x *ServerReflectionResponse) HasErrorResponse() bool { + if x == nil { + return false + } + _, ok := x.MessageResponse.(*ServerReflectionResponse_ErrorResponse) + return ok +} + +func (x *ServerReflectionResponse) ClearOriginalRequest() { + x.OriginalRequest = nil +} + +func (x *ServerReflectionResponse) ClearMessageResponse() { + x.MessageResponse = nil +} + +func (x *ServerReflectionResponse) ClearFileDescriptorResponse() { + if _, ok := x.MessageResponse.(*ServerReflectionResponse_FileDescriptorResponse); ok { + x.MessageResponse = nil + } +} + +func (x *ServerReflectionResponse) ClearAllExtensionNumbersResponse() { + if _, ok := x.MessageResponse.(*ServerReflectionResponse_AllExtensionNumbersResponse); ok { + x.MessageResponse = nil + } +} + +func (x *ServerReflectionResponse) ClearListServicesResponse() { + if _, ok := x.MessageResponse.(*ServerReflectionResponse_ListServicesResponse); ok { + x.MessageResponse = nil + } +} + +func (x *ServerReflectionResponse) ClearErrorResponse() { + if _, ok := x.MessageResponse.(*ServerReflectionResponse_ErrorResponse); ok { + x.MessageResponse = nil + } +} + +const ServerReflectionResponse_MessageResponse_not_set_case case_ServerReflectionResponse_MessageResponse = 0 +const ServerReflectionResponse_FileDescriptorResponse_case case_ServerReflectionResponse_MessageResponse = 4 +const ServerReflectionResponse_AllExtensionNumbersResponse_case case_ServerReflectionResponse_MessageResponse = 5 +const ServerReflectionResponse_ListServicesResponse_case case_ServerReflectionResponse_MessageResponse = 6 +const ServerReflectionResponse_ErrorResponse_case case_ServerReflectionResponse_MessageResponse = 7 + +func (x *ServerReflectionResponse) WhichMessageResponse() case_ServerReflectionResponse_MessageResponse { + if x == nil { + return ServerReflectionResponse_MessageResponse_not_set_case + } + switch x.MessageResponse.(type) { + case *ServerReflectionResponse_FileDescriptorResponse: + return ServerReflectionResponse_FileDescriptorResponse_case + case *ServerReflectionResponse_AllExtensionNumbersResponse: + return ServerReflectionResponse_AllExtensionNumbersResponse_case + case *ServerReflectionResponse_ListServicesResponse: + return ServerReflectionResponse_ListServicesResponse_case + case *ServerReflectionResponse_ErrorResponse: + return ServerReflectionResponse_ErrorResponse_case + default: + return ServerReflectionResponse_MessageResponse_not_set_case + } +} + +type ServerReflectionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ValidHost string + OriginalRequest *ServerReflectionRequest + // The server sets one of the following fields according to the message_request + // in the request. + + // Fields of oneof MessageResponse: + // This message is used to answer file_by_filename, file_containing_symbol, + // file_containing_extension requests with transitive dependencies. + // As the repeated label is not allowed in oneof fields, we use a + // FileDescriptorResponse message to encapsulate the repeated fields. + // The reflection service is allowed to avoid sending FileDescriptorProtos + // that were previously sent in response to earlier requests in the stream. + FileDescriptorResponse *FileDescriptorResponse + // This message is used to answer all_extension_numbers_of_type requests. + AllExtensionNumbersResponse *ExtensionNumberResponse + // This message is used to answer list_services requests. + ListServicesResponse *ListServiceResponse + // This message is used when an error occurs. + ErrorResponse *ErrorResponse + // -- end of MessageResponse +} + +func (b0 ServerReflectionResponse_builder) Build() *ServerReflectionResponse { + m0 := &ServerReflectionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ValidHost = b.ValidHost + x.OriginalRequest = b.OriginalRequest + if b.FileDescriptorResponse != nil { + x.MessageResponse = &ServerReflectionResponse_FileDescriptorResponse{b.FileDescriptorResponse} + } + if b.AllExtensionNumbersResponse != nil { + x.MessageResponse = &ServerReflectionResponse_AllExtensionNumbersResponse{b.AllExtensionNumbersResponse} + } + if b.ListServicesResponse != nil { + x.MessageResponse = &ServerReflectionResponse_ListServicesResponse{b.ListServicesResponse} + } + if b.ErrorResponse != nil { + x.MessageResponse = &ServerReflectionResponse_ErrorResponse{b.ErrorResponse} + } + return m0 +} + +type case_ServerReflectionResponse_MessageResponse protoreflect.FieldNumber + +func (x case_ServerReflectionResponse_MessageResponse) String() string { + md := file_grpc_reflection_v1_reflection_proto_msgTypes[2].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isServerReflectionResponse_MessageResponse interface { isServerReflectionResponse_MessageResponse() } @@ -405,7 +816,7 @@ func (*ServerReflectionResponse_ErrorResponse) isServerReflectionResponse_Messag // a file_by_filename, file_containing_symbol, or file_containing_extension // request. type FileDescriptorResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Serialized FileDescriptorProto messages. We avoid taking a dependency on // descriptor.proto, which uses proto2 only features, by making them opaque // bytes instead. @@ -439,11 +850,6 @@ func (x *FileDescriptorResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FileDescriptorResponse.ProtoReflect.Descriptor instead. -func (*FileDescriptorResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{3} -} - func (x *FileDescriptorResponse) GetFileDescriptorProto() [][]byte { if x != nil { return x.FileDescriptorProto @@ -451,10 +857,31 @@ func (x *FileDescriptorResponse) GetFileDescriptorProto() [][]byte { return nil } +func (x *FileDescriptorResponse) SetFileDescriptorProto(v [][]byte) { + x.FileDescriptorProto = v +} + +type FileDescriptorResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Serialized FileDescriptorProto messages. We avoid taking a dependency on + // descriptor.proto, which uses proto2 only features, by making them opaque + // bytes instead. + FileDescriptorProto [][]byte +} + +func (b0 FileDescriptorResponse_builder) Build() *FileDescriptorResponse { + m0 := &FileDescriptorResponse{} + b, x := &b0, m0 + _, _ = b, x + x.FileDescriptorProto = b.FileDescriptorProto + return m0 +} + // A list of extension numbers sent by the server answering // all_extension_numbers_of_type request. type ExtensionNumberResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Full name of the base type, including the package name. The format // is . BaseTypeName string `protobuf:"bytes,1,opt,name=base_type_name,json=baseTypeName,proto3" json:"base_type_name,omitempty"` @@ -488,11 +915,6 @@ func (x *ExtensionNumberResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExtensionNumberResponse.ProtoReflect.Descriptor instead. -func (*ExtensionNumberResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{4} -} - func (x *ExtensionNumberResponse) GetBaseTypeName() string { if x != nil { return x.BaseTypeName @@ -507,9 +929,35 @@ func (x *ExtensionNumberResponse) GetExtensionNumber() []int32 { return nil } +func (x *ExtensionNumberResponse) SetBaseTypeName(v string) { + x.BaseTypeName = v +} + +func (x *ExtensionNumberResponse) SetExtensionNumber(v []int32) { + x.ExtensionNumber = v +} + +type ExtensionNumberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Full name of the base type, including the package name. The format + // is . + BaseTypeName string + ExtensionNumber []int32 +} + +func (b0 ExtensionNumberResponse_builder) Build() *ExtensionNumberResponse { + m0 := &ExtensionNumberResponse{} + b, x := &b0, m0 + _, _ = b, x + x.BaseTypeName = b.BaseTypeName + x.ExtensionNumber = b.ExtensionNumber + return m0 +} + // A list of ServiceResponse sent by the server answering list_services request. type ListServiceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // The information of each service may be expanded in the future, so we use // ServiceResponse message to encapsulate it. Service []*ServiceResponse `protobuf:"bytes,1,rep,name=service,proto3" json:"service,omitempty"` @@ -542,11 +990,6 @@ func (x *ListServiceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListServiceResponse.ProtoReflect.Descriptor instead. -func (*ListServiceResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{5} -} - func (x *ListServiceResponse) GetService() []*ServiceResponse { if x != nil { return x.Service @@ -554,10 +997,30 @@ func (x *ListServiceResponse) GetService() []*ServiceResponse { return nil } +func (x *ListServiceResponse) SetService(v []*ServiceResponse) { + x.Service = v +} + +type ListServiceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The information of each service may be expanded in the future, so we use + // ServiceResponse message to encapsulate it. + Service []*ServiceResponse +} + +func (b0 ListServiceResponse_builder) Build() *ListServiceResponse { + m0 := &ListServiceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Service = b.Service + return m0 +} + // The information of a single service used by ListServiceResponse to answer // list_services request. type ServiceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Full name of a registered service, including its package name. The format // is . Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` @@ -590,11 +1053,6 @@ func (x *ServiceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ServiceResponse.ProtoReflect.Descriptor instead. -func (*ServiceResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{6} -} - func (x *ServiceResponse) GetName() string { if x != nil { return x.Name @@ -602,9 +1060,29 @@ func (x *ServiceResponse) GetName() string { return "" } +func (x *ServiceResponse) SetName(v string) { + x.Name = v +} + +type ServiceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Full name of a registered service, including its package name. The format + // is . + Name string +} + +func (b0 ServiceResponse_builder) Build() *ServiceResponse { + m0 := &ServiceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + return m0 +} + // The error code and error message sent by the server when an error occurs. type ErrorResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // This field uses the error codes defined in grpc::StatusCode. ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` @@ -637,11 +1115,6 @@ func (x *ErrorResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead. -func (*ErrorResponse) Descriptor() ([]byte, []int) { - return file_grpc_reflection_v1_reflection_proto_rawDescGZIP(), []int{7} -} - func (x *ErrorResponse) GetErrorCode() int32 { if x != nil { return x.ErrorCode @@ -656,6 +1129,31 @@ func (x *ErrorResponse) GetErrorMessage() string { return "" } +func (x *ErrorResponse) SetErrorCode(v int32) { + x.ErrorCode = v +} + +func (x *ErrorResponse) SetErrorMessage(v string) { + x.ErrorMessage = v +} + +type ErrorResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // This field uses the error codes defined in grpc::StatusCode. + ErrorCode int32 + ErrorMessage string +} + +func (b0 ErrorResponse_builder) Build() *ErrorResponse { + m0 := &ErrorResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ErrorCode = b.ErrorCode + x.ErrorMessage = b.ErrorMessage + return m0 +} + var File_grpc_reflection_v1_reflection_proto protoreflect.FileDescriptor var file_grpc_reflection_v1_reflection_proto_rawDesc = []byte{ @@ -778,18 +1276,6 @@ var file_grpc_reflection_v1_reflection_proto_rawDesc = []byte{ 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_grpc_reflection_v1_reflection_proto_rawDescOnce sync.Once - file_grpc_reflection_v1_reflection_proto_rawDescData = file_grpc_reflection_v1_reflection_proto_rawDesc -) - -func file_grpc_reflection_v1_reflection_proto_rawDescGZIP() []byte { - file_grpc_reflection_v1_reflection_proto_rawDescOnce.Do(func() { - file_grpc_reflection_v1_reflection_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_reflection_v1_reflection_proto_rawDescData) - }) - return file_grpc_reflection_v1_reflection_proto_rawDescData -} - var file_grpc_reflection_v1_reflection_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_grpc_reflection_v1_reflection_proto_goTypes = []any{ (*ServerReflectionRequest)(nil), // 0: grpc.reflection.v1.ServerReflectionRequest diff --git a/private/gen/proto/go/grpc/reflection/v1/reflection_protoopaque.pb.go b/private/gen/proto/go/grpc/reflection/v1/reflection_protoopaque.pb.go new file mode 100644 index 0000000000..aa9d297141 --- /dev/null +++ b/private/gen/proto/go/grpc/reflection/v1/reflection_protoopaque.pb.go @@ -0,0 +1,1300 @@ +// Copyright 2020-2024 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Service exported by server reflection. A more complete description of how +// server reflection works can be found at +// https://github.com/grpc/grpc/blob/master/doc/server-reflection.md +// +// The canonical version of this proto can be found at +// https://github.com/grpc/grpc-proto/blob/master/grpc/reflection/v1/reflection.proto + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.0 +// protoc (unknown) +// source: grpc/reflection/v1/reflection.proto + +//go:build protoopaque + +package reflectionv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The message sent by the client when calling ServerReflectionInfo method. +type ServerReflectionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` + xxx_hidden_MessageRequest isServerReflectionRequest_MessageRequest `protobuf_oneof:"message_request"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ServerReflectionRequest) Reset() { + *x = ServerReflectionRequest{} + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ServerReflectionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerReflectionRequest) ProtoMessage() {} + +func (x *ServerReflectionRequest) ProtoReflect() protoreflect.Message { + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ServerReflectionRequest) GetHost() string { + if x != nil { + return x.xxx_hidden_Host + } + return "" +} + +func (x *ServerReflectionRequest) GetFileByFilename() string { + if x != nil { + if x, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_FileByFilename); ok { + return x.FileByFilename + } + } + return "" +} + +func (x *ServerReflectionRequest) GetFileContainingSymbol() string { + if x != nil { + if x, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_FileContainingSymbol); ok { + return x.FileContainingSymbol + } + } + return "" +} + +func (x *ServerReflectionRequest) GetFileContainingExtension() *ExtensionRequest { + if x != nil { + if x, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_FileContainingExtension); ok { + return x.FileContainingExtension + } + } + return nil +} + +func (x *ServerReflectionRequest) GetAllExtensionNumbersOfType() string { + if x != nil { + if x, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_AllExtensionNumbersOfType); ok { + return x.AllExtensionNumbersOfType + } + } + return "" +} + +func (x *ServerReflectionRequest) GetListServices() string { + if x != nil { + if x, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_ListServices); ok { + return x.ListServices + } + } + return "" +} + +func (x *ServerReflectionRequest) SetHost(v string) { + x.xxx_hidden_Host = v +} + +func (x *ServerReflectionRequest) SetFileByFilename(v string) { + x.xxx_hidden_MessageRequest = &serverReflectionRequest_FileByFilename{v} +} + +func (x *ServerReflectionRequest) SetFileContainingSymbol(v string) { + x.xxx_hidden_MessageRequest = &serverReflectionRequest_FileContainingSymbol{v} +} + +func (x *ServerReflectionRequest) SetFileContainingExtension(v *ExtensionRequest) { + if v == nil { + x.xxx_hidden_MessageRequest = nil + return + } + x.xxx_hidden_MessageRequest = &serverReflectionRequest_FileContainingExtension{v} +} + +func (x *ServerReflectionRequest) SetAllExtensionNumbersOfType(v string) { + x.xxx_hidden_MessageRequest = &serverReflectionRequest_AllExtensionNumbersOfType{v} +} + +func (x *ServerReflectionRequest) SetListServices(v string) { + x.xxx_hidden_MessageRequest = &serverReflectionRequest_ListServices{v} +} + +func (x *ServerReflectionRequest) HasMessageRequest() bool { + if x == nil { + return false + } + return x.xxx_hidden_MessageRequest != nil +} + +func (x *ServerReflectionRequest) HasFileByFilename() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_FileByFilename) + return ok +} + +func (x *ServerReflectionRequest) HasFileContainingSymbol() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_FileContainingSymbol) + return ok +} + +func (x *ServerReflectionRequest) HasFileContainingExtension() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_FileContainingExtension) + return ok +} + +func (x *ServerReflectionRequest) HasAllExtensionNumbersOfType() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_AllExtensionNumbersOfType) + return ok +} + +func (x *ServerReflectionRequest) HasListServices() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_ListServices) + return ok +} + +func (x *ServerReflectionRequest) ClearMessageRequest() { + x.xxx_hidden_MessageRequest = nil +} + +func (x *ServerReflectionRequest) ClearFileByFilename() { + if _, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_FileByFilename); ok { + x.xxx_hidden_MessageRequest = nil + } +} + +func (x *ServerReflectionRequest) ClearFileContainingSymbol() { + if _, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_FileContainingSymbol); ok { + x.xxx_hidden_MessageRequest = nil + } +} + +func (x *ServerReflectionRequest) ClearFileContainingExtension() { + if _, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_FileContainingExtension); ok { + x.xxx_hidden_MessageRequest = nil + } +} + +func (x *ServerReflectionRequest) ClearAllExtensionNumbersOfType() { + if _, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_AllExtensionNumbersOfType); ok { + x.xxx_hidden_MessageRequest = nil + } +} + +func (x *ServerReflectionRequest) ClearListServices() { + if _, ok := x.xxx_hidden_MessageRequest.(*serverReflectionRequest_ListServices); ok { + x.xxx_hidden_MessageRequest = nil + } +} + +const ServerReflectionRequest_MessageRequest_not_set_case case_ServerReflectionRequest_MessageRequest = 0 +const ServerReflectionRequest_FileByFilename_case case_ServerReflectionRequest_MessageRequest = 3 +const ServerReflectionRequest_FileContainingSymbol_case case_ServerReflectionRequest_MessageRequest = 4 +const ServerReflectionRequest_FileContainingExtension_case case_ServerReflectionRequest_MessageRequest = 5 +const ServerReflectionRequest_AllExtensionNumbersOfType_case case_ServerReflectionRequest_MessageRequest = 6 +const ServerReflectionRequest_ListServices_case case_ServerReflectionRequest_MessageRequest = 7 + +func (x *ServerReflectionRequest) WhichMessageRequest() case_ServerReflectionRequest_MessageRequest { + if x == nil { + return ServerReflectionRequest_MessageRequest_not_set_case + } + switch x.xxx_hidden_MessageRequest.(type) { + case *serverReflectionRequest_FileByFilename: + return ServerReflectionRequest_FileByFilename_case + case *serverReflectionRequest_FileContainingSymbol: + return ServerReflectionRequest_FileContainingSymbol_case + case *serverReflectionRequest_FileContainingExtension: + return ServerReflectionRequest_FileContainingExtension_case + case *serverReflectionRequest_AllExtensionNumbersOfType: + return ServerReflectionRequest_AllExtensionNumbersOfType_case + case *serverReflectionRequest_ListServices: + return ServerReflectionRequest_ListServices_case + default: + return ServerReflectionRequest_MessageRequest_not_set_case + } +} + +type ServerReflectionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Host string + // To use reflection service, the client should set one of the following + // fields in message_request. The server distinguishes requests by their + // defined field and then handles them using corresponding methods. + + // Fields of oneof xxx_hidden_MessageRequest: + // Find a proto file by the file name. + FileByFilename *string + // Find the proto file that declares the given fully-qualified symbol name. + // This field should be a fully-qualified symbol name + // (e.g. .[.] or .). + FileContainingSymbol *string + // Find the proto file which defines an extension extending the given + // message type with the given field number. + FileContainingExtension *ExtensionRequest + // Finds the tag numbers used by all known extensions of the given message + // type, and appends them to ExtensionNumberResponse in an undefined order. + // Its corresponding method is best-effort: it's not guaranteed that the + // reflection service will implement this method, and it's not guaranteed + // that this method will provide all extensions. Returns + // StatusCode::UNIMPLEMENTED if it's not implemented. + // This field should be a fully-qualified type name. The format is + // . + AllExtensionNumbersOfType *string + // List the full names of registered services. The content will not be + // checked. + ListServices *string + // -- end of xxx_hidden_MessageRequest +} + +func (b0 ServerReflectionRequest_builder) Build() *ServerReflectionRequest { + m0 := &ServerReflectionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Host = b.Host + if b.FileByFilename != nil { + x.xxx_hidden_MessageRequest = &serverReflectionRequest_FileByFilename{*b.FileByFilename} + } + if b.FileContainingSymbol != nil { + x.xxx_hidden_MessageRequest = &serverReflectionRequest_FileContainingSymbol{*b.FileContainingSymbol} + } + if b.FileContainingExtension != nil { + x.xxx_hidden_MessageRequest = &serverReflectionRequest_FileContainingExtension{b.FileContainingExtension} + } + if b.AllExtensionNumbersOfType != nil { + x.xxx_hidden_MessageRequest = &serverReflectionRequest_AllExtensionNumbersOfType{*b.AllExtensionNumbersOfType} + } + if b.ListServices != nil { + x.xxx_hidden_MessageRequest = &serverReflectionRequest_ListServices{*b.ListServices} + } + return m0 +} + +type case_ServerReflectionRequest_MessageRequest protoreflect.FieldNumber + +func (x case_ServerReflectionRequest_MessageRequest) String() string { + md := file_grpc_reflection_v1_reflection_proto_msgTypes[0].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isServerReflectionRequest_MessageRequest interface { + isServerReflectionRequest_MessageRequest() +} + +type serverReflectionRequest_FileByFilename struct { + // Find a proto file by the file name. + FileByFilename string `protobuf:"bytes,3,opt,name=file_by_filename,json=fileByFilename,proto3,oneof"` +} + +type serverReflectionRequest_FileContainingSymbol struct { + // Find the proto file that declares the given fully-qualified symbol name. + // This field should be a fully-qualified symbol name + // (e.g. .[.] or .). + FileContainingSymbol string `protobuf:"bytes,4,opt,name=file_containing_symbol,json=fileContainingSymbol,proto3,oneof"` +} + +type serverReflectionRequest_FileContainingExtension struct { + // Find the proto file which defines an extension extending the given + // message type with the given field number. + FileContainingExtension *ExtensionRequest `protobuf:"bytes,5,opt,name=file_containing_extension,json=fileContainingExtension,proto3,oneof"` +} + +type serverReflectionRequest_AllExtensionNumbersOfType struct { + // Finds the tag numbers used by all known extensions of the given message + // type, and appends them to ExtensionNumberResponse in an undefined order. + // Its corresponding method is best-effort: it's not guaranteed that the + // reflection service will implement this method, and it's not guaranteed + // that this method will provide all extensions. Returns + // StatusCode::UNIMPLEMENTED if it's not implemented. + // This field should be a fully-qualified type name. The format is + // . + AllExtensionNumbersOfType string `protobuf:"bytes,6,opt,name=all_extension_numbers_of_type,json=allExtensionNumbersOfType,proto3,oneof"` +} + +type serverReflectionRequest_ListServices struct { + // List the full names of registered services. The content will not be + // checked. + ListServices string `protobuf:"bytes,7,opt,name=list_services,json=listServices,proto3,oneof"` +} + +func (*serverReflectionRequest_FileByFilename) isServerReflectionRequest_MessageRequest() {} + +func (*serverReflectionRequest_FileContainingSymbol) isServerReflectionRequest_MessageRequest() {} + +func (*serverReflectionRequest_FileContainingExtension) isServerReflectionRequest_MessageRequest() {} + +func (*serverReflectionRequest_AllExtensionNumbersOfType) isServerReflectionRequest_MessageRequest() { +} + +func (*serverReflectionRequest_ListServices) isServerReflectionRequest_MessageRequest() {} + +// The type name and extension number sent by the client when requesting +// file_containing_extension. +type ExtensionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ContainingType string `protobuf:"bytes,1,opt,name=containing_type,json=containingType,proto3" json:"containing_type,omitempty"` + xxx_hidden_ExtensionNumber int32 `protobuf:"varint,2,opt,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExtensionRequest) Reset() { + *x = ExtensionRequest{} + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExtensionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExtensionRequest) ProtoMessage() {} + +func (x *ExtensionRequest) ProtoReflect() protoreflect.Message { + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ExtensionRequest) GetContainingType() string { + if x != nil { + return x.xxx_hidden_ContainingType + } + return "" +} + +func (x *ExtensionRequest) GetExtensionNumber() int32 { + if x != nil { + return x.xxx_hidden_ExtensionNumber + } + return 0 +} + +func (x *ExtensionRequest) SetContainingType(v string) { + x.xxx_hidden_ContainingType = v +} + +func (x *ExtensionRequest) SetExtensionNumber(v int32) { + x.xxx_hidden_ExtensionNumber = v +} + +type ExtensionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fully-qualified type name. The format should be . + ContainingType string + ExtensionNumber int32 +} + +func (b0 ExtensionRequest_builder) Build() *ExtensionRequest { + m0 := &ExtensionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ContainingType = b.ContainingType + x.xxx_hidden_ExtensionNumber = b.ExtensionNumber + return m0 +} + +// The message sent by the server to answer ServerReflectionInfo method. +type ServerReflectionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ValidHost string `protobuf:"bytes,1,opt,name=valid_host,json=validHost,proto3" json:"valid_host,omitempty"` + xxx_hidden_OriginalRequest *ServerReflectionRequest `protobuf:"bytes,2,opt,name=original_request,json=originalRequest,proto3" json:"original_request,omitempty"` + xxx_hidden_MessageResponse isServerReflectionResponse_MessageResponse `protobuf_oneof:"message_response"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ServerReflectionResponse) Reset() { + *x = ServerReflectionResponse{} + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ServerReflectionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerReflectionResponse) ProtoMessage() {} + +func (x *ServerReflectionResponse) ProtoReflect() protoreflect.Message { + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ServerReflectionResponse) GetValidHost() string { + if x != nil { + return x.xxx_hidden_ValidHost + } + return "" +} + +func (x *ServerReflectionResponse) GetOriginalRequest() *ServerReflectionRequest { + if x != nil { + return x.xxx_hidden_OriginalRequest + } + return nil +} + +func (x *ServerReflectionResponse) GetFileDescriptorResponse() *FileDescriptorResponse { + if x != nil { + if x, ok := x.xxx_hidden_MessageResponse.(*serverReflectionResponse_FileDescriptorResponse); ok { + return x.FileDescriptorResponse + } + } + return nil +} + +func (x *ServerReflectionResponse) GetAllExtensionNumbersResponse() *ExtensionNumberResponse { + if x != nil { + if x, ok := x.xxx_hidden_MessageResponse.(*serverReflectionResponse_AllExtensionNumbersResponse); ok { + return x.AllExtensionNumbersResponse + } + } + return nil +} + +func (x *ServerReflectionResponse) GetListServicesResponse() *ListServiceResponse { + if x != nil { + if x, ok := x.xxx_hidden_MessageResponse.(*serverReflectionResponse_ListServicesResponse); ok { + return x.ListServicesResponse + } + } + return nil +} + +func (x *ServerReflectionResponse) GetErrorResponse() *ErrorResponse { + if x != nil { + if x, ok := x.xxx_hidden_MessageResponse.(*serverReflectionResponse_ErrorResponse); ok { + return x.ErrorResponse + } + } + return nil +} + +func (x *ServerReflectionResponse) SetValidHost(v string) { + x.xxx_hidden_ValidHost = v +} + +func (x *ServerReflectionResponse) SetOriginalRequest(v *ServerReflectionRequest) { + x.xxx_hidden_OriginalRequest = v +} + +func (x *ServerReflectionResponse) SetFileDescriptorResponse(v *FileDescriptorResponse) { + if v == nil { + x.xxx_hidden_MessageResponse = nil + return + } + x.xxx_hidden_MessageResponse = &serverReflectionResponse_FileDescriptorResponse{v} +} + +func (x *ServerReflectionResponse) SetAllExtensionNumbersResponse(v *ExtensionNumberResponse) { + if v == nil { + x.xxx_hidden_MessageResponse = nil + return + } + x.xxx_hidden_MessageResponse = &serverReflectionResponse_AllExtensionNumbersResponse{v} +} + +func (x *ServerReflectionResponse) SetListServicesResponse(v *ListServiceResponse) { + if v == nil { + x.xxx_hidden_MessageResponse = nil + return + } + x.xxx_hidden_MessageResponse = &serverReflectionResponse_ListServicesResponse{v} +} + +func (x *ServerReflectionResponse) SetErrorResponse(v *ErrorResponse) { + if v == nil { + x.xxx_hidden_MessageResponse = nil + return + } + x.xxx_hidden_MessageResponse = &serverReflectionResponse_ErrorResponse{v} +} + +func (x *ServerReflectionResponse) HasOriginalRequest() bool { + if x == nil { + return false + } + return x.xxx_hidden_OriginalRequest != nil +} + +func (x *ServerReflectionResponse) HasMessageResponse() bool { + if x == nil { + return false + } + return x.xxx_hidden_MessageResponse != nil +} + +func (x *ServerReflectionResponse) HasFileDescriptorResponse() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_MessageResponse.(*serverReflectionResponse_FileDescriptorResponse) + return ok +} + +func (x *ServerReflectionResponse) HasAllExtensionNumbersResponse() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_MessageResponse.(*serverReflectionResponse_AllExtensionNumbersResponse) + return ok +} + +func (x *ServerReflectionResponse) HasListServicesResponse() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_MessageResponse.(*serverReflectionResponse_ListServicesResponse) + return ok +} + +func (x *ServerReflectionResponse) HasErrorResponse() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_MessageResponse.(*serverReflectionResponse_ErrorResponse) + return ok +} + +func (x *ServerReflectionResponse) ClearOriginalRequest() { + x.xxx_hidden_OriginalRequest = nil +} + +func (x *ServerReflectionResponse) ClearMessageResponse() { + x.xxx_hidden_MessageResponse = nil +} + +func (x *ServerReflectionResponse) ClearFileDescriptorResponse() { + if _, ok := x.xxx_hidden_MessageResponse.(*serverReflectionResponse_FileDescriptorResponse); ok { + x.xxx_hidden_MessageResponse = nil + } +} + +func (x *ServerReflectionResponse) ClearAllExtensionNumbersResponse() { + if _, ok := x.xxx_hidden_MessageResponse.(*serverReflectionResponse_AllExtensionNumbersResponse); ok { + x.xxx_hidden_MessageResponse = nil + } +} + +func (x *ServerReflectionResponse) ClearListServicesResponse() { + if _, ok := x.xxx_hidden_MessageResponse.(*serverReflectionResponse_ListServicesResponse); ok { + x.xxx_hidden_MessageResponse = nil + } +} + +func (x *ServerReflectionResponse) ClearErrorResponse() { + if _, ok := x.xxx_hidden_MessageResponse.(*serverReflectionResponse_ErrorResponse); ok { + x.xxx_hidden_MessageResponse = nil + } +} + +const ServerReflectionResponse_MessageResponse_not_set_case case_ServerReflectionResponse_MessageResponse = 0 +const ServerReflectionResponse_FileDescriptorResponse_case case_ServerReflectionResponse_MessageResponse = 4 +const ServerReflectionResponse_AllExtensionNumbersResponse_case case_ServerReflectionResponse_MessageResponse = 5 +const ServerReflectionResponse_ListServicesResponse_case case_ServerReflectionResponse_MessageResponse = 6 +const ServerReflectionResponse_ErrorResponse_case case_ServerReflectionResponse_MessageResponse = 7 + +func (x *ServerReflectionResponse) WhichMessageResponse() case_ServerReflectionResponse_MessageResponse { + if x == nil { + return ServerReflectionResponse_MessageResponse_not_set_case + } + switch x.xxx_hidden_MessageResponse.(type) { + case *serverReflectionResponse_FileDescriptorResponse: + return ServerReflectionResponse_FileDescriptorResponse_case + case *serverReflectionResponse_AllExtensionNumbersResponse: + return ServerReflectionResponse_AllExtensionNumbersResponse_case + case *serverReflectionResponse_ListServicesResponse: + return ServerReflectionResponse_ListServicesResponse_case + case *serverReflectionResponse_ErrorResponse: + return ServerReflectionResponse_ErrorResponse_case + default: + return ServerReflectionResponse_MessageResponse_not_set_case + } +} + +type ServerReflectionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ValidHost string + OriginalRequest *ServerReflectionRequest + // The server sets one of the following fields according to the message_request + // in the request. + + // Fields of oneof xxx_hidden_MessageResponse: + // This message is used to answer file_by_filename, file_containing_symbol, + // file_containing_extension requests with transitive dependencies. + // As the repeated label is not allowed in oneof fields, we use a + // FileDescriptorResponse message to encapsulate the repeated fields. + // The reflection service is allowed to avoid sending FileDescriptorProtos + // that were previously sent in response to earlier requests in the stream. + FileDescriptorResponse *FileDescriptorResponse + // This message is used to answer all_extension_numbers_of_type requests. + AllExtensionNumbersResponse *ExtensionNumberResponse + // This message is used to answer list_services requests. + ListServicesResponse *ListServiceResponse + // This message is used when an error occurs. + ErrorResponse *ErrorResponse + // -- end of xxx_hidden_MessageResponse +} + +func (b0 ServerReflectionResponse_builder) Build() *ServerReflectionResponse { + m0 := &ServerReflectionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ValidHost = b.ValidHost + x.xxx_hidden_OriginalRequest = b.OriginalRequest + if b.FileDescriptorResponse != nil { + x.xxx_hidden_MessageResponse = &serverReflectionResponse_FileDescriptorResponse{b.FileDescriptorResponse} + } + if b.AllExtensionNumbersResponse != nil { + x.xxx_hidden_MessageResponse = &serverReflectionResponse_AllExtensionNumbersResponse{b.AllExtensionNumbersResponse} + } + if b.ListServicesResponse != nil { + x.xxx_hidden_MessageResponse = &serverReflectionResponse_ListServicesResponse{b.ListServicesResponse} + } + if b.ErrorResponse != nil { + x.xxx_hidden_MessageResponse = &serverReflectionResponse_ErrorResponse{b.ErrorResponse} + } + return m0 +} + +type case_ServerReflectionResponse_MessageResponse protoreflect.FieldNumber + +func (x case_ServerReflectionResponse_MessageResponse) String() string { + md := file_grpc_reflection_v1_reflection_proto_msgTypes[2].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isServerReflectionResponse_MessageResponse interface { + isServerReflectionResponse_MessageResponse() +} + +type serverReflectionResponse_FileDescriptorResponse struct { + // This message is used to answer file_by_filename, file_containing_symbol, + // file_containing_extension requests with transitive dependencies. + // As the repeated label is not allowed in oneof fields, we use a + // FileDescriptorResponse message to encapsulate the repeated fields. + // The reflection service is allowed to avoid sending FileDescriptorProtos + // that were previously sent in response to earlier requests in the stream. + FileDescriptorResponse *FileDescriptorResponse `protobuf:"bytes,4,opt,name=file_descriptor_response,json=fileDescriptorResponse,proto3,oneof"` +} + +type serverReflectionResponse_AllExtensionNumbersResponse struct { + // This message is used to answer all_extension_numbers_of_type requests. + AllExtensionNumbersResponse *ExtensionNumberResponse `protobuf:"bytes,5,opt,name=all_extension_numbers_response,json=allExtensionNumbersResponse,proto3,oneof"` +} + +type serverReflectionResponse_ListServicesResponse struct { + // This message is used to answer list_services requests. + ListServicesResponse *ListServiceResponse `protobuf:"bytes,6,opt,name=list_services_response,json=listServicesResponse,proto3,oneof"` +} + +type serverReflectionResponse_ErrorResponse struct { + // This message is used when an error occurs. + ErrorResponse *ErrorResponse `protobuf:"bytes,7,opt,name=error_response,json=errorResponse,proto3,oneof"` +} + +func (*serverReflectionResponse_FileDescriptorResponse) isServerReflectionResponse_MessageResponse() { +} + +func (*serverReflectionResponse_AllExtensionNumbersResponse) isServerReflectionResponse_MessageResponse() { +} + +func (*serverReflectionResponse_ListServicesResponse) isServerReflectionResponse_MessageResponse() {} + +func (*serverReflectionResponse_ErrorResponse) isServerReflectionResponse_MessageResponse() {} + +// Serialized FileDescriptorProto messages sent by the server answering +// a file_by_filename, file_containing_symbol, or file_containing_extension +// request. +type FileDescriptorResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_FileDescriptorProto [][]byte `protobuf:"bytes,1,rep,name=file_descriptor_proto,json=fileDescriptorProto,proto3" json:"file_descriptor_proto,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FileDescriptorResponse) Reset() { + *x = FileDescriptorResponse{} + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FileDescriptorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileDescriptorResponse) ProtoMessage() {} + +func (x *FileDescriptorResponse) ProtoReflect() protoreflect.Message { + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *FileDescriptorResponse) GetFileDescriptorProto() [][]byte { + if x != nil { + return x.xxx_hidden_FileDescriptorProto + } + return nil +} + +func (x *FileDescriptorResponse) SetFileDescriptorProto(v [][]byte) { + x.xxx_hidden_FileDescriptorProto = v +} + +type FileDescriptorResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Serialized FileDescriptorProto messages. We avoid taking a dependency on + // descriptor.proto, which uses proto2 only features, by making them opaque + // bytes instead. + FileDescriptorProto [][]byte +} + +func (b0 FileDescriptorResponse_builder) Build() *FileDescriptorResponse { + m0 := &FileDescriptorResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_FileDescriptorProto = b.FileDescriptorProto + return m0 +} + +// A list of extension numbers sent by the server answering +// all_extension_numbers_of_type request. +type ExtensionNumberResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_BaseTypeName string `protobuf:"bytes,1,opt,name=base_type_name,json=baseTypeName,proto3" json:"base_type_name,omitempty"` + xxx_hidden_ExtensionNumber []int32 `protobuf:"varint,2,rep,packed,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExtensionNumberResponse) Reset() { + *x = ExtensionNumberResponse{} + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExtensionNumberResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExtensionNumberResponse) ProtoMessage() {} + +func (x *ExtensionNumberResponse) ProtoReflect() protoreflect.Message { + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ExtensionNumberResponse) GetBaseTypeName() string { + if x != nil { + return x.xxx_hidden_BaseTypeName + } + return "" +} + +func (x *ExtensionNumberResponse) GetExtensionNumber() []int32 { + if x != nil { + return x.xxx_hidden_ExtensionNumber + } + return nil +} + +func (x *ExtensionNumberResponse) SetBaseTypeName(v string) { + x.xxx_hidden_BaseTypeName = v +} + +func (x *ExtensionNumberResponse) SetExtensionNumber(v []int32) { + x.xxx_hidden_ExtensionNumber = v +} + +type ExtensionNumberResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Full name of the base type, including the package name. The format + // is . + BaseTypeName string + ExtensionNumber []int32 +} + +func (b0 ExtensionNumberResponse_builder) Build() *ExtensionNumberResponse { + m0 := &ExtensionNumberResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_BaseTypeName = b.BaseTypeName + x.xxx_hidden_ExtensionNumber = b.ExtensionNumber + return m0 +} + +// A list of ServiceResponse sent by the server answering list_services request. +type ListServiceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Service *[]*ServiceResponse `protobuf:"bytes,1,rep,name=service,proto3" json:"service,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListServiceResponse) Reset() { + *x = ListServiceResponse{} + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListServiceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListServiceResponse) ProtoMessage() {} + +func (x *ListServiceResponse) ProtoReflect() protoreflect.Message { + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ListServiceResponse) GetService() []*ServiceResponse { + if x != nil { + if x.xxx_hidden_Service != nil { + return *x.xxx_hidden_Service + } + } + return nil +} + +func (x *ListServiceResponse) SetService(v []*ServiceResponse) { + x.xxx_hidden_Service = &v +} + +type ListServiceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The information of each service may be expanded in the future, so we use + // ServiceResponse message to encapsulate it. + Service []*ServiceResponse +} + +func (b0 ListServiceResponse_builder) Build() *ListServiceResponse { + m0 := &ListServiceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Service = &b.Service + return m0 +} + +// The information of a single service used by ListServiceResponse to answer +// list_services request. +type ServiceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ServiceResponse) Reset() { + *x = ServiceResponse{} + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ServiceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceResponse) ProtoMessage() {} + +func (x *ServiceResponse) ProtoReflect() protoreflect.Message { + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ServiceResponse) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *ServiceResponse) SetName(v string) { + x.xxx_hidden_Name = v +} + +type ServiceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Full name of a registered service, including its package name. The format + // is . + Name string +} + +func (b0 ServiceResponse_builder) Build() *ServiceResponse { + m0 := &ServiceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + return m0 +} + +// The error code and error message sent by the server when an error occurs. +type ErrorResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` + xxx_hidden_ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ErrorResponse) Reset() { + *x = ErrorResponse{} + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ErrorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ErrorResponse) ProtoMessage() {} + +func (x *ErrorResponse) ProtoReflect() protoreflect.Message { + mi := &file_grpc_reflection_v1_reflection_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ErrorResponse) GetErrorCode() int32 { + if x != nil { + return x.xxx_hidden_ErrorCode + } + return 0 +} + +func (x *ErrorResponse) GetErrorMessage() string { + if x != nil { + return x.xxx_hidden_ErrorMessage + } + return "" +} + +func (x *ErrorResponse) SetErrorCode(v int32) { + x.xxx_hidden_ErrorCode = v +} + +func (x *ErrorResponse) SetErrorMessage(v string) { + x.xxx_hidden_ErrorMessage = v +} + +type ErrorResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // This field uses the error codes defined in grpc::StatusCode. + ErrorCode int32 + ErrorMessage string +} + +func (b0 ErrorResponse_builder) Build() *ErrorResponse { + m0 := &ErrorResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ErrorCode = b.ErrorCode + x.xxx_hidden_ErrorMessage = b.ErrorMessage + return m0 +} + +var File_grpc_reflection_v1_reflection_proto protoreflect.FileDescriptor + +var file_grpc_reflection_v1_reflection_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x22, 0xf3, 0x02, 0x0a, 0x17, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x66, 0x69, 0x6c, + 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x66, 0x69, 0x6c, 0x65, 0x42, 0x79, 0x46, 0x69, 0x6c, + 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x14, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x62, 0x0a, + 0x19, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, + 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x17, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x42, 0x0a, 0x1d, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x6f, 0x66, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x19, 0x61, 0x6c, 0x6c, 0x45, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x4f, + 0x66, 0x54, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, + 0x6c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x42, 0x11, 0x0a, 0x0f, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x66, 0x0a, 0x10, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, + 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x29, 0x0a, 0x10, + 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xae, 0x04, 0x0a, 0x18, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x68, 0x6f, + 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x48, + 0x6f, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x10, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, + 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0f, 0x6f, 0x72, 0x69, 0x67, + 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x66, 0x0a, 0x18, 0x66, + 0x69, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, + 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x16, 0x66, 0x69, 0x6c, + 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x1e, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x72, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x72, + 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x1b, 0x61, 0x6c, 0x6c, 0x45, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x6c, 0x69, 0x73, 0x74, 0x5f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, + 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x48, 0x00, 0x52, 0x14, 0x6c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0e, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, + 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x0a, 0x16, 0x46, 0x69, 0x6c, 0x65, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0c, 0x52, 0x13, 0x66, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, + 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6a, 0x0a, 0x17, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x61, 0x73, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x05, 0x52, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x22, 0x54, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x07, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x70, + 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, + 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x25, 0x0a, 0x0f, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x53, 0x0a, 0x0d, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x32, 0x89, 0x01, 0x0a, 0x10, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, + 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x75, 0x0a, 0x14, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x2b, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, + 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, + 0x42, 0xe1, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x65, + 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x52, 0x65, 0x66, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x66, 0x62, 0x75, + 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, + 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x70, + 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, + 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x47, + 0x52, 0x58, 0xaa, 0x02, 0x12, 0x47, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x47, 0x72, 0x70, 0x63, 0x5c, 0x52, + 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x47, + 0x72, 0x70, 0x63, 0x5c, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, + 0x47, 0x72, 0x70, 0x63, 0x3a, 0x3a, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_grpc_reflection_v1_reflection_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_grpc_reflection_v1_reflection_proto_goTypes = []any{ + (*ServerReflectionRequest)(nil), // 0: grpc.reflection.v1.ServerReflectionRequest + (*ExtensionRequest)(nil), // 1: grpc.reflection.v1.ExtensionRequest + (*ServerReflectionResponse)(nil), // 2: grpc.reflection.v1.ServerReflectionResponse + (*FileDescriptorResponse)(nil), // 3: grpc.reflection.v1.FileDescriptorResponse + (*ExtensionNumberResponse)(nil), // 4: grpc.reflection.v1.ExtensionNumberResponse + (*ListServiceResponse)(nil), // 5: grpc.reflection.v1.ListServiceResponse + (*ServiceResponse)(nil), // 6: grpc.reflection.v1.ServiceResponse + (*ErrorResponse)(nil), // 7: grpc.reflection.v1.ErrorResponse +} +var file_grpc_reflection_v1_reflection_proto_depIdxs = []int32{ + 1, // 0: grpc.reflection.v1.ServerReflectionRequest.file_containing_extension:type_name -> grpc.reflection.v1.ExtensionRequest + 0, // 1: grpc.reflection.v1.ServerReflectionResponse.original_request:type_name -> grpc.reflection.v1.ServerReflectionRequest + 3, // 2: grpc.reflection.v1.ServerReflectionResponse.file_descriptor_response:type_name -> grpc.reflection.v1.FileDescriptorResponse + 4, // 3: grpc.reflection.v1.ServerReflectionResponse.all_extension_numbers_response:type_name -> grpc.reflection.v1.ExtensionNumberResponse + 5, // 4: grpc.reflection.v1.ServerReflectionResponse.list_services_response:type_name -> grpc.reflection.v1.ListServiceResponse + 7, // 5: grpc.reflection.v1.ServerReflectionResponse.error_response:type_name -> grpc.reflection.v1.ErrorResponse + 6, // 6: grpc.reflection.v1.ListServiceResponse.service:type_name -> grpc.reflection.v1.ServiceResponse + 0, // 7: grpc.reflection.v1.ServerReflection.ServerReflectionInfo:input_type -> grpc.reflection.v1.ServerReflectionRequest + 2, // 8: grpc.reflection.v1.ServerReflection.ServerReflectionInfo:output_type -> grpc.reflection.v1.ServerReflectionResponse + 8, // [8:9] is the sub-list for method output_type + 7, // [7:8] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_grpc_reflection_v1_reflection_proto_init() } +func file_grpc_reflection_v1_reflection_proto_init() { + if File_grpc_reflection_v1_reflection_proto != nil { + return + } + file_grpc_reflection_v1_reflection_proto_msgTypes[0].OneofWrappers = []any{ + (*serverReflectionRequest_FileByFilename)(nil), + (*serverReflectionRequest_FileContainingSymbol)(nil), + (*serverReflectionRequest_FileContainingExtension)(nil), + (*serverReflectionRequest_AllExtensionNumbersOfType)(nil), + (*serverReflectionRequest_ListServices)(nil), + } + file_grpc_reflection_v1_reflection_proto_msgTypes[2].OneofWrappers = []any{ + (*serverReflectionResponse_FileDescriptorResponse)(nil), + (*serverReflectionResponse_AllExtensionNumbersResponse)(nil), + (*serverReflectionResponse_ListServicesResponse)(nil), + (*serverReflectionResponse_ErrorResponse)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_grpc_reflection_v1_reflection_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_grpc_reflection_v1_reflection_proto_goTypes, + DependencyIndexes: file_grpc_reflection_v1_reflection_proto_depIdxs, + MessageInfos: file_grpc_reflection_v1_reflection_proto_msgTypes, + }.Build() + File_grpc_reflection_v1_reflection_proto = out.File + file_grpc_reflection_v1_reflection_proto_rawDesc = nil + file_grpc_reflection_v1_reflection_proto_goTypes = nil + file_grpc_reflection_v1_reflection_proto_depIdxs = nil +}