modulev1

package
v1.33.0-20240425212921... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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

Enum value maps for ListCommitsRequest_Order.

View Source
var (
	DigestType_name = map[int32]string{
		0: "DIGEST_TYPE_UNSPECIFIED",
		1: "DIGEST_TYPE_B5",
	}
	DigestType_value = map[string]int32{
		"DIGEST_TYPE_UNSPECIFIED": 0,
		"DIGEST_TYPE_B5":          1,
	}
)

Enum value maps for DigestType.

View Source
var (
	FileType_name = map[int32]string{
		0: "FILE_TYPE_UNSPECIFIED",
		1: "FILE_TYPE_PROTO",
		2: "FILE_TYPE_DOC",
		3: "FILE_TYPE_LICENSE",
	}
	FileType_value = map[string]int32{
		"FILE_TYPE_UNSPECIFIED": 0,
		"FILE_TYPE_PROTO":       1,
		"FILE_TYPE_DOC":         2,
		"FILE_TYPE_LICENSE":     3,
	}
)

Enum value maps for FileType.

View Source
var (
	CommitCheckStatus_name = map[int32]string{
		0: "COMMIT_CHECK_STATUS_UNSPECIFIED",
		1: "COMMIT_CHECK_STATUS_DISABLED",
		2: "COMMIT_CHECK_STATUS_PASSED",
		3: "COMMIT_CHECK_STATUS_PENDING",
		4: "COMMIT_CHECK_STATUS_REJECTED",
		5: "COMMIT_CHECK_STATUS_APPROVED",
	}
	CommitCheckStatus_value = map[string]int32{
		"COMMIT_CHECK_STATUS_UNSPECIFIED": 0,
		"COMMIT_CHECK_STATUS_DISABLED":    1,
		"COMMIT_CHECK_STATUS_PASSED":      2,
		"COMMIT_CHECK_STATUS_PENDING":     3,
		"COMMIT_CHECK_STATUS_REJECTED":    4,
		"COMMIT_CHECK_STATUS_APPROVED":    5,
	}
)

Enum value maps for CommitCheckStatus.

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

Enum value maps for ListLabelsRequest_Order.

View Source
var (
	ListLabelsRequest_ArchiveFilter_name = map[int32]string{
		0: "ARCHIVE_FILTER_UNSPECIFIED",
		1: "ARCHIVE_FILTER_UNARCHIVED_ONLY",
		2: "ARCHIVE_FILTER_ARCHIVED_ONLY",
		3: "ARCHIVE_FILTER_ALL",
	}
	ListLabelsRequest_ArchiveFilter_value = map[string]int32{
		"ARCHIVE_FILTER_UNSPECIFIED":     0,
		"ARCHIVE_FILTER_UNARCHIVED_ONLY": 1,
		"ARCHIVE_FILTER_ARCHIVED_ONLY":   2,
		"ARCHIVE_FILTER_ALL":             3,
	}
)

Enum value maps for ListLabelsRequest_ArchiveFilter.

View Source
var (
	ListLabelHistoryRequest_Order_name = map[int32]string{
		0: "ORDER_UNSPECIFIED",
		1: "ORDER_DESC",
		2: "ORDER_ASC",
	}
	ListLabelHistoryRequest_Order_value = map[string]int32{
		"ORDER_UNSPECIFIED": 0,
		"ORDER_DESC":        1,
		"ORDER_ASC":         2,
	}
)

Enum value maps for ListLabelHistoryRequest_Order.

View Source
var (
	ModuleVisibility_name = map[int32]string{
		0: "MODULE_VISIBILITY_UNSPECIFIED",
		1: "MODULE_VISIBILITY_PUBLIC",
		2: "MODULE_VISIBILITY_PRIVATE",
	}
	ModuleVisibility_value = map[string]int32{
		"MODULE_VISIBILITY_UNSPECIFIED": 0,
		"MODULE_VISIBILITY_PUBLIC":      1,
		"MODULE_VISIBILITY_PRIVATE":     2,
	}
)

Enum value maps for ModuleVisibility.

View Source
var (
	ModuleState_name = map[int32]string{
		0: "MODULE_STATE_UNSPECIFIED",
		1: "MODULE_STATE_ACTIVE",
		2: "MODULE_STATE_DEPRECATED",
	}
	ModuleState_value = map[string]int32{
		"MODULE_STATE_UNSPECIFIED": 0,
		"MODULE_STATE_ACTIVE":      1,
		"MODULE_STATE_DEPRECATED":  2,
	}
)

Enum value maps for ModuleState.

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

Enum value maps for ListModulesRequest_Order.

View Source
var File_buf_registry_module_v1_commit_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_commit_service_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_digest_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_download_service_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_file_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_graph_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_graph_service_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_label_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_label_service_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_module_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_module_service_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_resource_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_resource_service_proto protoreflect.FileDescriptor
View Source
var File_buf_registry_module_v1_upload_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ArchiveLabelsRequest

type ArchiveLabelsRequest struct {

	// The Labels to archive.
	LabelRefs []*LabelRef `protobuf:"bytes,1,rep,name=label_refs,json=labelRefs,proto3" json:"label_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*ArchiveLabelsRequest) Descriptor deprecated

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

Deprecated: Use ArchiveLabelsRequest.ProtoReflect.Descriptor instead.

func (*ArchiveLabelsRequest) GetLabelRefs

func (x *ArchiveLabelsRequest) GetLabelRefs() []*LabelRef

func (*ArchiveLabelsRequest) ProtoMessage

func (*ArchiveLabelsRequest) ProtoMessage()

func (*ArchiveLabelsRequest) ProtoReflect

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

func (*ArchiveLabelsRequest) Reset

func (x *ArchiveLabelsRequest) Reset()

func (*ArchiveLabelsRequest) String

func (x *ArchiveLabelsRequest) String() string

type ArchiveLabelsResponse

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

func (*ArchiveLabelsResponse) Descriptor deprecated

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

Deprecated: Use ArchiveLabelsResponse.ProtoReflect.Descriptor instead.

func (*ArchiveLabelsResponse) ProtoMessage

func (*ArchiveLabelsResponse) ProtoMessage()

func (*ArchiveLabelsResponse) ProtoReflect

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

func (*ArchiveLabelsResponse) Reset

func (x *ArchiveLabelsResponse) Reset()

func (*ArchiveLabelsResponse) String

func (x *ArchiveLabelsResponse) String() string

type Commit

type Commit struct {

	// The id of the Commit.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The time the Commit was pushed to the BSR.
	//
	// Commits are immutable, so there is no corresponding update_time.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The id of the User or Organization that owns the Module that the Commit is associated with.
	OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	// The id of the Module that the Commit is associated with.
	ModuleId string `protobuf:"bytes,4,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`
	// The Digest of the Commit's contents.
	//
	// Note that individual RPCs may request a specific DigestType, and a Digest of
	// this DigestType will be returned as part of this Commit. This may affect your
	// caching of returned Commit messages if you require different DigestTypes.
	Digest *Digest `protobuf:"bytes,5,opt,name=digest,proto3" json:"digest,omitempty"`
	// The id of the User that created this Commit on the BSR.
	//
	// May be empty if the User is no longer available.
	CreatedByUserId string `protobuf:"bytes,6,opt,name=created_by_user_id,json=createdByUserId,proto3" json:"created_by_user_id,omitempty"`
	// The URL of the source control commit that is associated with the Commit.
	//
	// BSR users can navigate to this link to find source control information that is relevant to this Commit
	// (e.g. commit description, PR discussion, authors, approvers, etc.).
	SourceControlUrl string `protobuf:"bytes,7,opt,name=source_control_url,json=sourceControlUrl,proto3" json:"source_control_url,omitempty"`
	// contains filtered or unexported fields
}

A commit on a specific Module.

Commits are immutable.

Many Commits may be associated with one Digest.

Note that the Digest returned on a Commit depends on the requested DigestType in the RPC that returned the Commit.

func (*Commit) Descriptor deprecated

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

Deprecated: Use Commit.ProtoReflect.Descriptor instead.

func (*Commit) GetCreateTime

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

func (*Commit) GetCreatedByUserId

func (x *Commit) GetCreatedByUserId() string

func (*Commit) GetDigest

func (x *Commit) GetDigest() *Digest

func (*Commit) GetId

func (x *Commit) GetId() string

func (*Commit) GetModuleId

func (x *Commit) GetModuleId() string

func (*Commit) GetOwnerId

func (x *Commit) GetOwnerId() string

func (*Commit) GetSourceControlUrl

func (x *Commit) GetSourceControlUrl() string

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) ProtoReflect

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

func (*Commit) Reset

func (x *Commit) Reset()

func (*Commit) String

func (x *Commit) String() string

type CommitCheckState

type CommitCheckState struct {

	// The status of the policy check.
	Status CommitCheckStatus `protobuf:"varint,1,opt,name=status,proto3,enum=buf.registry.module.v1.CommitCheckStatus" json:"status,omitempty"`
	// The time the policy check state was last updated.
	//
	// If the status is disabled, this will be equal to the Commit create_time.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

The state of a Commit's policy checks for a particular Label.

Policy checks are an enterprise-only feature - contact us to learn more!

func (*CommitCheckState) Descriptor deprecated

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

Deprecated: Use CommitCheckState.ProtoReflect.Descriptor instead.

func (*CommitCheckState) GetStatus

func (x *CommitCheckState) GetStatus() CommitCheckStatus

func (*CommitCheckState) GetUpdateTime

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

func (*CommitCheckState) ProtoMessage

func (*CommitCheckState) ProtoMessage()

func (*CommitCheckState) ProtoReflect

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

func (*CommitCheckState) Reset

func (x *CommitCheckState) Reset()

func (*CommitCheckState) String

func (x *CommitCheckState) String() string

type CommitCheckStatus

type CommitCheckStatus int32

A check status for a Commit.

Policy checks are an enterprise-only feature - contact us to learn more!

const (
	CommitCheckStatus_COMMIT_CHECK_STATUS_UNSPECIFIED CommitCheckStatus = 0
	// Policy checks were not enabled when the Commit was created.
	CommitCheckStatus_COMMIT_CHECK_STATUS_DISABLED CommitCheckStatus = 1
	// The Commit did not fail any policy checks and therefore did not need review.
	CommitCheckStatus_COMMIT_CHECK_STATUS_PASSED CommitCheckStatus = 2
	// The Commit has not yet been reviewed after failing policy checks and is pending.
	CommitCheckStatus_COMMIT_CHECK_STATUS_PENDING CommitCheckStatus = 3
	// The Commit was reviewed after failing policy checks and was rejected.
	CommitCheckStatus_COMMIT_CHECK_STATUS_REJECTED CommitCheckStatus = 4
	// The Commit was reviewed after failing policy checks and was approved.
	CommitCheckStatus_COMMIT_CHECK_STATUS_APPROVED CommitCheckStatus = 5
)

func (CommitCheckStatus) Descriptor

func (CommitCheckStatus) Enum

func (CommitCheckStatus) EnumDescriptor deprecated

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

Deprecated: Use CommitCheckStatus.Descriptor instead.

func (CommitCheckStatus) Number

func (CommitCheckStatus) String

func (x CommitCheckStatus) String() string

func (CommitCheckStatus) Type

type CreateModulesRequest

type CreateModulesRequest struct {

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

func (*CreateModulesRequest) Descriptor deprecated

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

Deprecated: Use CreateModulesRequest.ProtoReflect.Descriptor instead.

func (*CreateModulesRequest) GetValues

func (*CreateModulesRequest) ProtoMessage

func (*CreateModulesRequest) ProtoMessage()

func (*CreateModulesRequest) ProtoReflect

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

func (*CreateModulesRequest) Reset

func (x *CreateModulesRequest) Reset()

func (*CreateModulesRequest) String

func (x *CreateModulesRequest) String() string

type CreateModulesRequest_Value

type CreateModulesRequest_Value struct {

	// The User or Organization to create the Module under.
	OwnerRef *v1.OwnerRef `protobuf:"bytes,1,opt,name=owner_ref,json=ownerRef,proto3" json:"owner_ref,omitempty"`
	// The name of the Module.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The module's visibility.
	Visibility ModuleVisibility `protobuf:"varint,3,opt,name=visibility,proto3,enum=buf.registry.module.v1.ModuleVisibility" json:"visibility,omitempty"`
	// The configurable description of the Module.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// The configurable URL in the description of the module.
	Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
	// The name of the default Label of the Module.
	//
	// If not set, the default Label will be named "main" upon creation.
	//
	// This may point to an archived Label.
	DefaultLabelName string `protobuf:"bytes,6,opt,name=default_label_name,json=defaultLabelName,proto3" json:"default_label_name,omitempty"`
	// contains filtered or unexported fields
}

An individual request to create a Module.

func (*CreateModulesRequest_Value) Descriptor deprecated

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

Deprecated: Use CreateModulesRequest_Value.ProtoReflect.Descriptor instead.

func (*CreateModulesRequest_Value) GetDefaultLabelName

func (x *CreateModulesRequest_Value) GetDefaultLabelName() string

func (*CreateModulesRequest_Value) GetDescription

func (x *CreateModulesRequest_Value) GetDescription() string

func (*CreateModulesRequest_Value) GetName

func (x *CreateModulesRequest_Value) GetName() string

func (*CreateModulesRequest_Value) GetOwnerRef

func (x *CreateModulesRequest_Value) GetOwnerRef() *v1.OwnerRef

func (*CreateModulesRequest_Value) GetUrl

func (x *CreateModulesRequest_Value) GetUrl() string

func (*CreateModulesRequest_Value) GetVisibility

func (x *CreateModulesRequest_Value) GetVisibility() ModuleVisibility

func (*CreateModulesRequest_Value) ProtoMessage

func (*CreateModulesRequest_Value) ProtoMessage()

func (*CreateModulesRequest_Value) ProtoReflect

func (*CreateModulesRequest_Value) Reset

func (x *CreateModulesRequest_Value) Reset()

func (*CreateModulesRequest_Value) String

func (x *CreateModulesRequest_Value) String() string

type CreateModulesResponse

type CreateModulesResponse struct {

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

func (*CreateModulesResponse) Descriptor deprecated

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

Deprecated: Use CreateModulesResponse.ProtoReflect.Descriptor instead.

func (*CreateModulesResponse) GetModules

func (x *CreateModulesResponse) GetModules() []*Module

func (*CreateModulesResponse) ProtoMessage

func (*CreateModulesResponse) ProtoMessage()

func (*CreateModulesResponse) ProtoReflect

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

func (*CreateModulesResponse) Reset

func (x *CreateModulesResponse) Reset()

func (*CreateModulesResponse) String

func (x *CreateModulesResponse) String() string

type CreateOrUpdateLabelsRequest

type CreateOrUpdateLabelsRequest struct {

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

func (*CreateOrUpdateLabelsRequest) Descriptor deprecated

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

Deprecated: Use CreateOrUpdateLabelsRequest.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateLabelsRequest) GetValues

func (*CreateOrUpdateLabelsRequest) ProtoMessage

func (*CreateOrUpdateLabelsRequest) ProtoMessage()

func (*CreateOrUpdateLabelsRequest) ProtoReflect

func (*CreateOrUpdateLabelsRequest) Reset

func (x *CreateOrUpdateLabelsRequest) Reset()

func (*CreateOrUpdateLabelsRequest) String

func (x *CreateOrUpdateLabelsRequest) String() string

type CreateOrUpdateLabelsRequest_Value

type CreateOrUpdateLabelsRequest_Value struct {

	// The Labels to create or update.
	LabelRef *LabelRef `protobuf:"bytes,1,opt,name=label_ref,json=labelRef,proto3" json:"label_ref,omitempty"`
	// The id of the Commit to associate with the Label.
	//
	// If the Label already existed, the Label will now point to this Commit, as long as this Commit
	// is newer than the Commit that the Label is currently pointing to, otherwise an error is
	// returned.
	// If the Label was archived, it will be unarchived.
	CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
	// contains filtered or unexported fields
}

An individual request to create or update a Label.

func (*CreateOrUpdateLabelsRequest_Value) Descriptor deprecated

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

Deprecated: Use CreateOrUpdateLabelsRequest_Value.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateLabelsRequest_Value) GetCommitId

func (x *CreateOrUpdateLabelsRequest_Value) GetCommitId() string

func (*CreateOrUpdateLabelsRequest_Value) GetLabelRef

func (x *CreateOrUpdateLabelsRequest_Value) GetLabelRef() *LabelRef

func (*CreateOrUpdateLabelsRequest_Value) ProtoMessage

func (*CreateOrUpdateLabelsRequest_Value) ProtoMessage()

func (*CreateOrUpdateLabelsRequest_Value) ProtoReflect

func (*CreateOrUpdateLabelsRequest_Value) Reset

func (*CreateOrUpdateLabelsRequest_Value) String

type CreateOrUpdateLabelsResponse

type CreateOrUpdateLabelsResponse struct {

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

func (*CreateOrUpdateLabelsResponse) Descriptor deprecated

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

Deprecated: Use CreateOrUpdateLabelsResponse.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateLabelsResponse) GetLabels

func (x *CreateOrUpdateLabelsResponse) GetLabels() []*Label

func (*CreateOrUpdateLabelsResponse) ProtoMessage

func (*CreateOrUpdateLabelsResponse) ProtoMessage()

func (*CreateOrUpdateLabelsResponse) ProtoReflect

func (*CreateOrUpdateLabelsResponse) Reset

func (x *CreateOrUpdateLabelsResponse) Reset()

func (*CreateOrUpdateLabelsResponse) String

type DeleteModulesRequest

type DeleteModulesRequest struct {

	// The Modules to delete.
	ModuleRefs []*ModuleRef `protobuf:"bytes,1,rep,name=module_refs,json=moduleRefs,proto3" json:"module_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteModulesRequest) Descriptor deprecated

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

Deprecated: Use DeleteModulesRequest.ProtoReflect.Descriptor instead.

func (*DeleteModulesRequest) GetModuleRefs

func (x *DeleteModulesRequest) GetModuleRefs() []*ModuleRef

func (*DeleteModulesRequest) ProtoMessage

func (*DeleteModulesRequest) ProtoMessage()

func (*DeleteModulesRequest) ProtoReflect

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

func (*DeleteModulesRequest) Reset

func (x *DeleteModulesRequest) Reset()

func (*DeleteModulesRequest) String

func (x *DeleteModulesRequest) String() string

type DeleteModulesResponse

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

func (*DeleteModulesResponse) Descriptor deprecated

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

Deprecated: Use DeleteModulesResponse.ProtoReflect.Descriptor instead.

func (*DeleteModulesResponse) ProtoMessage

func (*DeleteModulesResponse) ProtoMessage()

func (*DeleteModulesResponse) ProtoReflect

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

func (*DeleteModulesResponse) Reset

func (x *DeleteModulesResponse) Reset()

func (*DeleteModulesResponse) String

func (x *DeleteModulesResponse) String() string

type Digest

type Digest struct {

	// The type of the Digest.
	Type DigestType `protobuf:"varint,1,opt,name=type,proto3,enum=buf.registry.module.v1.DigestType" json:"type,omitempty"`
	// The value of the Digest.
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A digest of a Commit's content.

A digest represents all content for a single Commit, including its .proto files, documentation files, license files, and the digests of its dependencies.

func (*Digest) Descriptor deprecated

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

Deprecated: Use Digest.ProtoReflect.Descriptor instead.

func (*Digest) GetType

func (x *Digest) GetType() DigestType

func (*Digest) GetValue

func (x *Digest) GetValue() []byte

func (*Digest) ProtoMessage

func (*Digest) ProtoMessage()

func (*Digest) ProtoReflect

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

func (*Digest) Reset

func (x *Digest) Reset()

func (*Digest) String

func (x *Digest) String() string

type DigestType

type DigestType int32

The type of Digest.

const (
	DigestType_DIGEST_TYPE_UNSPECIFIED DigestType = 0
	// The b5 digest function.
	DigestType_DIGEST_TYPE_B5 DigestType = 1
)

func (DigestType) Descriptor

func (DigestType) Descriptor() protoreflect.EnumDescriptor

func (DigestType) Enum

func (x DigestType) Enum() *DigestType

func (DigestType) EnumDescriptor deprecated

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

Deprecated: Use DigestType.Descriptor instead.

func (DigestType) Number

func (x DigestType) Number() protoreflect.EnumNumber

func (DigestType) String

func (x DigestType) String() string

func (DigestType) Type

type DownloadRequest

type DownloadRequest struct {

	// The references to get contents for.
	Values []*DownloadRequest_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadRequest) Descriptor deprecated

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

Deprecated: Use DownloadRequest.ProtoReflect.Descriptor instead.

func (*DownloadRequest) GetValues

func (x *DownloadRequest) GetValues() []*DownloadRequest_Value

func (*DownloadRequest) ProtoMessage

func (*DownloadRequest) ProtoMessage()

func (*DownloadRequest) ProtoReflect

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

func (*DownloadRequest) Reset

func (x *DownloadRequest) Reset()

func (*DownloadRequest) String

func (x *DownloadRequest) String() string

type DownloadRequest_Value

type DownloadRequest_Value struct {

	// The reference to get content for.
	//
	// See the documentation on ResourceRef for resource resolution details.
	//
	// Once the resource is resolved, the following content is returned:
	//   - If a Module is referenced, the content of the Commit of the default Label is returned.
	//   - If a Label is referenced, the content of the Commit of this Label is returned.
	//   - If a Commit is referenced, the content for this Commit is returned.
	ResourceRef *ResourceRef `protobuf:"bytes,1,opt,name=resource_ref,json=resourceRef,proto3" json:"resource_ref,omitempty"`
	// Specific file types to request.
	//
	// If not set, all file types are returned.
	FileTypes []FileType `` /* 133-byte string literal not displayed */
	// Specific file paths to retrieve.
	//
	// May be directories. For example, path "foo/bar" will result in files "foo/bar/baz.proto",
	// "foo/bar/LICENSE" being downloaded.
	//
	// If empty, all file paths for the given reference are retrieved.
	//
	// If no paths match, an empty Files list will be returned, however the call may still
	// be successful if paths_allow_not_exist is set (the dependency list may still be on
	// the response). If a directory "foo/bar" is specified but this directory has no files,
	// this is considered to be a non-match.
	//
	// This field also interacts with file_types - if file_types is set, a path only matches
	// if it is also of the file type, and if there are no matching paths for the given FileTypes,
	// an error is returned unless paths_not_allow_exist is set.
	//
	// The path must be relative, and cannot contain any "." or ".." components
	// The separator "/" must be used.
	Paths []string `protobuf:"bytes,3,rep,name=paths,proto3" json:"paths,omitempty"`
	// Whether to allow file paths not to exist within the given module.
	//
	// For example, one may want to retrieve the file paths "buf.md" and "README.md",
	// but only expect one to actually exist.
	//
	// If false, it is an error to specify non-existent file paths.
	PathsAllowNotExist bool `protobuf:"varint,4,opt,name=paths_allow_not_exist,json=pathsAllowNotExist,proto3" json:"paths_allow_not_exist,omitempty"`
	// contains filtered or unexported fields
}

A request for content for a single reference.

func (*DownloadRequest_Value) Descriptor deprecated

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

Deprecated: Use DownloadRequest_Value.ProtoReflect.Descriptor instead.

func (*DownloadRequest_Value) GetFileTypes

func (x *DownloadRequest_Value) GetFileTypes() []FileType

func (*DownloadRequest_Value) GetPaths

func (x *DownloadRequest_Value) GetPaths() []string

func (*DownloadRequest_Value) GetPathsAllowNotExist

func (x *DownloadRequest_Value) GetPathsAllowNotExist() bool

func (*DownloadRequest_Value) GetResourceRef

func (x *DownloadRequest_Value) GetResourceRef() *ResourceRef

func (*DownloadRequest_Value) ProtoMessage

func (*DownloadRequest_Value) ProtoMessage()

func (*DownloadRequest_Value) ProtoReflect

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

func (*DownloadRequest_Value) Reset

func (x *DownloadRequest_Value) Reset()

func (*DownloadRequest_Value) String

func (x *DownloadRequest_Value) String() string

type DownloadResponse

type DownloadResponse struct {

	// The Contents of the references in the same order as requested.
	Contents []*DownloadResponse_Content `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadResponse) Descriptor deprecated

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

Deprecated: Use DownloadResponse.ProtoReflect.Descriptor instead.

func (*DownloadResponse) GetContents

func (x *DownloadResponse) GetContents() []*DownloadResponse_Content

func (*DownloadResponse) ProtoMessage

func (*DownloadResponse) ProtoMessage()

func (*DownloadResponse) ProtoReflect

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

func (*DownloadResponse) Reset

func (x *DownloadResponse) Reset()

func (*DownloadResponse) String

func (x *DownloadResponse) String() string

type DownloadResponse_Content

type DownloadResponse_Content struct {

	// The Commit associated with the Content.
	//
	// The Commit associated with this ID will be present in the commits field.
	//
	// The Commit will use the DigestType specified in the request value.
	Commit *Commit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
	// The Files of the content.
	//
	// This will consist of the .proto files, license files, and documentation files.
	//
	// If no paths match and paths_allow_not_exist is set, this may be empty.
	Files []*File `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

Content for a single Commit.

func (*DownloadResponse_Content) Descriptor deprecated

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

Deprecated: Use DownloadResponse_Content.ProtoReflect.Descriptor instead.

func (*DownloadResponse_Content) GetCommit

func (x *DownloadResponse_Content) GetCommit() *Commit

func (*DownloadResponse_Content) GetFiles

func (x *DownloadResponse_Content) GetFiles() []*File

func (*DownloadResponse_Content) ProtoMessage

func (*DownloadResponse_Content) ProtoMessage()

func (*DownloadResponse_Content) ProtoReflect

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

func (*DownloadResponse_Content) Reset

func (x *DownloadResponse_Content) Reset()

func (*DownloadResponse_Content) String

func (x *DownloadResponse_Content) String() string

type File

type File struct {

	// The path of the File.
	//
	// The path must be relative, and cannot contain any "." or ".." components.
	// The separator "/" must be used.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// The content of the File.
	//
	// May be empty.
	Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

A file that can be read or written to from disk.

A File includes a path and associated content. Files are purposefully simple, and do not include attributes such as permissions.

func (*File) Descriptor deprecated

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

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetContent

func (x *File) GetContent() []byte

func (*File) GetPath

func (x *File) GetPath() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

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

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

type FileType

type FileType int32

A specific file type.

const (
	FileType_FILE_TYPE_UNSPECIFIED FileType = 0
	// A .proto file.
	FileType_FILE_TYPE_PROTO FileType = 1
	// A documentation file.
	//
	// Documentation files are always named README.md, README.markdown, or buf.md.
	FileType_FILE_TYPE_DOC FileType = 2
	// A license file.
	//
	// License files are always named LICENSE.
	FileType_FILE_TYPE_LICENSE FileType = 3
)

func (FileType) Descriptor

func (FileType) Descriptor() protoreflect.EnumDescriptor

func (FileType) Enum

func (x FileType) Enum() *FileType

func (FileType) EnumDescriptor deprecated

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

Deprecated: Use FileType.Descriptor instead.

func (FileType) Number

func (x FileType) Number() protoreflect.EnumNumber

func (FileType) String

func (x FileType) String() string

func (FileType) Type

type GetCommitsRequest

type GetCommitsRequest struct {

	// References to request a Commit for.
	//
	// See the documentation on ResourceRef for resource resolution details.
	//
	// Resolution is as follows:
	//   - If a Module is referenced, the Commit of the default Label is returned.
	//   - If a Label is referenced, the Commit of this Label is returned.
	//   - If a Commit is referenced, this Commit is returned.
	ResourceRefs []*ResourceRef `protobuf:"bytes,1,rep,name=resource_refs,json=resourceRefs,proto3" json:"resource_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCommitsRequest) Descriptor deprecated

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

Deprecated: Use GetCommitsRequest.ProtoReflect.Descriptor instead.

func (*GetCommitsRequest) GetResourceRefs

func (x *GetCommitsRequest) GetResourceRefs() []*ResourceRef

func (*GetCommitsRequest) ProtoMessage

func (*GetCommitsRequest) ProtoMessage()

func (*GetCommitsRequest) ProtoReflect

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

func (*GetCommitsRequest) Reset

func (x *GetCommitsRequest) Reset()

func (*GetCommitsRequest) String

func (x *GetCommitsRequest) String() string

type GetCommitsResponse

type GetCommitsResponse struct {

	// The found Commits in the same order as requested.
	Commits []*Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCommitsResponse) Descriptor deprecated

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

Deprecated: Use GetCommitsResponse.ProtoReflect.Descriptor instead.

func (*GetCommitsResponse) GetCommits

func (x *GetCommitsResponse) GetCommits() []*Commit

func (*GetCommitsResponse) ProtoMessage

func (*GetCommitsResponse) ProtoMessage()

func (*GetCommitsResponse) ProtoReflect

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

func (*GetCommitsResponse) Reset

func (x *GetCommitsResponse) Reset()

func (*GetCommitsResponse) String

func (x *GetCommitsResponse) String() string

type GetGraphRequest

type GetGraphRequest struct {

	// The references to resolve to Commits to include in the graph.
	//
	// See the documentation on ResourceRef for resource resolution details.
	//
	// Once the resource is resolved, the following Commit is included:
	//   - If a Module is referenced, the Commit of the default Label is included.
	//   - If a Label is referenced, the Commit of this Label is included.
	//   - If a Commit is referenced, the Commit is included.
	//
	// The specified ResourceRefs must reference unique Modules, that is no two ResourceRefs
	// may resolve to the same Module.
	ResourceRefs []*ResourceRef `protobuf:"bytes,1,rep,name=resource_refs,json=resourceRefs,proto3" json:"resource_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGraphRequest) Descriptor deprecated

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

Deprecated: Use GetGraphRequest.ProtoReflect.Descriptor instead.

func (*GetGraphRequest) GetResourceRefs

func (x *GetGraphRequest) GetResourceRefs() []*ResourceRef

func (*GetGraphRequest) ProtoMessage

func (*GetGraphRequest) ProtoMessage()

func (*GetGraphRequest) ProtoReflect

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

func (*GetGraphRequest) Reset

func (x *GetGraphRequest) Reset()

func (*GetGraphRequest) String

func (x *GetGraphRequest) String() string

type GetGraphResponse

type GetGraphResponse struct {

	// The Graph calculated for the Commits.
	Graph *Graph `protobuf:"bytes,1,opt,name=graph,proto3" json:"graph,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGraphResponse) Descriptor deprecated

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

Deprecated: Use GetGraphResponse.ProtoReflect.Descriptor instead.

func (*GetGraphResponse) GetGraph

func (x *GetGraphResponse) GetGraph() *Graph

func (*GetGraphResponse) ProtoMessage

func (*GetGraphResponse) ProtoMessage()

func (*GetGraphResponse) ProtoReflect

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

func (*GetGraphResponse) Reset

func (x *GetGraphResponse) Reset()

func (*GetGraphResponse) String

func (x *GetGraphResponse) String() string

type GetLabelsRequest

type GetLabelsRequest struct {

	// The Labels to request.
	//
	// This may reference archived Labels.
	LabelRefs []*LabelRef `protobuf:"bytes,1,rep,name=label_refs,json=labelRefs,proto3" json:"label_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLabelsRequest) Descriptor deprecated

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

Deprecated: Use GetLabelsRequest.ProtoReflect.Descriptor instead.

func (*GetLabelsRequest) GetLabelRefs

func (x *GetLabelsRequest) GetLabelRefs() []*LabelRef

func (*GetLabelsRequest) ProtoMessage

func (*GetLabelsRequest) ProtoMessage()

func (*GetLabelsRequest) ProtoReflect

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

func (*GetLabelsRequest) Reset

func (x *GetLabelsRequest) Reset()

func (*GetLabelsRequest) String

func (x *GetLabelsRequest) String() string

type GetLabelsResponse

type GetLabelsResponse struct {

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

func (*GetLabelsResponse) Descriptor deprecated

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

Deprecated: Use GetLabelsResponse.ProtoReflect.Descriptor instead.

func (*GetLabelsResponse) GetLabels

func (x *GetLabelsResponse) GetLabels() []*Label

func (*GetLabelsResponse) ProtoMessage

func (*GetLabelsResponse) ProtoMessage()

func (*GetLabelsResponse) ProtoReflect

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

func (*GetLabelsResponse) Reset

func (x *GetLabelsResponse) Reset()

func (*GetLabelsResponse) String

func (x *GetLabelsResponse) String() string

type GetModulesRequest

type GetModulesRequest struct {

	// The Modules to request.
	ModuleRefs []*ModuleRef `protobuf:"bytes,1,rep,name=module_refs,json=moduleRefs,proto3" json:"module_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetModulesRequest) Descriptor deprecated

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

Deprecated: Use GetModulesRequest.ProtoReflect.Descriptor instead.

func (*GetModulesRequest) GetModuleRefs

func (x *GetModulesRequest) GetModuleRefs() []*ModuleRef

func (*GetModulesRequest) ProtoMessage

func (*GetModulesRequest) ProtoMessage()

func (*GetModulesRequest) ProtoReflect

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

func (*GetModulesRequest) Reset

func (x *GetModulesRequest) Reset()

func (*GetModulesRequest) String

func (x *GetModulesRequest) String() string

type GetModulesResponse

type GetModulesResponse struct {

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

func (*GetModulesResponse) Descriptor deprecated

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

Deprecated: Use GetModulesResponse.ProtoReflect.Descriptor instead.

func (*GetModulesResponse) GetModules

func (x *GetModulesResponse) GetModules() []*Module

func (*GetModulesResponse) ProtoMessage

func (*GetModulesResponse) ProtoMessage()

func (*GetModulesResponse) ProtoReflect

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

func (*GetModulesResponse) Reset

func (x *GetModulesResponse) Reset()

func (*GetModulesResponse) String

func (x *GetModulesResponse) String() string

type GetResourcesRequest

type GetResourcesRequest struct {

	// References to request a Resource for.
	//
	// See the documentation on ResourceRef for resource resolution details.
	ResourceRefs []*ResourceRef `protobuf:"bytes,1,rep,name=resource_refs,json=resourceRefs,proto3" json:"resource_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResourcesRequest) Descriptor deprecated

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

Deprecated: Use GetResourcesRequest.ProtoReflect.Descriptor instead.

func (*GetResourcesRequest) GetResourceRefs

func (x *GetResourcesRequest) GetResourceRefs() []*ResourceRef

func (*GetResourcesRequest) ProtoMessage

func (*GetResourcesRequest) ProtoMessage()

func (*GetResourcesRequest) ProtoReflect

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

func (*GetResourcesRequest) Reset

func (x *GetResourcesRequest) Reset()

func (*GetResourcesRequest) String

func (x *GetResourcesRequest) String() string

type GetResourcesResponse

type GetResourcesResponse struct {

	// The found Resources in the same order as requested.
	Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResourcesResponse) Descriptor deprecated

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

Deprecated: Use GetResourcesResponse.ProtoReflect.Descriptor instead.

func (*GetResourcesResponse) GetResources

func (x *GetResourcesResponse) GetResources() []*Resource

func (*GetResourcesResponse) ProtoMessage

func (*GetResourcesResponse) ProtoMessage()

func (*GetResourcesResponse) ProtoReflect

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

func (*GetResourcesResponse) Reset

func (x *GetResourcesResponse) Reset()

func (*GetResourcesResponse) String

func (x *GetResourcesResponse) String() string

type Graph

type Graph struct {

	// The nodes of the graph, each of which are Commits.
	Commits []*Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
	// The edges of the graph.
	Edges []*Graph_Edge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"`
	// contains filtered or unexported fields
}

A dependency graph.

func (*Graph) Descriptor deprecated

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

Deprecated: Use Graph.ProtoReflect.Descriptor instead.

func (*Graph) GetCommits

func (x *Graph) GetCommits() []*Commit

func (*Graph) GetEdges

func (x *Graph) GetEdges() []*Graph_Edge

func (*Graph) ProtoMessage

func (*Graph) ProtoMessage()

func (*Graph) ProtoReflect

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

func (*Graph) Reset

func (x *Graph) Reset()

func (*Graph) String

func (x *Graph) String() string

type Graph_Edge

type Graph_Edge struct {

	// The Node of the start of the edge.
	FromNode *Graph_Node `protobuf:"bytes,1,opt,name=from_node,json=fromNode,proto3" json:"from_node,omitempty"`
	// The Node of the end of the edge.
	ToNode *Graph_Node `protobuf:"bytes,2,opt,name=to_node,json=toNode,proto3" json:"to_node,omitempty"`
	// contains filtered or unexported fields
}

An edge in the dependency graph.

func (*Graph_Edge) Descriptor deprecated

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

Deprecated: Use Graph_Edge.ProtoReflect.Descriptor instead.

func (*Graph_Edge) GetFromNode

func (x *Graph_Edge) GetFromNode() *Graph_Node

func (*Graph_Edge) GetToNode

func (x *Graph_Edge) GetToNode() *Graph_Node

func (*Graph_Edge) ProtoMessage

func (*Graph_Edge) ProtoMessage()

func (*Graph_Edge) ProtoReflect

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

func (*Graph_Edge) Reset

func (x *Graph_Edge) Reset()

func (*Graph_Edge) String

func (x *Graph_Edge) String() string

type Graph_Node

type Graph_Node struct {

	// The commit of the node.
	CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
	// contains filtered or unexported fields
}

A node in the dependency graph.

func (*Graph_Node) Descriptor deprecated

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

Deprecated: Use Graph_Node.ProtoReflect.Descriptor instead.

func (*Graph_Node) GetCommitId

func (x *Graph_Node) GetCommitId() string

func (*Graph_Node) ProtoMessage

func (*Graph_Node) ProtoMessage()

func (*Graph_Node) ProtoReflect

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

func (*Graph_Node) Reset

func (x *Graph_Node) Reset()

func (*Graph_Node) String

func (x *Graph_Node) String() string

type Label

type Label struct {

	// The id of the Label.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The time the Label was created on the BSR.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The last time the Label was updated on the BSR.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The time the Label was archived if it is currently archived.
	//
	// If this field is not set, the Label is not currently archived.
	ArchiveTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=archive_time,json=archiveTime,proto3" json:"archive_time,omitempty"`
	// The name of the Label.
	//
	// Unique within a given Module.
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// The id of the User or Organization that owns the Module that the Label is associated with.
	OwnerId string `protobuf:"bytes,6,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	// The id of the Module that the Label is associated with.
	ModuleId string `protobuf:"bytes,7,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`
	// The id of the Commit currently associated with the Label.
	//
	// If policy checks are enabled, this will point to the most recent Commit that passed or was approved.
	// To get the history of the Commits that have been associated with a Label, use ListLabelHistory.
	CommitId string `protobuf:"bytes,8,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
	// The id of the User that last updated this Label on the BSR.
	//
	// May be empty if the User is no longer available.
	UpdatedByUserId string `protobuf:"bytes,9,opt,name=updated_by_user_id,json=updatedByUserId,proto3" json:"updated_by_user_id,omitempty"`
	// The CommitCheckState for the Commit the Label points to.
	//
	// The CommitCheckStatus will always be disabled, passed, or approved, since Labels will
	// never point to pending or rejected Commits.
	CommitCheckState *CommitCheckState `protobuf:"bytes,10,opt,name=commit_check_state,json=commitCheckState,proto3" json:"commit_check_state,omitempty"`
	// contains filtered or unexported fields
}

A label on a specific Module.

Many Labels can be associated with one Commit.

func (*Label) Descriptor deprecated

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

Deprecated: Use Label.ProtoReflect.Descriptor instead.

func (*Label) GetArchiveTime

func (x *Label) GetArchiveTime() *timestamppb.Timestamp

func (*Label) GetCommitCheckState

func (x *Label) GetCommitCheckState() *CommitCheckState

func (*Label) GetCommitId

func (x *Label) GetCommitId() string

func (*Label) GetCreateTime

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

func (*Label) GetId

func (x *Label) GetId() string

func (*Label) GetModuleId

func (x *Label) GetModuleId() string

func (*Label) GetName

func (x *Label) GetName() string

func (*Label) GetOwnerId

func (x *Label) GetOwnerId() string

func (*Label) GetUpdateTime

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

func (*Label) GetUpdatedByUserId

func (x *Label) GetUpdatedByUserId() string

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) ProtoReflect

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

func (*Label) Reset

func (x *Label) Reset()

func (*Label) String

func (x *Label) String() string

type LabelRef

type LabelRef struct {

	// Types that are assignable to Value:
	//
	//	*LabelRef_Id
	//	*LabelRef_Name_
	Value isLabelRef_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

LabelRef is a reference to a Label, either an id or a fully-qualified name.

This is used in requests.

func (*LabelRef) Descriptor deprecated

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

Deprecated: Use LabelRef.ProtoReflect.Descriptor instead.

func (*LabelRef) GetId

func (x *LabelRef) GetId() string

func (*LabelRef) GetName

func (x *LabelRef) GetName() *LabelRef_Name

func (*LabelRef) GetValue

func (m *LabelRef) GetValue() isLabelRef_Value

func (*LabelRef) ProtoMessage

func (*LabelRef) ProtoMessage()

func (*LabelRef) ProtoReflect

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

func (*LabelRef) Reset

func (x *LabelRef) Reset()

func (*LabelRef) String

func (x *LabelRef) String() string

type LabelRef_Id

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

type LabelRef_Name

type LabelRef_Name struct {

	// The name of the owner of the Module that contains the Label, either a User or Organization.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// The name of the Module that contains the Label, either a User or Organization.
	Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"`
	// The Label name.
	Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

The fully-qualified name of a Label within a BSR instance.

A Name uniquely identifies a Label. This is used for requests when a caller only has the label name and not the ID.

func (*LabelRef_Name) Descriptor deprecated

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

Deprecated: Use LabelRef_Name.ProtoReflect.Descriptor instead.

func (*LabelRef_Name) GetLabel

func (x *LabelRef_Name) GetLabel() string

func (*LabelRef_Name) GetModule

func (x *LabelRef_Name) GetModule() string

func (*LabelRef_Name) GetOwner

func (x *LabelRef_Name) GetOwner() string

func (*LabelRef_Name) ProtoMessage

func (*LabelRef_Name) ProtoMessage()

func (*LabelRef_Name) ProtoReflect

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

func (*LabelRef_Name) Reset

func (x *LabelRef_Name) Reset()

func (*LabelRef_Name) String

func (x *LabelRef_Name) String() string

type LabelRef_Name_

type LabelRef_Name_ struct {
	// The fully-qualified name of the Label.
	Name *LabelRef_Name `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

type ListCommitsRequest

type ListCommitsRequest 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 reference to list Commits for.
	//
	// See the documentation on Ref for resource resolution details.
	//
	// Once the resource is resolved, the following Commits are listed:
	//   - If a Module is referenced, all Commits for the Module are returned.
	//   - If a Label is referenced, the Commit the Label points to is returned.
	//     Use ListLabelHistory to get the history of Commits for a Label.
	//   - If a Commit is referenced, this Commit is returned.
	ResourceRef *ResourceRef `protobuf:"bytes,3,opt,name=resource_ref,json=resourceRef,proto3" json:"resource_ref,omitempty"`
	// The order to return the Commits.
	//
	// If not specified, defaults to ORDER_CREATE_TIME_DESC.
	Order ListCommitsRequest_Order `protobuf:"varint,4,opt,name=order,proto3,enum=buf.registry.module.v1.ListCommitsRequest_Order" json:"order,omitempty"`
	// Only return Commits with an id that contains this string using a case-insensitive comparison.
	IdQuery string `protobuf:"bytes,5,opt,name=id_query,json=idQuery,proto3" json:"id_query,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCommitsRequest) Descriptor deprecated

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

Deprecated: Use ListCommitsRequest.ProtoReflect.Descriptor instead.

func (*ListCommitsRequest) GetIdQuery

func (x *ListCommitsRequest) GetIdQuery() string

func (*ListCommitsRequest) GetOrder

func (*ListCommitsRequest) GetPageSize

func (x *ListCommitsRequest) GetPageSize() uint32

func (*ListCommitsRequest) GetPageToken

func (x *ListCommitsRequest) GetPageToken() string

func (*ListCommitsRequest) GetResourceRef

func (x *ListCommitsRequest) GetResourceRef() *ResourceRef

func (*ListCommitsRequest) ProtoMessage

func (*ListCommitsRequest) ProtoMessage()

func (*ListCommitsRequest) ProtoReflect

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

func (*ListCommitsRequest) Reset

func (x *ListCommitsRequest) Reset()

func (*ListCommitsRequest) String

func (x *ListCommitsRequest) String() string

type ListCommitsRequest_Order

type ListCommitsRequest_Order int32

The list order.

const (
	ListCommitsRequest_ORDER_UNSPECIFIED ListCommitsRequest_Order = 0
	// Order by create_time newest to oldest.
	ListCommitsRequest_ORDER_CREATE_TIME_DESC ListCommitsRequest_Order = 1
	// Order by create_time oldest to newest.
	ListCommitsRequest_ORDER_CREATE_TIME_ASC ListCommitsRequest_Order = 2
)

func (ListCommitsRequest_Order) Descriptor

func (ListCommitsRequest_Order) Enum

func (ListCommitsRequest_Order) EnumDescriptor deprecated

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

Deprecated: Use ListCommitsRequest_Order.Descriptor instead.

func (ListCommitsRequest_Order) Number

func (ListCommitsRequest_Order) String

func (x ListCommitsRequest_Order) String() string

func (ListCommitsRequest_Order) Type

type ListCommitsResponse

type ListCommitsResponse 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 Commits.
	Commits []*Commit `protobuf:"bytes,2,rep,name=commits,proto3" json:"commits,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCommitsResponse) Descriptor deprecated

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

Deprecated: Use ListCommitsResponse.ProtoReflect.Descriptor instead.

func (*ListCommitsResponse) GetCommits

func (x *ListCommitsResponse) GetCommits() []*Commit

func (*ListCommitsResponse) GetNextPageToken

func (x *ListCommitsResponse) GetNextPageToken() string

func (*ListCommitsResponse) ProtoMessage

func (*ListCommitsResponse) ProtoMessage()

func (*ListCommitsResponse) ProtoReflect

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

func (*ListCommitsResponse) Reset

func (x *ListCommitsResponse) Reset()

func (*ListCommitsResponse) String

func (x *ListCommitsResponse) String() string

type ListLabelHistoryRequest

type ListLabelHistoryRequest 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 Label to list history for.
	//
	// This may reference archived Labels.
	LabelRef *LabelRef `protobuf:"bytes,3,opt,name=label_ref,json=labelRef,proto3" json:"label_ref,omitempty"`
	// The order to list the Labels.
	//
	// If not specified, defaults to ORDER_DESC.
	Order ListLabelHistoryRequest_Order `protobuf:"varint,4,opt,name=order,proto3,enum=buf.registry.module.v1.ListLabelHistoryRequest_Order" json:"order,omitempty"`
	// Only return Commits that have one of these CommitCheckStatus values for this label.
	//
	// If not set, Commits with any CommitCheckStatus value are returned.
	CommitCheckStatuses []CommitCheckStatus `` /* 174-byte string literal not displayed */
	// The Commit id to start from.
	//
	// It is an error to provide a Commit id that doesn't exist on the Label.
	StartCommitId string `protobuf:"bytes,6,opt,name=start_commit_id,json=startCommitId,proto3" json:"start_commit_id,omitempty"`
	// Only list Commits where the Digest has changed from the previous Commit in the
	// history of this Label.
	OnlyCommitsWithChangedDigests bool `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListLabelHistoryRequest) Descriptor deprecated

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

Deprecated: Use ListLabelHistoryRequest.ProtoReflect.Descriptor instead.

func (*ListLabelHistoryRequest) GetCommitCheckStatuses

func (x *ListLabelHistoryRequest) GetCommitCheckStatuses() []CommitCheckStatus

func (*ListLabelHistoryRequest) GetLabelRef

func (x *ListLabelHistoryRequest) GetLabelRef() *LabelRef

func (*ListLabelHistoryRequest) GetOnlyCommitsWithChangedDigests

func (x *ListLabelHistoryRequest) GetOnlyCommitsWithChangedDigests() bool

func (*ListLabelHistoryRequest) GetOrder

func (*ListLabelHistoryRequest) GetPageSize

func (x *ListLabelHistoryRequest) GetPageSize() uint32

func (*ListLabelHistoryRequest) GetPageToken

func (x *ListLabelHistoryRequest) GetPageToken() string

func (*ListLabelHistoryRequest) GetStartCommitId

func (x *ListLabelHistoryRequest) GetStartCommitId() string

func (*ListLabelHistoryRequest) ProtoMessage

func (*ListLabelHistoryRequest) ProtoMessage()

func (*ListLabelHistoryRequest) ProtoReflect

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

func (*ListLabelHistoryRequest) Reset

func (x *ListLabelHistoryRequest) Reset()

func (*ListLabelHistoryRequest) String

func (x *ListLabelHistoryRequest) String() string

type ListLabelHistoryRequest_Order

type ListLabelHistoryRequest_Order int32

The list order.

const (
	ListLabelHistoryRequest_ORDER_UNSPECIFIED ListLabelHistoryRequest_Order = 0
	// Order by association time newest to oldest.
	//
	// The Commits most recently associated with the Label will be listed first.
	ListLabelHistoryRequest_ORDER_DESC ListLabelHistoryRequest_Order = 1
	// Order by association time oldest to newest.
	ListLabelHistoryRequest_ORDER_ASC ListLabelHistoryRequest_Order = 2
)

func (ListLabelHistoryRequest_Order) Descriptor

func (ListLabelHistoryRequest_Order) Enum

func (ListLabelHistoryRequest_Order) EnumDescriptor deprecated

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

Deprecated: Use ListLabelHistoryRequest_Order.Descriptor instead.

func (ListLabelHistoryRequest_Order) Number

func (ListLabelHistoryRequest_Order) String

func (ListLabelHistoryRequest_Order) Type

type ListLabelHistoryResponse

type ListLabelHistoryResponse 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 ordered history of the Label.
	Values []*ListLabelHistoryResponse_Value `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLabelHistoryResponse) Descriptor deprecated

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

Deprecated: Use ListLabelHistoryResponse.ProtoReflect.Descriptor instead.

func (*ListLabelHistoryResponse) GetNextPageToken

func (x *ListLabelHistoryResponse) GetNextPageToken() string

func (*ListLabelHistoryResponse) GetValues

func (*ListLabelHistoryResponse) ProtoMessage

func (*ListLabelHistoryResponse) ProtoMessage()

func (*ListLabelHistoryResponse) ProtoReflect

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

func (*ListLabelHistoryResponse) Reset

func (x *ListLabelHistoryResponse) Reset()

func (*ListLabelHistoryResponse) String

func (x *ListLabelHistoryResponse) String() string

type ListLabelHistoryResponse_Value

type ListLabelHistoryResponse_Value struct {

	// The Commit.
	Commit *Commit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
	// The CommitCheckState for this Commit on this Label.
	CommitCheckState *CommitCheckState `protobuf:"bytes,2,opt,name=commit_check_state,json=commitCheckState,proto3" json:"commit_check_state,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLabelHistoryResponse_Value) Descriptor deprecated

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

Deprecated: Use ListLabelHistoryResponse_Value.ProtoReflect.Descriptor instead.

func (*ListLabelHistoryResponse_Value) GetCommit

func (x *ListLabelHistoryResponse_Value) GetCommit() *Commit

func (*ListLabelHistoryResponse_Value) GetCommitCheckState

func (x *ListLabelHistoryResponse_Value) GetCommitCheckState() *CommitCheckState

func (*ListLabelHistoryResponse_Value) ProtoMessage

func (*ListLabelHistoryResponse_Value) ProtoMessage()

func (*ListLabelHistoryResponse_Value) ProtoReflect

func (*ListLabelHistoryResponse_Value) Reset

func (x *ListLabelHistoryResponse_Value) Reset()

func (*ListLabelHistoryResponse_Value) String

type ListLabelsRequest

type ListLabelsRequest 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 reference to list Labels for.
	//
	// See the documentation on Ref for resource resolution details.
	//
	// Once the resource is resolved, the following Labels are listed:
	//   - If a Module is referenced, all Labels for the Module are returned.
	//   - If a Label is referenced, this Label is returned.
	//   - If a Commit is referenced, all Labels that currently point to the Commit are returned. Note that
	//     Labels only point to passed or approved Commits, or Commits where policy checks were disabled.
	ResourceRef *ResourceRef `protobuf:"bytes,3,opt,name=resource_ref,json=resourceRef,proto3" json:"resource_ref,omitempty"`
	// The order to return the Labels.
	//
	// If not specified, defaults to ORDER_CREATE_TIME_DESC.
	Order ListLabelsRequest_Order `protobuf:"varint,4,opt,name=order,proto3,enum=buf.registry.module.v1.ListLabelsRequest_Order" json:"order,omitempty"`
	// Only return Labels that point to a Commit with one of these CommitCheckStatus values.
	//
	// If not set, Labels that point to a Commit with any CommitCheckStatus value are returned.
	//
	// It is an error to filter on CommitCheckStatuses of pending or rejected, as Labels will only
	// point to Commits that are passed or approved, or that have policy checks disabled.
	CommitCheckStatuses []CommitCheckStatus `` /* 174-byte string literal not displayed */
	// Only return Labels with a name that contains this string using a case-insensitive comparison.
	NameQuery string `protobuf:"bytes,6,opt,name=name_query,json=nameQuery,proto3" json:"name_query,omitempty"`
	// The archive filter on the returned Labels.
	//
	// If not specified, defaults to ARCHIVE_FILTER_UNARCHIVED_ONLY.
	ArchiveFilter ListLabelsRequest_ArchiveFilter `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListLabelsRequest) Descriptor deprecated

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

Deprecated: Use ListLabelsRequest.ProtoReflect.Descriptor instead.

func (*ListLabelsRequest) GetArchiveFilter

func (x *ListLabelsRequest) GetArchiveFilter() ListLabelsRequest_ArchiveFilter

func (*ListLabelsRequest) GetCommitCheckStatuses

func (x *ListLabelsRequest) GetCommitCheckStatuses() []CommitCheckStatus

func (*ListLabelsRequest) GetNameQuery

func (x *ListLabelsRequest) GetNameQuery() string

func (*ListLabelsRequest) GetOrder

func (*ListLabelsRequest) GetPageSize

func (x *ListLabelsRequest) GetPageSize() uint32

func (*ListLabelsRequest) GetPageToken

func (x *ListLabelsRequest) GetPageToken() string

func (*ListLabelsRequest) GetResourceRef

func (x *ListLabelsRequest) GetResourceRef() *ResourceRef

func (*ListLabelsRequest) ProtoMessage

func (*ListLabelsRequest) ProtoMessage()

func (*ListLabelsRequest) ProtoReflect

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

func (*ListLabelsRequest) Reset

func (x *ListLabelsRequest) Reset()

func (*ListLabelsRequest) String

func (x *ListLabelsRequest) String() string

type ListLabelsRequest_ArchiveFilter

type ListLabelsRequest_ArchiveFilter int32

A filter on whether a Label is archived or not.

const (
	ListLabelsRequest_ARCHIVE_FILTER_UNSPECIFIED ListLabelsRequest_ArchiveFilter = 0
	// Return only unarchived labels.
	ListLabelsRequest_ARCHIVE_FILTER_UNARCHIVED_ONLY ListLabelsRequest_ArchiveFilter = 1
	// Return only archived labels.
	ListLabelsRequest_ARCHIVE_FILTER_ARCHIVED_ONLY ListLabelsRequest_ArchiveFilter = 2
	// Return both archived and unarchived labels.
	ListLabelsRequest_ARCHIVE_FILTER_ALL ListLabelsRequest_ArchiveFilter = 3
)

func (ListLabelsRequest_ArchiveFilter) Descriptor

func (ListLabelsRequest_ArchiveFilter) Enum

func (ListLabelsRequest_ArchiveFilter) EnumDescriptor deprecated

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

Deprecated: Use ListLabelsRequest_ArchiveFilter.Descriptor instead.

func (ListLabelsRequest_ArchiveFilter) Number

func (ListLabelsRequest_ArchiveFilter) String

func (ListLabelsRequest_ArchiveFilter) Type

type ListLabelsRequest_Order

type ListLabelsRequest_Order int32

The list order.

const (
	ListLabelsRequest_ORDER_UNSPECIFIED ListLabelsRequest_Order = 0
	// Order by create_time newest to oldest.
	ListLabelsRequest_ORDER_CREATE_TIME_DESC ListLabelsRequest_Order = 1
	// Order by create_time oldest to newest.
	ListLabelsRequest_ORDER_CREATE_TIME_ASC ListLabelsRequest_Order = 2
)

func (ListLabelsRequest_Order) Descriptor

func (ListLabelsRequest_Order) Enum

func (ListLabelsRequest_Order) EnumDescriptor deprecated

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

Deprecated: Use ListLabelsRequest_Order.Descriptor instead.

func (ListLabelsRequest_Order) Number

func (ListLabelsRequest_Order) String

func (x ListLabelsRequest_Order) String() string

func (ListLabelsRequest_Order) Type

type ListLabelsResponse

type ListLabelsResponse 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 Labels.
	Labels []*Label `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLabelsResponse) Descriptor deprecated

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

Deprecated: Use ListLabelsResponse.ProtoReflect.Descriptor instead.

func (*ListLabelsResponse) GetLabels

func (x *ListLabelsResponse) GetLabels() []*Label

func (*ListLabelsResponse) GetNextPageToken

func (x *ListLabelsResponse) GetNextPageToken() string

func (*ListLabelsResponse) ProtoMessage

func (*ListLabelsResponse) ProtoMessage()

func (*ListLabelsResponse) ProtoReflect

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

func (*ListLabelsResponse) Reset

func (x *ListLabelsResponse) Reset()

func (*ListLabelsResponse) String

func (x *ListLabelsResponse) String() string

type ListModulesRequest

type ListModulesRequest 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 Users or Organizations to list Modules for.
	//
	// If empty, all Modules for all owners are listed, but this functionality
	// is limited to Users with the necessary permissions.
	OwnerRefs []*v1.OwnerRef `protobuf:"bytes,3,rep,name=owner_refs,json=ownerRefs,proto3" json:"owner_refs,omitempty"`
	// The order to return the Modules.
	//
	// If not specified, defaults to ORDER_CREATE_TIME_DESC.
	Order ListModulesRequest_Order `protobuf:"varint,4,opt,name=order,proto3,enum=buf.registry.module.v1.ListModulesRequest_Order" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*ListModulesRequest) Descriptor deprecated

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

Deprecated: Use ListModulesRequest.ProtoReflect.Descriptor instead.

func (*ListModulesRequest) GetOrder

func (*ListModulesRequest) GetOwnerRefs

func (x *ListModulesRequest) GetOwnerRefs() []*v1.OwnerRef

func (*ListModulesRequest) GetPageSize

func (x *ListModulesRequest) GetPageSize() uint32

func (*ListModulesRequest) GetPageToken

func (x *ListModulesRequest) GetPageToken() string

func (*ListModulesRequest) ProtoMessage

func (*ListModulesRequest) ProtoMessage()

func (*ListModulesRequest) ProtoReflect

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

func (*ListModulesRequest) Reset

func (x *ListModulesRequest) Reset()

func (*ListModulesRequest) String

func (x *ListModulesRequest) String() string

type ListModulesRequest_Order

type ListModulesRequest_Order int32

The list order.

const (
	ListModulesRequest_ORDER_UNSPECIFIED ListModulesRequest_Order = 0
	// Order by create_time newest to oldest.
	ListModulesRequest_ORDER_CREATE_TIME_DESC ListModulesRequest_Order = 1
	// Order by create_time oldest to newest.
	ListModulesRequest_ORDER_CREATE_TIME_ASC ListModulesRequest_Order = 2
)

func (ListModulesRequest_Order) Descriptor

func (ListModulesRequest_Order) Enum

func (ListModulesRequest_Order) EnumDescriptor deprecated

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

Deprecated: Use ListModulesRequest_Order.Descriptor instead.

func (ListModulesRequest_Order) Number

func (ListModulesRequest_Order) String

func (x ListModulesRequest_Order) String() string

func (ListModulesRequest_Order) Type

type ListModulesResponse

type ListModulesResponse 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 Modules.
	Modules []*Module `protobuf:"bytes,2,rep,name=modules,proto3" json:"modules,omitempty"`
	// contains filtered or unexported fields
}

func (*ListModulesResponse) Descriptor deprecated

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

Deprecated: Use ListModulesResponse.ProtoReflect.Descriptor instead.

func (*ListModulesResponse) GetModules

func (x *ListModulesResponse) GetModules() []*Module

func (*ListModulesResponse) GetNextPageToken

func (x *ListModulesResponse) GetNextPageToken() string

func (*ListModulesResponse) ProtoMessage

func (*ListModulesResponse) ProtoMessage()

func (*ListModulesResponse) ProtoReflect

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

func (*ListModulesResponse) Reset

func (x *ListModulesResponse) Reset()

func (*ListModulesResponse) String

func (x *ListModulesResponse) String() string

type Module

type Module struct {

	// The id of the Module.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The time the Module was created on the BSR.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The last time the Module was updated on the BSR.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The name of the Module.
	//
	// Unique within a given User or Organization.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// The id of the User or Organization that owns the Module.
	OwnerId string `protobuf:"bytes,5,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	// The Module's visibility, either public or private.
	Visibility ModuleVisibility `protobuf:"varint,6,opt,name=visibility,proto3,enum=buf.registry.module.v1.ModuleVisibility" json:"visibility,omitempty"`
	// The Module state, either active or deprecated.
	State ModuleState `protobuf:"varint,7,opt,name=state,proto3,enum=buf.registry.module.v1.ModuleState" json:"state,omitempty"`
	// The configurable description of the Module.
	Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	// The configurable URL in the description of the Module,
	Url string `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"`
	// The name of the default Label of the Module.
	//
	// This Label may not yet exist. When a Module is created, it has no Commits, and Labels
	// must have a Commit, so this Label is not created when a Module is created. Additionally,
	// a User may modify the name of the default Label without this Label yet being created.
	//
	// This could also be the name of an archived Label.
	DefaultLabelName string `protobuf:"bytes,10,opt,name=default_label_name,json=defaultLabelName,proto3" json:"default_label_name,omitempty"`
	// contains filtered or unexported fields
}

A module within the BSR.

func (*Module) Descriptor deprecated

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

Deprecated: Use Module.ProtoReflect.Descriptor instead.

func (*Module) GetCreateTime

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

func (*Module) GetDefaultLabelName

func (x *Module) GetDefaultLabelName() string

func (*Module) GetDescription

func (x *Module) GetDescription() string

func (*Module) GetId

func (x *Module) GetId() string

func (*Module) GetName

func (x *Module) GetName() string

func (*Module) GetOwnerId

func (x *Module) GetOwnerId() string

func (*Module) GetState

func (x *Module) GetState() ModuleState

func (*Module) GetUpdateTime

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

func (*Module) GetUrl

func (x *Module) GetUrl() string

func (*Module) GetVisibility

func (x *Module) GetVisibility() ModuleVisibility

func (*Module) ProtoMessage

func (*Module) ProtoMessage()

func (*Module) ProtoReflect

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

func (*Module) Reset

func (x *Module) Reset()

func (*Module) String

func (x *Module) String() string

type ModuleRef

type ModuleRef struct {

	// Types that are assignable to Value:
	//
	//	*ModuleRef_Id
	//	*ModuleRef_Name_
	Value isModuleRef_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

ModuleRef is a reference to a Module, either an id or a fully-qualified name.

This is used in requests.

func (*ModuleRef) Descriptor deprecated

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

Deprecated: Use ModuleRef.ProtoReflect.Descriptor instead.

func (*ModuleRef) GetId

func (x *ModuleRef) GetId() string

func (*ModuleRef) GetName

func (x *ModuleRef) GetName() *ModuleRef_Name

func (*ModuleRef) GetValue

func (m *ModuleRef) GetValue() isModuleRef_Value

func (*ModuleRef) ProtoMessage

func (*ModuleRef) ProtoMessage()

func (*ModuleRef) ProtoReflect

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

func (*ModuleRef) Reset

func (x *ModuleRef) Reset()

func (*ModuleRef) String

func (x *ModuleRef) String() string

type ModuleRef_Id

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

type ModuleRef_Name

type ModuleRef_Name struct {

	// The name of the owner of the Module, either a User or Organization.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// The name of the Module.
	Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"`
	// contains filtered or unexported fields
}

The fully-qualified name of a Module within a BSR instance.

A Name uniquely identifies a Module. This is used for requests when a caller only has the module name and not the ID.

func (*ModuleRef_Name) Descriptor deprecated

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

Deprecated: Use ModuleRef_Name.ProtoReflect.Descriptor instead.

func (*ModuleRef_Name) GetModule

func (x *ModuleRef_Name) GetModule() string

func (*ModuleRef_Name) GetOwner

func (x *ModuleRef_Name) GetOwner() string

func (*ModuleRef_Name) ProtoMessage

func (*ModuleRef_Name) ProtoMessage()

func (*ModuleRef_Name) ProtoReflect

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

func (*ModuleRef_Name) Reset

func (x *ModuleRef_Name) Reset()

func (*ModuleRef_Name) String

func (x *ModuleRef_Name) String() string

type ModuleRef_Name_

type ModuleRef_Name_ struct {
	// The fully-qualified name of the Module.
	Name *ModuleRef_Name `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

type ModuleState

type ModuleState int32

The state of a Module, currently either active or deprecated.

const (
	ModuleState_MODULE_STATE_UNSPECIFIED ModuleState = 0
	// MODULE_STATE_ACTIVE says that the Module is currently active.
	ModuleState_MODULE_STATE_ACTIVE ModuleState = 1
	// MODULE_STATE_DEPRECATED says that the Module has been deprecated and should not longer be
	// used.
	ModuleState_MODULE_STATE_DEPRECATED ModuleState = 2
)

func (ModuleState) Descriptor

func (ModuleState) Enum

func (x ModuleState) Enum() *ModuleState

func (ModuleState) EnumDescriptor deprecated

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

Deprecated: Use ModuleState.Descriptor instead.

func (ModuleState) Number

func (x ModuleState) Number() protoreflect.EnumNumber

func (ModuleState) String

func (x ModuleState) String() string

func (ModuleState) Type

type ModuleVisibility

type ModuleVisibility int32

The visibility of a Module, currently either public or private.

const (
	ModuleVisibility_MODULE_VISIBILITY_UNSPECIFIED ModuleVisibility = 0
	// MODULE_VISIBILITY_PUBLIC says that the module is publicly available.
	ModuleVisibility_MODULE_VISIBILITY_PUBLIC ModuleVisibility = 1
	// MODULE_VISIBILITY_PRIVATE says that the module is private.
	ModuleVisibility_MODULE_VISIBILITY_PRIVATE ModuleVisibility = 2
)

func (ModuleVisibility) Descriptor

func (ModuleVisibility) Enum

func (ModuleVisibility) EnumDescriptor deprecated

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

Deprecated: Use ModuleVisibility.Descriptor instead.

func (ModuleVisibility) Number

func (ModuleVisibility) String

func (x ModuleVisibility) String() string

func (ModuleVisibility) Type

type Resource

type Resource struct {

	// Types that are assignable to Value:
	//
	//	*Resource_Module
	//	*Resource_Label
	//	*Resource_Commit
	Value isResource_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

A Module, Label, or Commit.

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetCommit

func (x *Resource) GetCommit() *Commit

func (*Resource) GetLabel

func (x *Resource) GetLabel() *Label

func (*Resource) GetModule

func (x *Resource) GetModule() *Module

func (*Resource) GetValue

func (m *Resource) GetValue() isResource_Value

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

type ResourceRef

type ResourceRef struct {

	// Types that are assignable to Value:
	//
	//	*ResourceRef_Id
	//	*ResourceRef_Name_
	Value isResourceRef_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

A reference to any of:

  • Module
  • Label
  • Commit

The id or name is resolved to a specific resource. If an id is passed, this is interpreted as being the id of the resource. If a name is passed, the semantics according to ResourceRef.Name are applied.

ResourceRefs can only be used in requests, and only for read-only RPCs, that is you should not use an arbitrary reference when modifying a specific resource.

func (*ResourceRef) Descriptor deprecated

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

Deprecated: Use ResourceRef.ProtoReflect.Descriptor instead.

func (*ResourceRef) GetId

func (x *ResourceRef) GetId() string

func (*ResourceRef) GetName

func (x *ResourceRef) GetName() *ResourceRef_Name

func (*ResourceRef) GetValue

func (m *ResourceRef) GetValue() isResourceRef_Value

func (*ResourceRef) ProtoMessage

func (*ResourceRef) ProtoMessage()

func (*ResourceRef) ProtoReflect

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

func (*ResourceRef) Reset

func (x *ResourceRef) Reset()

func (*ResourceRef) String

func (x *ResourceRef) String() string

type ResourceRef_Id

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

type ResourceRef_Name

type ResourceRef_Name struct {

	// The name of the User or Organization that owns the resource.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// The name of the Module the contains or is the resource.
	Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"`
	// If the oneof is present but empty, this should be treated as not present.
	//
	// Types that are assignable to Child:
	//
	//	*ResourceRef_Name_LabelName
	//	*ResourceRef_Name_Ref
	Child isResourceRef_Name_Child `protobuf_oneof:"child"`
	// contains filtered or unexported fields
}

The fully-qualified name component of a ResourceRef.

The following semantics are applied:

  • If the child oneof is not specified, the name is interpreted to reference a Module.
  • If label_name is specified, the name is interpreted to reference a Label.
  • If ref is specified, it is interpreted to be either an id or name.
  • If an id, this is equivalent to setting the id field on ResourceRef. However, backends can choose to validate that the owner and module fields match the resource referenced, as additional validation.
  • If a name, this is interpreted to be a Label name.
  • If there is a conflict between names across resources (for example, there is a Commit id and Label name of the same value), the following order of precedence is applied:
  • Commit
  • Label

Names can only be used in requests, and only for read-only RPCs, that is you should not use an arbitrary reference when modifying a specific resource.

func (*ResourceRef_Name) Descriptor deprecated

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

Deprecated: Use ResourceRef_Name.ProtoReflect.Descriptor instead.

func (*ResourceRef_Name) GetChild

func (m *ResourceRef_Name) GetChild() isResourceRef_Name_Child

func (*ResourceRef_Name) GetLabelName

func (x *ResourceRef_Name) GetLabelName() string

func (*ResourceRef_Name) GetModule

func (x *ResourceRef_Name) GetModule() string

func (*ResourceRef_Name) GetOwner

func (x *ResourceRef_Name) GetOwner() string

func (*ResourceRef_Name) GetRef

func (x *ResourceRef_Name) GetRef() string

func (*ResourceRef_Name) ProtoMessage

func (*ResourceRef_Name) ProtoMessage()

func (*ResourceRef_Name) ProtoReflect

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

func (*ResourceRef_Name) Reset

func (x *ResourceRef_Name) Reset()

func (*ResourceRef_Name) String

func (x *ResourceRef_Name) String() string

type ResourceRef_Name_

type ResourceRef_Name_ struct {
	// The fully-qualified name of the resource.
	Name *ResourceRef_Name `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

type ResourceRef_Name_LabelName

type ResourceRef_Name_LabelName struct {
	// The name of the Label.
	//
	// If this value is present but empty, this should be treated as not present, that is
	// an empty value is the same as a null value.
	LabelName string `protobuf:"bytes,3,opt,name=label_name,json=labelName,proto3,oneof"`
}

type ResourceRef_Name_Ref

type ResourceRef_Name_Ref struct {
	// The untyped reference, applying the semantics as documented on the Name message.
	//
	// If this value is present but empty, this should be treated as not present, that is
	// an empty value is the same as a null value.
	Ref string `protobuf:"bytes,4,opt,name=ref,proto3,oneof"`
}

type Resource_Commit

type Resource_Commit struct {
	Commit *Commit `protobuf:"bytes,3,opt,name=commit,proto3,oneof"`
}

type Resource_Label

type Resource_Label struct {
	Label *Label `protobuf:"bytes,2,opt,name=label,proto3,oneof"`
}

type Resource_Module

type Resource_Module struct {
	Module *Module `protobuf:"bytes,1,opt,name=module,proto3,oneof"`
}

type ScopedLabelRef

type ScopedLabelRef struct {

	// Types that are assignable to Value:
	//
	//	*ScopedLabelRef_Id
	//	*ScopedLabelRef_Name
	Value isScopedLabelRef_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

A reference to a Label scoped to a Module, either an id or a name.

This is used in requests.

func (*ScopedLabelRef) Descriptor deprecated

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

Deprecated: Use ScopedLabelRef.ProtoReflect.Descriptor instead.

func (*ScopedLabelRef) GetId

func (x *ScopedLabelRef) GetId() string

func (*ScopedLabelRef) GetName

func (x *ScopedLabelRef) GetName() string

func (*ScopedLabelRef) GetValue

func (m *ScopedLabelRef) GetValue() isScopedLabelRef_Value

func (*ScopedLabelRef) ProtoMessage

func (*ScopedLabelRef) ProtoMessage()

func (*ScopedLabelRef) ProtoReflect

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

func (*ScopedLabelRef) Reset

func (x *ScopedLabelRef) Reset()

func (*ScopedLabelRef) String

func (x *ScopedLabelRef) String() string

type ScopedLabelRef_Id

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

type ScopedLabelRef_Name

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

type UnarchiveLabelsRequest

type UnarchiveLabelsRequest struct {

	// The Labels to unarchive.
	LabelRefs []*LabelRef `protobuf:"bytes,1,rep,name=label_refs,json=labelRefs,proto3" json:"label_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*UnarchiveLabelsRequest) Descriptor deprecated

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

Deprecated: Use UnarchiveLabelsRequest.ProtoReflect.Descriptor instead.

func (*UnarchiveLabelsRequest) GetLabelRefs

func (x *UnarchiveLabelsRequest) GetLabelRefs() []*LabelRef

func (*UnarchiveLabelsRequest) ProtoMessage

func (*UnarchiveLabelsRequest) ProtoMessage()

func (*UnarchiveLabelsRequest) ProtoReflect

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

func (*UnarchiveLabelsRequest) Reset

func (x *UnarchiveLabelsRequest) Reset()

func (*UnarchiveLabelsRequest) String

func (x *UnarchiveLabelsRequest) String() string

type UnarchiveLabelsResponse

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

func (*UnarchiveLabelsResponse) Descriptor deprecated

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

Deprecated: Use UnarchiveLabelsResponse.ProtoReflect.Descriptor instead.

func (*UnarchiveLabelsResponse) ProtoMessage

func (*UnarchiveLabelsResponse) ProtoMessage()

func (*UnarchiveLabelsResponse) ProtoReflect

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

func (*UnarchiveLabelsResponse) Reset

func (x *UnarchiveLabelsResponse) Reset()

func (*UnarchiveLabelsResponse) String

func (x *UnarchiveLabelsResponse) String() string

type UpdateModulesRequest

type UpdateModulesRequest struct {

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

func (*UpdateModulesRequest) Descriptor deprecated

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

Deprecated: Use UpdateModulesRequest.ProtoReflect.Descriptor instead.

func (*UpdateModulesRequest) GetValues

func (*UpdateModulesRequest) ProtoMessage

func (*UpdateModulesRequest) ProtoMessage()

func (*UpdateModulesRequest) ProtoReflect

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

func (*UpdateModulesRequest) Reset

func (x *UpdateModulesRequest) Reset()

func (*UpdateModulesRequest) String

func (x *UpdateModulesRequest) String() string

type UpdateModulesRequest_Value

type UpdateModulesRequest_Value struct {

	// The Module to update.
	ModuleRef *ModuleRef `protobuf:"bytes,1,opt,name=module_ref,json=moduleRef,proto3" json:"module_ref,omitempty"`
	// The module's visibility.
	Visibility *ModuleVisibility `protobuf:"varint,3,opt,name=visibility,proto3,enum=buf.registry.module.v1.ModuleVisibility,oneof" json:"visibility,omitempty"`
	// The deprecation status of the module.
	State *ModuleState `protobuf:"varint,4,opt,name=state,proto3,enum=buf.registry.module.v1.ModuleState,oneof" json:"state,omitempty"`
	// The configurable description of the module.
	Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// The configurable URL in the description of the module.
	Url *string `protobuf:"bytes,6,opt,name=url,proto3,oneof" json:"url,omitempty"`
	// The name of the default Label of the Module.
	//
	// This Label may not yet exist.
	//
	// This may point to an archived Label.
	DefaultLabelName *string `protobuf:"bytes,7,opt,name=default_label_name,json=defaultLabelName,proto3,oneof" json:"default_label_name,omitempty"`
	// contains filtered or unexported fields
}

An individual request to update a Module.

func (*UpdateModulesRequest_Value) Descriptor deprecated

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

Deprecated: Use UpdateModulesRequest_Value.ProtoReflect.Descriptor instead.

func (*UpdateModulesRequest_Value) GetDefaultLabelName

func (x *UpdateModulesRequest_Value) GetDefaultLabelName() string

func (*UpdateModulesRequest_Value) GetDescription

func (x *UpdateModulesRequest_Value) GetDescription() string

func (*UpdateModulesRequest_Value) GetModuleRef

func (x *UpdateModulesRequest_Value) GetModuleRef() *ModuleRef

func (*UpdateModulesRequest_Value) GetState

func (*UpdateModulesRequest_Value) GetUrl

func (x *UpdateModulesRequest_Value) GetUrl() string

func (*UpdateModulesRequest_Value) GetVisibility

func (x *UpdateModulesRequest_Value) GetVisibility() ModuleVisibility

func (*UpdateModulesRequest_Value) ProtoMessage

func (*UpdateModulesRequest_Value) ProtoMessage()

func (*UpdateModulesRequest_Value) ProtoReflect

func (*UpdateModulesRequest_Value) Reset

func (x *UpdateModulesRequest_Value) Reset()

func (*UpdateModulesRequest_Value) String

func (x *UpdateModulesRequest_Value) String() string

type UpdateModulesResponse

type UpdateModulesResponse struct {

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

func (*UpdateModulesResponse) Descriptor deprecated

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

Deprecated: Use UpdateModulesResponse.ProtoReflect.Descriptor instead.

func (*UpdateModulesResponse) GetModules

func (x *UpdateModulesResponse) GetModules() []*Module

func (*UpdateModulesResponse) ProtoMessage

func (*UpdateModulesResponse) ProtoMessage()

func (*UpdateModulesResponse) ProtoReflect

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

func (*UpdateModulesResponse) Reset

func (x *UpdateModulesResponse) Reset()

func (*UpdateModulesResponse) String

func (x *UpdateModulesResponse) String() string

type UploadRequest

type UploadRequest struct {

	// The Contents of all references.
	Contents []*UploadRequest_Content `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"`
	// The dependencies of the references specified by Contents.
	//
	// Dependencies between Contents are implicit and do not need to be specified. The BSR will detect
	// dependencies between Contenta via .proto imports.
	//
	// This will include all transitive dependencies.
	//
	// Commits should be unique by Module, that is no two dep_commit_ids should have the same Module but
	// different Commit IDs.
	DepCommitIds []string `protobuf:"bytes,2,rep,name=dep_commit_ids,json=depCommitIds,proto3" json:"dep_commit_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadRequest) Descriptor deprecated

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

Deprecated: Use UploadRequest.ProtoReflect.Descriptor instead.

func (*UploadRequest) GetContents

func (x *UploadRequest) GetContents() []*UploadRequest_Content

func (*UploadRequest) GetDepCommitIds

func (x *UploadRequest) GetDepCommitIds() []string

func (*UploadRequest) ProtoMessage

func (*UploadRequest) ProtoMessage()

func (*UploadRequest) ProtoReflect

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

func (*UploadRequest) Reset

func (x *UploadRequest) Reset()

func (*UploadRequest) String

func (x *UploadRequest) String() string

type UploadRequest_Content

type UploadRequest_Content struct {

	// The Module of the reference.
	ModuleRef *ModuleRef `protobuf:"bytes,1,opt,name=module_ref,json=moduleRef,proto3" json:"module_ref,omitempty"`
	// The Files of the Content.
	//
	// This will consist of the .proto files, license files, and documentation files.
	Files []*File `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
	// The labels to associate with the Commit for the Content.
	//
	// If an id is set, this id must represent a Label that already exists and is
	// owned by the Module. The Label will point to the newly-created Commits for the References,
	// or will be updated to point to the pre-existing Commit for the Reference.
	//
	// If no labels are referenced, the default Label for the Module is used.
	//
	// If the Labels do not exist, they will be created.
	// If the Labels were archived, they will be unarchived.
	ScopedLabelRefs []*ScopedLabelRef `protobuf:"bytes,3,rep,name=scoped_label_refs,json=scopedLabelRefs,proto3" json:"scoped_label_refs,omitempty"`
	// The URL of the source control commit to associate with the Commit for this Content.
	//
	// BSR users can navigate to this link to find source control information that is relevant to this Commit
	// (e.g. commit description, PR discussion, authors, approvers, etc.).
	SourceControlUrl string `protobuf:"bytes,4,opt,name=source_control_url,json=sourceControlUrl,proto3" json:"source_control_url,omitempty"`
	// contains filtered or unexported fields
}

Content to upload for a given reference.

func (*UploadRequest_Content) Descriptor deprecated

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

Deprecated: Use UploadRequest_Content.ProtoReflect.Descriptor instead.

func (*UploadRequest_Content) GetFiles

func (x *UploadRequest_Content) GetFiles() []*File

func (*UploadRequest_Content) GetModuleRef

func (x *UploadRequest_Content) GetModuleRef() *ModuleRef

func (*UploadRequest_Content) GetScopedLabelRefs

func (x *UploadRequest_Content) GetScopedLabelRefs() []*ScopedLabelRef

func (*UploadRequest_Content) GetSourceControlUrl

func (x *UploadRequest_Content) GetSourceControlUrl() string

func (*UploadRequest_Content) ProtoMessage

func (*UploadRequest_Content) ProtoMessage()

func (*UploadRequest_Content) ProtoReflect

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

func (*UploadRequest_Content) Reset

func (x *UploadRequest_Content) Reset()

func (*UploadRequest_Content) String

func (x *UploadRequest_Content) String() string

type UploadResponse

type UploadResponse struct {

	// The Commits for each reference in the same order as given on the request.
	//
	// A single Commit will be returned for each reference. These Commits may or may not be new.
	// If nothing changed for a given reference, the existing Commit will be returned.
	Commits []*Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadResponse) Descriptor deprecated

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

Deprecated: Use UploadResponse.ProtoReflect.Descriptor instead.

func (*UploadResponse) GetCommits

func (x *UploadResponse) GetCommits() []*Commit

func (*UploadResponse) ProtoMessage

func (*UploadResponse) ProtoMessage()

func (*UploadResponse) ProtoReflect

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

func (*UploadResponse) Reset

func (x *UploadResponse) Reset()

func (*UploadResponse) String

func (x *UploadResponse) String() string

Jump to

Keyboard shortcuts

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