ownerv1beta1

package
v1.34.0-20240213184926... 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: 0

Documentation

Index

Constants

This section is empty.

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_ASC",
		2: "ORDER_CREATE_TIME_DESC",
	}
	ListOrganizationsRequest_Order_value = map[string]int32{
		"ORDER_UNSPECIFIED":      0,
		"ORDER_CREATE_TIME_ASC":  1,
		"ORDER_CREATE_TIME_DESC": 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_ASC",
		2: "ORDER_CREATE_TIME_DESC",
	}
	ListUsersRequest_Order_value = map[string]int32{
		"ORDER_UNSPECIFIED":      0,
		"ORDER_CREATE_TIME_ASC":  1,
		"ORDER_CREATE_TIME_DESC": 2,
	}
)

Enum value maps for ListUsersRequest_Order.

View Source
var File_buf_registry_owner_v1beta1_organization_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_owner_v1beta1_organization_service_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_owner_v1beta1_owner_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_owner_v1beta1_owner_service_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_owner_v1beta1_user_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_owner_v1beta1_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) Descriptor deprecated

func (*CreateOrganizationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrganizationsRequest.ProtoReflect.Descriptor instead.

func (*CreateOrganizationsRequest) GetValues

func (*CreateOrganizationsRequest) ProtoMessage

func (*CreateOrganizationsRequest) ProtoMessage()

func (*CreateOrganizationsRequest) ProtoReflect

func (*CreateOrganizationsRequest) Reset

func (x *CreateOrganizationsRequest) Reset()

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 `` /* 179-byte string literal not displayed */
	// contains filtered or unexported fields
}

An individual request to create an Organization.

func (*CreateOrganizationsRequest_Value) Descriptor deprecated

func (*CreateOrganizationsRequest_Value) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrganizationsRequest_Value.ProtoReflect.Descriptor instead.

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) String

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) Descriptor deprecated

func (*CreateOrganizationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrganizationsResponse.ProtoReflect.Descriptor instead.

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) String

func (x *CreateOrganizationsResponse) String() string

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) Descriptor deprecated

func (*CreateUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUsersRequest.ProtoReflect.Descriptor instead.

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) 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.v1beta1.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 `` /* 171-byte string literal not displayed */
	// contains filtered or unexported fields
}

An individual request to create a User.

func (*CreateUsersRequest_Value) Descriptor deprecated

func (*CreateUsersRequest_Value) Descriptor() ([]byte, []int)

Deprecated: Use CreateUsersRequest_Value.ProtoReflect.Descriptor instead.

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) String

func (x *CreateUsersRequest_Value) String() string

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) Descriptor deprecated

func (*CreateUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateUsersResponse.ProtoReflect.Descriptor instead.

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) String

func (x *CreateUsersResponse) String() string

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) Descriptor deprecated

func (*DeleteOrganizationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteOrganizationsRequest.ProtoReflect.Descriptor instead.

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) String

func (x *DeleteOrganizationsRequest) String() string

type DeleteOrganizationsResponse

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

func (*DeleteOrganizationsResponse) Descriptor deprecated

func (*DeleteOrganizationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteOrganizationsResponse.ProtoReflect.Descriptor instead.

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 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) Descriptor deprecated

func (*DeleteUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUsersRequest.ProtoReflect.Descriptor instead.

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) String

func (x *DeleteUsersRequest) String() string

type DeleteUsersResponse

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

func (*DeleteUsersResponse) Descriptor deprecated

func (*DeleteUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUsersResponse.ProtoReflect.Descriptor instead.

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 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) Descriptor deprecated

func (*GetOrganizationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetOrganizationsRequest.ProtoReflect.Descriptor instead.

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) String

func (x *GetOrganizationsRequest) String() string

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) Descriptor deprecated

func (*GetOrganizationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetOrganizationsResponse.ProtoReflect.Descriptor instead.

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) String

func (x *GetOrganizationsResponse) String() string

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) Descriptor deprecated

func (*GetOwnersRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetOwnersRequest.ProtoReflect.Descriptor instead.

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) String

func (x *GetOwnersRequest) String() string

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) Descriptor deprecated

func (*GetOwnersResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetOwnersResponse.ProtoReflect.Descriptor instead.

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) String

func (x *GetOwnersResponse) String() string

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) Descriptor deprecated

func (*GetUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUsersRequest.ProtoReflect.Descriptor instead.

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) String

func (x *GetUsersRequest) String() string

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) Descriptor deprecated

func (*GetUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead.

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) String

func (x *GetUsersResponse) String() string

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_ASC.
	//
	// TODO: Do we want ORDER_CREATE_TIME_ASC to be the default?
	// TODO: We are purposefully not making the default the zero enum value, however
	// we may want to consider this.
	Order ListOrganizationsRequest_Order `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListOrganizationsRequest) Descriptor deprecated

func (*ListOrganizationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListOrganizationsRequest.ProtoReflect.Descriptor instead.

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) 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 oldest to newest.
	ListOrganizationsRequest_ORDER_CREATE_TIME_ASC ListOrganizationsRequest_Order = 1
	// Order by create_time newest to oldest.
	ListOrganizationsRequest_ORDER_CREATE_TIME_DESC ListOrganizationsRequest_Order = 2
)

func (ListOrganizationsRequest_Order) Descriptor

func (ListOrganizationsRequest_Order) Enum

func (ListOrganizationsRequest_Order) EnumDescriptor deprecated

func (ListOrganizationsRequest_Order) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListOrganizationsRequest_Order.Descriptor instead.

func (ListOrganizationsRequest_Order) Number

func (ListOrganizationsRequest_Order) String

func (ListOrganizationsRequest_Order) Type

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) Descriptor deprecated

func (*ListOrganizationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListOrganizationsResponse.ProtoReflect.Descriptor instead.

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) String

func (x *ListOrganizationsResponse) String() string

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_ASC.
	//
	// TODO: Do we want ORDER_CREATE_TIME_ASC to be the default?
	// TODO: We are purposefully not making the default the zero enum value, however
	// we may want to consider this.
	Order ListUsersRequest_Order `protobuf:"varint,4,opt,name=order,proto3,enum=buf.registry.owner.v1beta1.ListUsersRequest_Order" json:"order,omitempty"`
	// Only return Users of these types.
	HasTypes []UserType `` /* 134-byte string literal not displayed */
	// Only return Users of these states.
	HasStates []UserState `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListUsersRequest) Descriptor deprecated

func (*ListUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

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) 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 oldest to newest.
	ListUsersRequest_ORDER_CREATE_TIME_ASC ListUsersRequest_Order = 1
	// Order by create_time newest to oldest.
	ListUsersRequest_ORDER_CREATE_TIME_DESC ListUsersRequest_Order = 2
)

func (ListUsersRequest_Order) Descriptor

func (ListUsersRequest_Order) Enum

func (ListUsersRequest_Order) EnumDescriptor deprecated

func (ListUsersRequest_Order) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListUsersRequest_Order.Descriptor instead.

func (ListUsersRequest_Order) Number

func (ListUsersRequest_Order) String

func (x ListUsersRequest_Order) String() string

func (ListUsersRequest_Order) Type

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) Descriptor deprecated

func (*ListUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

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) String

func (x *ListUsersResponse) String() string

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 `` /* 179-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) Descriptor deprecated

func (*Organization) Descriptor() ([]byte, []int)

Deprecated: Use Organization.ProtoReflect.Descriptor instead.

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) ProtoMessage

func (*Organization) ProtoMessage()

func (*Organization) ProtoReflect

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

func (*Organization) Reset

func (x *Organization) Reset()

func (*Organization) String

func (x *Organization) String() string

type OrganizationRef

type OrganizationRef struct {

	// Types that are assignable 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) Descriptor deprecated

func (*OrganizationRef) Descriptor() ([]byte, []int)

Deprecated: Use OrganizationRef.ProtoReflect.Descriptor instead.

func (*OrganizationRef) GetId

func (x *OrganizationRef) GetId() string

func (*OrganizationRef) GetName

func (x *OrganizationRef) GetName() string

func (*OrganizationRef) GetValue

func (m *OrganizationRef) GetValue() isOrganizationRef_Value

func (*OrganizationRef) ProtoMessage

func (*OrganizationRef) ProtoMessage()

func (*OrganizationRef) ProtoReflect

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

func (*OrganizationRef) Reset

func (x *OrganizationRef) Reset()

func (*OrganizationRef) String

func (x *OrganizationRef) String() string

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 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) EnumDescriptor deprecated

func (OrganizationVerificationStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrganizationVerificationStatus.Descriptor instead.

func (OrganizationVerificationStatus) Number

func (OrganizationVerificationStatus) String

func (OrganizationVerificationStatus) Type

type Owner

type Owner struct {

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

A User or Organization.

func (*Owner) Descriptor deprecated

func (*Owner) Descriptor() ([]byte, []int)

Deprecated: Use Owner.ProtoReflect.Descriptor instead.

func (*Owner) GetOrganization

func (x *Owner) GetOrganization() *Organization

func (*Owner) GetUser

func (x *Owner) GetUser() *User

func (*Owner) GetValue

func (m *Owner) GetValue() isOwner_Value

func (*Owner) ProtoMessage

func (*Owner) ProtoMessage()

func (*Owner) ProtoReflect

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

func (*Owner) Reset

func (x *Owner) Reset()

func (*Owner) String

func (x *Owner) String() string

type OwnerRef

type OwnerRef struct {

	// Types that are assignable 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) Descriptor deprecated

func (*OwnerRef) Descriptor() ([]byte, []int)

Deprecated: Use OwnerRef.ProtoReflect.Descriptor instead.

func (*OwnerRef) GetId

func (x *OwnerRef) GetId() string

func (*OwnerRef) GetName

func (x *OwnerRef) GetName() string

func (*OwnerRef) GetValue

func (m *OwnerRef) GetValue() isOwnerRef_Value

func (*OwnerRef) ProtoMessage

func (*OwnerRef) ProtoMessage()

func (*OwnerRef) ProtoReflect

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

func (*OwnerRef) Reset

func (x *OwnerRef) Reset()

func (*OwnerRef) String

func (x *OwnerRef) String() string

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 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 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) Descriptor deprecated

func (*UpdateOrganizationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateOrganizationsRequest.ProtoReflect.Descriptor instead.

func (*UpdateOrganizationsRequest) GetValues

func (*UpdateOrganizationsRequest) ProtoMessage

func (*UpdateOrganizationsRequest) ProtoMessage()

func (*UpdateOrganizationsRequest) ProtoReflect

func (*UpdateOrganizationsRequest) Reset

func (x *UpdateOrganizationsRequest) Reset()

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 `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

An individual request to update an Organization.

func (*UpdateOrganizationsRequest_Value) Descriptor deprecated

func (*UpdateOrganizationsRequest_Value) Descriptor() ([]byte, []int)

Deprecated: Use UpdateOrganizationsRequest_Value.ProtoReflect.Descriptor instead.

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) ProtoMessage

func (*UpdateOrganizationsRequest_Value) ProtoMessage()

func (*UpdateOrganizationsRequest_Value) ProtoReflect

func (*UpdateOrganizationsRequest_Value) Reset

func (*UpdateOrganizationsRequest_Value) String

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) Descriptor deprecated

func (*UpdateOrganizationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateOrganizationsResponse.ProtoReflect.Descriptor instead.

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) String

func (x *UpdateOrganizationsResponse) String() string

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) Descriptor deprecated

func (*UpdateUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUsersRequest.ProtoReflect.Descriptor instead.

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) 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.v1beta1.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 `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

An individual request to update a User.

func (*UpdateUsersRequest_Value) Descriptor deprecated

func (*UpdateUsersRequest_Value) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUsersRequest_Value.ProtoReflect.Descriptor instead.

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) 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) String

func (x *UpdateUsersRequest_Value) String() string

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) Descriptor deprecated

func (*UpdateUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUsersResponse.ProtoReflect.Descriptor instead.

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) String

func (x *UpdateUsersResponse) String() string

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.v1beta1.UserType" json:"type,omitempty"`
	// The state of the User.
	State UserState `protobuf:"varint,6,opt,name=state,proto3,enum=buf.registry.owner.v1beta1.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 `` /* 171-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) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

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) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserRef

type UserRef struct {

	// Types that are assignable 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) Descriptor deprecated

func (*UserRef) Descriptor() ([]byte, []int)

Deprecated: Use UserRef.ProtoReflect.Descriptor instead.

func (*UserRef) GetId

func (x *UserRef) GetId() string

func (*UserRef) GetName

func (x *UserRef) GetName() string

func (*UserRef) GetValue

func (m *UserRef) GetValue() isUserRef_Value

func (*UserRef) ProtoMessage

func (*UserRef) ProtoMessage()

func (*UserRef) ProtoReflect

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

func (*UserRef) Reset

func (x *UserRef) Reset()

func (*UserRef) String

func (x *UserRef) String() string

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 UserState

type UserState int32

The state of the a User, either active or inactive.

const (
	UserState_USER_STATE_UNSPECIFIED UserState = 0
	UserState_USER_STATE_ACTIVE      UserState = 1
	UserState_USER_STATE_INACTIVE    UserState = 2
)

func (UserState) Descriptor

func (UserState) Descriptor() protoreflect.EnumDescriptor

func (UserState) Enum

func (x UserState) Enum() *UserState

func (UserState) EnumDescriptor deprecated

func (UserState) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserState.Descriptor instead.

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) EnumDescriptor deprecated

func (UserType) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserType.Descriptor instead.

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.
	// TODO: should this exist?
	UserVerificationStatus_USER_VERIFICATION_STATUS_OFFICIAL UserVerificationStatus = 3
)

func (UserVerificationStatus) Descriptor

func (UserVerificationStatus) Enum

func (UserVerificationStatus) EnumDescriptor deprecated

func (UserVerificationStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserVerificationStatus.Descriptor instead.

func (UserVerificationStatus) Number

func (UserVerificationStatus) String

func (x UserVerificationStatus) String() string

func (UserVerificationStatus) Type

Jump to

Keyboard shortcuts

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