Documentation
¶
Index ¶
- Constants
- Variables
- type ArchiveLabelsRequest
- func (x *ArchiveLabelsRequest) GetLabelRefs() []*LabelRef
- func (*ArchiveLabelsRequest) ProtoMessage()
- func (x *ArchiveLabelsRequest) ProtoReflect() protoreflect.Message
- func (x *ArchiveLabelsRequest) Reset()
- func (x *ArchiveLabelsRequest) SetLabelRefs(v []*LabelRef)
- func (x *ArchiveLabelsRequest) String() string
- type ArchiveLabelsRequest_builder
- type ArchiveLabelsResponse
- type ArchiveLabelsResponse_builder
- type Commit
- func (x *Commit) ClearCreateTime()
- func (x *Commit) ClearDigest()
- func (x *Commit) GetCreateTime() *timestamppb.Timestamp
- func (x *Commit) GetCreatedByUserId() string
- func (x *Commit) GetDigest() *Digest
- func (x *Commit) GetId() string
- func (x *Commit) GetModuleId() string
- func (x *Commit) GetOwnerId() string
- func (x *Commit) GetSourceControlUrl() string
- func (x *Commit) HasCreateTime() bool
- func (x *Commit) HasDigest() bool
- func (*Commit) ProtoMessage()
- func (x *Commit) ProtoReflect() protoreflect.Message
- func (x *Commit) Reset()
- func (x *Commit) SetCreateTime(v *timestamppb.Timestamp)
- func (x *Commit) SetCreatedByUserId(v string)
- func (x *Commit) SetDigest(v *Digest)
- func (x *Commit) SetId(v string)
- func (x *Commit) SetModuleId(v string)
- func (x *Commit) SetOwnerId(v string)
- func (x *Commit) SetSourceControlUrl(v string)
- func (x *Commit) String() string
- type CommitCheckState
- func (x *CommitCheckState) ClearUpdateTime()
- func (x *CommitCheckState) GetStatus() CommitCheckStatus
- func (x *CommitCheckState) GetUpdateTime() *timestamppb.Timestamp
- func (x *CommitCheckState) HasUpdateTime() bool
- func (*CommitCheckState) ProtoMessage()
- func (x *CommitCheckState) ProtoReflect() protoreflect.Message
- func (x *CommitCheckState) Reset()
- func (x *CommitCheckState) SetStatus(v CommitCheckStatus)
- func (x *CommitCheckState) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *CommitCheckState) String() string
- type CommitCheckState_builder
- type CommitCheckStatus
- type Commit_builder
- type CreateModulesRequest
- func (x *CreateModulesRequest) GetValues() []*CreateModulesRequest_Value
- func (*CreateModulesRequest) ProtoMessage()
- func (x *CreateModulesRequest) ProtoReflect() protoreflect.Message
- func (x *CreateModulesRequest) Reset()
- func (x *CreateModulesRequest) SetValues(v []*CreateModulesRequest_Value)
- func (x *CreateModulesRequest) String() string
- type CreateModulesRequest_Value
- func (x *CreateModulesRequest_Value) ClearOwnerRef()
- func (x *CreateModulesRequest_Value) GetDefaultLabelName() string
- func (x *CreateModulesRequest_Value) GetDescription() string
- func (x *CreateModulesRequest_Value) GetName() string
- func (x *CreateModulesRequest_Value) GetOwnerRef() *v1.OwnerRef
- func (x *CreateModulesRequest_Value) GetUrl() string
- func (x *CreateModulesRequest_Value) GetVisibility() ModuleVisibility
- func (x *CreateModulesRequest_Value) HasOwnerRef() bool
- func (*CreateModulesRequest_Value) ProtoMessage()
- func (x *CreateModulesRequest_Value) ProtoReflect() protoreflect.Message
- func (x *CreateModulesRequest_Value) Reset()
- func (x *CreateModulesRequest_Value) SetDefaultLabelName(v string)
- func (x *CreateModulesRequest_Value) SetDescription(v string)
- func (x *CreateModulesRequest_Value) SetName(v string)
- func (x *CreateModulesRequest_Value) SetOwnerRef(v *v1.OwnerRef)
- func (x *CreateModulesRequest_Value) SetUrl(v string)
- func (x *CreateModulesRequest_Value) SetVisibility(v ModuleVisibility)
- func (x *CreateModulesRequest_Value) String() string
- type CreateModulesRequest_Value_builder
- type CreateModulesRequest_builder
- type CreateModulesResponse
- func (x *CreateModulesResponse) GetModules() []*Module
- func (*CreateModulesResponse) ProtoMessage()
- func (x *CreateModulesResponse) ProtoReflect() protoreflect.Message
- func (x *CreateModulesResponse) Reset()
- func (x *CreateModulesResponse) SetModules(v []*Module)
- func (x *CreateModulesResponse) String() string
- type CreateModulesResponse_builder
- type CreateOrUpdateLabelsRequest
- func (x *CreateOrUpdateLabelsRequest) GetValues() []*CreateOrUpdateLabelsRequest_Value
- func (*CreateOrUpdateLabelsRequest) ProtoMessage()
- func (x *CreateOrUpdateLabelsRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOrUpdateLabelsRequest) Reset()
- func (x *CreateOrUpdateLabelsRequest) SetValues(v []*CreateOrUpdateLabelsRequest_Value)
- func (x *CreateOrUpdateLabelsRequest) String() string
- type CreateOrUpdateLabelsRequest_Value
- func (x *CreateOrUpdateLabelsRequest_Value) ClearLabelRef()
- func (x *CreateOrUpdateLabelsRequest_Value) GetCommitId() string
- func (x *CreateOrUpdateLabelsRequest_Value) GetLabelRef() *LabelRef
- func (x *CreateOrUpdateLabelsRequest_Value) HasLabelRef() bool
- func (*CreateOrUpdateLabelsRequest_Value) ProtoMessage()
- func (x *CreateOrUpdateLabelsRequest_Value) ProtoReflect() protoreflect.Message
- func (x *CreateOrUpdateLabelsRequest_Value) Reset()
- func (x *CreateOrUpdateLabelsRequest_Value) SetCommitId(v string)
- func (x *CreateOrUpdateLabelsRequest_Value) SetLabelRef(v *LabelRef)
- func (x *CreateOrUpdateLabelsRequest_Value) String() string
- type CreateOrUpdateLabelsRequest_Value_builder
- type CreateOrUpdateLabelsRequest_builder
- type CreateOrUpdateLabelsResponse
- func (x *CreateOrUpdateLabelsResponse) GetLabels() []*Label
- func (*CreateOrUpdateLabelsResponse) ProtoMessage()
- func (x *CreateOrUpdateLabelsResponse) ProtoReflect() protoreflect.Message
- func (x *CreateOrUpdateLabelsResponse) Reset()
- func (x *CreateOrUpdateLabelsResponse) SetLabels(v []*Label)
- func (x *CreateOrUpdateLabelsResponse) String() string
- type CreateOrUpdateLabelsResponse_builder
- type DeleteModulesRequest
- func (x *DeleteModulesRequest) GetModuleRefs() []*ModuleRef
- func (*DeleteModulesRequest) ProtoMessage()
- func (x *DeleteModulesRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteModulesRequest) Reset()
- func (x *DeleteModulesRequest) SetModuleRefs(v []*ModuleRef)
- func (x *DeleteModulesRequest) String() string
- type DeleteModulesRequest_builder
- type DeleteModulesResponse
- type DeleteModulesResponse_builder
- type Digest
- type DigestType
- type Digest_builder
- type DownloadRequest
- func (x *DownloadRequest) GetValues() []*DownloadRequest_Value
- func (*DownloadRequest) ProtoMessage()
- func (x *DownloadRequest) ProtoReflect() protoreflect.Message
- func (x *DownloadRequest) Reset()
- func (x *DownloadRequest) SetValues(v []*DownloadRequest_Value)
- func (x *DownloadRequest) String() string
- type DownloadRequest_Value
- func (x *DownloadRequest_Value) ClearResourceRef()
- func (x *DownloadRequest_Value) GetFileTypes() []FileType
- func (x *DownloadRequest_Value) GetPaths() []string
- func (x *DownloadRequest_Value) GetPathsAllowNotExist() bool
- func (x *DownloadRequest_Value) GetResourceRef() *ResourceRef
- func (x *DownloadRequest_Value) HasResourceRef() bool
- func (*DownloadRequest_Value) ProtoMessage()
- func (x *DownloadRequest_Value) ProtoReflect() protoreflect.Message
- func (x *DownloadRequest_Value) Reset()
- func (x *DownloadRequest_Value) SetFileTypes(v []FileType)
- func (x *DownloadRequest_Value) SetPaths(v []string)
- func (x *DownloadRequest_Value) SetPathsAllowNotExist(v bool)
- func (x *DownloadRequest_Value) SetResourceRef(v *ResourceRef)
- func (x *DownloadRequest_Value) String() string
- type DownloadRequest_Value_builder
- type DownloadRequest_builder
- type DownloadResponse
- func (x *DownloadResponse) GetContents() []*DownloadResponse_Content
- func (*DownloadResponse) ProtoMessage()
- func (x *DownloadResponse) ProtoReflect() protoreflect.Message
- func (x *DownloadResponse) Reset()
- func (x *DownloadResponse) SetContents(v []*DownloadResponse_Content)
- func (x *DownloadResponse) String() string
- type DownloadResponse_Content
- func (x *DownloadResponse_Content) ClearCommit()
- func (x *DownloadResponse_Content) GetCommit() *Commit
- func (x *DownloadResponse_Content) GetFiles() []*File
- func (x *DownloadResponse_Content) HasCommit() bool
- func (*DownloadResponse_Content) ProtoMessage()
- func (x *DownloadResponse_Content) ProtoReflect() protoreflect.Message
- func (x *DownloadResponse_Content) Reset()
- func (x *DownloadResponse_Content) SetCommit(v *Commit)
- func (x *DownloadResponse_Content) SetFiles(v []*File)
- func (x *DownloadResponse_Content) String() string
- type DownloadResponse_Content_builder
- type DownloadResponse_builder
- type File
- type FileType
- type File_builder
- type GetCommitsRequest
- func (x *GetCommitsRequest) GetResourceRefs() []*ResourceRef
- func (*GetCommitsRequest) ProtoMessage()
- func (x *GetCommitsRequest) ProtoReflect() protoreflect.Message
- func (x *GetCommitsRequest) Reset()
- func (x *GetCommitsRequest) SetResourceRefs(v []*ResourceRef)
- func (x *GetCommitsRequest) String() string
- type GetCommitsRequest_builder
- type GetCommitsResponse
- type GetCommitsResponse_builder
- type GetFileDescriptorSetRequest
- func (x *GetFileDescriptorSetRequest) ClearResourceRef()
- func (x *GetFileDescriptorSetRequest) GetExcludeImports() bool
- func (x *GetFileDescriptorSetRequest) GetExcludeTypes() []string
- func (x *GetFileDescriptorSetRequest) GetIncludeSourceCodeInfo() bool
- func (x *GetFileDescriptorSetRequest) GetIncludeSourceRetentionOptions() bool
- func (x *GetFileDescriptorSetRequest) GetIncludeTypes() []string
- func (x *GetFileDescriptorSetRequest) GetResourceRef() *ResourceRef
- func (x *GetFileDescriptorSetRequest) HasResourceRef() bool
- func (*GetFileDescriptorSetRequest) ProtoMessage()
- func (x *GetFileDescriptorSetRequest) ProtoReflect() protoreflect.Message
- func (x *GetFileDescriptorSetRequest) Reset()
- func (x *GetFileDescriptorSetRequest) SetExcludeImports(v bool)
- func (x *GetFileDescriptorSetRequest) SetExcludeTypes(v []string)
- func (x *GetFileDescriptorSetRequest) SetIncludeSourceCodeInfo(v bool)
- func (x *GetFileDescriptorSetRequest) SetIncludeSourceRetentionOptions(v bool)
- func (x *GetFileDescriptorSetRequest) SetIncludeTypes(v []string)
- func (x *GetFileDescriptorSetRequest) SetResourceRef(v *ResourceRef)
- func (x *GetFileDescriptorSetRequest) String() string
- type GetFileDescriptorSetRequest_builder
- type GetFileDescriptorSetResponse
- func (x *GetFileDescriptorSetResponse) ClearCommit()
- func (x *GetFileDescriptorSetResponse) ClearFileDescriptorSet()
- func (x *GetFileDescriptorSetResponse) GetCommit() *Commit
- func (x *GetFileDescriptorSetResponse) GetFileDescriptorSet() *descriptorpb.FileDescriptorSet
- func (x *GetFileDescriptorSetResponse) HasCommit() bool
- func (x *GetFileDescriptorSetResponse) HasFileDescriptorSet() bool
- func (*GetFileDescriptorSetResponse) ProtoMessage()
- func (x *GetFileDescriptorSetResponse) ProtoReflect() protoreflect.Message
- func (x *GetFileDescriptorSetResponse) Reset()
- func (x *GetFileDescriptorSetResponse) SetCommit(v *Commit)
- func (x *GetFileDescriptorSetResponse) SetFileDescriptorSet(v *descriptorpb.FileDescriptorSet)
- func (x *GetFileDescriptorSetResponse) String() string
- type GetFileDescriptorSetResponse_builder
- type GetGraphRequest
- type GetGraphRequest_builder
- type GetGraphResponse
- func (x *GetGraphResponse) ClearGraph()
- func (x *GetGraphResponse) GetGraph() *Graph
- func (x *GetGraphResponse) HasGraph() bool
- func (*GetGraphResponse) ProtoMessage()
- func (x *GetGraphResponse) ProtoReflect() protoreflect.Message
- func (x *GetGraphResponse) Reset()
- func (x *GetGraphResponse) SetGraph(v *Graph)
- func (x *GetGraphResponse) String() string
- type GetGraphResponse_builder
- type GetLabelsRequest
- type GetLabelsRequest_builder
- type GetLabelsResponse
- type GetLabelsResponse_builder
- type GetModulesRequest
- type GetModulesRequest_builder
- type GetModulesResponse
- type GetModulesResponse_builder
- type GetResourcesRequest
- func (x *GetResourcesRequest) GetResourceRefs() []*ResourceRef
- func (*GetResourcesRequest) ProtoMessage()
- func (x *GetResourcesRequest) ProtoReflect() protoreflect.Message
- func (x *GetResourcesRequest) Reset()
- func (x *GetResourcesRequest) SetResourceRefs(v []*ResourceRef)
- func (x *GetResourcesRequest) String() string
- type GetResourcesRequest_builder
- type GetResourcesResponse
- func (x *GetResourcesResponse) GetResources() []*Resource
- func (*GetResourcesResponse) ProtoMessage()
- func (x *GetResourcesResponse) ProtoReflect() protoreflect.Message
- func (x *GetResourcesResponse) Reset()
- func (x *GetResourcesResponse) SetResources(v []*Resource)
- func (x *GetResourcesResponse) String() string
- type GetResourcesResponse_builder
- type Graph
- type Graph_Edge
- func (x *Graph_Edge) ClearFromNode()
- func (x *Graph_Edge) ClearToNode()
- func (x *Graph_Edge) GetFromNode() *Graph_Node
- func (x *Graph_Edge) GetToNode() *Graph_Node
- func (x *Graph_Edge) HasFromNode() bool
- func (x *Graph_Edge) HasToNode() bool
- func (*Graph_Edge) ProtoMessage()
- func (x *Graph_Edge) ProtoReflect() protoreflect.Message
- func (x *Graph_Edge) Reset()
- func (x *Graph_Edge) SetFromNode(v *Graph_Node)
- func (x *Graph_Edge) SetToNode(v *Graph_Node)
- func (x *Graph_Edge) String() string
- type Graph_Edge_builder
- type Graph_Node
- type Graph_Node_builder
- type Graph_builder
- type Label
- func (x *Label) ClearArchiveTime()
- func (x *Label) ClearCommitCheckState()
- func (x *Label) ClearCreateTime()
- func (x *Label) ClearUpdateTime()
- func (x *Label) GetArchiveTime() *timestamppb.Timestamp
- func (x *Label) GetCommitCheckState() *CommitCheckState
- func (x *Label) GetCommitId() string
- func (x *Label) GetCreateTime() *timestamppb.Timestamp
- func (x *Label) GetId() string
- func (x *Label) GetModuleId() string
- func (x *Label) GetName() string
- func (x *Label) GetOwnerId() string
- func (x *Label) GetUpdateTime() *timestamppb.Timestamp
- func (x *Label) GetUpdatedByUserId() string
- func (x *Label) HasArchiveTime() bool
- func (x *Label) HasCommitCheckState() bool
- func (x *Label) HasCreateTime() bool
- func (x *Label) HasUpdateTime() bool
- func (*Label) ProtoMessage()
- func (x *Label) ProtoReflect() protoreflect.Message
- func (x *Label) Reset()
- func (x *Label) SetArchiveTime(v *timestamppb.Timestamp)
- func (x *Label) SetCommitCheckState(v *CommitCheckState)
- func (x *Label) SetCommitId(v string)
- func (x *Label) SetCreateTime(v *timestamppb.Timestamp)
- func (x *Label) SetId(v string)
- func (x *Label) SetModuleId(v string)
- func (x *Label) SetName(v string)
- func (x *Label) SetOwnerId(v string)
- func (x *Label) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *Label) SetUpdatedByUserId(v string)
- func (x *Label) String() string
- type LabelRef
- func (x *LabelRef) ClearId()
- func (x *LabelRef) ClearName()
- func (x *LabelRef) ClearValue()
- func (x *LabelRef) GetId() string
- func (x *LabelRef) GetName() *LabelRef_Name
- func (x *LabelRef) GetValue() isLabelRef_Value
- func (x *LabelRef) HasId() bool
- func (x *LabelRef) HasName() bool
- func (x *LabelRef) HasValue() bool
- func (*LabelRef) ProtoMessage()
- func (x *LabelRef) ProtoReflect() protoreflect.Message
- func (x *LabelRef) Reset()
- func (x *LabelRef) SetId(v string)
- func (x *LabelRef) SetName(v *LabelRef_Name)
- func (x *LabelRef) String() string
- func (x *LabelRef) WhichValue() case_LabelRef_Value
- type LabelRef_Id
- type LabelRef_Name
- func (x *LabelRef_Name) GetLabel() string
- func (x *LabelRef_Name) GetModule() string
- func (x *LabelRef_Name) GetOwner() string
- func (*LabelRef_Name) ProtoMessage()
- func (x *LabelRef_Name) ProtoReflect() protoreflect.Message
- func (x *LabelRef_Name) Reset()
- func (x *LabelRef_Name) SetLabel(v string)
- func (x *LabelRef_Name) SetModule(v string)
- func (x *LabelRef_Name) SetOwner(v string)
- func (x *LabelRef_Name) String() string
- type LabelRef_Name_
- type LabelRef_Name_builder
- type LabelRef_builder
- type Label_builder
- type ListCommitsRequest
- func (x *ListCommitsRequest) ClearResourceRef()
- func (x *ListCommitsRequest) GetIdQuery() string
- func (x *ListCommitsRequest) GetOrder() ListCommitsRequest_Order
- func (x *ListCommitsRequest) GetPageSize() uint32
- func (x *ListCommitsRequest) GetPageToken() string
- func (x *ListCommitsRequest) GetResourceRef() *ResourceRef
- func (x *ListCommitsRequest) HasResourceRef() bool
- func (*ListCommitsRequest) ProtoMessage()
- func (x *ListCommitsRequest) ProtoReflect() protoreflect.Message
- func (x *ListCommitsRequest) Reset()
- func (x *ListCommitsRequest) SetIdQuery(v string)
- func (x *ListCommitsRequest) SetOrder(v ListCommitsRequest_Order)
- func (x *ListCommitsRequest) SetPageSize(v uint32)
- func (x *ListCommitsRequest) SetPageToken(v string)
- func (x *ListCommitsRequest) SetResourceRef(v *ResourceRef)
- func (x *ListCommitsRequest) String() string
- type ListCommitsRequest_Order
- func (ListCommitsRequest_Order) Descriptor() protoreflect.EnumDescriptor
- func (x ListCommitsRequest_Order) Enum() *ListCommitsRequest_Order
- func (x ListCommitsRequest_Order) Number() protoreflect.EnumNumber
- func (x ListCommitsRequest_Order) String() string
- func (ListCommitsRequest_Order) Type() protoreflect.EnumType
- type ListCommitsRequest_builder
- type ListCommitsResponse
- func (x *ListCommitsResponse) GetCommits() []*Commit
- func (x *ListCommitsResponse) GetNextPageToken() string
- func (*ListCommitsResponse) ProtoMessage()
- func (x *ListCommitsResponse) ProtoReflect() protoreflect.Message
- func (x *ListCommitsResponse) Reset()
- func (x *ListCommitsResponse) SetCommits(v []*Commit)
- func (x *ListCommitsResponse) SetNextPageToken(v string)
- func (x *ListCommitsResponse) String() string
- type ListCommitsResponse_builder
- type ListLabelHistoryRequest
- func (x *ListLabelHistoryRequest) ClearLabelRef()
- func (x *ListLabelHistoryRequest) GetCommitCheckStatuses() []CommitCheckStatus
- func (x *ListLabelHistoryRequest) GetLabelRef() *LabelRef
- func (x *ListLabelHistoryRequest) GetOnlyCommitsWithChangedDigests() bool
- func (x *ListLabelHistoryRequest) GetOrder() ListLabelHistoryRequest_Order
- func (x *ListLabelHistoryRequest) GetPageSize() uint32
- func (x *ListLabelHistoryRequest) GetPageToken() string
- func (x *ListLabelHistoryRequest) GetStartCommitId() string
- func (x *ListLabelHistoryRequest) HasLabelRef() bool
- func (*ListLabelHistoryRequest) ProtoMessage()
- func (x *ListLabelHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *ListLabelHistoryRequest) Reset()
- func (x *ListLabelHistoryRequest) SetCommitCheckStatuses(v []CommitCheckStatus)
- func (x *ListLabelHistoryRequest) SetLabelRef(v *LabelRef)
- func (x *ListLabelHistoryRequest) SetOnlyCommitsWithChangedDigests(v bool)
- func (x *ListLabelHistoryRequest) SetOrder(v ListLabelHistoryRequest_Order)
- func (x *ListLabelHistoryRequest) SetPageSize(v uint32)
- func (x *ListLabelHistoryRequest) SetPageToken(v string)
- func (x *ListLabelHistoryRequest) SetStartCommitId(v string)
- func (x *ListLabelHistoryRequest) String() string
- type ListLabelHistoryRequest_Order
- func (ListLabelHistoryRequest_Order) Descriptor() protoreflect.EnumDescriptor
- func (x ListLabelHistoryRequest_Order) Enum() *ListLabelHistoryRequest_Order
- func (x ListLabelHistoryRequest_Order) Number() protoreflect.EnumNumber
- func (x ListLabelHistoryRequest_Order) String() string
- func (ListLabelHistoryRequest_Order) Type() protoreflect.EnumType
- type ListLabelHistoryRequest_builder
- type ListLabelHistoryResponse
- func (x *ListLabelHistoryResponse) GetNextPageToken() string
- func (x *ListLabelHistoryResponse) GetValues() []*ListLabelHistoryResponse_Value
- func (*ListLabelHistoryResponse) ProtoMessage()
- func (x *ListLabelHistoryResponse) ProtoReflect() protoreflect.Message
- func (x *ListLabelHistoryResponse) Reset()
- func (x *ListLabelHistoryResponse) SetNextPageToken(v string)
- func (x *ListLabelHistoryResponse) SetValues(v []*ListLabelHistoryResponse_Value)
- func (x *ListLabelHistoryResponse) String() string
- type ListLabelHistoryResponse_Value
- func (x *ListLabelHistoryResponse_Value) ClearCommit()
- func (x *ListLabelHistoryResponse_Value) ClearCommitCheckState()
- func (x *ListLabelHistoryResponse_Value) GetCommit() *Commit
- func (x *ListLabelHistoryResponse_Value) GetCommitCheckState() *CommitCheckState
- func (x *ListLabelHistoryResponse_Value) HasCommit() bool
- func (x *ListLabelHistoryResponse_Value) HasCommitCheckState() bool
- func (*ListLabelHistoryResponse_Value) ProtoMessage()
- func (x *ListLabelHistoryResponse_Value) ProtoReflect() protoreflect.Message
- func (x *ListLabelHistoryResponse_Value) Reset()
- func (x *ListLabelHistoryResponse_Value) SetCommit(v *Commit)
- func (x *ListLabelHistoryResponse_Value) SetCommitCheckState(v *CommitCheckState)
- func (x *ListLabelHistoryResponse_Value) String() string
- type ListLabelHistoryResponse_Value_builder
- type ListLabelHistoryResponse_builder
- type ListLabelsRequest
- func (x *ListLabelsRequest) ClearResourceRef()
- func (x *ListLabelsRequest) GetArchiveFilter() ListLabelsRequest_ArchiveFilter
- func (x *ListLabelsRequest) GetCommitCheckStatuses() []CommitCheckStatus
- func (x *ListLabelsRequest) GetNameQuery() string
- func (x *ListLabelsRequest) GetOrder() ListLabelsRequest_Order
- func (x *ListLabelsRequest) GetPageSize() uint32
- func (x *ListLabelsRequest) GetPageToken() string
- func (x *ListLabelsRequest) GetResourceRef() *ResourceRef
- func (x *ListLabelsRequest) HasResourceRef() bool
- func (*ListLabelsRequest) ProtoMessage()
- func (x *ListLabelsRequest) ProtoReflect() protoreflect.Message
- func (x *ListLabelsRequest) Reset()
- func (x *ListLabelsRequest) SetArchiveFilter(v ListLabelsRequest_ArchiveFilter)
- func (x *ListLabelsRequest) SetCommitCheckStatuses(v []CommitCheckStatus)
- func (x *ListLabelsRequest) SetNameQuery(v string)
- func (x *ListLabelsRequest) SetOrder(v ListLabelsRequest_Order)
- func (x *ListLabelsRequest) SetPageSize(v uint32)
- func (x *ListLabelsRequest) SetPageToken(v string)
- func (x *ListLabelsRequest) SetResourceRef(v *ResourceRef)
- func (x *ListLabelsRequest) String() string
- type ListLabelsRequest_ArchiveFilter
- func (ListLabelsRequest_ArchiveFilter) Descriptor() protoreflect.EnumDescriptor
- func (x ListLabelsRequest_ArchiveFilter) Enum() *ListLabelsRequest_ArchiveFilter
- func (x ListLabelsRequest_ArchiveFilter) Number() protoreflect.EnumNumber
- func (x ListLabelsRequest_ArchiveFilter) String() string
- func (ListLabelsRequest_ArchiveFilter) Type() protoreflect.EnumType
- type ListLabelsRequest_Order
- func (ListLabelsRequest_Order) Descriptor() protoreflect.EnumDescriptor
- func (x ListLabelsRequest_Order) Enum() *ListLabelsRequest_Order
- func (x ListLabelsRequest_Order) Number() protoreflect.EnumNumber
- func (x ListLabelsRequest_Order) String() string
- func (ListLabelsRequest_Order) Type() protoreflect.EnumType
- type ListLabelsRequest_builder
- type ListLabelsResponse
- func (x *ListLabelsResponse) GetLabels() []*Label
- func (x *ListLabelsResponse) GetNextPageToken() string
- func (*ListLabelsResponse) ProtoMessage()
- func (x *ListLabelsResponse) ProtoReflect() protoreflect.Message
- func (x *ListLabelsResponse) Reset()
- func (x *ListLabelsResponse) SetLabels(v []*Label)
- func (x *ListLabelsResponse) SetNextPageToken(v string)
- func (x *ListLabelsResponse) String() string
- type ListLabelsResponse_builder
- type ListModulesRequest
- func (x *ListModulesRequest) GetOrder() ListModulesRequest_Order
- func (x *ListModulesRequest) GetOwnerRefs() []*v1.OwnerRef
- func (x *ListModulesRequest) GetPageSize() uint32
- func (x *ListModulesRequest) GetPageToken() string
- func (*ListModulesRequest) ProtoMessage()
- func (x *ListModulesRequest) ProtoReflect() protoreflect.Message
- func (x *ListModulesRequest) Reset()
- func (x *ListModulesRequest) SetOrder(v ListModulesRequest_Order)
- func (x *ListModulesRequest) SetOwnerRefs(v []*v1.OwnerRef)
- func (x *ListModulesRequest) SetPageSize(v uint32)
- func (x *ListModulesRequest) SetPageToken(v string)
- func (x *ListModulesRequest) String() string
- type ListModulesRequest_Order
- func (ListModulesRequest_Order) Descriptor() protoreflect.EnumDescriptor
- func (x ListModulesRequest_Order) Enum() *ListModulesRequest_Order
- func (x ListModulesRequest_Order) Number() protoreflect.EnumNumber
- func (x ListModulesRequest_Order) String() string
- func (ListModulesRequest_Order) Type() protoreflect.EnumType
- type ListModulesRequest_builder
- type ListModulesResponse
- func (x *ListModulesResponse) GetModules() []*Module
- func (x *ListModulesResponse) GetNextPageToken() string
- func (*ListModulesResponse) ProtoMessage()
- func (x *ListModulesResponse) ProtoReflect() protoreflect.Message
- func (x *ListModulesResponse) Reset()
- func (x *ListModulesResponse) SetModules(v []*Module)
- func (x *ListModulesResponse) SetNextPageToken(v string)
- func (x *ListModulesResponse) String() string
- type ListModulesResponse_builder
- type Module
- func (x *Module) ClearCreateTime()
- func (x *Module) ClearUpdateTime()
- func (x *Module) GetCreateTime() *timestamppb.Timestamp
- func (x *Module) GetDefaultLabelName() string
- func (x *Module) GetDescription() string
- func (x *Module) GetId() string
- func (x *Module) GetName() string
- func (x *Module) GetOwnerId() string
- func (x *Module) GetState() ModuleState
- func (x *Module) GetUpdateTime() *timestamppb.Timestamp
- func (x *Module) GetUrl() string
- func (x *Module) GetVisibility() ModuleVisibility
- func (x *Module) HasCreateTime() bool
- func (x *Module) HasUpdateTime() bool
- func (*Module) ProtoMessage()
- func (x *Module) ProtoReflect() protoreflect.Message
- func (x *Module) Reset()
- func (x *Module) SetCreateTime(v *timestamppb.Timestamp)
- func (x *Module) SetDefaultLabelName(v string)
- func (x *Module) SetDescription(v string)
- func (x *Module) SetId(v string)
- func (x *Module) SetName(v string)
- func (x *Module) SetOwnerId(v string)
- func (x *Module) SetState(v ModuleState)
- func (x *Module) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *Module) SetUrl(v string)
- func (x *Module) SetVisibility(v ModuleVisibility)
- func (x *Module) String() string
- type ModuleRef
- func (x *ModuleRef) ClearId()
- func (x *ModuleRef) ClearName()
- func (x *ModuleRef) ClearValue()
- func (x *ModuleRef) GetId() string
- func (x *ModuleRef) GetName() *ModuleRef_Name
- func (x *ModuleRef) GetValue() isModuleRef_Value
- func (x *ModuleRef) HasId() bool
- func (x *ModuleRef) HasName() bool
- func (x *ModuleRef) HasValue() bool
- func (*ModuleRef) ProtoMessage()
- func (x *ModuleRef) ProtoReflect() protoreflect.Message
- func (x *ModuleRef) Reset()
- func (x *ModuleRef) SetId(v string)
- func (x *ModuleRef) SetName(v *ModuleRef_Name)
- func (x *ModuleRef) String() string
- func (x *ModuleRef) WhichValue() case_ModuleRef_Value
- type ModuleRef_Id
- type ModuleRef_Name
- func (x *ModuleRef_Name) GetModule() string
- func (x *ModuleRef_Name) GetOwner() string
- func (*ModuleRef_Name) ProtoMessage()
- func (x *ModuleRef_Name) ProtoReflect() protoreflect.Message
- func (x *ModuleRef_Name) Reset()
- func (x *ModuleRef_Name) SetModule(v string)
- func (x *ModuleRef_Name) SetOwner(v string)
- func (x *ModuleRef_Name) String() string
- type ModuleRef_Name_
- type ModuleRef_Name_builder
- type ModuleRef_builder
- type ModuleState
- type ModuleVisibility
- type Module_builder
- type Resource
- func (x *Resource) ClearCommit()
- func (x *Resource) ClearLabel()
- func (x *Resource) ClearModule()
- func (x *Resource) ClearValue()
- func (x *Resource) GetCommit() *Commit
- func (x *Resource) GetLabel() *Label
- func (x *Resource) GetModule() *Module
- func (x *Resource) GetValue() isResource_Value
- func (x *Resource) HasCommit() bool
- func (x *Resource) HasLabel() bool
- func (x *Resource) HasModule() bool
- func (x *Resource) HasValue() bool
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) SetCommit(v *Commit)
- func (x *Resource) SetLabel(v *Label)
- func (x *Resource) SetModule(v *Module)
- func (x *Resource) String() string
- func (x *Resource) WhichValue() case_Resource_Value
- type ResourceRef
- func (x *ResourceRef) ClearId()
- func (x *ResourceRef) ClearName()
- func (x *ResourceRef) ClearValue()
- func (x *ResourceRef) GetId() string
- func (x *ResourceRef) GetName() *ResourceRef_Name
- func (x *ResourceRef) GetValue() isResourceRef_Value
- func (x *ResourceRef) HasId() bool
- func (x *ResourceRef) HasName() bool
- func (x *ResourceRef) HasValue() bool
- func (*ResourceRef) ProtoMessage()
- func (x *ResourceRef) ProtoReflect() protoreflect.Message
- func (x *ResourceRef) Reset()
- func (x *ResourceRef) SetId(v string)
- func (x *ResourceRef) SetName(v *ResourceRef_Name)
- func (x *ResourceRef) String() string
- func (x *ResourceRef) WhichValue() case_ResourceRef_Value
- type ResourceRef_Id
- type ResourceRef_Name
- func (x *ResourceRef_Name) ClearChild()
- func (x *ResourceRef_Name) ClearLabelName()
- func (x *ResourceRef_Name) ClearRef()
- func (x *ResourceRef_Name) GetChild() isResourceRef_Name_Child
- func (x *ResourceRef_Name) GetLabelName() string
- func (x *ResourceRef_Name) GetModule() string
- func (x *ResourceRef_Name) GetOwner() string
- func (x *ResourceRef_Name) GetRef() string
- func (x *ResourceRef_Name) HasChild() bool
- func (x *ResourceRef_Name) HasLabelName() bool
- func (x *ResourceRef_Name) HasRef() bool
- func (*ResourceRef_Name) ProtoMessage()
- func (x *ResourceRef_Name) ProtoReflect() protoreflect.Message
- func (x *ResourceRef_Name) Reset()
- func (x *ResourceRef_Name) SetLabelName(v string)
- func (x *ResourceRef_Name) SetModule(v string)
- func (x *ResourceRef_Name) SetOwner(v string)
- func (x *ResourceRef_Name) SetRef(v string)
- func (x *ResourceRef_Name) String() string
- func (x *ResourceRef_Name) WhichChild() case_ResourceRef_Name_Child
- type ResourceRef_Name_
- type ResourceRef_Name_LabelName
- type ResourceRef_Name_Ref
- type ResourceRef_Name_builder
- type ResourceRef_builder
- type Resource_Commit
- type Resource_Label
- type Resource_Module
- type Resource_builder
- type ScopedLabelRef
- func (x *ScopedLabelRef) ClearId()
- func (x *ScopedLabelRef) ClearName()
- func (x *ScopedLabelRef) ClearValue()
- func (x *ScopedLabelRef) GetId() string
- func (x *ScopedLabelRef) GetName() string
- func (x *ScopedLabelRef) GetValue() isScopedLabelRef_Value
- func (x *ScopedLabelRef) HasId() bool
- func (x *ScopedLabelRef) HasName() bool
- func (x *ScopedLabelRef) HasValue() bool
- func (*ScopedLabelRef) ProtoMessage()
- func (x *ScopedLabelRef) ProtoReflect() protoreflect.Message
- func (x *ScopedLabelRef) Reset()
- func (x *ScopedLabelRef) SetId(v string)
- func (x *ScopedLabelRef) SetName(v string)
- func (x *ScopedLabelRef) String() string
- func (x *ScopedLabelRef) WhichValue() case_ScopedLabelRef_Value
- type ScopedLabelRef_Id
- type ScopedLabelRef_Name
- type ScopedLabelRef_builder
- type UnarchiveLabelsRequest
- func (x *UnarchiveLabelsRequest) GetLabelRefs() []*LabelRef
- func (*UnarchiveLabelsRequest) ProtoMessage()
- func (x *UnarchiveLabelsRequest) ProtoReflect() protoreflect.Message
- func (x *UnarchiveLabelsRequest) Reset()
- func (x *UnarchiveLabelsRequest) SetLabelRefs(v []*LabelRef)
- func (x *UnarchiveLabelsRequest) String() string
- type UnarchiveLabelsRequest_builder
- type UnarchiveLabelsResponse
- type UnarchiveLabelsResponse_builder
- type UpdateModulesRequest
- func (x *UpdateModulesRequest) GetValues() []*UpdateModulesRequest_Value
- func (*UpdateModulesRequest) ProtoMessage()
- func (x *UpdateModulesRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateModulesRequest) Reset()
- func (x *UpdateModulesRequest) SetValues(v []*UpdateModulesRequest_Value)
- func (x *UpdateModulesRequest) String() string
- type UpdateModulesRequest_Value
- func (x *UpdateModulesRequest_Value) ClearDefaultLabelName()
- func (x *UpdateModulesRequest_Value) ClearDescription()
- func (x *UpdateModulesRequest_Value) ClearModuleRef()
- func (x *UpdateModulesRequest_Value) ClearState()
- func (x *UpdateModulesRequest_Value) ClearUrl()
- func (x *UpdateModulesRequest_Value) ClearVisibility()
- func (x *UpdateModulesRequest_Value) GetDefaultLabelName() string
- func (x *UpdateModulesRequest_Value) GetDescription() string
- func (x *UpdateModulesRequest_Value) GetModuleRef() *ModuleRef
- func (x *UpdateModulesRequest_Value) GetState() ModuleState
- func (x *UpdateModulesRequest_Value) GetUrl() string
- func (x *UpdateModulesRequest_Value) GetVisibility() ModuleVisibility
- func (x *UpdateModulesRequest_Value) HasDefaultLabelName() bool
- func (x *UpdateModulesRequest_Value) HasDescription() bool
- func (x *UpdateModulesRequest_Value) HasModuleRef() bool
- func (x *UpdateModulesRequest_Value) HasState() bool
- func (x *UpdateModulesRequest_Value) HasUrl() bool
- func (x *UpdateModulesRequest_Value) HasVisibility() bool
- func (*UpdateModulesRequest_Value) ProtoMessage()
- func (x *UpdateModulesRequest_Value) ProtoReflect() protoreflect.Message
- func (x *UpdateModulesRequest_Value) Reset()
- func (x *UpdateModulesRequest_Value) SetDefaultLabelName(v string)
- func (x *UpdateModulesRequest_Value) SetDescription(v string)
- func (x *UpdateModulesRequest_Value) SetModuleRef(v *ModuleRef)
- func (x *UpdateModulesRequest_Value) SetState(v ModuleState)
- func (x *UpdateModulesRequest_Value) SetUrl(v string)
- func (x *UpdateModulesRequest_Value) SetVisibility(v ModuleVisibility)
- func (x *UpdateModulesRequest_Value) String() string
- type UpdateModulesRequest_Value_builder
- type UpdateModulesRequest_builder
- type UpdateModulesResponse
- func (x *UpdateModulesResponse) GetModules() []*Module
- func (*UpdateModulesResponse) ProtoMessage()
- func (x *UpdateModulesResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateModulesResponse) Reset()
- func (x *UpdateModulesResponse) SetModules(v []*Module)
- func (x *UpdateModulesResponse) String() string
- type UpdateModulesResponse_builder
- type UploadRequest
- func (x *UploadRequest) GetContents() []*UploadRequest_Content
- func (x *UploadRequest) GetDepCommitIds() []string
- func (*UploadRequest) ProtoMessage()
- func (x *UploadRequest) ProtoReflect() protoreflect.Message
- func (x *UploadRequest) Reset()
- func (x *UploadRequest) SetContents(v []*UploadRequest_Content)
- func (x *UploadRequest) SetDepCommitIds(v []string)
- func (x *UploadRequest) String() string
- type UploadRequest_Content
- func (x *UploadRequest_Content) ClearModuleRef()
- func (x *UploadRequest_Content) GetFiles() []*File
- func (x *UploadRequest_Content) GetModuleRef() *ModuleRef
- func (x *UploadRequest_Content) GetScopedLabelRefs() []*ScopedLabelRef
- func (x *UploadRequest_Content) GetSourceControlUrl() string
- func (x *UploadRequest_Content) HasModuleRef() bool
- func (*UploadRequest_Content) ProtoMessage()
- func (x *UploadRequest_Content) ProtoReflect() protoreflect.Message
- func (x *UploadRequest_Content) Reset()
- func (x *UploadRequest_Content) SetFiles(v []*File)
- func (x *UploadRequest_Content) SetModuleRef(v *ModuleRef)
- func (x *UploadRequest_Content) SetScopedLabelRefs(v []*ScopedLabelRef)
- func (x *UploadRequest_Content) SetSourceControlUrl(v string)
- func (x *UploadRequest_Content) String() string
- type UploadRequest_Content_builder
- type UploadRequest_builder
- type UploadResponse
- type UploadResponse_builder
Constants ¶
const LabelRef_Id_case case_LabelRef_Value = 1
const LabelRef_Name_case case_LabelRef_Value = 2
const LabelRef_Value_not_set_case case_LabelRef_Value = 0
const ModuleRef_Id_case case_ModuleRef_Value = 1
const ModuleRef_Name_case case_ModuleRef_Value = 2
const ModuleRef_Value_not_set_case case_ModuleRef_Value = 0
const ResourceRef_Id_case case_ResourceRef_Value = 1
const ResourceRef_Name_Child_not_set_case case_ResourceRef_Name_Child = 0
const ResourceRef_Name_LabelName_case case_ResourceRef_Name_Child = 3
const ResourceRef_Name_Ref_case case_ResourceRef_Name_Child = 4
const ResourceRef_Name_case case_ResourceRef_Value = 2
const ResourceRef_Value_not_set_case case_ResourceRef_Value = 0
const Resource_Commit_case case_Resource_Value = 3
const Resource_Label_case case_Resource_Value = 2
const Resource_Module_case case_Resource_Value = 1
const Resource_Value_not_set_case case_Resource_Value = 0
const ScopedLabelRef_Id_case case_ScopedLabelRef_Value = 1
const ScopedLabelRef_Name_case case_ScopedLabelRef_Value = 2
const ScopedLabelRef_Value_not_set_case case_ScopedLabelRef_Value = 0
Variables ¶
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.
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.
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.
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.
var ( ListLabelsRequest_Order_name = map[int32]string{ 0: "ORDER_UNSPECIFIED", 1: "ORDER_CREATE_TIME_DESC", 2: "ORDER_CREATE_TIME_ASC", 3: "ORDER_UPDATE_TIME_DESC", 4: "ORDER_UPDATE_TIME_ASC", } ListLabelsRequest_Order_value = map[string]int32{ "ORDER_UNSPECIFIED": 0, "ORDER_CREATE_TIME_DESC": 1, "ORDER_CREATE_TIME_ASC": 2, "ORDER_UPDATE_TIME_DESC": 3, "ORDER_UPDATE_TIME_ASC": 4, } )
Enum value maps for ListLabelsRequest_Order.
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.
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.
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.
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.
var ( ListModulesRequest_Order_name = map[int32]string{ 0: "ORDER_UNSPECIFIED", 1: "ORDER_CREATE_TIME_DESC", 2: "ORDER_CREATE_TIME_ASC", 3: "ORDER_UPDATE_TIME_DESC", 4: "ORDER_UPDATE_TIME_ASC", } ListModulesRequest_Order_value = map[string]int32{ "ORDER_UNSPECIFIED": 0, "ORDER_CREATE_TIME_DESC": 1, "ORDER_CREATE_TIME_ASC": 2, "ORDER_UPDATE_TIME_DESC": 3, "ORDER_UPDATE_TIME_ASC": 4, } )
Enum value maps for ListModulesRequest_Order.
var File_buf_registry_module_v1_commit_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_commit_service_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_digest_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_download_service_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_file_descriptor_set_service_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_file_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_graph_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_graph_service_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_label_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_label_service_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_module_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_module_service_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_resource_proto protoreflect.FileDescriptor
var File_buf_registry_module_v1_resource_service_proto protoreflect.FileDescriptor
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) 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) SetLabelRefs ¶
func (x *ArchiveLabelsRequest) SetLabelRefs(v []*LabelRef)
func (*ArchiveLabelsRequest) String ¶
func (x *ArchiveLabelsRequest) String() string
type ArchiveLabelsRequest_builder ¶
type ArchiveLabelsRequest_builder struct {
// The Labels to archive.
LabelRefs []*LabelRef
// contains filtered or unexported fields
}
func (ArchiveLabelsRequest_builder) Build ¶
func (b0 ArchiveLabelsRequest_builder) Build() *ArchiveLabelsRequest
type ArchiveLabelsResponse ¶
type ArchiveLabelsResponse struct {
// contains filtered or unexported fields
}
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 ArchiveLabelsResponse_builder ¶
type ArchiveLabelsResponse_builder struct {
// contains filtered or unexported fields
}
func (ArchiveLabelsResponse_builder) Build ¶
func (b0 ArchiveLabelsResponse_builder) Build() *ArchiveLabelsResponse
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) GetCreateTime ¶
func (x *Commit) GetCreateTime() *timestamppb.Timestamp
func (*Commit) ProtoReflect ¶
func (x *Commit) ProtoReflect() protoreflect.Message
func (*Commit) SetCreateTime ¶
func (x *Commit) SetCreateTime(v *timestamppb.Timestamp)
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) ClearUpdateTime ¶
func (x *CommitCheckState) ClearUpdateTime()
func (*CommitCheckState) GetStatus ¶
func (x *CommitCheckState) GetStatus() CommitCheckStatus
func (*CommitCheckState) GetUpdateTime ¶
func (x *CommitCheckState) GetUpdateTime() *timestamppb.Timestamp
func (*CommitCheckState) HasUpdateTime ¶
func (x *CommitCheckState) HasUpdateTime() bool
func (*CommitCheckState) ProtoMessage ¶
func (*CommitCheckState) ProtoMessage()
func (*CommitCheckState) ProtoReflect ¶
func (x *CommitCheckState) ProtoReflect() protoreflect.Message
func (*CommitCheckState) Reset ¶
func (x *CommitCheckState) Reset()
func (*CommitCheckState) SetStatus ¶
func (x *CommitCheckState) SetStatus(v CommitCheckStatus)
func (*CommitCheckState) SetUpdateTime ¶
func (x *CommitCheckState) SetUpdateTime(v *timestamppb.Timestamp)
func (*CommitCheckState) String ¶
func (x *CommitCheckState) String() string
type CommitCheckState_builder ¶
type CommitCheckState_builder struct {
// The status of the policy check.
Status CommitCheckStatus
// 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
// contains filtered or unexported fields
}
func (CommitCheckState_builder) Build ¶
func (b0 CommitCheckState_builder) Build() *CommitCheckState
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) Descriptor() protoreflect.EnumDescriptor
func (CommitCheckStatus) Enum ¶
func (x CommitCheckStatus) Enum() *CommitCheckStatus
func (CommitCheckStatus) Number ¶
func (x CommitCheckStatus) Number() protoreflect.EnumNumber
func (CommitCheckStatus) String ¶
func (x CommitCheckStatus) String() string
func (CommitCheckStatus) Type ¶
func (CommitCheckStatus) Type() protoreflect.EnumType
type Commit_builder ¶
type Commit_builder struct {
// The id of the Commit.
Id string
// The time the Commit was pushed to the BSR.
//
// Commits are immutable, so there is no corresponding update_time.
CreateTime *timestamppb.Timestamp
// The id of the User or Organization that owns the Module that the Commit is associated with.
OwnerId string
// The id of the Module that the Commit is associated with.
ModuleId string
// 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
// The id of the User that created this Commit on the BSR.
//
// May be empty if the User is no longer available.
CreatedByUserId string
// 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
// contains filtered or unexported fields
}
func (Commit_builder) Build ¶
func (b0 Commit_builder) Build() *Commit
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) GetValues ¶
func (x *CreateModulesRequest) GetValues() []*CreateModulesRequest_Value
func (*CreateModulesRequest) ProtoMessage ¶
func (*CreateModulesRequest) ProtoMessage()
func (*CreateModulesRequest) ProtoReflect ¶
func (x *CreateModulesRequest) ProtoReflect() protoreflect.Message
func (*CreateModulesRequest) Reset ¶
func (x *CreateModulesRequest) Reset()
func (*CreateModulesRequest) SetValues ¶
func (x *CreateModulesRequest) SetValues(v []*CreateModulesRequest_Value)
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.
//
// If not specified, it uses the value from the instance or organization visibility control,
// which defaults to MODULE_VISIBILITY_PRIVATE.
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) ClearOwnerRef ¶
func (x *CreateModulesRequest_Value) ClearOwnerRef()
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) HasOwnerRef ¶
func (x *CreateModulesRequest_Value) HasOwnerRef() bool
func (*CreateModulesRequest_Value) ProtoMessage ¶
func (*CreateModulesRequest_Value) ProtoMessage()
func (*CreateModulesRequest_Value) ProtoReflect ¶
func (x *CreateModulesRequest_Value) ProtoReflect() protoreflect.Message
func (*CreateModulesRequest_Value) Reset ¶
func (x *CreateModulesRequest_Value) Reset()
func (*CreateModulesRequest_Value) SetDefaultLabelName ¶
func (x *CreateModulesRequest_Value) SetDefaultLabelName(v string)
func (*CreateModulesRequest_Value) SetDescription ¶
func (x *CreateModulesRequest_Value) SetDescription(v string)
func (*CreateModulesRequest_Value) SetName ¶
func (x *CreateModulesRequest_Value) SetName(v string)
func (*CreateModulesRequest_Value) SetOwnerRef ¶
func (x *CreateModulesRequest_Value) SetOwnerRef(v *v1.OwnerRef)
func (*CreateModulesRequest_Value) SetUrl ¶
func (x *CreateModulesRequest_Value) SetUrl(v string)
func (*CreateModulesRequest_Value) SetVisibility ¶
func (x *CreateModulesRequest_Value) SetVisibility(v ModuleVisibility)
func (*CreateModulesRequest_Value) String ¶
func (x *CreateModulesRequest_Value) String() string
type CreateModulesRequest_Value_builder ¶
type CreateModulesRequest_Value_builder struct {
// The User or Organization to create the Module under.
OwnerRef *v1.OwnerRef
// The name of the Module.
Name string
// The module's visibility.
//
// If not specified, it uses the value from the instance or organization visibility control,
// which defaults to MODULE_VISIBILITY_PRIVATE.
Visibility ModuleVisibility
// The configurable description of the Module.
Description string
// The configurable URL in the description of the module.
Url string
// 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
// contains filtered or unexported fields
}
func (CreateModulesRequest_Value_builder) Build ¶
func (b0 CreateModulesRequest_Value_builder) Build() *CreateModulesRequest_Value
type CreateModulesRequest_builder ¶
type CreateModulesRequest_builder struct {
// The Modules to create.
Values []*CreateModulesRequest_Value
// contains filtered or unexported fields
}
func (CreateModulesRequest_builder) Build ¶
func (b0 CreateModulesRequest_builder) Build() *CreateModulesRequest
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) 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) SetModules ¶
func (x *CreateModulesResponse) SetModules(v []*Module)
func (*CreateModulesResponse) String ¶
func (x *CreateModulesResponse) String() string
type CreateModulesResponse_builder ¶
type CreateModulesResponse_builder struct {
// The created Modules in the same order as given on the request.
Modules []*Module
// contains filtered or unexported fields
}
func (CreateModulesResponse_builder) Build ¶
func (b0 CreateModulesResponse_builder) Build() *CreateModulesResponse
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) GetValues ¶
func (x *CreateOrUpdateLabelsRequest) GetValues() []*CreateOrUpdateLabelsRequest_Value
func (*CreateOrUpdateLabelsRequest) ProtoMessage ¶
func (*CreateOrUpdateLabelsRequest) ProtoMessage()
func (*CreateOrUpdateLabelsRequest) ProtoReflect ¶
func (x *CreateOrUpdateLabelsRequest) ProtoReflect() protoreflect.Message
func (*CreateOrUpdateLabelsRequest) Reset ¶
func (x *CreateOrUpdateLabelsRequest) Reset()
func (*CreateOrUpdateLabelsRequest) SetValues ¶
func (x *CreateOrUpdateLabelsRequest) SetValues(v []*CreateOrUpdateLabelsRequest_Value)
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) ClearLabelRef ¶
func (x *CreateOrUpdateLabelsRequest_Value) ClearLabelRef()
func (*CreateOrUpdateLabelsRequest_Value) GetCommitId ¶
func (x *CreateOrUpdateLabelsRequest_Value) GetCommitId() string
func (*CreateOrUpdateLabelsRequest_Value) GetLabelRef ¶
func (x *CreateOrUpdateLabelsRequest_Value) GetLabelRef() *LabelRef
func (*CreateOrUpdateLabelsRequest_Value) HasLabelRef ¶
func (x *CreateOrUpdateLabelsRequest_Value) HasLabelRef() bool
func (*CreateOrUpdateLabelsRequest_Value) ProtoMessage ¶
func (*CreateOrUpdateLabelsRequest_Value) ProtoMessage()
func (*CreateOrUpdateLabelsRequest_Value) ProtoReflect ¶
func (x *CreateOrUpdateLabelsRequest_Value) ProtoReflect() protoreflect.Message
func (*CreateOrUpdateLabelsRequest_Value) Reset ¶
func (x *CreateOrUpdateLabelsRequest_Value) Reset()
func (*CreateOrUpdateLabelsRequest_Value) SetCommitId ¶
func (x *CreateOrUpdateLabelsRequest_Value) SetCommitId(v string)
func (*CreateOrUpdateLabelsRequest_Value) SetLabelRef ¶
func (x *CreateOrUpdateLabelsRequest_Value) SetLabelRef(v *LabelRef)
func (*CreateOrUpdateLabelsRequest_Value) String ¶
func (x *CreateOrUpdateLabelsRequest_Value) String() string
type CreateOrUpdateLabelsRequest_Value_builder ¶
type CreateOrUpdateLabelsRequest_Value_builder struct {
// The Labels to create or update.
LabelRef *LabelRef
// 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
// contains filtered or unexported fields
}
func (CreateOrUpdateLabelsRequest_Value_builder) Build ¶
func (b0 CreateOrUpdateLabelsRequest_Value_builder) Build() *CreateOrUpdateLabelsRequest_Value
type CreateOrUpdateLabelsRequest_builder ¶
type CreateOrUpdateLabelsRequest_builder struct {
// The Labels to create.
Values []*CreateOrUpdateLabelsRequest_Value
// contains filtered or unexported fields
}
func (CreateOrUpdateLabelsRequest_builder) Build ¶
func (b0 CreateOrUpdateLabelsRequest_builder) Build() *CreateOrUpdateLabelsRequest
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) GetLabels ¶
func (x *CreateOrUpdateLabelsResponse) GetLabels() []*Label
func (*CreateOrUpdateLabelsResponse) ProtoMessage ¶
func (*CreateOrUpdateLabelsResponse) ProtoMessage()
func (*CreateOrUpdateLabelsResponse) ProtoReflect ¶
func (x *CreateOrUpdateLabelsResponse) ProtoReflect() protoreflect.Message
func (*CreateOrUpdateLabelsResponse) Reset ¶
func (x *CreateOrUpdateLabelsResponse) Reset()
func (*CreateOrUpdateLabelsResponse) SetLabels ¶
func (x *CreateOrUpdateLabelsResponse) SetLabels(v []*Label)
func (*CreateOrUpdateLabelsResponse) String ¶
func (x *CreateOrUpdateLabelsResponse) String() string
type CreateOrUpdateLabelsResponse_builder ¶
type CreateOrUpdateLabelsResponse_builder struct {
// The created or updated Labels in the same order as given on the request.
Labels []*Label
// contains filtered or unexported fields
}
func (CreateOrUpdateLabelsResponse_builder) Build ¶
func (b0 CreateOrUpdateLabelsResponse_builder) Build() *CreateOrUpdateLabelsResponse
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) 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) SetModuleRefs ¶
func (x *DeleteModulesRequest) SetModuleRefs(v []*ModuleRef)
func (*DeleteModulesRequest) String ¶
func (x *DeleteModulesRequest) String() string
type DeleteModulesRequest_builder ¶
type DeleteModulesRequest_builder struct {
// The Modules to delete.
ModuleRefs []*ModuleRef
// contains filtered or unexported fields
}
func (DeleteModulesRequest_builder) Build ¶
func (b0 DeleteModulesRequest_builder) Build() *DeleteModulesRequest
type DeleteModulesResponse ¶
type DeleteModulesResponse struct {
// contains filtered or unexported fields
}
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 DeleteModulesResponse_builder ¶
type DeleteModulesResponse_builder struct {
// contains filtered or unexported fields
}
func (DeleteModulesResponse_builder) Build ¶
func (b0 DeleteModulesResponse_builder) Build() *DeleteModulesResponse
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) GetType ¶
func (x *Digest) GetType() DigestType
func (*Digest) ProtoReflect ¶
func (x *Digest) ProtoReflect() protoreflect.Message
func (*Digest) SetType ¶
func (x *Digest) SetType(v DigestType)
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) Number ¶
func (x DigestType) Number() protoreflect.EnumNumber
func (DigestType) String ¶
func (x DigestType) String() string
func (DigestType) Type ¶
func (DigestType) Type() protoreflect.EnumType
type Digest_builder ¶
type Digest_builder struct {
// The type of the Digest.
Type DigestType
// The value of the Digest.
Value []byte
// contains filtered or unexported fields
}
func (Digest_builder) Build ¶
func (b0 Digest_builder) Build() *Digest
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) 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) SetValues ¶
func (x *DownloadRequest) SetValues(v []*DownloadRequest_Value)
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) ClearResourceRef ¶
func (x *DownloadRequest_Value) ClearResourceRef()
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) HasResourceRef ¶
func (x *DownloadRequest_Value) HasResourceRef() bool
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) SetFileTypes ¶
func (x *DownloadRequest_Value) SetFileTypes(v []FileType)
func (*DownloadRequest_Value) SetPaths ¶
func (x *DownloadRequest_Value) SetPaths(v []string)
func (*DownloadRequest_Value) SetPathsAllowNotExist ¶
func (x *DownloadRequest_Value) SetPathsAllowNotExist(v bool)
func (*DownloadRequest_Value) SetResourceRef ¶
func (x *DownloadRequest_Value) SetResourceRef(v *ResourceRef)
func (*DownloadRequest_Value) String ¶
func (x *DownloadRequest_Value) String() string
type DownloadRequest_Value_builder ¶
type DownloadRequest_Value_builder 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
// Specific file types to request.
//
// If not set, all file types are returned.
FileTypes []FileType
// 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
// 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
// contains filtered or unexported fields
}
func (DownloadRequest_Value_builder) Build ¶
func (b0 DownloadRequest_Value_builder) Build() *DownloadRequest_Value
type DownloadRequest_builder ¶
type DownloadRequest_builder struct {
// The references to get contents for.
Values []*DownloadRequest_Value
// contains filtered or unexported fields
}
func (DownloadRequest_builder) Build ¶
func (b0 DownloadRequest_builder) Build() *DownloadRequest
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) 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) SetContents ¶
func (x *DownloadResponse) SetContents(v []*DownloadResponse_Content)
func (*DownloadResponse) String ¶
func (x *DownloadResponse) String() string
type DownloadResponse_Content ¶
type DownloadResponse_Content struct {
// The Commit associated with the Content.
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) ClearCommit ¶
func (x *DownloadResponse_Content) ClearCommit()
func (*DownloadResponse_Content) GetCommit ¶
func (x *DownloadResponse_Content) GetCommit() *Commit
func (*DownloadResponse_Content) GetFiles ¶
func (x *DownloadResponse_Content) GetFiles() []*File
func (*DownloadResponse_Content) HasCommit ¶
func (x *DownloadResponse_Content) HasCommit() bool
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) SetCommit ¶
func (x *DownloadResponse_Content) SetCommit(v *Commit)
func (*DownloadResponse_Content) SetFiles ¶
func (x *DownloadResponse_Content) SetFiles(v []*File)
func (*DownloadResponse_Content) String ¶
func (x *DownloadResponse_Content) String() string
type DownloadResponse_Content_builder ¶
type DownloadResponse_Content_builder struct {
// The Commit associated with the Content.
Commit *Commit
// 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
// contains filtered or unexported fields
}
func (DownloadResponse_Content_builder) Build ¶
func (b0 DownloadResponse_Content_builder) Build() *DownloadResponse_Content
type DownloadResponse_builder ¶
type DownloadResponse_builder struct {
// The Contents of the references in the same order as requested.
Contents []*DownloadResponse_Content
// contains filtered or unexported fields
}
func (DownloadResponse_builder) Build ¶
func (b0 DownloadResponse_builder) Build() *DownloadResponse
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) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
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) Number ¶
func (x FileType) Number() protoreflect.EnumNumber
func (FileType) Type ¶
func (FileType) Type() protoreflect.EnumType
type File_builder ¶
type File_builder struct {
// The path of the File.
//
// The path must be relative, and cannot contain any "." or ".." components.
// The separator "/" must be used.
Path string
// The content of the File.
//
// May be empty.
Content []byte
// contains filtered or unexported fields
}
func (File_builder) Build ¶
func (b0 File_builder) Build() *File
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) 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) SetResourceRefs ¶
func (x *GetCommitsRequest) SetResourceRefs(v []*ResourceRef)
func (*GetCommitsRequest) String ¶
func (x *GetCommitsRequest) String() string
type GetCommitsRequest_builder ¶
type GetCommitsRequest_builder 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
// contains filtered or unexported fields
}
func (GetCommitsRequest_builder) Build ¶
func (b0 GetCommitsRequest_builder) Build() *GetCommitsRequest
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) 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) SetCommits ¶
func (x *GetCommitsResponse) SetCommits(v []*Commit)
func (*GetCommitsResponse) String ¶
func (x *GetCommitsResponse) String() string
type GetCommitsResponse_builder ¶
type GetCommitsResponse_builder struct {
// The found Commits in the same order as requested.
Commits []*Commit
// contains filtered or unexported fields
}
func (GetCommitsResponse_builder) Build ¶
func (b0 GetCommitsResponse_builder) Build() *GetCommitsResponse
type GetFileDescriptorSetRequest ¶
type GetFileDescriptorSetRequest struct {
// The reference to get the FileDescriptorSet 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 FileDescriptorSet for the Commit of the default Label is returned.
// - If a Label is referenced, the FileDescriptorSet for the Commit of this Label is returned.
// - If a Commit is referenced, the FileDescriptorSet for this Commit is returned.
ResourceRef *ResourceRef `protobuf:"bytes,1,opt,name=resource_ref,json=resourceRef,proto3" json:"resource_ref,omitempty"`
// Exclude imports from the returned FileDescriptorSet.
//
// A file is an import if:
//
// - It comes from a dependency of the Module specified via the ResourceRef used in the request.
// For example, if the ResourceRef specifies "buf.build/foo/bar", which depends on
// "buf.build/foo/baz", all files from "buf.build/foo/baz" will be imports.
// - It is a Well-Known Type, and the Well-Known Type was not part of the Module specified
// via the ResourceRef used in the request. Well-Known Types are special in the Protobuf ecosystem,
// and can be imported without being contained in a specified module.
// - It contains types that are referenced by types specified in the request. For example,
// if the request specified symbol "foo.v1.Foo" contained within "foo.proto", which has a message
// field of type "baz.v1.Baz", which is contained within "baz.proto", then the file "baz.proto"
// will be marked as an import, regardless of which Module it derived from. If the types field
// is not specified on the request, this situation will never occur.
//
// Note that if imports are excluded, the returned FileDescriptorSet may not (and likely will not)
// be self-contained. If imports are included, all types referenced within the FileDescriptorSet
// are contained within the returned FileDescriptorSet.
ExcludeImports bool `protobuf:"varint,2,opt,name=exclude_imports,json=excludeImports,proto3" json:"exclude_imports,omitempty"`
// Include SourceCodeInfo in the returned FileDescriptorProtos.
//
// SourceCodeInfo is optional additional information that is not required to describe a set
// of Protobuf APIs.
IncludeSourceCodeInfo bool `` /* 129-byte string literal not displayed */
// Include source-retention options in the returned FileDescriptorProtos.
//
// With the new Editions work, options are either runtime-retention or source-retention.
// Setting this option will include the latter.
IncludeSourceRetentionOptions bool `` /* 153-byte string literal not displayed */
// Only include the specified types (and types that they reference, if exclude_imports is not set).
//
// A type is a package, message, enum, service, method, or extension.
//
// Types are referenced by their fully-qualified name. For example, if "Foo" is a message within
// the package "foo.v1", the fully-qualified name is "foo.v1.Foo". Fully-qualified names should
// not start with a period, that is specify "foo.v1.Foo", not ".foo.v1.Foo".
//
// If no types are provided, all types are returned.
IncludeTypes []string `protobuf:"bytes,5,rep,name=include_types,json=includeTypes,proto3" json:"include_types,omitempty"`
// Exclude the specified types (and types that they reference if they are the only the
// only references to those types, if exclude_imports is not set).
//
// A type is a package, message, enum, service, method, or extension.
//
// Types are referenced by their fully-qualified name. For example, if "Foo" is a message within
// the package "foo.v1", the fully-qualified name is "foo.v1.Foo". Fully-qualified names should
// not start with a period, that is specify "foo.v1.Foo", not ".foo.v1.Foo".
ExcludeTypes []string `protobuf:"bytes,6,rep,name=exclude_types,json=excludeTypes,proto3" json:"exclude_types,omitempty"`
// contains filtered or unexported fields
}
func (*GetFileDescriptorSetRequest) ClearResourceRef ¶
func (x *GetFileDescriptorSetRequest) ClearResourceRef()
func (*GetFileDescriptorSetRequest) GetExcludeImports ¶
func (x *GetFileDescriptorSetRequest) GetExcludeImports() bool
func (*GetFileDescriptorSetRequest) GetExcludeTypes ¶
func (x *GetFileDescriptorSetRequest) GetExcludeTypes() []string
func (*GetFileDescriptorSetRequest) GetIncludeSourceCodeInfo ¶
func (x *GetFileDescriptorSetRequest) GetIncludeSourceCodeInfo() bool
func (*GetFileDescriptorSetRequest) GetIncludeSourceRetentionOptions ¶
func (x *GetFileDescriptorSetRequest) GetIncludeSourceRetentionOptions() bool
func (*GetFileDescriptorSetRequest) GetIncludeTypes ¶
func (x *GetFileDescriptorSetRequest) GetIncludeTypes() []string
func (*GetFileDescriptorSetRequest) GetResourceRef ¶
func (x *GetFileDescriptorSetRequest) GetResourceRef() *ResourceRef
func (*GetFileDescriptorSetRequest) HasResourceRef ¶
func (x *GetFileDescriptorSetRequest) HasResourceRef() bool
func (*GetFileDescriptorSetRequest) ProtoMessage ¶
func (*GetFileDescriptorSetRequest) ProtoMessage()
func (*GetFileDescriptorSetRequest) ProtoReflect ¶
func (x *GetFileDescriptorSetRequest) ProtoReflect() protoreflect.Message
func (*GetFileDescriptorSetRequest) Reset ¶
func (x *GetFileDescriptorSetRequest) Reset()
func (*GetFileDescriptorSetRequest) SetExcludeImports ¶
func (x *GetFileDescriptorSetRequest) SetExcludeImports(v bool)
func (*GetFileDescriptorSetRequest) SetExcludeTypes ¶
func (x *GetFileDescriptorSetRequest) SetExcludeTypes(v []string)
func (*GetFileDescriptorSetRequest) SetIncludeSourceCodeInfo ¶
func (x *GetFileDescriptorSetRequest) SetIncludeSourceCodeInfo(v bool)
func (*GetFileDescriptorSetRequest) SetIncludeSourceRetentionOptions ¶
func (x *GetFileDescriptorSetRequest) SetIncludeSourceRetentionOptions(v bool)
func (*GetFileDescriptorSetRequest) SetIncludeTypes ¶
func (x *GetFileDescriptorSetRequest) SetIncludeTypes(v []string)
func (*GetFileDescriptorSetRequest) SetResourceRef ¶
func (x *GetFileDescriptorSetRequest) SetResourceRef(v *ResourceRef)
func (*GetFileDescriptorSetRequest) String ¶
func (x *GetFileDescriptorSetRequest) String() string
type GetFileDescriptorSetRequest_builder ¶
type GetFileDescriptorSetRequest_builder struct {
// The reference to get the FileDescriptorSet 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 FileDescriptorSet for the Commit of the default Label is returned.
// - If a Label is referenced, the FileDescriptorSet for the Commit of this Label is returned.
// - If a Commit is referenced, the FileDescriptorSet for this Commit is returned.
ResourceRef *ResourceRef
// Exclude imports from the returned FileDescriptorSet.
//
// A file is an import if:
//
// - It comes from a dependency of the Module specified via the ResourceRef used in the request.
// For example, if the ResourceRef specifies "buf.build/foo/bar", which depends on
// "buf.build/foo/baz", all files from "buf.build/foo/baz" will be imports.
// - It is a Well-Known Type, and the Well-Known Type was not part of the Module specified
// via the ResourceRef used in the request. Well-Known Types are special in the Protobuf ecosystem,
// and can be imported without being contained in a specified module.
// - It contains types that are referenced by types specified in the request. For example,
// if the request specified symbol "foo.v1.Foo" contained within "foo.proto", which has a message
// field of type "baz.v1.Baz", which is contained within "baz.proto", then the file "baz.proto"
// will be marked as an import, regardless of which Module it derived from. If the types field
// is not specified on the request, this situation will never occur.
//
// Note that if imports are excluded, the returned FileDescriptorSet may not (and likely will not)
// be self-contained. If imports are included, all types referenced within the FileDescriptorSet
// are contained within the returned FileDescriptorSet.
ExcludeImports bool
// Include SourceCodeInfo in the returned FileDescriptorProtos.
//
// SourceCodeInfo is optional additional information that is not required to describe a set
// of Protobuf APIs.
IncludeSourceCodeInfo bool
// Include source-retention options in the returned FileDescriptorProtos.
//
// With the new Editions work, options are either runtime-retention or source-retention.
// Setting this option will include the latter.
IncludeSourceRetentionOptions bool
// Only include the specified types (and types that they reference, if exclude_imports is not set).
//
// A type is a package, message, enum, service, method, or extension.
//
// Types are referenced by their fully-qualified name. For example, if "Foo" is a message within
// the package "foo.v1", the fully-qualified name is "foo.v1.Foo". Fully-qualified names should
// not start with a period, that is specify "foo.v1.Foo", not ".foo.v1.Foo".
//
// If no types are provided, all types are returned.
IncludeTypes []string
// Exclude the specified types (and types that they reference if they are the only the
// only references to those types, if exclude_imports is not set).
//
// A type is a package, message, enum, service, method, or extension.
//
// Types are referenced by their fully-qualified name. For example, if "Foo" is a message within
// the package "foo.v1", the fully-qualified name is "foo.v1.Foo". Fully-qualified names should
// not start with a period, that is specify "foo.v1.Foo", not ".foo.v1.Foo".
ExcludeTypes []string
// contains filtered or unexported fields
}
func (GetFileDescriptorSetRequest_builder) Build ¶
func (b0 GetFileDescriptorSetRequest_builder) Build() *GetFileDescriptorSetRequest
type GetFileDescriptorSetResponse ¶
type GetFileDescriptorSetResponse struct {
// The FileDescriptorSet representing the referenced Module, Label, or Commit.
FileDescriptorSet *descriptorpb.FileDescriptorSet `protobuf:"bytes,1,opt,name=file_descriptor_set,json=fileDescriptorSet,proto3" json:"file_descriptor_set,omitempty"`
// The Commit associated with the resolved resource.
Commit *Commit `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
// contains filtered or unexported fields
}
func (*GetFileDescriptorSetResponse) ClearCommit ¶
func (x *GetFileDescriptorSetResponse) ClearCommit()
func (*GetFileDescriptorSetResponse) ClearFileDescriptorSet ¶
func (x *GetFileDescriptorSetResponse) ClearFileDescriptorSet()
func (*GetFileDescriptorSetResponse) GetCommit ¶
func (x *GetFileDescriptorSetResponse) GetCommit() *Commit
func (*GetFileDescriptorSetResponse) GetFileDescriptorSet ¶
func (x *GetFileDescriptorSetResponse) GetFileDescriptorSet() *descriptorpb.FileDescriptorSet
func (*GetFileDescriptorSetResponse) HasCommit ¶
func (x *GetFileDescriptorSetResponse) HasCommit() bool
func (*GetFileDescriptorSetResponse) HasFileDescriptorSet ¶
func (x *GetFileDescriptorSetResponse) HasFileDescriptorSet() bool
func (*GetFileDescriptorSetResponse) ProtoMessage ¶
func (*GetFileDescriptorSetResponse) ProtoMessage()
func (*GetFileDescriptorSetResponse) ProtoReflect ¶
func (x *GetFileDescriptorSetResponse) ProtoReflect() protoreflect.Message
func (*GetFileDescriptorSetResponse) Reset ¶
func (x *GetFileDescriptorSetResponse) Reset()
func (*GetFileDescriptorSetResponse) SetCommit ¶
func (x *GetFileDescriptorSetResponse) SetCommit(v *Commit)
func (*GetFileDescriptorSetResponse) SetFileDescriptorSet ¶
func (x *GetFileDescriptorSetResponse) SetFileDescriptorSet(v *descriptorpb.FileDescriptorSet)
func (*GetFileDescriptorSetResponse) String ¶
func (x *GetFileDescriptorSetResponse) String() string
type GetFileDescriptorSetResponse_builder ¶
type GetFileDescriptorSetResponse_builder struct {
// The FileDescriptorSet representing the referenced Module, Label, or Commit.
FileDescriptorSet *descriptorpb.FileDescriptorSet
// The Commit associated with the resolved resource.
Commit *Commit
// contains filtered or unexported fields
}
func (GetFileDescriptorSetResponse_builder) Build ¶
func (b0 GetFileDescriptorSetResponse_builder) Build() *GetFileDescriptorSetResponse
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) 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) SetResourceRefs ¶
func (x *GetGraphRequest) SetResourceRefs(v []*ResourceRef)
func (*GetGraphRequest) String ¶
func (x *GetGraphRequest) String() string
type GetGraphRequest_builder ¶
type GetGraphRequest_builder 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
// contains filtered or unexported fields
}
func (GetGraphRequest_builder) Build ¶
func (b0 GetGraphRequest_builder) Build() *GetGraphRequest
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) ClearGraph ¶
func (x *GetGraphResponse) ClearGraph()
func (*GetGraphResponse) GetGraph ¶
func (x *GetGraphResponse) GetGraph() *Graph
func (*GetGraphResponse) HasGraph ¶
func (x *GetGraphResponse) HasGraph() bool
func (*GetGraphResponse) ProtoMessage ¶
func (*GetGraphResponse) ProtoMessage()
func (*GetGraphResponse) ProtoReflect ¶
func (x *GetGraphResponse) ProtoReflect() protoreflect.Message
func (*GetGraphResponse) Reset ¶
func (x *GetGraphResponse) Reset()
func (*GetGraphResponse) SetGraph ¶
func (x *GetGraphResponse) SetGraph(v *Graph)
func (*GetGraphResponse) String ¶
func (x *GetGraphResponse) String() string
type GetGraphResponse_builder ¶
type GetGraphResponse_builder struct {
// The Graph calculated for the Commits.
Graph *Graph
// contains filtered or unexported fields
}
func (GetGraphResponse_builder) Build ¶
func (b0 GetGraphResponse_builder) Build() *GetGraphResponse
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) 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) SetLabelRefs ¶
func (x *GetLabelsRequest) SetLabelRefs(v []*LabelRef)
func (*GetLabelsRequest) String ¶
func (x *GetLabelsRequest) String() string
type GetLabelsRequest_builder ¶
type GetLabelsRequest_builder struct {
// The Labels to request.
//
// This may reference archived Labels.
LabelRefs []*LabelRef
// contains filtered or unexported fields
}
func (GetLabelsRequest_builder) Build ¶
func (b0 GetLabelsRequest_builder) Build() *GetLabelsRequest
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) 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) SetLabels ¶
func (x *GetLabelsResponse) SetLabels(v []*Label)
func (*GetLabelsResponse) String ¶
func (x *GetLabelsResponse) String() string
type GetLabelsResponse_builder ¶
type GetLabelsResponse_builder struct {
// The retrieved Labels in the same order as requested.
Labels []*Label
// contains filtered or unexported fields
}
func (GetLabelsResponse_builder) Build ¶
func (b0 GetLabelsResponse_builder) Build() *GetLabelsResponse
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) 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) SetModuleRefs ¶
func (x *GetModulesRequest) SetModuleRefs(v []*ModuleRef)
func (*GetModulesRequest) String ¶
func (x *GetModulesRequest) String() string
type GetModulesRequest_builder ¶
type GetModulesRequest_builder struct {
// The Modules to request.
ModuleRefs []*ModuleRef
// contains filtered or unexported fields
}
func (GetModulesRequest_builder) Build ¶
func (b0 GetModulesRequest_builder) Build() *GetModulesRequest
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) 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) SetModules ¶
func (x *GetModulesResponse) SetModules(v []*Module)
func (*GetModulesResponse) String ¶
func (x *GetModulesResponse) String() string
type GetModulesResponse_builder ¶
type GetModulesResponse_builder struct {
// The retrieved Modules in the same order as requested.
Modules []*Module
// contains filtered or unexported fields
}
func (GetModulesResponse_builder) Build ¶
func (b0 GetModulesResponse_builder) Build() *GetModulesResponse
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) 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) SetResourceRefs ¶
func (x *GetResourcesRequest) SetResourceRefs(v []*ResourceRef)
func (*GetResourcesRequest) String ¶
func (x *GetResourcesRequest) String() string
type GetResourcesRequest_builder ¶
type GetResourcesRequest_builder struct {
// References to request a Resource for.
//
// See the documentation on ResourceRef for resource resolution details.
ResourceRefs []*ResourceRef
// contains filtered or unexported fields
}
func (GetResourcesRequest_builder) Build ¶
func (b0 GetResourcesRequest_builder) Build() *GetResourcesRequest
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) 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) SetResources ¶
func (x *GetResourcesResponse) SetResources(v []*Resource)
func (*GetResourcesResponse) String ¶
func (x *GetResourcesResponse) String() string
type GetResourcesResponse_builder ¶
type GetResourcesResponse_builder struct {
// The found Resources in the same order as requested.
Resources []*Resource
// contains filtered or unexported fields
}
func (GetResourcesResponse_builder) Build ¶
func (b0 GetResourcesResponse_builder) Build() *GetResourcesResponse
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) GetEdges ¶
func (x *Graph) GetEdges() []*Graph_Edge
func (*Graph) ProtoReflect ¶
func (x *Graph) ProtoReflect() protoreflect.Message
func (*Graph) SetEdges ¶
func (x *Graph) SetEdges(v []*Graph_Edge)
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) ClearFromNode ¶
func (x *Graph_Edge) ClearFromNode()
func (*Graph_Edge) ClearToNode ¶
func (x *Graph_Edge) ClearToNode()
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) HasFromNode ¶
func (x *Graph_Edge) HasFromNode() bool
func (*Graph_Edge) HasToNode ¶
func (x *Graph_Edge) HasToNode() bool
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) SetFromNode ¶
func (x *Graph_Edge) SetFromNode(v *Graph_Node)
func (*Graph_Edge) SetToNode ¶
func (x *Graph_Edge) SetToNode(v *Graph_Node)
func (*Graph_Edge) String ¶
func (x *Graph_Edge) String() string
type Graph_Edge_builder ¶
type Graph_Edge_builder struct {
// The Node of the start of the edge.
FromNode *Graph_Node
// The Node of the end of the edge.
ToNode *Graph_Node
// contains filtered or unexported fields
}
func (Graph_Edge_builder) Build ¶
func (b0 Graph_Edge_builder) Build() *Graph_Edge
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) 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) SetCommitId ¶
func (x *Graph_Node) SetCommitId(v string)
func (*Graph_Node) String ¶
func (x *Graph_Node) String() string
type Graph_Node_builder ¶
type Graph_Node_builder struct {
// The commit of the node.
CommitId string
// contains filtered or unexported fields
}
func (Graph_Node_builder) Build ¶
func (b0 Graph_Node_builder) Build() *Graph_Node
type Graph_builder ¶
type Graph_builder struct {
// The nodes of the graph, each of which are Commits.
Commits []*Commit
// The edges of the graph.
Edges []*Graph_Edge
// contains filtered or unexported fields
}
func (Graph_builder) Build ¶
func (b0 Graph_builder) Build() *Graph
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) GetArchiveTime ¶
func (x *Label) GetArchiveTime() *timestamppb.Timestamp
func (*Label) GetCommitCheckState ¶
func (x *Label) GetCommitCheckState() *CommitCheckState
func (*Label) GetCreateTime ¶
func (x *Label) GetCreateTime() *timestamppb.Timestamp
func (*Label) GetUpdateTime ¶
func (x *Label) GetUpdateTime() *timestamppb.Timestamp
func (*Label) ProtoReflect ¶
func (x *Label) ProtoReflect() protoreflect.Message
func (*Label) SetArchiveTime ¶
func (x *Label) SetArchiveTime(v *timestamppb.Timestamp)
func (*Label) SetCommitCheckState ¶
func (x *Label) SetCommitCheckState(v *CommitCheckState)
func (*Label) SetCreateTime ¶
func (x *Label) SetCreateTime(v *timestamppb.Timestamp)
func (*Label) SetUpdateTime ¶
func (x *Label) SetUpdateTime(v *timestamppb.Timestamp)
type LabelRef ¶
type LabelRef struct {
// Types that are valid to be assigned 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) GetName ¶
func (x *LabelRef) GetName() *LabelRef_Name
func (*LabelRef) ProtoReflect ¶
func (x *LabelRef) ProtoReflect() protoreflect.Message
func (*LabelRef) SetName ¶
func (x *LabelRef) SetName(v *LabelRef_Name)
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.
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) 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) SetLabel ¶
func (x *LabelRef_Name) SetLabel(v string)
func (*LabelRef_Name) SetModule ¶
func (x *LabelRef_Name) SetModule(v string)
func (*LabelRef_Name) SetOwner ¶
func (x *LabelRef_Name) SetOwner(v string)
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 LabelRef_Name_builder ¶
type LabelRef_Name_builder struct {
// The name of the owner of the Module that contains the Label, either a User or Organization.
Owner string
// The name of the Module that contains the Label.
Module string
// The Label name.
Label string
// contains filtered or unexported fields
}
func (LabelRef_Name_builder) Build ¶
func (b0 LabelRef_Name_builder) Build() *LabelRef_Name
type LabelRef_builder ¶
type LabelRef_builder struct {
// Fields of oneof Value:
// The id of the Label.
Id *string
// The fully-qualified name of the Label.
Name *LabelRef_Name
// contains filtered or unexported fields
}
func (LabelRef_builder) Build ¶
func (b0 LabelRef_builder) Build() *LabelRef
type Label_builder ¶
type Label_builder struct {
// The id of the Label.
Id string
// The time the Label was created on the BSR.
CreateTime *timestamppb.Timestamp
// The last time the Label was updated on the BSR.
UpdateTime *timestamppb.Timestamp
// 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
// The name of the Label.
//
// Unique within a given Module.
Name string
// The id of the User or Organization that owns the Module that the Label is associated with.
OwnerId string
// The id of the Module that the Label is associated with.
ModuleId string
// 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
// 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
// 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
// contains filtered or unexported fields
}
func (Label_builder) Build ¶
func (b0 Label_builder) Build() *Label
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 (subject to any additional filters in the request):
// - 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) ClearResourceRef ¶
func (x *ListCommitsRequest) ClearResourceRef()
func (*ListCommitsRequest) GetIdQuery ¶
func (x *ListCommitsRequest) GetIdQuery() string
func (*ListCommitsRequest) GetOrder ¶
func (x *ListCommitsRequest) GetOrder() ListCommitsRequest_Order
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) HasResourceRef ¶
func (x *ListCommitsRequest) HasResourceRef() bool
func (*ListCommitsRequest) ProtoMessage ¶
func (*ListCommitsRequest) ProtoMessage()
func (*ListCommitsRequest) ProtoReflect ¶
func (x *ListCommitsRequest) ProtoReflect() protoreflect.Message
func (*ListCommitsRequest) Reset ¶
func (x *ListCommitsRequest) Reset()
func (*ListCommitsRequest) SetIdQuery ¶
func (x *ListCommitsRequest) SetIdQuery(v string)
func (*ListCommitsRequest) SetOrder ¶
func (x *ListCommitsRequest) SetOrder(v ListCommitsRequest_Order)
func (*ListCommitsRequest) SetPageSize ¶
func (x *ListCommitsRequest) SetPageSize(v uint32)
func (*ListCommitsRequest) SetPageToken ¶
func (x *ListCommitsRequest) SetPageToken(v string)
func (*ListCommitsRequest) SetResourceRef ¶
func (x *ListCommitsRequest) SetResourceRef(v *ResourceRef)
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) Descriptor() protoreflect.EnumDescriptor
func (ListCommitsRequest_Order) Enum ¶
func (x ListCommitsRequest_Order) Enum() *ListCommitsRequest_Order
func (ListCommitsRequest_Order) Number ¶
func (x ListCommitsRequest_Order) Number() protoreflect.EnumNumber
func (ListCommitsRequest_Order) String ¶
func (x ListCommitsRequest_Order) String() string
func (ListCommitsRequest_Order) Type ¶
func (ListCommitsRequest_Order) Type() protoreflect.EnumType
type ListCommitsRequest_builder ¶
type ListCommitsRequest_builder struct {
// The maximum number of items to return.
//
// The default value is 10.
PageSize uint32
// The page to start from.
//
// If empty, the first page is returned.
PageToken string
// The reference to list Commits for.
//
// See the documentation on Ref for resource resolution details.
//
// Once the resource is resolved, the following Commits are listed (subject to any additional filters in the request):
// - 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
// The order to return the Commits.
//
// If not specified, defaults to ORDER_CREATE_TIME_DESC.
Order ListCommitsRequest_Order
// Only return Commits with an id that contains this string using a case-insensitive comparison.
IdQuery string
// contains filtered or unexported fields
}
func (ListCommitsRequest_builder) Build ¶
func (b0 ListCommitsRequest_builder) Build() *ListCommitsRequest
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) 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) SetCommits ¶
func (x *ListCommitsResponse) SetCommits(v []*Commit)
func (*ListCommitsResponse) SetNextPageToken ¶
func (x *ListCommitsResponse) SetNextPageToken(v string)
func (*ListCommitsResponse) String ¶
func (x *ListCommitsResponse) String() string
type ListCommitsResponse_builder ¶
type ListCommitsResponse_builder struct {
// The next page token.
//
// If empty, there are no more pages.
NextPageToken string
// The listed Commits.
Commits []*Commit
// contains filtered or unexported fields
}
func (ListCommitsResponse_builder) Build ¶
func (b0 ListCommitsResponse_builder) Build() *ListCommitsResponse
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) ClearLabelRef ¶
func (x *ListLabelHistoryRequest) ClearLabelRef()
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 (x *ListLabelHistoryRequest) GetOrder() ListLabelHistoryRequest_Order
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) HasLabelRef ¶
func (x *ListLabelHistoryRequest) HasLabelRef() bool
func (*ListLabelHistoryRequest) ProtoMessage ¶
func (*ListLabelHistoryRequest) ProtoMessage()
func (*ListLabelHistoryRequest) ProtoReflect ¶
func (x *ListLabelHistoryRequest) ProtoReflect() protoreflect.Message
func (*ListLabelHistoryRequest) Reset ¶
func (x *ListLabelHistoryRequest) Reset()
func (*ListLabelHistoryRequest) SetCommitCheckStatuses ¶
func (x *ListLabelHistoryRequest) SetCommitCheckStatuses(v []CommitCheckStatus)
func (*ListLabelHistoryRequest) SetLabelRef ¶
func (x *ListLabelHistoryRequest) SetLabelRef(v *LabelRef)
func (*ListLabelHistoryRequest) SetOnlyCommitsWithChangedDigests ¶
func (x *ListLabelHistoryRequest) SetOnlyCommitsWithChangedDigests(v bool)
func (*ListLabelHistoryRequest) SetOrder ¶
func (x *ListLabelHistoryRequest) SetOrder(v ListLabelHistoryRequest_Order)
func (*ListLabelHistoryRequest) SetPageSize ¶
func (x *ListLabelHistoryRequest) SetPageSize(v uint32)
func (*ListLabelHistoryRequest) SetPageToken ¶
func (x *ListLabelHistoryRequest) SetPageToken(v string)
func (*ListLabelHistoryRequest) SetStartCommitId ¶
func (x *ListLabelHistoryRequest) SetStartCommitId(v string)
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) Descriptor() protoreflect.EnumDescriptor
func (ListLabelHistoryRequest_Order) Enum ¶
func (x ListLabelHistoryRequest_Order) Enum() *ListLabelHistoryRequest_Order
func (ListLabelHistoryRequest_Order) Number ¶
func (x ListLabelHistoryRequest_Order) Number() protoreflect.EnumNumber
func (ListLabelHistoryRequest_Order) String ¶
func (x ListLabelHistoryRequest_Order) String() string
func (ListLabelHistoryRequest_Order) Type ¶
func (ListLabelHistoryRequest_Order) Type() protoreflect.EnumType
type ListLabelHistoryRequest_builder ¶
type ListLabelHistoryRequest_builder struct {
// The maximum number of items to return.
//
// The default value is 10.
PageSize uint32
// The page to start from.
//
// If empty, the first page is returned.
PageToken string
// The Label to list history for.
//
// This may reference archived Labels.
LabelRef *LabelRef
// The order to list the Labels.
//
// If not specified, defaults to ORDER_DESC.
Order ListLabelHistoryRequest_Order
// 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
// The Commit id to start from.
//
// It is an error to provide a Commit id that doesn't exist on the Label.
StartCommitId string
// Only list Commits where the Digest has changed from the previous Commit in the
// history of this Label.
OnlyCommitsWithChangedDigests bool
// contains filtered or unexported fields
}
func (ListLabelHistoryRequest_builder) Build ¶
func (b0 ListLabelHistoryRequest_builder) Build() *ListLabelHistoryRequest
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) GetNextPageToken ¶
func (x *ListLabelHistoryResponse) GetNextPageToken() string
func (*ListLabelHistoryResponse) GetValues ¶
func (x *ListLabelHistoryResponse) GetValues() []*ListLabelHistoryResponse_Value
func (*ListLabelHistoryResponse) ProtoMessage ¶
func (*ListLabelHistoryResponse) ProtoMessage()
func (*ListLabelHistoryResponse) ProtoReflect ¶
func (x *ListLabelHistoryResponse) ProtoReflect() protoreflect.Message
func (*ListLabelHistoryResponse) Reset ¶
func (x *ListLabelHistoryResponse) Reset()
func (*ListLabelHistoryResponse) SetNextPageToken ¶
func (x *ListLabelHistoryResponse) SetNextPageToken(v string)
func (*ListLabelHistoryResponse) SetValues ¶
func (x *ListLabelHistoryResponse) SetValues(v []*ListLabelHistoryResponse_Value)
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) ClearCommit ¶
func (x *ListLabelHistoryResponse_Value) ClearCommit()
func (*ListLabelHistoryResponse_Value) ClearCommitCheckState ¶
func (x *ListLabelHistoryResponse_Value) ClearCommitCheckState()
func (*ListLabelHistoryResponse_Value) GetCommit ¶
func (x *ListLabelHistoryResponse_Value) GetCommit() *Commit
func (*ListLabelHistoryResponse_Value) GetCommitCheckState ¶
func (x *ListLabelHistoryResponse_Value) GetCommitCheckState() *CommitCheckState
func (*ListLabelHistoryResponse_Value) HasCommit ¶
func (x *ListLabelHistoryResponse_Value) HasCommit() bool
func (*ListLabelHistoryResponse_Value) HasCommitCheckState ¶
func (x *ListLabelHistoryResponse_Value) HasCommitCheckState() bool
func (*ListLabelHistoryResponse_Value) ProtoMessage ¶
func (*ListLabelHistoryResponse_Value) ProtoMessage()
func (*ListLabelHistoryResponse_Value) ProtoReflect ¶
func (x *ListLabelHistoryResponse_Value) ProtoReflect() protoreflect.Message
func (*ListLabelHistoryResponse_Value) Reset ¶
func (x *ListLabelHistoryResponse_Value) Reset()
func (*ListLabelHistoryResponse_Value) SetCommit ¶
func (x *ListLabelHistoryResponse_Value) SetCommit(v *Commit)
func (*ListLabelHistoryResponse_Value) SetCommitCheckState ¶
func (x *ListLabelHistoryResponse_Value) SetCommitCheckState(v *CommitCheckState)
func (*ListLabelHistoryResponse_Value) String ¶
func (x *ListLabelHistoryResponse_Value) String() string
type ListLabelHistoryResponse_Value_builder ¶
type ListLabelHistoryResponse_Value_builder struct {
// The Commit.
Commit *Commit
// The CommitCheckState for this Commit on this Label.
CommitCheckState *CommitCheckState
// contains filtered or unexported fields
}
func (ListLabelHistoryResponse_Value_builder) Build ¶
func (b0 ListLabelHistoryResponse_Value_builder) Build() *ListLabelHistoryResponse_Value
type ListLabelHistoryResponse_builder ¶
type ListLabelHistoryResponse_builder struct {
// The next page token.
//
// If empty, there are no more pages.
NextPageToken string
// The ordered history of the Label.
Values []*ListLabelHistoryResponse_Value
// contains filtered or unexported fields
}
func (ListLabelHistoryResponse_builder) Build ¶
func (b0 ListLabelHistoryResponse_builder) Build() *ListLabelHistoryResponse
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 (subject to any additional filters in the request):
// - 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) ClearResourceRef ¶
func (x *ListLabelsRequest) ClearResourceRef()
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 (x *ListLabelsRequest) GetOrder() ListLabelsRequest_Order
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) HasResourceRef ¶
func (x *ListLabelsRequest) HasResourceRef() bool
func (*ListLabelsRequest) ProtoMessage ¶
func (*ListLabelsRequest) ProtoMessage()
func (*ListLabelsRequest) ProtoReflect ¶
func (x *ListLabelsRequest) ProtoReflect() protoreflect.Message
func (*ListLabelsRequest) Reset ¶
func (x *ListLabelsRequest) Reset()
func (*ListLabelsRequest) SetArchiveFilter ¶
func (x *ListLabelsRequest) SetArchiveFilter(v ListLabelsRequest_ArchiveFilter)
func (*ListLabelsRequest) SetCommitCheckStatuses ¶
func (x *ListLabelsRequest) SetCommitCheckStatuses(v []CommitCheckStatus)
func (*ListLabelsRequest) SetNameQuery ¶
func (x *ListLabelsRequest) SetNameQuery(v string)
func (*ListLabelsRequest) SetOrder ¶
func (x *ListLabelsRequest) SetOrder(v ListLabelsRequest_Order)
func (*ListLabelsRequest) SetPageSize ¶
func (x *ListLabelsRequest) SetPageSize(v uint32)
func (*ListLabelsRequest) SetPageToken ¶
func (x *ListLabelsRequest) SetPageToken(v string)
func (*ListLabelsRequest) SetResourceRef ¶
func (x *ListLabelsRequest) SetResourceRef(v *ResourceRef)
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) Descriptor() protoreflect.EnumDescriptor
func (ListLabelsRequest_ArchiveFilter) Enum ¶
func (x ListLabelsRequest_ArchiveFilter) Enum() *ListLabelsRequest_ArchiveFilter
func (ListLabelsRequest_ArchiveFilter) Number ¶
func (x ListLabelsRequest_ArchiveFilter) Number() protoreflect.EnumNumber
func (ListLabelsRequest_ArchiveFilter) String ¶
func (x ListLabelsRequest_ArchiveFilter) String() string
func (ListLabelsRequest_ArchiveFilter) Type ¶
func (ListLabelsRequest_ArchiveFilter) Type() protoreflect.EnumType
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 // Order by update_time newest to oldest. ListLabelsRequest_ORDER_UPDATE_TIME_DESC ListLabelsRequest_Order = 3 // Order by update_time oldest to newest. ListLabelsRequest_ORDER_UPDATE_TIME_ASC ListLabelsRequest_Order = 4 )
func (ListLabelsRequest_Order) Descriptor ¶
func (ListLabelsRequest_Order) Descriptor() protoreflect.EnumDescriptor
func (ListLabelsRequest_Order) Enum ¶
func (x ListLabelsRequest_Order) Enum() *ListLabelsRequest_Order
func (ListLabelsRequest_Order) Number ¶
func (x ListLabelsRequest_Order) Number() protoreflect.EnumNumber
func (ListLabelsRequest_Order) String ¶
func (x ListLabelsRequest_Order) String() string
func (ListLabelsRequest_Order) Type ¶
func (ListLabelsRequest_Order) Type() protoreflect.EnumType
type ListLabelsRequest_builder ¶
type ListLabelsRequest_builder struct {
// The maximum number of items to return.
//
// The default value is 10.
PageSize uint32
// The page to start from.
//
// If empty, the first page is returned.
PageToken string
// The reference to list Labels for.
//
// See the documentation on Ref for resource resolution details.
//
// Once the resource is resolved, the following Labels are listed (subject to any additional filters in the request):
// - 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
// The order to return the Labels.
//
// If not specified, defaults to ORDER_CREATE_TIME_DESC.
Order ListLabelsRequest_Order
// 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
// Only return Labels with a name that contains this string using a case-insensitive comparison.
NameQuery string
// The archive filter on the returned Labels.
//
// If not specified, defaults to ARCHIVE_FILTER_UNARCHIVED_ONLY.
ArchiveFilter ListLabelsRequest_ArchiveFilter
// contains filtered or unexported fields
}
func (ListLabelsRequest_builder) Build ¶
func (b0 ListLabelsRequest_builder) Build() *ListLabelsRequest
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) 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) SetLabels ¶
func (x *ListLabelsResponse) SetLabels(v []*Label)
func (*ListLabelsResponse) SetNextPageToken ¶
func (x *ListLabelsResponse) SetNextPageToken(v string)
func (*ListLabelsResponse) String ¶
func (x *ListLabelsResponse) String() string
type ListLabelsResponse_builder ¶
type ListLabelsResponse_builder struct {
// The next page token.
//
// If empty, there are no more pages.
NextPageToken string
// The listed Labels.
Labels []*Label
// contains filtered or unexported fields
}
func (ListLabelsResponse_builder) Build ¶
func (b0 ListLabelsResponse_builder) Build() *ListLabelsResponse
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) GetOrder ¶
func (x *ListModulesRequest) GetOrder() ListModulesRequest_Order
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) SetOrder ¶
func (x *ListModulesRequest) SetOrder(v ListModulesRequest_Order)
func (*ListModulesRequest) SetOwnerRefs ¶
func (x *ListModulesRequest) SetOwnerRefs(v []*v1.OwnerRef)
func (*ListModulesRequest) SetPageSize ¶
func (x *ListModulesRequest) SetPageSize(v uint32)
func (*ListModulesRequest) SetPageToken ¶
func (x *ListModulesRequest) SetPageToken(v string)
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 // Order by update_time newest to oldest. ListModulesRequest_ORDER_UPDATE_TIME_DESC ListModulesRequest_Order = 3 // Order by update_time oldest to newest. ListModulesRequest_ORDER_UPDATE_TIME_ASC ListModulesRequest_Order = 4 )
func (ListModulesRequest_Order) Descriptor ¶
func (ListModulesRequest_Order) Descriptor() protoreflect.EnumDescriptor
func (ListModulesRequest_Order) Enum ¶
func (x ListModulesRequest_Order) Enum() *ListModulesRequest_Order
func (ListModulesRequest_Order) Number ¶
func (x ListModulesRequest_Order) Number() protoreflect.EnumNumber
func (ListModulesRequest_Order) String ¶
func (x ListModulesRequest_Order) String() string
func (ListModulesRequest_Order) Type ¶
func (ListModulesRequest_Order) Type() protoreflect.EnumType
type ListModulesRequest_builder ¶
type ListModulesRequest_builder struct {
// The maximum number of items to return.
//
// The default value is 10.
PageSize uint32
// The page to start from.
//
// If empty, the first page is returned.
PageToken string
// The specific 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
// The order to return the Modules.
//
// If not specified, defaults to ORDER_CREATE_TIME_DESC.
Order ListModulesRequest_Order
// contains filtered or unexported fields
}
func (ListModulesRequest_builder) Build ¶
func (b0 ListModulesRequest_builder) Build() *ListModulesRequest
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) 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) SetModules ¶
func (x *ListModulesResponse) SetModules(v []*Module)
func (*ListModulesResponse) SetNextPageToken ¶
func (x *ListModulesResponse) SetNextPageToken(v string)
func (*ListModulesResponse) String ¶
func (x *ListModulesResponse) String() string
type ListModulesResponse_builder ¶
type ListModulesResponse_builder struct {
// The next page token.
//
// If empty, there are no more pages.
NextPageToken string
// The listed Modules.
Modules []*Module
// contains filtered or unexported fields
}
func (ListModulesResponse_builder) Build ¶
func (b0 ListModulesResponse_builder) Build() *ListModulesResponse
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) GetCreateTime ¶
func (x *Module) GetCreateTime() *timestamppb.Timestamp
func (*Module) GetState ¶
func (x *Module) GetState() ModuleState
func (*Module) GetUpdateTime ¶
func (x *Module) GetUpdateTime() *timestamppb.Timestamp
func (*Module) GetVisibility ¶
func (x *Module) GetVisibility() ModuleVisibility
func (*Module) ProtoReflect ¶
func (x *Module) ProtoReflect() protoreflect.Message
func (*Module) SetCreateTime ¶
func (x *Module) SetCreateTime(v *timestamppb.Timestamp)
func (*Module) SetState ¶
func (x *Module) SetState(v ModuleState)
func (*Module) SetUpdateTime ¶
func (x *Module) SetUpdateTime(v *timestamppb.Timestamp)
func (*Module) SetVisibility ¶
func (x *Module) SetVisibility(v ModuleVisibility)
type ModuleRef ¶
type ModuleRef struct {
// Types that are valid to be assigned 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) GetName ¶
func (x *ModuleRef) GetName() *ModuleRef_Name
func (*ModuleRef) ProtoReflect ¶
func (x *ModuleRef) ProtoReflect() protoreflect.Message
func (*ModuleRef) SetName ¶
func (x *ModuleRef) SetName(v *ModuleRef_Name)
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) 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) SetModule ¶
func (x *ModuleRef_Name) SetModule(v string)
func (*ModuleRef_Name) SetOwner ¶
func (x *ModuleRef_Name) SetOwner(v string)
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 ModuleRef_Name_builder ¶
type ModuleRef_Name_builder struct {
// The name of the owner of the Module, either a User or Organization.
Owner string
// The name of the Module.
Module string
// contains filtered or unexported fields
}
func (ModuleRef_Name_builder) Build ¶
func (b0 ModuleRef_Name_builder) Build() *ModuleRef_Name
type ModuleRef_builder ¶
type ModuleRef_builder struct {
// Fields of oneof Value:
// The id of the Module.
Id *string
// The fully-qualified name of the Module.
Name *ModuleRef_Name
// contains filtered or unexported fields
}
func (ModuleRef_builder) Build ¶
func (b0 ModuleRef_builder) Build() *ModuleRef
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) Descriptor() protoreflect.EnumDescriptor
func (ModuleState) Enum ¶
func (x ModuleState) Enum() *ModuleState
func (ModuleState) Number ¶
func (x ModuleState) Number() protoreflect.EnumNumber
func (ModuleState) String ¶
func (x ModuleState) String() string
func (ModuleState) Type ¶
func (ModuleState) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (ModuleVisibility) Enum ¶
func (x ModuleVisibility) Enum() *ModuleVisibility
func (ModuleVisibility) Number ¶
func (x ModuleVisibility) Number() protoreflect.EnumNumber
func (ModuleVisibility) String ¶
func (x ModuleVisibility) String() string
func (ModuleVisibility) Type ¶
func (ModuleVisibility) Type() protoreflect.EnumType
type Module_builder ¶
type Module_builder struct {
// The id of the Module.
Id string
// The time the Module was created on the BSR.
CreateTime *timestamppb.Timestamp
// The last time the Module was updated on the BSR.
UpdateTime *timestamppb.Timestamp
// The name of the Module.
//
// Unique within a given User or Organization.
Name string
// The id of the User or Organization that owns the Module.
OwnerId string
// The Module's visibility, either public or private.
Visibility ModuleVisibility
// The Module state, either active or deprecated.
State ModuleState
// The configurable description of the Module.
Description string
// The configurable URL in the description of the Module,
Url string
// 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
// contains filtered or unexported fields
}
func (Module_builder) Build ¶
func (b0 Module_builder) Build() *Module
type Resource ¶
type Resource struct {
// Types that are valid to be assigned 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) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type ResourceRef ¶
type ResourceRef struct {
// Types that are valid to be assigned 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) ClearId ¶
func (x *ResourceRef) ClearId()
func (*ResourceRef) ClearName ¶
func (x *ResourceRef) ClearName()
func (*ResourceRef) ClearValue ¶
func (x *ResourceRef) ClearValue()
func (*ResourceRef) GetId ¶
func (x *ResourceRef) GetId() string
func (*ResourceRef) GetName ¶
func (x *ResourceRef) GetName() *ResourceRef_Name
func (*ResourceRef) GetValue ¶
func (x *ResourceRef) GetValue() isResourceRef_Value
func (*ResourceRef) HasId ¶
func (x *ResourceRef) HasId() bool
func (*ResourceRef) HasName ¶
func (x *ResourceRef) HasName() bool
func (*ResourceRef) HasValue ¶
func (x *ResourceRef) HasValue() bool
func (*ResourceRef) ProtoMessage ¶
func (*ResourceRef) ProtoMessage()
func (*ResourceRef) ProtoReflect ¶
func (x *ResourceRef) ProtoReflect() protoreflect.Message
func (*ResourceRef) Reset ¶
func (x *ResourceRef) Reset()
func (*ResourceRef) SetId ¶
func (x *ResourceRef) SetId(v string)
func (*ResourceRef) SetName ¶
func (x *ResourceRef) SetName(v *ResourceRef_Name)
func (*ResourceRef) String ¶
func (x *ResourceRef) String() string
func (*ResourceRef) WhichValue ¶
func (x *ResourceRef) WhichValue() case_ResourceRef_Value
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 that 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 valid to be assigned 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) ClearChild ¶
func (x *ResourceRef_Name) ClearChild()
func (*ResourceRef_Name) ClearLabelName ¶
func (x *ResourceRef_Name) ClearLabelName()
func (*ResourceRef_Name) ClearRef ¶
func (x *ResourceRef_Name) ClearRef()
func (*ResourceRef_Name) GetChild ¶
func (x *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) HasChild ¶
func (x *ResourceRef_Name) HasChild() bool
func (*ResourceRef_Name) HasLabelName ¶
func (x *ResourceRef_Name) HasLabelName() bool
func (*ResourceRef_Name) HasRef ¶
func (x *ResourceRef_Name) HasRef() bool
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) SetLabelName ¶
func (x *ResourceRef_Name) SetLabelName(v string)
func (*ResourceRef_Name) SetModule ¶
func (x *ResourceRef_Name) SetModule(v string)
func (*ResourceRef_Name) SetOwner ¶
func (x *ResourceRef_Name) SetOwner(v string)
func (*ResourceRef_Name) SetRef ¶
func (x *ResourceRef_Name) SetRef(v string)
func (*ResourceRef_Name) String ¶
func (x *ResourceRef_Name) String() string
func (*ResourceRef_Name) WhichChild ¶
func (x *ResourceRef_Name) WhichChild() case_ResourceRef_Name_Child
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 ResourceRef_Name_builder ¶
type ResourceRef_Name_builder struct {
// The name of the User or Organization that owns the resource.
Owner string
// The name of the Module that contains or is the resource.
Module string
// Fields of oneof Child:
// 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
// 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
// contains filtered or unexported fields
}
func (ResourceRef_Name_builder) Build ¶
func (b0 ResourceRef_Name_builder) Build() *ResourceRef_Name
type ResourceRef_builder ¶
type ResourceRef_builder struct {
// Fields of oneof Value:
// The id of the resource.
Id *string
// The fully-qualified name of the resource.
Name *ResourceRef_Name
// contains filtered or unexported fields
}
func (ResourceRef_builder) Build ¶
func (b0 ResourceRef_builder) Build() *ResourceRef
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 Resource_builder ¶
type Resource_builder struct {
// Fields of oneof Value:
Module *Module
Label *Label
Commit *Commit
// contains filtered or unexported fields
}
func (Resource_builder) Build ¶
func (b0 Resource_builder) Build() *Resource
type ScopedLabelRef ¶
type ScopedLabelRef struct {
// Types that are valid to be assigned 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) ClearId ¶
func (x *ScopedLabelRef) ClearId()
func (*ScopedLabelRef) ClearName ¶
func (x *ScopedLabelRef) ClearName()
func (*ScopedLabelRef) ClearValue ¶
func (x *ScopedLabelRef) ClearValue()
func (*ScopedLabelRef) GetId ¶
func (x *ScopedLabelRef) GetId() string
func (*ScopedLabelRef) GetName ¶
func (x *ScopedLabelRef) GetName() string
func (*ScopedLabelRef) GetValue ¶
func (x *ScopedLabelRef) GetValue() isScopedLabelRef_Value
func (*ScopedLabelRef) HasId ¶
func (x *ScopedLabelRef) HasId() bool
func (*ScopedLabelRef) HasName ¶
func (x *ScopedLabelRef) HasName() bool
func (*ScopedLabelRef) HasValue ¶
func (x *ScopedLabelRef) HasValue() bool
func (*ScopedLabelRef) ProtoMessage ¶
func (*ScopedLabelRef) ProtoMessage()
func (*ScopedLabelRef) ProtoReflect ¶
func (x *ScopedLabelRef) ProtoReflect() protoreflect.Message
func (*ScopedLabelRef) Reset ¶
func (x *ScopedLabelRef) Reset()
func (*ScopedLabelRef) SetId ¶
func (x *ScopedLabelRef) SetId(v string)
func (*ScopedLabelRef) SetName ¶
func (x *ScopedLabelRef) SetName(v string)
func (*ScopedLabelRef) String ¶
func (x *ScopedLabelRef) String() string
func (*ScopedLabelRef) WhichValue ¶
func (x *ScopedLabelRef) WhichValue() case_ScopedLabelRef_Value
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 ScopedLabelRef_builder ¶
type ScopedLabelRef_builder struct {
// Fields of oneof Value:
// The id of the Label.
Id *string
// The name of the Label.
Name *string
// contains filtered or unexported fields
}
func (ScopedLabelRef_builder) Build ¶
func (b0 ScopedLabelRef_builder) Build() *ScopedLabelRef
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) 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) SetLabelRefs ¶
func (x *UnarchiveLabelsRequest) SetLabelRefs(v []*LabelRef)
func (*UnarchiveLabelsRequest) String ¶
func (x *UnarchiveLabelsRequest) String() string
type UnarchiveLabelsRequest_builder ¶
type UnarchiveLabelsRequest_builder struct {
// The Labels to unarchive.
LabelRefs []*LabelRef
// contains filtered or unexported fields
}
func (UnarchiveLabelsRequest_builder) Build ¶
func (b0 UnarchiveLabelsRequest_builder) Build() *UnarchiveLabelsRequest
type UnarchiveLabelsResponse ¶
type UnarchiveLabelsResponse struct {
// contains filtered or unexported fields
}
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 UnarchiveLabelsResponse_builder ¶
type UnarchiveLabelsResponse_builder struct {
// contains filtered or unexported fields
}
func (UnarchiveLabelsResponse_builder) Build ¶
func (b0 UnarchiveLabelsResponse_builder) Build() *UnarchiveLabelsResponse
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) GetValues ¶
func (x *UpdateModulesRequest) GetValues() []*UpdateModulesRequest_Value
func (*UpdateModulesRequest) ProtoMessage ¶
func (*UpdateModulesRequest) ProtoMessage()
func (*UpdateModulesRequest) ProtoReflect ¶
func (x *UpdateModulesRequest) ProtoReflect() protoreflect.Message
func (*UpdateModulesRequest) Reset ¶
func (x *UpdateModulesRequest) Reset()
func (*UpdateModulesRequest) SetValues ¶
func (x *UpdateModulesRequest) SetValues(v []*UpdateModulesRequest_Value)
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 not 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) ClearDefaultLabelName ¶
func (x *UpdateModulesRequest_Value) ClearDefaultLabelName()
func (*UpdateModulesRequest_Value) ClearDescription ¶
func (x *UpdateModulesRequest_Value) ClearDescription()
func (*UpdateModulesRequest_Value) ClearModuleRef ¶
func (x *UpdateModulesRequest_Value) ClearModuleRef()
func (*UpdateModulesRequest_Value) ClearState ¶
func (x *UpdateModulesRequest_Value) ClearState()
func (*UpdateModulesRequest_Value) ClearUrl ¶
func (x *UpdateModulesRequest_Value) ClearUrl()
func (*UpdateModulesRequest_Value) ClearVisibility ¶
func (x *UpdateModulesRequest_Value) ClearVisibility()
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 (x *UpdateModulesRequest_Value) GetState() ModuleState
func (*UpdateModulesRequest_Value) GetUrl ¶
func (x *UpdateModulesRequest_Value) GetUrl() string
func (*UpdateModulesRequest_Value) GetVisibility ¶
func (x *UpdateModulesRequest_Value) GetVisibility() ModuleVisibility
func (*UpdateModulesRequest_Value) HasDefaultLabelName ¶
func (x *UpdateModulesRequest_Value) HasDefaultLabelName() bool
func (*UpdateModulesRequest_Value) HasDescription ¶
func (x *UpdateModulesRequest_Value) HasDescription() bool
func (*UpdateModulesRequest_Value) HasModuleRef ¶
func (x *UpdateModulesRequest_Value) HasModuleRef() bool
func (*UpdateModulesRequest_Value) HasState ¶
func (x *UpdateModulesRequest_Value) HasState() bool
func (*UpdateModulesRequest_Value) HasUrl ¶
func (x *UpdateModulesRequest_Value) HasUrl() bool
func (*UpdateModulesRequest_Value) HasVisibility ¶
func (x *UpdateModulesRequest_Value) HasVisibility() bool
func (*UpdateModulesRequest_Value) ProtoMessage ¶
func (*UpdateModulesRequest_Value) ProtoMessage()
func (*UpdateModulesRequest_Value) ProtoReflect ¶
func (x *UpdateModulesRequest_Value) ProtoReflect() protoreflect.Message
func (*UpdateModulesRequest_Value) Reset ¶
func (x *UpdateModulesRequest_Value) Reset()
func (*UpdateModulesRequest_Value) SetDefaultLabelName ¶
func (x *UpdateModulesRequest_Value) SetDefaultLabelName(v string)
func (*UpdateModulesRequest_Value) SetDescription ¶
func (x *UpdateModulesRequest_Value) SetDescription(v string)
func (*UpdateModulesRequest_Value) SetModuleRef ¶
func (x *UpdateModulesRequest_Value) SetModuleRef(v *ModuleRef)
func (*UpdateModulesRequest_Value) SetState ¶
func (x *UpdateModulesRequest_Value) SetState(v ModuleState)
func (*UpdateModulesRequest_Value) SetUrl ¶
func (x *UpdateModulesRequest_Value) SetUrl(v string)
func (*UpdateModulesRequest_Value) SetVisibility ¶
func (x *UpdateModulesRequest_Value) SetVisibility(v ModuleVisibility)
func (*UpdateModulesRequest_Value) String ¶
func (x *UpdateModulesRequest_Value) String() string
type UpdateModulesRequest_Value_builder ¶
type UpdateModulesRequest_Value_builder struct {
// The Module to update.
ModuleRef *ModuleRef
// The module's visibility.
Visibility *ModuleVisibility
// The deprecation status of the module.
State *ModuleState
// The configurable description of the module.
Description *string
// The configurable URL in the description of the module.
Url *string
// The name of the default Label of the Module.
//
// This Label may not yet exist.
//
// This may not point to an archived Label.
DefaultLabelName *string
// contains filtered or unexported fields
}
func (UpdateModulesRequest_Value_builder) Build ¶
func (b0 UpdateModulesRequest_Value_builder) Build() *UpdateModulesRequest_Value
type UpdateModulesRequest_builder ¶
type UpdateModulesRequest_builder struct {
// The Modules to update.
Values []*UpdateModulesRequest_Value
// contains filtered or unexported fields
}
func (UpdateModulesRequest_builder) Build ¶
func (b0 UpdateModulesRequest_builder) Build() *UpdateModulesRequest
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) 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) SetModules ¶
func (x *UpdateModulesResponse) SetModules(v []*Module)
func (*UpdateModulesResponse) String ¶
func (x *UpdateModulesResponse) String() string
type UpdateModulesResponse_builder ¶
type UpdateModulesResponse_builder struct {
// The updated Modules in the same order as given on the request.
Modules []*Module
// contains filtered or unexported fields
}
func (UpdateModulesResponse_builder) Build ¶
func (b0 UpdateModulesResponse_builder) Build() *UpdateModulesResponse
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) 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) SetContents ¶
func (x *UploadRequest) SetContents(v []*UploadRequest_Content)
func (*UploadRequest) SetDepCommitIds ¶
func (x *UploadRequest) SetDepCommitIds(v []string)
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) ClearModuleRef ¶
func (x *UploadRequest_Content) ClearModuleRef()
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) HasModuleRef ¶
func (x *UploadRequest_Content) HasModuleRef() bool
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) SetFiles ¶
func (x *UploadRequest_Content) SetFiles(v []*File)
func (*UploadRequest_Content) SetModuleRef ¶
func (x *UploadRequest_Content) SetModuleRef(v *ModuleRef)
func (*UploadRequest_Content) SetScopedLabelRefs ¶
func (x *UploadRequest_Content) SetScopedLabelRefs(v []*ScopedLabelRef)
func (*UploadRequest_Content) SetSourceControlUrl ¶
func (x *UploadRequest_Content) SetSourceControlUrl(v string)
func (*UploadRequest_Content) String ¶
func (x *UploadRequest_Content) String() string
type UploadRequest_Content_builder ¶
type UploadRequest_Content_builder struct {
// The Module of the reference.
ModuleRef *ModuleRef
// The Files of the Content.
//
// This will consist of the .proto files, license files, and documentation files.
Files []*File
// 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
// 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
// contains filtered or unexported fields
}
func (UploadRequest_Content_builder) Build ¶
func (b0 UploadRequest_Content_builder) Build() *UploadRequest_Content
type UploadRequest_builder ¶
type UploadRequest_builder struct {
// The Contents of all references.
Contents []*UploadRequest_Content
// 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
// contains filtered or unexported fields
}
func (UploadRequest_builder) Build ¶
func (b0 UploadRequest_builder) Build() *UploadRequest
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) 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) SetCommits ¶
func (x *UploadResponse) SetCommits(v []*Commit)
func (*UploadResponse) String ¶
func (x *UploadResponse) String() string
type UploadResponse_builder ¶
type UploadResponse_builder 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
// contains filtered or unexported fields
}
func (UploadResponse_builder) Build ¶
func (b0 UploadResponse_builder) Build() *UploadResponse
Source Files
¶
- commit.pb.go
- commit_service.pb.go
- digest.pb.go
- download_service.pb.go
- file.pb.go
- file_descriptor_set_service.pb.go
- graph.pb.go
- graph_service.pb.go
- label.pb.go
- label_service.pb.go
- module.pb.go
- module_service.pb.go
- resource.pb.go
- resource_service.pb.go
- upload_service.pb.go