ownerv1

package
v1.36.11-2026012614494... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: Apache-2.0 Imports: 7 Imported by: 16

Documentation

Index

Constants

View Source
const OrganizationRef_Id_case case_OrganizationRef_Value = 1
View Source
const OrganizationRef_Name_case case_OrganizationRef_Value = 2
View Source
const OrganizationRef_Value_not_set_case case_OrganizationRef_Value = 0
View Source
const OwnerRef_Id_case case_OwnerRef_Value = 1
View Source
const OwnerRef_Name_case case_OwnerRef_Value = 2
View Source
const OwnerRef_Value_not_set_case case_OwnerRef_Value = 0
View Source
const Owner_Organization_case case_Owner_Value = 2
View Source
const Owner_User_case case_Owner_Value = 1
View Source
const Owner_Value_not_set_case case_Owner_Value = 0
View Source
const UserRef_Id_case case_UserRef_Value = 1
View Source
const UserRef_Name_case case_UserRef_Value = 2
View Source
const UserRef_Value_not_set_case case_UserRef_Value = 0

Variables

View Source
var (
	OrganizationVerificationStatus_name = map[int32]string{
		0: "ORGANIZATION_VERIFICATION_STATUS_UNSPECIFIED",
		1: "ORGANIZATION_VERIFICATION_STATUS_UNVERIFIED",
		2: "ORGANIZATION_VERIFICATION_STATUS_VERIFIED",
		3: "ORGANIZATION_VERIFICATION_STATUS_OFFICIAL",
	}
	OrganizationVerificationStatus_value = map[string]int32{
		"ORGANIZATION_VERIFICATION_STATUS_UNSPECIFIED": 0,
		"ORGANIZATION_VERIFICATION_STATUS_UNVERIFIED":  1,
		"ORGANIZATION_VERIFICATION_STATUS_VERIFIED":    2,
		"ORGANIZATION_VERIFICATION_STATUS_OFFICIAL":    3,
	}
)

Enum value maps for OrganizationVerificationStatus.

View Source
var (
	ListOrganizationsRequest_Order_name = map[int32]string{
		0: "ORDER_UNSPECIFIED",
		1: "ORDER_CREATE_TIME_DESC",
		2: "ORDER_CREATE_TIME_ASC",
	}
	ListOrganizationsRequest_Order_value = map[string]int32{
		"ORDER_UNSPECIFIED":      0,
		"ORDER_CREATE_TIME_DESC": 1,
		"ORDER_CREATE_TIME_ASC":  2,
	}
)

Enum value maps for ListOrganizationsRequest_Order.

View Source
var (
	UserState_name = map[int32]string{
		0: "USER_STATE_UNSPECIFIED",
		1: "USER_STATE_ACTIVE",
		2: "USER_STATE_INACTIVE",
	}
	UserState_value = map[string]int32{
		"USER_STATE_UNSPECIFIED": 0,
		"USER_STATE_ACTIVE":      1,
		"USER_STATE_INACTIVE":    2,
	}
)

Enum value maps for UserState.

View Source
var (
	UserType_name = map[int32]string{
		0: "USER_TYPE_UNSPECIFIED",
		1: "USER_TYPE_STANDARD",
		2: "USER_TYPE_BOT",
		3: "USER_TYPE_SYSTEM",
	}
	UserType_value = map[string]int32{
		"USER_TYPE_UNSPECIFIED": 0,
		"USER_TYPE_STANDARD":    1,
		"USER_TYPE_BOT":         2,
		"USER_TYPE_SYSTEM":      3,
	}
)

Enum value maps for UserType.

View Source
var (
	UserVerificationStatus_name = map[int32]string{
		0: "USER_VERIFICATION_STATUS_UNSPECIFIED",
		1: "USER_VERIFICATION_STATUS_UNVERIFIED",
		2: "USER_VERIFICATION_STATUS_VERIFIED",
		3: "USER_VERIFICATION_STATUS_OFFICIAL",
	}
	UserVerificationStatus_value = map[string]int32{
		"USER_VERIFICATION_STATUS_UNSPECIFIED": 0,
		"USER_VERIFICATION_STATUS_UNVERIFIED":  1,
		"USER_VERIFICATION_STATUS_VERIFIED":    2,
		"USER_VERIFICATION_STATUS_OFFICIAL":    3,
	}
)

Enum value maps for UserVerificationStatus.

View Source
var (
	ListUsersRequest_Order_name = map[int32]string{
		0: "ORDER_UNSPECIFIED",
		1: "ORDER_CREATE_TIME_DESC",
		2: "ORDER_CREATE_TIME_ASC",
	}
	ListUsersRequest_Order_value = map[string]int32{
		"ORDER_UNSPECIFIED":      0,
		"ORDER_CREATE_TIME_DESC": 1,
		"ORDER_CREATE_TIME_ASC":  2,
	}
)

Enum value maps for ListUsersRequest_Order.

View Source
var File_buf_registry_owner_v1_organization_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_owner_v1_organization_service_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_owner_v1_owner_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_owner_v1_owner_service_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_owner_v1_user_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_owner_v1_user_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CreateOrganizationsRequest

type CreateOrganizationsRequest struct {

	// The Organizations to create.
	Values []*CreateOrganizationsRequest_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrganizationsRequest) GetValues

func (*CreateOrganizationsRequest) ProtoMessage

func (*CreateOrganizationsRequest) ProtoMessage()

func (*CreateOrganizationsRequest) ProtoReflect

func (*CreateOrganizationsRequest) Reset

func (x *CreateOrganizationsRequest) Reset()

func (*CreateOrganizationsRequest) SetValues

func (*CreateOrganizationsRequest) String

func (x *CreateOrganizationsRequest) String() string

type CreateOrganizationsRequest_Value

type CreateOrganizationsRequest_Value struct {

	// The name of the Organization.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The configurable description of the Organization.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The configurable URL that represents the homepage for an Organization.
	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// The verification status of the Organization.
	//
	// If not set, the Organization will default to VERIFICATION_STATUS_UNVERIFIED.
	VerificationStatus OrganizationVerificationStatus `` /* 174-byte string literal not displayed */
	// contains filtered or unexported fields
}

An individual request to create an Organization.

func (*CreateOrganizationsRequest_Value) GetDescription

func (x *CreateOrganizationsRequest_Value) GetDescription() string

func (*CreateOrganizationsRequest_Value) GetName

func (*CreateOrganizationsRequest_Value) GetUrl

func (*CreateOrganizationsRequest_Value) GetVerificationStatus

func (*CreateOrganizationsRequest_Value) ProtoMessage

func (*CreateOrganizationsRequest_Value) ProtoMessage()

func (*CreateOrganizationsRequest_Value) ProtoReflect

func (*CreateOrganizationsRequest_Value) Reset

func (*CreateOrganizationsRequest_Value) SetDescription

func (x *CreateOrganizationsRequest_Value) SetDescription(v string)

func (*CreateOrganizationsRequest_Value) SetName

func (*CreateOrganizationsRequest_Value) SetUrl

func (*CreateOrganizationsRequest_Value) SetVerificationStatus

func (*CreateOrganizationsRequest_Value) String

type CreateOrganizationsRequest_Value_builder

type CreateOrganizationsRequest_Value_builder struct {

	// The name of the Organization.
	Name string
	// The configurable description of the Organization.
	Description string
	// The configurable URL that represents the homepage for an Organization.
	Url string
	// The verification status of the Organization.
	//
	// If not set, the Organization will default to VERIFICATION_STATUS_UNVERIFIED.
	VerificationStatus OrganizationVerificationStatus
	// contains filtered or unexported fields
}

func (CreateOrganizationsRequest_Value_builder) Build

type CreateOrganizationsRequest_builder

type CreateOrganizationsRequest_builder struct {

	// The Organizations to create.
	Values []*CreateOrganizationsRequest_Value
	// contains filtered or unexported fields
}

func (CreateOrganizationsRequest_builder) Build

type CreateOrganizationsResponse

type CreateOrganizationsResponse struct {

	// The created Organizations in the same order as given on the request.
	Organizations []*Organization `protobuf:"bytes,1,rep,name=organizations,proto3" json:"organizations,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrganizationsResponse) GetOrganizations

func (x *CreateOrganizationsResponse) GetOrganizations() []*Organization

func (*CreateOrganizationsResponse) ProtoMessage

func (*CreateOrganizationsResponse) ProtoMessage()

func (*CreateOrganizationsResponse) ProtoReflect

func (*CreateOrganizationsResponse) Reset

func (x *CreateOrganizationsResponse) Reset()

func (*CreateOrganizationsResponse) SetOrganizations

func (x *CreateOrganizationsResponse) SetOrganizations(v []*Organization)

func (*CreateOrganizationsResponse) String

func (x *CreateOrganizationsResponse) String() string

type CreateOrganizationsResponse_builder

type CreateOrganizationsResponse_builder struct {

	// The created Organizations in the same order as given on the request.
	Organizations []*Organization
	// contains filtered or unexported fields
}

func (CreateOrganizationsResponse_builder) Build

type CreateUsersRequest

type CreateUsersRequest struct {

	// The Users to create.
	Values []*CreateUsersRequest_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUsersRequest) GetValues

func (x *CreateUsersRequest) GetValues() []*CreateUsersRequest_Value

func (*CreateUsersRequest) ProtoMessage

func (*CreateUsersRequest) ProtoMessage()

func (*CreateUsersRequest) ProtoReflect

func (x *CreateUsersRequest) ProtoReflect() protoreflect.Message

func (*CreateUsersRequest) Reset

func (x *CreateUsersRequest) Reset()

func (*CreateUsersRequest) SetValues

func (x *CreateUsersRequest) SetValues(v []*CreateUsersRequest_Value)

func (*CreateUsersRequest) String

func (x *CreateUsersRequest) String() string

type CreateUsersRequest_Value

type CreateUsersRequest_Value struct {

	// The name of the User.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The type of the User.
	//
	// If not set, the default USER_TYPE_STANDARD is used.
	Type UserType `protobuf:"varint,2,opt,name=type,proto3,enum=buf.registry.owner.v1.UserType" json:"type,omitempty"`
	// The configurable description of the User.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// The configurable URL that represents the homepage for a User.
	Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// The verification status of the User.
	//
	// If not set, the User will default to VERIFICATION_STATUS_UNVERIFIED.
	VerificationStatus UserVerificationStatus `` /* 166-byte string literal not displayed */
	// contains filtered or unexported fields
}

An individual request to create a User.

func (*CreateUsersRequest_Value) GetDescription

func (x *CreateUsersRequest_Value) GetDescription() string

func (*CreateUsersRequest_Value) GetName

func (x *CreateUsersRequest_Value) GetName() string

func (*CreateUsersRequest_Value) GetType

func (x *CreateUsersRequest_Value) GetType() UserType

func (*CreateUsersRequest_Value) GetUrl

func (x *CreateUsersRequest_Value) GetUrl() string

func (*CreateUsersRequest_Value) GetVerificationStatus

func (x *CreateUsersRequest_Value) GetVerificationStatus() UserVerificationStatus

func (*CreateUsersRequest_Value) ProtoMessage

func (*CreateUsersRequest_Value) ProtoMessage()

func (*CreateUsersRequest_Value) ProtoReflect

func (x *CreateUsersRequest_Value) ProtoReflect() protoreflect.Message

func (*CreateUsersRequest_Value) Reset

func (x *CreateUsersRequest_Value) Reset()

func (*CreateUsersRequest_Value) SetDescription

func (x *CreateUsersRequest_Value) SetDescription(v string)

func (*CreateUsersRequest_Value) SetName

func (x *CreateUsersRequest_Value) SetName(v string)

func (*CreateUsersRequest_Value) SetType

func (x *CreateUsersRequest_Value) SetType(v UserType)

func (*CreateUsersRequest_Value) SetUrl

func (x *CreateUsersRequest_Value) SetUrl(v string)

func (*CreateUsersRequest_Value) SetVerificationStatus

func (x *CreateUsersRequest_Value) SetVerificationStatus(v UserVerificationStatus)

func (*CreateUsersRequest_Value) String

func (x *CreateUsersRequest_Value) String() string

type CreateUsersRequest_Value_builder

type CreateUsersRequest_Value_builder struct {

	// The name of the User.
	Name string
	// The type of the User.
	//
	// If not set, the default USER_TYPE_STANDARD is used.
	Type UserType
	// The configurable description of the User.
	Description string
	// The configurable URL that represents the homepage for a User.
	Url string
	// The verification status of the User.
	//
	// If not set, the User will default to VERIFICATION_STATUS_UNVERIFIED.
	VerificationStatus UserVerificationStatus
	// contains filtered or unexported fields
}

func (CreateUsersRequest_Value_builder) Build

type CreateUsersRequest_builder

type CreateUsersRequest_builder struct {

	// The Users to create.
	Values []*CreateUsersRequest_Value
	// contains filtered or unexported fields
}

func (CreateUsersRequest_builder) Build

type CreateUsersResponse

type CreateUsersResponse struct {

	// The created Users in the same order as given on the request.
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUsersResponse) GetUsers

func (x *CreateUsersResponse) GetUsers() []*User

func (*CreateUsersResponse) ProtoMessage

func (*CreateUsersResponse) ProtoMessage()

func (*CreateUsersResponse) ProtoReflect

func (x *CreateUsersResponse) ProtoReflect() protoreflect.Message

func (*CreateUsersResponse) Reset

func (x *CreateUsersResponse) Reset()

func (*CreateUsersResponse) SetUsers

func (x *CreateUsersResponse) SetUsers(v []*User)

func (*CreateUsersResponse) String

func (x *CreateUsersResponse) String() string

type CreateUsersResponse_builder

type CreateUsersResponse_builder struct {

	// The created Users in the same order as given on the request.
	Users []*User
	// contains filtered or unexported fields
}

func (CreateUsersResponse_builder) Build

type DeleteOrganizationsRequest

type DeleteOrganizationsRequest struct {

	// The Organizations to delete.
	OrganizationRefs []*OrganizationRef `protobuf:"bytes,1,rep,name=organization_refs,json=organizationRefs,proto3" json:"organization_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteOrganizationsRequest) GetOrganizationRefs

func (x *DeleteOrganizationsRequest) GetOrganizationRefs() []*OrganizationRef

func (*DeleteOrganizationsRequest) ProtoMessage

func (*DeleteOrganizationsRequest) ProtoMessage()

func (*DeleteOrganizationsRequest) ProtoReflect

func (*DeleteOrganizationsRequest) Reset

func (x *DeleteOrganizationsRequest) Reset()

func (*DeleteOrganizationsRequest) SetOrganizationRefs

func (x *DeleteOrganizationsRequest) SetOrganizationRefs(v []*OrganizationRef)

func (*DeleteOrganizationsRequest) String

func (x *DeleteOrganizationsRequest) String() string

type DeleteOrganizationsRequest_builder

type DeleteOrganizationsRequest_builder struct {

	// The Organizations to delete.
	OrganizationRefs []*OrganizationRef
	// contains filtered or unexported fields
}

func (DeleteOrganizationsRequest_builder) Build

type DeleteOrganizationsResponse

type DeleteOrganizationsResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteOrganizationsResponse) ProtoMessage

func (*DeleteOrganizationsResponse) ProtoMessage()

func (*DeleteOrganizationsResponse) ProtoReflect

func (*DeleteOrganizationsResponse) Reset

func (x *DeleteOrganizationsResponse) Reset()

func (*DeleteOrganizationsResponse) String

func (x *DeleteOrganizationsResponse) String() string

type DeleteOrganizationsResponse_builder

type DeleteOrganizationsResponse_builder struct {
	// contains filtered or unexported fields
}

func (DeleteOrganizationsResponse_builder) Build

type DeleteUsersRequest

type DeleteUsersRequest struct {

	// The Users to delete.
	UserRefs []*UserRef `protobuf:"bytes,1,rep,name=user_refs,json=userRefs,proto3" json:"user_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUsersRequest) GetUserRefs

func (x *DeleteUsersRequest) GetUserRefs() []*UserRef

func (*DeleteUsersRequest) ProtoMessage

func (*DeleteUsersRequest) ProtoMessage()

func (*DeleteUsersRequest) ProtoReflect

func (x *DeleteUsersRequest) ProtoReflect() protoreflect.Message

func (*DeleteUsersRequest) Reset

func (x *DeleteUsersRequest) Reset()

func (*DeleteUsersRequest) SetUserRefs

func (x *DeleteUsersRequest) SetUserRefs(v []*UserRef)

func (*DeleteUsersRequest) String

func (x *DeleteUsersRequest) String() string

type DeleteUsersRequest_builder

type DeleteUsersRequest_builder struct {

	// The Users to delete.
	UserRefs []*UserRef
	// contains filtered or unexported fields
}

func (DeleteUsersRequest_builder) Build

type DeleteUsersResponse

type DeleteUsersResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteUsersResponse) ProtoMessage

func (*DeleteUsersResponse) ProtoMessage()

func (*DeleteUsersResponse) ProtoReflect

func (x *DeleteUsersResponse) ProtoReflect() protoreflect.Message

func (*DeleteUsersResponse) Reset

func (x *DeleteUsersResponse) Reset()

func (*DeleteUsersResponse) String

func (x *DeleteUsersResponse) String() string

type DeleteUsersResponse_builder

type DeleteUsersResponse_builder struct {
	// contains filtered or unexported fields
}

func (DeleteUsersResponse_builder) Build

type GetCurrentUserRequest

type GetCurrentUserRequest struct {
	// contains filtered or unexported fields
}

func (*GetCurrentUserRequest) ProtoMessage

func (*GetCurrentUserRequest) ProtoMessage()

func (*GetCurrentUserRequest) ProtoReflect

func (x *GetCurrentUserRequest) ProtoReflect() protoreflect.Message

func (*GetCurrentUserRequest) Reset

func (x *GetCurrentUserRequest) Reset()

func (*GetCurrentUserRequest) String

func (x *GetCurrentUserRequest) String() string

type GetCurrentUserRequest_builder

type GetCurrentUserRequest_builder struct {
	// contains filtered or unexported fields
}

func (GetCurrentUserRequest_builder) Build

type GetCurrentUserResponse

type GetCurrentUserResponse struct {

	// The currently authenticated User.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCurrentUserResponse) ClearUser

func (x *GetCurrentUserResponse) ClearUser()

func (*GetCurrentUserResponse) GetUser

func (x *GetCurrentUserResponse) GetUser() *User

func (*GetCurrentUserResponse) HasUser

func (x *GetCurrentUserResponse) HasUser() bool

func (*GetCurrentUserResponse) ProtoMessage

func (*GetCurrentUserResponse) ProtoMessage()

func (*GetCurrentUserResponse) ProtoReflect

func (x *GetCurrentUserResponse) ProtoReflect() protoreflect.Message

func (*GetCurrentUserResponse) Reset

func (x *GetCurrentUserResponse) Reset()

func (*GetCurrentUserResponse) SetUser

func (x *GetCurrentUserResponse) SetUser(v *User)

func (*GetCurrentUserResponse) String

func (x *GetCurrentUserResponse) String() string

type GetCurrentUserResponse_builder

type GetCurrentUserResponse_builder struct {

	// The currently authenticated User.
	User *User
	// contains filtered or unexported fields
}

func (GetCurrentUserResponse_builder) Build

type GetOrganizationsRequest

type GetOrganizationsRequest struct {

	// The Organizations to request.
	OrganizationRefs []*OrganizationRef `protobuf:"bytes,1,rep,name=organization_refs,json=organizationRefs,proto3" json:"organization_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrganizationsRequest) GetOrganizationRefs

func (x *GetOrganizationsRequest) GetOrganizationRefs() []*OrganizationRef

func (*GetOrganizationsRequest) ProtoMessage

func (*GetOrganizationsRequest) ProtoMessage()

func (*GetOrganizationsRequest) ProtoReflect

func (x *GetOrganizationsRequest) ProtoReflect() protoreflect.Message

func (*GetOrganizationsRequest) Reset

func (x *GetOrganizationsRequest) Reset()

func (*GetOrganizationsRequest) SetOrganizationRefs

func (x *GetOrganizationsRequest) SetOrganizationRefs(v []*OrganizationRef)

func (*GetOrganizationsRequest) String

func (x *GetOrganizationsRequest) String() string

type GetOrganizationsRequest_builder

type GetOrganizationsRequest_builder struct {

	// The Organizations to request.
	OrganizationRefs []*OrganizationRef
	// contains filtered or unexported fields
}

func (GetOrganizationsRequest_builder) Build

type GetOrganizationsResponse

type GetOrganizationsResponse struct {

	// The retrieved Organizations in the same order as requested.
	Organizations []*Organization `protobuf:"bytes,1,rep,name=organizations,proto3" json:"organizations,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrganizationsResponse) GetOrganizations

func (x *GetOrganizationsResponse) GetOrganizations() []*Organization

func (*GetOrganizationsResponse) ProtoMessage

func (*GetOrganizationsResponse) ProtoMessage()

func (*GetOrganizationsResponse) ProtoReflect

func (x *GetOrganizationsResponse) ProtoReflect() protoreflect.Message

func (*GetOrganizationsResponse) Reset

func (x *GetOrganizationsResponse) Reset()

func (*GetOrganizationsResponse) SetOrganizations

func (x *GetOrganizationsResponse) SetOrganizations(v []*Organization)

func (*GetOrganizationsResponse) String

func (x *GetOrganizationsResponse) String() string

type GetOrganizationsResponse_builder

type GetOrganizationsResponse_builder struct {

	// The retrieved Organizations in the same order as requested.
	Organizations []*Organization
	// contains filtered or unexported fields
}

func (GetOrganizationsResponse_builder) Build

type GetOwnersRequest

type GetOwnersRequest struct {

	// The Users or Organizations to request.
	OwnerRefs []*OwnerRef `protobuf:"bytes,1,rep,name=owner_refs,json=ownerRefs,proto3" json:"owner_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOwnersRequest) GetOwnerRefs

func (x *GetOwnersRequest) GetOwnerRefs() []*OwnerRef

func (*GetOwnersRequest) ProtoMessage

func (*GetOwnersRequest) ProtoMessage()

func (*GetOwnersRequest) ProtoReflect

func (x *GetOwnersRequest) ProtoReflect() protoreflect.Message

func (*GetOwnersRequest) Reset

func (x *GetOwnersRequest) Reset()

func (*GetOwnersRequest) SetOwnerRefs

func (x *GetOwnersRequest) SetOwnerRefs(v []*OwnerRef)

func (*GetOwnersRequest) String

func (x *GetOwnersRequest) String() string

type GetOwnersRequest_builder

type GetOwnersRequest_builder struct {

	// The Users or Organizations to request.
	OwnerRefs []*OwnerRef
	// contains filtered or unexported fields
}

func (GetOwnersRequest_builder) Build

type GetOwnersResponse

type GetOwnersResponse struct {

	// The retrieved Users or Organizations in the same order as requested.
	Owners []*Owner `protobuf:"bytes,1,rep,name=owners,proto3" json:"owners,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOwnersResponse) GetOwners

func (x *GetOwnersResponse) GetOwners() []*Owner

func (*GetOwnersResponse) ProtoMessage

func (*GetOwnersResponse) ProtoMessage()

func (*GetOwnersResponse) ProtoReflect

func (x *GetOwnersResponse) ProtoReflect() protoreflect.Message

func (*GetOwnersResponse) Reset

func (x *GetOwnersResponse) Reset()

func (*GetOwnersResponse) SetOwners

func (x *GetOwnersResponse) SetOwners(v []*Owner)

func (*GetOwnersResponse) String

func (x *GetOwnersResponse) String() string

type GetOwnersResponse_builder

type GetOwnersResponse_builder struct {

	// The retrieved Users or Organizations in the same order as requested.
	Owners []*Owner
	// contains filtered or unexported fields
}

func (GetOwnersResponse_builder) Build

type GetUsersRequest

type GetUsersRequest struct {

	// The Users to request.
	UserRefs []*UserRef `protobuf:"bytes,1,rep,name=user_refs,json=userRefs,proto3" json:"user_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersRequest) GetUserRefs

func (x *GetUsersRequest) GetUserRefs() []*UserRef

func (*GetUsersRequest) ProtoMessage

func (*GetUsersRequest) ProtoMessage()

func (*GetUsersRequest) ProtoReflect

func (x *GetUsersRequest) ProtoReflect() protoreflect.Message

func (*GetUsersRequest) Reset

func (x *GetUsersRequest) Reset()

func (*GetUsersRequest) SetUserRefs

func (x *GetUsersRequest) SetUserRefs(v []*UserRef)

func (*GetUsersRequest) String

func (x *GetUsersRequest) String() string

type GetUsersRequest_builder

type GetUsersRequest_builder struct {

	// The Users to request.
	UserRefs []*UserRef
	// contains filtered or unexported fields
}

func (GetUsersRequest_builder) Build

type GetUsersResponse

type GetUsersResponse struct {

	// The retrieved Users in the same order as requested.
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersResponse) GetUsers

func (x *GetUsersResponse) GetUsers() []*User

func (*GetUsersResponse) ProtoMessage

func (*GetUsersResponse) ProtoMessage()

func (*GetUsersResponse) ProtoReflect

func (x *GetUsersResponse) ProtoReflect() protoreflect.Message

func (*GetUsersResponse) Reset

func (x *GetUsersResponse) Reset()

func (*GetUsersResponse) SetUsers

func (x *GetUsersResponse) SetUsers(v []*User)

func (*GetUsersResponse) String

func (x *GetUsersResponse) String() string

type GetUsersResponse_builder

type GetUsersResponse_builder struct {

	// The retrieved Users in the same order as requested.
	Users []*User
	// contains filtered or unexported fields
}

func (GetUsersResponse_builder) Build

type ListOrganizationsRequest

type ListOrganizationsRequest struct {

	// The maximum number of items to return.
	//
	// The default value is 10.
	PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The page to start from.
	//
	// If empty, the first page is returned.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// The ids of the specific Users to list Organizations for.
	//
	// If this is empty, all Organizations are listed, but this functionality
	// is limited to Users with the necessary permissions.
	UserRefs []*UserRef `protobuf:"bytes,3,rep,name=user_refs,json=userRefs,proto3" json:"user_refs,omitempty"`
	// The order to return the Organizations.
	//
	// If not specified, defaults to ORDER_CREATE_TIME_DESC.
	Order ListOrganizationsRequest_Order `protobuf:"varint,4,opt,name=order,proto3,enum=buf.registry.owner.v1.ListOrganizationsRequest_Order" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOrganizationsRequest) GetOrder

func (*ListOrganizationsRequest) GetPageSize

func (x *ListOrganizationsRequest) GetPageSize() uint32

func (*ListOrganizationsRequest) GetPageToken

func (x *ListOrganizationsRequest) GetPageToken() string

func (*ListOrganizationsRequest) GetUserRefs

func (x *ListOrganizationsRequest) GetUserRefs() []*UserRef

func (*ListOrganizationsRequest) ProtoMessage

func (*ListOrganizationsRequest) ProtoMessage()

func (*ListOrganizationsRequest) ProtoReflect

func (x *ListOrganizationsRequest) ProtoReflect() protoreflect.Message

func (*ListOrganizationsRequest) Reset

func (x *ListOrganizationsRequest) Reset()

func (*ListOrganizationsRequest) SetOrder

func (*ListOrganizationsRequest) SetPageSize

func (x *ListOrganizationsRequest) SetPageSize(v uint32)

func (*ListOrganizationsRequest) SetPageToken

func (x *ListOrganizationsRequest) SetPageToken(v string)

func (*ListOrganizationsRequest) SetUserRefs

func (x *ListOrganizationsRequest) SetUserRefs(v []*UserRef)

func (*ListOrganizationsRequest) String

func (x *ListOrganizationsRequest) String() string

type ListOrganizationsRequest_Order

type ListOrganizationsRequest_Order int32

The list order.

const (
	ListOrganizationsRequest_ORDER_UNSPECIFIED ListOrganizationsRequest_Order = 0
	// Order by create_time newest to oldest.
	ListOrganizationsRequest_ORDER_CREATE_TIME_DESC ListOrganizationsRequest_Order = 1
	// Order by create_time oldest to newest.
	ListOrganizationsRequest_ORDER_CREATE_TIME_ASC ListOrganizationsRequest_Order = 2
)

func (ListOrganizationsRequest_Order) Descriptor

func (ListOrganizationsRequest_Order) Enum

func (ListOrganizationsRequest_Order) Number

func (ListOrganizationsRequest_Order) String

func (ListOrganizationsRequest_Order) Type

type ListOrganizationsRequest_builder

type ListOrganizationsRequest_builder struct {

	// The maximum number of items to return.
	//
	// The default value is 10.
	PageSize uint32
	// The page to start from.
	//
	// If empty, the first page is returned.
	PageToken string
	// The ids of the specific Users to list Organizations for.
	//
	// If this is empty, all Organizations are listed, but this functionality
	// is limited to Users with the necessary permissions.
	UserRefs []*UserRef
	// The order to return the Organizations.
	//
	// If not specified, defaults to ORDER_CREATE_TIME_DESC.
	Order ListOrganizationsRequest_Order
	// contains filtered or unexported fields
}

func (ListOrganizationsRequest_builder) Build

type ListOrganizationsResponse

type ListOrganizationsResponse struct {

	// The next page token.
	//
	// If empty, there are no more pages.
	NextPageToken string `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The listed Organizations.
	Organizations []*Organization `protobuf:"bytes,2,rep,name=organizations,proto3" json:"organizations,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOrganizationsResponse) GetNextPageToken

func (x *ListOrganizationsResponse) GetNextPageToken() string

func (*ListOrganizationsResponse) GetOrganizations

func (x *ListOrganizationsResponse) GetOrganizations() []*Organization

func (*ListOrganizationsResponse) ProtoMessage

func (*ListOrganizationsResponse) ProtoMessage()

func (*ListOrganizationsResponse) ProtoReflect

func (*ListOrganizationsResponse) Reset

func (x *ListOrganizationsResponse) Reset()

func (*ListOrganizationsResponse) SetNextPageToken

func (x *ListOrganizationsResponse) SetNextPageToken(v string)

func (*ListOrganizationsResponse) SetOrganizations

func (x *ListOrganizationsResponse) SetOrganizations(v []*Organization)

func (*ListOrganizationsResponse) String

func (x *ListOrganizationsResponse) String() string

type ListOrganizationsResponse_builder

type ListOrganizationsResponse_builder struct {

	// The next page token.
	//
	// If empty, there are no more pages.
	NextPageToken string
	// The listed Organizations.
	Organizations []*Organization
	// contains filtered or unexported fields
}

func (ListOrganizationsResponse_builder) Build

type ListUsersRequest

type ListUsersRequest struct {

	// The maximum number of items to return.
	//
	// The default value is 10.
	PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The page to start from.
	//
	// If empty, the first page is returned.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// The specific Organizations to list Users for.
	//
	// If this is empty, all Users for all Organizations are listed, but this functionality
	// is limited to Users with the necessary permissions.
	OrganizationRefs []*OrganizationRef `protobuf:"bytes,3,rep,name=organization_refs,json=organizationRefs,proto3" json:"organization_refs,omitempty"`
	// The order to return the Users.
	//
	// If not specified, defaults to ORDER_CREATE_TIME_DESC.
	Order ListUsersRequest_Order `protobuf:"varint,4,opt,name=order,proto3,enum=buf.registry.owner.v1.ListUsersRequest_Order" json:"order,omitempty"`
	// Only return Users of these types.
	HasTypes []UserType `` /* 129-byte string literal not displayed */
	// Only return Users of these states.
	HasStates []UserState `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListUsersRequest) GetHasStates

func (x *ListUsersRequest) GetHasStates() []UserState

func (*ListUsersRequest) GetHasTypes

func (x *ListUsersRequest) GetHasTypes() []UserType

func (*ListUsersRequest) GetOrder

func (*ListUsersRequest) GetOrganizationRefs

func (x *ListUsersRequest) GetOrganizationRefs() []*OrganizationRef

func (*ListUsersRequest) GetPageSize

func (x *ListUsersRequest) GetPageSize() uint32

func (*ListUsersRequest) GetPageToken

func (x *ListUsersRequest) GetPageToken() string

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

func (x *ListUsersRequest) ProtoReflect() protoreflect.Message

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) SetHasStates

func (x *ListUsersRequest) SetHasStates(v []UserState)

func (*ListUsersRequest) SetHasTypes

func (x *ListUsersRequest) SetHasTypes(v []UserType)

func (*ListUsersRequest) SetOrder

func (*ListUsersRequest) SetOrganizationRefs

func (x *ListUsersRequest) SetOrganizationRefs(v []*OrganizationRef)

func (*ListUsersRequest) SetPageSize

func (x *ListUsersRequest) SetPageSize(v uint32)

func (*ListUsersRequest) SetPageToken

func (x *ListUsersRequest) SetPageToken(v string)

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

type ListUsersRequest_Order

type ListUsersRequest_Order int32

The list order.

const (
	ListUsersRequest_ORDER_UNSPECIFIED ListUsersRequest_Order = 0
	// Order by create_time newest to oldest.
	ListUsersRequest_ORDER_CREATE_TIME_DESC ListUsersRequest_Order = 1
	// Order by create_time oldest to newest.
	ListUsersRequest_ORDER_CREATE_TIME_ASC ListUsersRequest_Order = 2
)

func (ListUsersRequest_Order) Descriptor

func (ListUsersRequest_Order) Enum

func (ListUsersRequest_Order) Number

func (ListUsersRequest_Order) String

func (x ListUsersRequest_Order) String() string

func (ListUsersRequest_Order) Type

type ListUsersRequest_builder

type ListUsersRequest_builder struct {

	// The maximum number of items to return.
	//
	// The default value is 10.
	PageSize uint32
	// The page to start from.
	//
	// If empty, the first page is returned.
	PageToken string
	// The specific Organizations to list Users for.
	//
	// If this is empty, all Users for all Organizations are listed, but this functionality
	// is limited to Users with the necessary permissions.
	OrganizationRefs []*OrganizationRef
	// The order to return the Users.
	//
	// If not specified, defaults to ORDER_CREATE_TIME_DESC.
	Order ListUsersRequest_Order
	// Only return Users of these types.
	HasTypes []UserType
	// Only return Users of these states.
	HasStates []UserState
	// contains filtered or unexported fields
}

func (ListUsersRequest_builder) Build

type ListUsersResponse

type ListUsersResponse struct {

	// The next page token.
	//
	// If empty, there are no more pages.
	NextPageToken string `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The list of Users.
	Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersResponse) GetNextPageToken

func (x *ListUsersResponse) GetNextPageToken() string

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

func (x *ListUsersResponse) ProtoReflect() protoreflect.Message

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) SetNextPageToken

func (x *ListUsersResponse) SetNextPageToken(v string)

func (*ListUsersResponse) SetUsers

func (x *ListUsersResponse) SetUsers(v []*User)

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

type ListUsersResponse_builder

type ListUsersResponse_builder struct {

	// The next page token.
	//
	// If empty, there are no more pages.
	NextPageToken string
	// The list of Users.
	Users []*User
	// contains filtered or unexported fields
}

func (ListUsersResponse_builder) Build

type Organization

type Organization struct {

	// The id for the Organization.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The time the Organization was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The last time the Organization was updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The name of the Organization.
	//
	// A name uniquely identifies an Organization, however name is mutable.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// The configurable description of the Organization.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// The configurable URL that represents the homepage for an Organization.
	Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"`
	// The verification status of the Organization.
	VerificationStatus OrganizationVerificationStatus `` /* 174-byte string literal not displayed */
	// contains filtered or unexported fields
}

Organization is an organization on the BSR.

A name uniquely identifies an Organization, however name is mutable.

func (*Organization) ClearCreateTime

func (x *Organization) ClearCreateTime()

func (*Organization) ClearUpdateTime

func (x *Organization) ClearUpdateTime()

func (*Organization) GetCreateTime

func (x *Organization) GetCreateTime() *timestamppb.Timestamp

func (*Organization) GetDescription

func (x *Organization) GetDescription() string

func (*Organization) GetId

func (x *Organization) GetId() string

func (*Organization) GetName

func (x *Organization) GetName() string

func (*Organization) GetUpdateTime

func (x *Organization) GetUpdateTime() *timestamppb.Timestamp

func (*Organization) GetUrl

func (x *Organization) GetUrl() string

func (*Organization) GetVerificationStatus

func (x *Organization) GetVerificationStatus() OrganizationVerificationStatus

func (*Organization) HasCreateTime

func (x *Organization) HasCreateTime() bool

func (*Organization) HasUpdateTime

func (x *Organization) HasUpdateTime() bool

func (*Organization) ProtoMessage

func (*Organization) ProtoMessage()

func (*Organization) ProtoReflect

func (x *Organization) ProtoReflect() protoreflect.Message

func (*Organization) Reset

func (x *Organization) Reset()

func (*Organization) SetCreateTime

func (x *Organization) SetCreateTime(v *timestamppb.Timestamp)

func (*Organization) SetDescription

func (x *Organization) SetDescription(v string)

func (*Organization) SetId

func (x *Organization) SetId(v string)

func (*Organization) SetName

func (x *Organization) SetName(v string)

func (*Organization) SetUpdateTime

func (x *Organization) SetUpdateTime(v *timestamppb.Timestamp)

func (*Organization) SetUrl

func (x *Organization) SetUrl(v string)

func (*Organization) SetVerificationStatus

func (x *Organization) SetVerificationStatus(v OrganizationVerificationStatus)

func (*Organization) String

func (x *Organization) String() string

type OrganizationRef

type OrganizationRef struct {

	// Types that are valid to be assigned to Value:
	//
	//	*OrganizationRef_Id
	//	*OrganizationRef_Name
	Value isOrganizationRef_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

OrganizationRef is a reference to an Organization, either an id or a name.

This is used in requests.

func (*OrganizationRef) ClearId

func (x *OrganizationRef) ClearId()

func (*OrganizationRef) ClearName

func (x *OrganizationRef) ClearName()

func (*OrganizationRef) ClearValue

func (x *OrganizationRef) ClearValue()

func (*OrganizationRef) GetId

func (x *OrganizationRef) GetId() string

func (*OrganizationRef) GetName

func (x *OrganizationRef) GetName() string

func (*OrganizationRef) GetValue

func (x *OrganizationRef) GetValue() isOrganizationRef_Value

func (*OrganizationRef) HasId

func (x *OrganizationRef) HasId() bool

func (*OrganizationRef) HasName

func (x *OrganizationRef) HasName() bool

func (*OrganizationRef) HasValue

func (x *OrganizationRef) HasValue() bool

func (*OrganizationRef) ProtoMessage

func (*OrganizationRef) ProtoMessage()

func (*OrganizationRef) ProtoReflect

func (x *OrganizationRef) ProtoReflect() protoreflect.Message

func (*OrganizationRef) Reset

func (x *OrganizationRef) Reset()

func (*OrganizationRef) SetId

func (x *OrganizationRef) SetId(v string)

func (*OrganizationRef) SetName

func (x *OrganizationRef) SetName(v string)

func (*OrganizationRef) String

func (x *OrganizationRef) String() string

func (*OrganizationRef) WhichValue

func (x *OrganizationRef) WhichValue() case_OrganizationRef_Value

type OrganizationRef_Id

type OrganizationRef_Id struct {
	// The id of the Organization.
	Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}

type OrganizationRef_Name

type OrganizationRef_Name struct {
	// The name of the Organization.
	Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

type OrganizationRef_builder

type OrganizationRef_builder struct {

	// Fields of oneof Value:
	// The id of the Organization.
	Id *string
	// The name of the Organization.
	Name *string
	// contains filtered or unexported fields
}

func (OrganizationRef_builder) Build

type OrganizationVerificationStatus

type OrganizationVerificationStatus int32

The verification status of an Organization.

const (
	OrganizationVerificationStatus_ORGANIZATION_VERIFICATION_STATUS_UNSPECIFIED OrganizationVerificationStatus = 0
	// The Organization is unverified.
	OrganizationVerificationStatus_ORGANIZATION_VERIFICATION_STATUS_UNVERIFIED OrganizationVerificationStatus = 1
	// The Organization is verified.
	OrganizationVerificationStatus_ORGANIZATION_VERIFICATION_STATUS_VERIFIED OrganizationVerificationStatus = 2
	// The Organization is an official organization of the BSR owner.
	OrganizationVerificationStatus_ORGANIZATION_VERIFICATION_STATUS_OFFICIAL OrganizationVerificationStatus = 3
)

func (OrganizationVerificationStatus) Descriptor

func (OrganizationVerificationStatus) Enum

func (OrganizationVerificationStatus) Number

func (OrganizationVerificationStatus) String

func (OrganizationVerificationStatus) Type

type Organization_builder

type Organization_builder struct {

	// The id for the Organization.
	Id string
	// The time the Organization was created.
	CreateTime *timestamppb.Timestamp
	// The last time the Organization was updated.
	UpdateTime *timestamppb.Timestamp
	// The name of the Organization.
	//
	// A name uniquely identifies an Organization, however name is mutable.
	Name string
	// The configurable description of the Organization.
	Description string
	// The configurable URL that represents the homepage for an Organization.
	Url string
	// The verification status of the Organization.
	VerificationStatus OrganizationVerificationStatus
	// contains filtered or unexported fields
}

func (Organization_builder) Build

func (b0 Organization_builder) Build() *Organization

type Owner

type Owner struct {

	// Types that are valid to be assigned to Value:
	//
	//	*Owner_User
	//	*Owner_Organization
	Value isOwner_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

A User or Organization.

func (*Owner) ClearOrganization

func (x *Owner) ClearOrganization()

func (*Owner) ClearUser

func (x *Owner) ClearUser()

func (*Owner) ClearValue

func (x *Owner) ClearValue()

func (*Owner) GetOrganization

func (x *Owner) GetOrganization() *Organization

func (*Owner) GetUser

func (x *Owner) GetUser() *User

func (*Owner) GetValue

func (x *Owner) GetValue() isOwner_Value

func (*Owner) HasOrganization

func (x *Owner) HasOrganization() bool

func (*Owner) HasUser

func (x *Owner) HasUser() bool

func (*Owner) HasValue

func (x *Owner) HasValue() bool

func (*Owner) ProtoMessage

func (*Owner) ProtoMessage()

func (*Owner) ProtoReflect

func (x *Owner) ProtoReflect() protoreflect.Message

func (*Owner) Reset

func (x *Owner) Reset()

func (*Owner) SetOrganization

func (x *Owner) SetOrganization(v *Organization)

func (*Owner) SetUser

func (x *Owner) SetUser(v *User)

func (*Owner) String

func (x *Owner) String() string

func (*Owner) WhichValue

func (x *Owner) WhichValue() case_Owner_Value

type OwnerRef

type OwnerRef struct {

	// Types that are valid to be assigned to Value:
	//
	//	*OwnerRef_Id
	//	*OwnerRef_Name
	Value isOwnerRef_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

OwnerRef is a reference to a User or Organization, either an id or a name.

This is used in requests.

func (*OwnerRef) ClearId

func (x *OwnerRef) ClearId()

func (*OwnerRef) ClearName

func (x *OwnerRef) ClearName()

func (*OwnerRef) ClearValue

func (x *OwnerRef) ClearValue()

func (*OwnerRef) GetId

func (x *OwnerRef) GetId() string

func (*OwnerRef) GetName

func (x *OwnerRef) GetName() string

func (*OwnerRef) GetValue

func (x *OwnerRef) GetValue() isOwnerRef_Value

func (*OwnerRef) HasId

func (x *OwnerRef) HasId() bool

func (*OwnerRef) HasName

func (x *OwnerRef) HasName() bool

func (*OwnerRef) HasValue

func (x *OwnerRef) HasValue() bool

func (*OwnerRef) ProtoMessage

func (*OwnerRef) ProtoMessage()

func (*OwnerRef) ProtoReflect

func (x *OwnerRef) ProtoReflect() protoreflect.Message

func (*OwnerRef) Reset

func (x *OwnerRef) Reset()

func (*OwnerRef) SetId

func (x *OwnerRef) SetId(v string)

func (*OwnerRef) SetName

func (x *OwnerRef) SetName(v string)

func (*OwnerRef) String

func (x *OwnerRef) String() string

func (*OwnerRef) WhichValue

func (x *OwnerRef) WhichValue() case_OwnerRef_Value

type OwnerRef_Id

type OwnerRef_Id struct {
	// The id of the User or Organization.
	Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}

type OwnerRef_Name

type OwnerRef_Name struct {
	// The name of the User or Organization.
	Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

type OwnerRef_builder

type OwnerRef_builder struct {

	// Fields of oneof Value:
	// The id of the User or Organization.
	Id *string
	// The name of the User or Organization.
	Name *string
	// contains filtered or unexported fields
}

func (OwnerRef_builder) Build

func (b0 OwnerRef_builder) Build() *OwnerRef

type Owner_Organization

type Owner_Organization struct {
	// The Organization.
	Organization *Organization `protobuf:"bytes,2,opt,name=organization,proto3,oneof"`
}

type Owner_User

type Owner_User struct {
	// The User.
	User *User `protobuf:"bytes,1,opt,name=user,proto3,oneof"`
}

type Owner_builder

type Owner_builder struct {

	// Fields of oneof Value:
	// The User.
	User *User
	// The Organization.
	Organization *Organization
	// contains filtered or unexported fields
}

func (Owner_builder) Build

func (b0 Owner_builder) Build() *Owner

type UpdateOrganizationsRequest

type UpdateOrganizationsRequest struct {

	// The Organizations to update.
	Values []*UpdateOrganizationsRequest_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateOrganizationsRequest) GetValues

func (*UpdateOrganizationsRequest) ProtoMessage

func (*UpdateOrganizationsRequest) ProtoMessage()

func (*UpdateOrganizationsRequest) ProtoReflect

func (*UpdateOrganizationsRequest) Reset

func (x *UpdateOrganizationsRequest) Reset()

func (*UpdateOrganizationsRequest) SetValues

func (*UpdateOrganizationsRequest) String

func (x *UpdateOrganizationsRequest) String() string

type UpdateOrganizationsRequest_Value

type UpdateOrganizationsRequest_Value struct {

	// The organization to update.
	OrganizationRef *OrganizationRef `protobuf:"bytes,1,opt,name=organization_ref,json=organizationRef,proto3" json:"organization_ref,omitempty"`
	// The configurable description of the Organization.
	Description *string `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// The configurable URL that represents the homepage for an Organization.
	Url *string `protobuf:"bytes,3,opt,name=url,proto3,oneof" json:"url,omitempty"`
	// The verification status of the Organization.
	VerificationStatus *OrganizationVerificationStatus `` /* 180-byte string literal not displayed */
	// contains filtered or unexported fields
}

An individual request to update an Organization.

func (*UpdateOrganizationsRequest_Value) ClearDescription

func (x *UpdateOrganizationsRequest_Value) ClearDescription()

func (*UpdateOrganizationsRequest_Value) ClearOrganizationRef

func (x *UpdateOrganizationsRequest_Value) ClearOrganizationRef()

func (*UpdateOrganizationsRequest_Value) ClearUrl

func (x *UpdateOrganizationsRequest_Value) ClearUrl()

func (*UpdateOrganizationsRequest_Value) ClearVerificationStatus

func (x *UpdateOrganizationsRequest_Value) ClearVerificationStatus()

func (*UpdateOrganizationsRequest_Value) GetDescription

func (x *UpdateOrganizationsRequest_Value) GetDescription() string

func (*UpdateOrganizationsRequest_Value) GetOrganizationRef

func (x *UpdateOrganizationsRequest_Value) GetOrganizationRef() *OrganizationRef

func (*UpdateOrganizationsRequest_Value) GetUrl

func (*UpdateOrganizationsRequest_Value) GetVerificationStatus

func (*UpdateOrganizationsRequest_Value) HasDescription

func (x *UpdateOrganizationsRequest_Value) HasDescription() bool

func (*UpdateOrganizationsRequest_Value) HasOrganizationRef

func (x *UpdateOrganizationsRequest_Value) HasOrganizationRef() bool

func (*UpdateOrganizationsRequest_Value) HasUrl

func (*UpdateOrganizationsRequest_Value) HasVerificationStatus

func (x *UpdateOrganizationsRequest_Value) HasVerificationStatus() bool

func (*UpdateOrganizationsRequest_Value) ProtoMessage

func (*UpdateOrganizationsRequest_Value) ProtoMessage()

func (*UpdateOrganizationsRequest_Value) ProtoReflect

func (*UpdateOrganizationsRequest_Value) Reset

func (*UpdateOrganizationsRequest_Value) SetDescription

func (x *UpdateOrganizationsRequest_Value) SetDescription(v string)

func (*UpdateOrganizationsRequest_Value) SetOrganizationRef

func (x *UpdateOrganizationsRequest_Value) SetOrganizationRef(v *OrganizationRef)

func (*UpdateOrganizationsRequest_Value) SetUrl

func (*UpdateOrganizationsRequest_Value) SetVerificationStatus

func (*UpdateOrganizationsRequest_Value) String

type UpdateOrganizationsRequest_Value_builder

type UpdateOrganizationsRequest_Value_builder struct {

	// The organization to update.
	OrganizationRef *OrganizationRef
	// The configurable description of the Organization.
	Description *string
	// The configurable URL that represents the homepage for an Organization.
	Url *string
	// The verification status of the Organization.
	VerificationStatus *OrganizationVerificationStatus
	// contains filtered or unexported fields
}

func (UpdateOrganizationsRequest_Value_builder) Build

type UpdateOrganizationsRequest_builder

type UpdateOrganizationsRequest_builder struct {

	// The Organizations to update.
	Values []*UpdateOrganizationsRequest_Value
	// contains filtered or unexported fields
}

func (UpdateOrganizationsRequest_builder) Build

type UpdateOrganizationsResponse

type UpdateOrganizationsResponse struct {

	// The updated Organizations in the same order as given on the request.
	Organizations []*Organization `protobuf:"bytes,1,rep,name=organizations,proto3" json:"organizations,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateOrganizationsResponse) GetOrganizations

func (x *UpdateOrganizationsResponse) GetOrganizations() []*Organization

func (*UpdateOrganizationsResponse) ProtoMessage

func (*UpdateOrganizationsResponse) ProtoMessage()

func (*UpdateOrganizationsResponse) ProtoReflect

func (*UpdateOrganizationsResponse) Reset

func (x *UpdateOrganizationsResponse) Reset()

func (*UpdateOrganizationsResponse) SetOrganizations

func (x *UpdateOrganizationsResponse) SetOrganizations(v []*Organization)

func (*UpdateOrganizationsResponse) String

func (x *UpdateOrganizationsResponse) String() string

type UpdateOrganizationsResponse_builder

type UpdateOrganizationsResponse_builder struct {

	// The updated Organizations in the same order as given on the request.
	Organizations []*Organization
	// contains filtered or unexported fields
}

func (UpdateOrganizationsResponse_builder) Build

type UpdateUsersRequest

type UpdateUsersRequest struct {

	// The Users to update.
	Values []*UpdateUsersRequest_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUsersRequest) GetValues

func (x *UpdateUsersRequest) GetValues() []*UpdateUsersRequest_Value

func (*UpdateUsersRequest) ProtoMessage

func (*UpdateUsersRequest) ProtoMessage()

func (*UpdateUsersRequest) ProtoReflect

func (x *UpdateUsersRequest) ProtoReflect() protoreflect.Message

func (*UpdateUsersRequest) Reset

func (x *UpdateUsersRequest) Reset()

func (*UpdateUsersRequest) SetValues

func (x *UpdateUsersRequest) SetValues(v []*UpdateUsersRequest_Value)

func (*UpdateUsersRequest) String

func (x *UpdateUsersRequest) String() string

type UpdateUsersRequest_Value

type UpdateUsersRequest_Value struct {

	// The User to update.
	UserRef *UserRef `protobuf:"bytes,1,opt,name=user_ref,json=userRef,proto3" json:"user_ref,omitempty"`
	// The state of the User.
	State *UserState `protobuf:"varint,2,opt,name=state,proto3,enum=buf.registry.owner.v1.UserState,oneof" json:"state,omitempty"`
	// The configurable description of the User.
	Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// The configurable URL that represents the homepage for a User.
	Url *string `protobuf:"bytes,4,opt,name=url,proto3,oneof" json:"url,omitempty"`
	// The verification status of the User.
	VerificationStatus *UserVerificationStatus `` /* 172-byte string literal not displayed */
	// contains filtered or unexported fields
}

An individual request to update a User.

func (*UpdateUsersRequest_Value) ClearDescription

func (x *UpdateUsersRequest_Value) ClearDescription()

func (*UpdateUsersRequest_Value) ClearState

func (x *UpdateUsersRequest_Value) ClearState()

func (*UpdateUsersRequest_Value) ClearUrl

func (x *UpdateUsersRequest_Value) ClearUrl()

func (*UpdateUsersRequest_Value) ClearUserRef

func (x *UpdateUsersRequest_Value) ClearUserRef()

func (*UpdateUsersRequest_Value) ClearVerificationStatus

func (x *UpdateUsersRequest_Value) ClearVerificationStatus()

func (*UpdateUsersRequest_Value) GetDescription

func (x *UpdateUsersRequest_Value) GetDescription() string

func (*UpdateUsersRequest_Value) GetState

func (x *UpdateUsersRequest_Value) GetState() UserState

func (*UpdateUsersRequest_Value) GetUrl

func (x *UpdateUsersRequest_Value) GetUrl() string

func (*UpdateUsersRequest_Value) GetUserRef

func (x *UpdateUsersRequest_Value) GetUserRef() *UserRef

func (*UpdateUsersRequest_Value) GetVerificationStatus

func (x *UpdateUsersRequest_Value) GetVerificationStatus() UserVerificationStatus

func (*UpdateUsersRequest_Value) HasDescription

func (x *UpdateUsersRequest_Value) HasDescription() bool

func (*UpdateUsersRequest_Value) HasState

func (x *UpdateUsersRequest_Value) HasState() bool

func (*UpdateUsersRequest_Value) HasUrl

func (x *UpdateUsersRequest_Value) HasUrl() bool

func (*UpdateUsersRequest_Value) HasUserRef

func (x *UpdateUsersRequest_Value) HasUserRef() bool

func (*UpdateUsersRequest_Value) HasVerificationStatus

func (x *UpdateUsersRequest_Value) HasVerificationStatus() bool

func (*UpdateUsersRequest_Value) ProtoMessage

func (*UpdateUsersRequest_Value) ProtoMessage()

func (*UpdateUsersRequest_Value) ProtoReflect

func (x *UpdateUsersRequest_Value) ProtoReflect() protoreflect.Message

func (*UpdateUsersRequest_Value) Reset

func (x *UpdateUsersRequest_Value) Reset()

func (*UpdateUsersRequest_Value) SetDescription

func (x *UpdateUsersRequest_Value) SetDescription(v string)

func (*UpdateUsersRequest_Value) SetState

func (x *UpdateUsersRequest_Value) SetState(v UserState)

func (*UpdateUsersRequest_Value) SetUrl

func (x *UpdateUsersRequest_Value) SetUrl(v string)

func (*UpdateUsersRequest_Value) SetUserRef

func (x *UpdateUsersRequest_Value) SetUserRef(v *UserRef)

func (*UpdateUsersRequest_Value) SetVerificationStatus

func (x *UpdateUsersRequest_Value) SetVerificationStatus(v UserVerificationStatus)

func (*UpdateUsersRequest_Value) String

func (x *UpdateUsersRequest_Value) String() string

type UpdateUsersRequest_Value_builder

type UpdateUsersRequest_Value_builder struct {

	// The User to update.
	UserRef *UserRef
	// The state of the User.
	State *UserState
	// The configurable description of the User.
	Description *string
	// The configurable URL that represents the homepage for a User.
	Url *string
	// The verification status of the User.
	VerificationStatus *UserVerificationStatus
	// contains filtered or unexported fields
}

func (UpdateUsersRequest_Value_builder) Build

type UpdateUsersRequest_builder

type UpdateUsersRequest_builder struct {

	// The Users to update.
	Values []*UpdateUsersRequest_Value
	// contains filtered or unexported fields
}

func (UpdateUsersRequest_builder) Build

type UpdateUsersResponse

type UpdateUsersResponse struct {

	// The updated Users in the same order as given on the request.
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUsersResponse) GetUsers

func (x *UpdateUsersResponse) GetUsers() []*User

func (*UpdateUsersResponse) ProtoMessage

func (*UpdateUsersResponse) ProtoMessage()

func (*UpdateUsersResponse) ProtoReflect

func (x *UpdateUsersResponse) ProtoReflect() protoreflect.Message

func (*UpdateUsersResponse) Reset

func (x *UpdateUsersResponse) Reset()

func (*UpdateUsersResponse) SetUsers

func (x *UpdateUsersResponse) SetUsers(v []*User)

func (*UpdateUsersResponse) String

func (x *UpdateUsersResponse) String() string

type UpdateUsersResponse_builder

type UpdateUsersResponse_builder struct {

	// The updated Users in the same order as given on the request.
	Users []*User
	// contains filtered or unexported fields
}

func (UpdateUsersResponse_builder) Build

type User

type User struct {

	// The id for the User.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The time the User was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The last time the User was updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The name of the User.
	//
	// A name uniquely identifies a User, however name is mutable.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// The type of the User.
	Type UserType `protobuf:"varint,5,opt,name=type,proto3,enum=buf.registry.owner.v1.UserType" json:"type,omitempty"`
	// The state of the User.
	State UserState `protobuf:"varint,6,opt,name=state,proto3,enum=buf.registry.owner.v1.UserState" json:"state,omitempty"`
	// The configurable description of the User.
	Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
	// The configurable URL that represents the homepage for a User.
	Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"`
	// The verification status of the User.
	VerificationStatus UserVerificationStatus `` /* 166-byte string literal not displayed */
	// contains filtered or unexported fields
}

A user on the BSR.

A name uniquely identifies a User, however name is mutable.

func (*User) ClearCreateTime

func (x *User) ClearCreateTime()

func (*User) ClearUpdateTime

func (x *User) ClearUpdateTime()

func (*User) GetCreateTime

func (x *User) GetCreateTime() *timestamppb.Timestamp

func (*User) GetDescription

func (x *User) GetDescription() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetState

func (x *User) GetState() UserState

func (*User) GetType

func (x *User) GetType() UserType

func (*User) GetUpdateTime

func (x *User) GetUpdateTime() *timestamppb.Timestamp

func (*User) GetUrl

func (x *User) GetUrl() string

func (*User) GetVerificationStatus

func (x *User) GetVerificationStatus() UserVerificationStatus

func (*User) HasCreateTime

func (x *User) HasCreateTime() bool

func (*User) HasUpdateTime

func (x *User) HasUpdateTime() bool

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) SetCreateTime

func (x *User) SetCreateTime(v *timestamppb.Timestamp)

func (*User) SetDescription

func (x *User) SetDescription(v string)

func (*User) SetId

func (x *User) SetId(v string)

func (*User) SetName

func (x *User) SetName(v string)

func (*User) SetState

func (x *User) SetState(v UserState)

func (*User) SetType

func (x *User) SetType(v UserType)

func (*User) SetUpdateTime

func (x *User) SetUpdateTime(v *timestamppb.Timestamp)

func (*User) SetUrl

func (x *User) SetUrl(v string)

func (*User) SetVerificationStatus

func (x *User) SetVerificationStatus(v UserVerificationStatus)

func (*User) String

func (x *User) String() string

type UserRef

type UserRef struct {

	// Types that are valid to be assigned to Value:
	//
	//	*UserRef_Id
	//	*UserRef_Name
	Value isUserRef_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

UserRef is a reference to a User, either an id or a name.

This is used in requests.

func (*UserRef) ClearId

func (x *UserRef) ClearId()

func (*UserRef) ClearName

func (x *UserRef) ClearName()

func (*UserRef) ClearValue

func (x *UserRef) ClearValue()

func (*UserRef) GetId

func (x *UserRef) GetId() string

func (*UserRef) GetName

func (x *UserRef) GetName() string

func (*UserRef) GetValue

func (x *UserRef) GetValue() isUserRef_Value

func (*UserRef) HasId

func (x *UserRef) HasId() bool

func (*UserRef) HasName

func (x *UserRef) HasName() bool

func (*UserRef) HasValue

func (x *UserRef) HasValue() bool

func (*UserRef) ProtoMessage

func (*UserRef) ProtoMessage()

func (*UserRef) ProtoReflect

func (x *UserRef) ProtoReflect() protoreflect.Message

func (*UserRef) Reset

func (x *UserRef) Reset()

func (*UserRef) SetId

func (x *UserRef) SetId(v string)

func (*UserRef) SetName

func (x *UserRef) SetName(v string)

func (*UserRef) String

func (x *UserRef) String() string

func (*UserRef) WhichValue

func (x *UserRef) WhichValue() case_UserRef_Value

type UserRef_Id

type UserRef_Id struct {
	// The id of the User.
	Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}

type UserRef_Name

type UserRef_Name struct {
	// The name of the User.
	Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

type UserRef_builder

type UserRef_builder struct {

	// Fields of oneof Value:
	// The id of the User.
	Id *string
	// The name of the User.
	Name *string
	// contains filtered or unexported fields
}

func (UserRef_builder) Build

func (b0 UserRef_builder) Build() *UserRef

type UserState

type UserState int32

The state of a User.

const (
	UserState_USER_STATE_UNSPECIFIED UserState = 0
	// The User is active.
	UserState_USER_STATE_ACTIVE UserState = 1
	// The User is inactive.
	UserState_USER_STATE_INACTIVE UserState = 2
)

func (UserState) Descriptor

func (UserState) Descriptor() protoreflect.EnumDescriptor

func (UserState) Enum

func (x UserState) Enum() *UserState

func (UserState) Number

func (x UserState) Number() protoreflect.EnumNumber

func (UserState) String

func (x UserState) String() string

func (UserState) Type

type UserType

type UserType int32

The type of a User.

const (
	UserType_USER_TYPE_UNSPECIFIED UserType = 0
	// Users that are standard users.
	UserType_USER_TYPE_STANDARD UserType = 1
	// Users that are bots.
	UserType_USER_TYPE_BOT UserType = 2
	// Users that are internal system users.
	UserType_USER_TYPE_SYSTEM UserType = 3
)

func (UserType) Descriptor

func (UserType) Descriptor() protoreflect.EnumDescriptor

func (UserType) Enum

func (x UserType) Enum() *UserType

func (UserType) Number

func (x UserType) Number() protoreflect.EnumNumber

func (UserType) String

func (x UserType) String() string

func (UserType) Type

type UserVerificationStatus

type UserVerificationStatus int32

The verification status of an User.

const (
	UserVerificationStatus_USER_VERIFICATION_STATUS_UNSPECIFIED UserVerificationStatus = 0
	// The User is unverified.
	UserVerificationStatus_USER_VERIFICATION_STATUS_UNVERIFIED UserVerificationStatus = 1
	// The User is verified.
	UserVerificationStatus_USER_VERIFICATION_STATUS_VERIFIED UserVerificationStatus = 2
	// The User is an official user of the BSR owner.
	UserVerificationStatus_USER_VERIFICATION_STATUS_OFFICIAL UserVerificationStatus = 3
)

func (UserVerificationStatus) Descriptor

func (UserVerificationStatus) Enum

func (UserVerificationStatus) Number

func (UserVerificationStatus) String

func (x UserVerificationStatus) String() string

func (UserVerificationStatus) Type

type User_builder

type User_builder struct {

	// The id for the User.
	Id string
	// The time the User was created.
	CreateTime *timestamppb.Timestamp
	// The last time the User was updated.
	UpdateTime *timestamppb.Timestamp
	// The name of the User.
	//
	// A name uniquely identifies a User, however name is mutable.
	Name string
	// The type of the User.
	Type UserType
	// The state of the User.
	State UserState
	// The configurable description of the User.
	Description string
	// The configurable URL that represents the homepage for a User.
	Url string
	// The verification status of the User.
	VerificationStatus UserVerificationStatus
	// contains filtered or unexported fields
}

func (User_builder) Build

func (b0 User_builder) Build() *User

Source Files

  • organization.pb.go
  • organization_service.pb.go
  • owner.pb.go
  • owner_service.pb.go
  • user.pb.go
  • user_service.pb.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL