代码拉取完成,页面将自动刷新
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: as/external/api/organization.proto
package api
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Organization struct {
// Organization ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Organization name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Organization display name.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Can the organization create and "own" Gateways?
CanHaveGateways bool `protobuf:"varint,4,opt,name=can_have_gateways,json=canHaveGateways,proto3" json:"can_have_gateways,omitempty"`
// Max. gateway count for organization.
// When set to 0, the organization can have unlimited gateways.
MaxGatewayCount uint32 `protobuf:"varint,5,opt,name=max_gateway_count,json=maxGatewayCount,proto3" json:"max_gateway_count,omitempty"`
// Max. device count for organization.
// When set to 0, the organization can have unlimited devices.
MaxDeviceCount uint32 `protobuf:"varint,6,opt,name=max_device_count,json=maxDeviceCount,proto3" json:"max_device_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Organization) Reset() { *m = Organization{} }
func (m *Organization) String() string { return proto.CompactTextString(m) }
func (*Organization) ProtoMessage() {}
func (*Organization) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{0}
}
func (m *Organization) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Organization.Unmarshal(m, b)
}
func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Organization.Marshal(b, m, deterministic)
}
func (m *Organization) XXX_Merge(src proto.Message) {
xxx_messageInfo_Organization.Merge(m, src)
}
func (m *Organization) XXX_Size() int {
return xxx_messageInfo_Organization.Size(m)
}
func (m *Organization) XXX_DiscardUnknown() {
xxx_messageInfo_Organization.DiscardUnknown(m)
}
var xxx_messageInfo_Organization proto.InternalMessageInfo
func (m *Organization) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
func (m *Organization) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Organization) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *Organization) GetCanHaveGateways() bool {
if m != nil {
return m.CanHaveGateways
}
return false
}
func (m *Organization) GetMaxGatewayCount() uint32 {
if m != nil {
return m.MaxGatewayCount
}
return 0
}
func (m *Organization) GetMaxDeviceCount() uint32 {
if m != nil {
return m.MaxDeviceCount
}
return 0
}
type OrganizationListItem struct {
// Organization ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Organization name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Organization display name.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Can the organization create and "own" Gateways?
CanHaveGateways bool `protobuf:"varint,4,opt,name=can_have_gateways,json=canHaveGateways,proto3" json:"can_have_gateways,omitempty"`
// Created at timestamp.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Last update timestamp.
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrganizationListItem) Reset() { *m = OrganizationListItem{} }
func (m *OrganizationListItem) String() string { return proto.CompactTextString(m) }
func (*OrganizationListItem) ProtoMessage() {}
func (*OrganizationListItem) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{1}
}
func (m *OrganizationListItem) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrganizationListItem.Unmarshal(m, b)
}
func (m *OrganizationListItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrganizationListItem.Marshal(b, m, deterministic)
}
func (m *OrganizationListItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrganizationListItem.Merge(m, src)
}
func (m *OrganizationListItem) XXX_Size() int {
return xxx_messageInfo_OrganizationListItem.Size(m)
}
func (m *OrganizationListItem) XXX_DiscardUnknown() {
xxx_messageInfo_OrganizationListItem.DiscardUnknown(m)
}
var xxx_messageInfo_OrganizationListItem proto.InternalMessageInfo
func (m *OrganizationListItem) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
func (m *OrganizationListItem) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *OrganizationListItem) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *OrganizationListItem) GetCanHaveGateways() bool {
if m != nil {
return m.CanHaveGateways
}
return false
}
func (m *OrganizationListItem) GetCreatedAt() *timestamppb.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *OrganizationListItem) GetUpdatedAt() *timestamppb.Timestamp {
if m != nil {
return m.UpdatedAt
}
return nil
}
type GetOrganizationRequest struct {
// Organization ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetOrganizationRequest) Reset() { *m = GetOrganizationRequest{} }
func (m *GetOrganizationRequest) String() string { return proto.CompactTextString(m) }
func (*GetOrganizationRequest) ProtoMessage() {}
func (*GetOrganizationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{2}
}
func (m *GetOrganizationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetOrganizationRequest.Unmarshal(m, b)
}
func (m *GetOrganizationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetOrganizationRequest.Marshal(b, m, deterministic)
}
func (m *GetOrganizationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetOrganizationRequest.Merge(m, src)
}
func (m *GetOrganizationRequest) XXX_Size() int {
return xxx_messageInfo_GetOrganizationRequest.Size(m)
}
func (m *GetOrganizationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetOrganizationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetOrganizationRequest proto.InternalMessageInfo
func (m *GetOrganizationRequest) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
type GetOrganizationResponse struct {
// Organization object.
Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"`
// Created at timestamp.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Last update timestamp.
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetOrganizationResponse) Reset() { *m = GetOrganizationResponse{} }
func (m *GetOrganizationResponse) String() string { return proto.CompactTextString(m) }
func (*GetOrganizationResponse) ProtoMessage() {}
func (*GetOrganizationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{3}
}
func (m *GetOrganizationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetOrganizationResponse.Unmarshal(m, b)
}
func (m *GetOrganizationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetOrganizationResponse.Marshal(b, m, deterministic)
}
func (m *GetOrganizationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetOrganizationResponse.Merge(m, src)
}
func (m *GetOrganizationResponse) XXX_Size() int {
return xxx_messageInfo_GetOrganizationResponse.Size(m)
}
func (m *GetOrganizationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetOrganizationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetOrganizationResponse proto.InternalMessageInfo
func (m *GetOrganizationResponse) GetOrganization() *Organization {
if m != nil {
return m.Organization
}
return nil
}
func (m *GetOrganizationResponse) GetCreatedAt() *timestamppb.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *GetOrganizationResponse) GetUpdatedAt() *timestamppb.Timestamp {
if m != nil {
return m.UpdatedAt
}
return nil
}
type CreateOrganizationRequest struct {
// Organization object to create.
Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateOrganizationRequest) Reset() { *m = CreateOrganizationRequest{} }
func (m *CreateOrganizationRequest) String() string { return proto.CompactTextString(m) }
func (*CreateOrganizationRequest) ProtoMessage() {}
func (*CreateOrganizationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{4}
}
func (m *CreateOrganizationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateOrganizationRequest.Unmarshal(m, b)
}
func (m *CreateOrganizationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateOrganizationRequest.Marshal(b, m, deterministic)
}
func (m *CreateOrganizationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateOrganizationRequest.Merge(m, src)
}
func (m *CreateOrganizationRequest) XXX_Size() int {
return xxx_messageInfo_CreateOrganizationRequest.Size(m)
}
func (m *CreateOrganizationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateOrganizationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateOrganizationRequest proto.InternalMessageInfo
func (m *CreateOrganizationRequest) GetOrganization() *Organization {
if m != nil {
return m.Organization
}
return nil
}
type CreateOrganizationResponse struct {
// Organization ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateOrganizationResponse) Reset() { *m = CreateOrganizationResponse{} }
func (m *CreateOrganizationResponse) String() string { return proto.CompactTextString(m) }
func (*CreateOrganizationResponse) ProtoMessage() {}
func (*CreateOrganizationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{5}
}
func (m *CreateOrganizationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateOrganizationResponse.Unmarshal(m, b)
}
func (m *CreateOrganizationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateOrganizationResponse.Marshal(b, m, deterministic)
}
func (m *CreateOrganizationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateOrganizationResponse.Merge(m, src)
}
func (m *CreateOrganizationResponse) XXX_Size() int {
return xxx_messageInfo_CreateOrganizationResponse.Size(m)
}
func (m *CreateOrganizationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateOrganizationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateOrganizationResponse proto.InternalMessageInfo
func (m *CreateOrganizationResponse) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
type UpdateOrganizationRequest struct {
// Organization object to update.
Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateOrganizationRequest) Reset() { *m = UpdateOrganizationRequest{} }
func (m *UpdateOrganizationRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateOrganizationRequest) ProtoMessage() {}
func (*UpdateOrganizationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{6}
}
func (m *UpdateOrganizationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateOrganizationRequest.Unmarshal(m, b)
}
func (m *UpdateOrganizationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateOrganizationRequest.Marshal(b, m, deterministic)
}
func (m *UpdateOrganizationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateOrganizationRequest.Merge(m, src)
}
func (m *UpdateOrganizationRequest) XXX_Size() int {
return xxx_messageInfo_UpdateOrganizationRequest.Size(m)
}
func (m *UpdateOrganizationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateOrganizationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateOrganizationRequest proto.InternalMessageInfo
func (m *UpdateOrganizationRequest) GetOrganization() *Organization {
if m != nil {
return m.Organization
}
return nil
}
type DeleteOrganizationRequest struct {
// Organization ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteOrganizationRequest) Reset() { *m = DeleteOrganizationRequest{} }
func (m *DeleteOrganizationRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteOrganizationRequest) ProtoMessage() {}
func (*DeleteOrganizationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{7}
}
func (m *DeleteOrganizationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteOrganizationRequest.Unmarshal(m, b)
}
func (m *DeleteOrganizationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteOrganizationRequest.Marshal(b, m, deterministic)
}
func (m *DeleteOrganizationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteOrganizationRequest.Merge(m, src)
}
func (m *DeleteOrganizationRequest) XXX_Size() int {
return xxx_messageInfo_DeleteOrganizationRequest.Size(m)
}
func (m *DeleteOrganizationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteOrganizationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteOrganizationRequest proto.InternalMessageInfo
func (m *DeleteOrganizationRequest) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
type ListOrganizationRequest struct {
// Max number of organizations to return in the result-set.
Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
// Offset in the result-set (for pagination).
Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
// When provided, the given string will be used to search on
// displayName.
Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListOrganizationRequest) Reset() { *m = ListOrganizationRequest{} }
func (m *ListOrganizationRequest) String() string { return proto.CompactTextString(m) }
func (*ListOrganizationRequest) ProtoMessage() {}
func (*ListOrganizationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{8}
}
func (m *ListOrganizationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListOrganizationRequest.Unmarshal(m, b)
}
func (m *ListOrganizationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListOrganizationRequest.Marshal(b, m, deterministic)
}
func (m *ListOrganizationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListOrganizationRequest.Merge(m, src)
}
func (m *ListOrganizationRequest) XXX_Size() int {
return xxx_messageInfo_ListOrganizationRequest.Size(m)
}
func (m *ListOrganizationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListOrganizationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListOrganizationRequest proto.InternalMessageInfo
func (m *ListOrganizationRequest) GetLimit() int64 {
if m != nil {
return m.Limit
}
return 0
}
func (m *ListOrganizationRequest) GetOffset() int64 {
if m != nil {
return m.Offset
}
return 0
}
func (m *ListOrganizationRequest) GetSearch() string {
if m != nil {
return m.Search
}
return ""
}
type ListOrganizationResponse struct {
// Total number of organizations.
TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
Result []*OrganizationListItem `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListOrganizationResponse) Reset() { *m = ListOrganizationResponse{} }
func (m *ListOrganizationResponse) String() string { return proto.CompactTextString(m) }
func (*ListOrganizationResponse) ProtoMessage() {}
func (*ListOrganizationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{9}
}
func (m *ListOrganizationResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListOrganizationResponse.Unmarshal(m, b)
}
func (m *ListOrganizationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListOrganizationResponse.Marshal(b, m, deterministic)
}
func (m *ListOrganizationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListOrganizationResponse.Merge(m, src)
}
func (m *ListOrganizationResponse) XXX_Size() int {
return xxx_messageInfo_ListOrganizationResponse.Size(m)
}
func (m *ListOrganizationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListOrganizationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListOrganizationResponse proto.InternalMessageInfo
func (m *ListOrganizationResponse) GetTotalCount() int64 {
if m != nil {
return m.TotalCount
}
return 0
}
func (m *ListOrganizationResponse) GetResult() []*OrganizationListItem {
if m != nil {
return m.Result
}
return nil
}
type OrganizationUser struct {
// Organization ID.
OrganizationId int64 `protobuf:"varint,1,opt,name=organization_id,json=organizationID,proto3" json:"organization_id,omitempty"`
// User ID.
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userID,proto3" json:"user_id,omitempty"`
// User is admin within the context of the organization.
// There is no need to set the is_device_admin and is_gateway_admin flags.
IsAdmin bool `protobuf:"varint,3,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
// User is able to modify device related resources (applications,
// device-profiles, devices, multicast-groups).
IsDeviceAdmin bool `protobuf:"varint,5,opt,name=is_device_admin,json=isDeviceAdmin,proto3" json:"is_device_admin,omitempty"`
// User is able to modify gateways.
IsGatewayAdmin bool `protobuf:"varint,6,opt,name=is_gateway_admin,json=isGatewayAdmin,proto3" json:"is_gateway_admin,omitempty"`
// Email (only used on get).
Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrganizationUser) Reset() { *m = OrganizationUser{} }
func (m *OrganizationUser) String() string { return proto.CompactTextString(m) }
func (*OrganizationUser) ProtoMessage() {}
func (*OrganizationUser) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{10}
}
func (m *OrganizationUser) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrganizationUser.Unmarshal(m, b)
}
func (m *OrganizationUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrganizationUser.Marshal(b, m, deterministic)
}
func (m *OrganizationUser) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrganizationUser.Merge(m, src)
}
func (m *OrganizationUser) XXX_Size() int {
return xxx_messageInfo_OrganizationUser.Size(m)
}
func (m *OrganizationUser) XXX_DiscardUnknown() {
xxx_messageInfo_OrganizationUser.DiscardUnknown(m)
}
var xxx_messageInfo_OrganizationUser proto.InternalMessageInfo
func (m *OrganizationUser) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
func (m *OrganizationUser) GetUserId() int64 {
if m != nil {
return m.UserId
}
return 0
}
func (m *OrganizationUser) GetIsAdmin() bool {
if m != nil {
return m.IsAdmin
}
return false
}
func (m *OrganizationUser) GetIsDeviceAdmin() bool {
if m != nil {
return m.IsDeviceAdmin
}
return false
}
func (m *OrganizationUser) GetIsGatewayAdmin() bool {
if m != nil {
return m.IsGatewayAdmin
}
return false
}
func (m *OrganizationUser) GetEmail() string {
if m != nil {
return m.Email
}
return ""
}
type OrganizationUserListItem struct {
// User ID.
// This is not used on create, you must set the user email address
// associated with the user to add an user to an organization.
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userID,proto3" json:"user_id,omitempty"`
// Email.
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
// User is admin within the context of the organization.
// There is no need to set the is_device_admin and is_gateway_admin flags.
IsAdmin bool `protobuf:"varint,3,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
// User is able to modify device related resources (applications,
// device-profiles, devices, multicast-groups).
IsDeviceAdmin bool `protobuf:"varint,6,opt,name=is_device_admin,json=isDeviceAdmin,proto3" json:"is_device_admin,omitempty"`
// User is able to modify gateways.
IsGatewayAdmin bool `protobuf:"varint,7,opt,name=is_gateway_admin,json=isGatewayAdmin,proto3" json:"is_gateway_admin,omitempty"`
// Created at timestamp.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Last update timestamp.
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrganizationUserListItem) Reset() { *m = OrganizationUserListItem{} }
func (m *OrganizationUserListItem) String() string { return proto.CompactTextString(m) }
func (*OrganizationUserListItem) ProtoMessage() {}
func (*OrganizationUserListItem) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{11}
}
func (m *OrganizationUserListItem) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrganizationUserListItem.Unmarshal(m, b)
}
func (m *OrganizationUserListItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrganizationUserListItem.Marshal(b, m, deterministic)
}
func (m *OrganizationUserListItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrganizationUserListItem.Merge(m, src)
}
func (m *OrganizationUserListItem) XXX_Size() int {
return xxx_messageInfo_OrganizationUserListItem.Size(m)
}
func (m *OrganizationUserListItem) XXX_DiscardUnknown() {
xxx_messageInfo_OrganizationUserListItem.DiscardUnknown(m)
}
var xxx_messageInfo_OrganizationUserListItem proto.InternalMessageInfo
func (m *OrganizationUserListItem) GetUserId() int64 {
if m != nil {
return m.UserId
}
return 0
}
func (m *OrganizationUserListItem) GetEmail() string {
if m != nil {
return m.Email
}
return ""
}
func (m *OrganizationUserListItem) GetIsAdmin() bool {
if m != nil {
return m.IsAdmin
}
return false
}
func (m *OrganizationUserListItem) GetIsDeviceAdmin() bool {
if m != nil {
return m.IsDeviceAdmin
}
return false
}
func (m *OrganizationUserListItem) GetIsGatewayAdmin() bool {
if m != nil {
return m.IsGatewayAdmin
}
return false
}
func (m *OrganizationUserListItem) GetCreatedAt() *timestamppb.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *OrganizationUserListItem) GetUpdatedAt() *timestamppb.Timestamp {
if m != nil {
return m.UpdatedAt
}
return nil
}
type AddOrganizationUserRequest struct {
// Organization-user object to create.
OrganizationUser *OrganizationUser `protobuf:"bytes,1,opt,name=organization_user,json=organizationUser,proto3" json:"organization_user,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddOrganizationUserRequest) Reset() { *m = AddOrganizationUserRequest{} }
func (m *AddOrganizationUserRequest) String() string { return proto.CompactTextString(m) }
func (*AddOrganizationUserRequest) ProtoMessage() {}
func (*AddOrganizationUserRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{12}
}
func (m *AddOrganizationUserRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddOrganizationUserRequest.Unmarshal(m, b)
}
func (m *AddOrganizationUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddOrganizationUserRequest.Marshal(b, m, deterministic)
}
func (m *AddOrganizationUserRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddOrganizationUserRequest.Merge(m, src)
}
func (m *AddOrganizationUserRequest) XXX_Size() int {
return xxx_messageInfo_AddOrganizationUserRequest.Size(m)
}
func (m *AddOrganizationUserRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AddOrganizationUserRequest.DiscardUnknown(m)
}
var xxx_messageInfo_AddOrganizationUserRequest proto.InternalMessageInfo
func (m *AddOrganizationUserRequest) GetOrganizationUser() *OrganizationUser {
if m != nil {
return m.OrganizationUser
}
return nil
}
type UpdateOrganizationUserRequest struct {
// Organization-user object to update.
OrganizationUser *OrganizationUser `protobuf:"bytes,1,opt,name=organization_user,json=organizationUser,proto3" json:"organization_user,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateOrganizationUserRequest) Reset() { *m = UpdateOrganizationUserRequest{} }
func (m *UpdateOrganizationUserRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateOrganizationUserRequest) ProtoMessage() {}
func (*UpdateOrganizationUserRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{13}
}
func (m *UpdateOrganizationUserRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateOrganizationUserRequest.Unmarshal(m, b)
}
func (m *UpdateOrganizationUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateOrganizationUserRequest.Marshal(b, m, deterministic)
}
func (m *UpdateOrganizationUserRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateOrganizationUserRequest.Merge(m, src)
}
func (m *UpdateOrganizationUserRequest) XXX_Size() int {
return xxx_messageInfo_UpdateOrganizationUserRequest.Size(m)
}
func (m *UpdateOrganizationUserRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateOrganizationUserRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateOrganizationUserRequest proto.InternalMessageInfo
func (m *UpdateOrganizationUserRequest) GetOrganizationUser() *OrganizationUser {
if m != nil {
return m.OrganizationUser
}
return nil
}
type DeleteOrganizationUserRequest struct {
// Organization ID.
OrganizationId int64 `protobuf:"varint,1,opt,name=organization_id,json=organizationID,proto3" json:"organization_id,omitempty"`
// User ID.
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userID,proto3" json:"user_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteOrganizationUserRequest) Reset() { *m = DeleteOrganizationUserRequest{} }
func (m *DeleteOrganizationUserRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteOrganizationUserRequest) ProtoMessage() {}
func (*DeleteOrganizationUserRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{14}
}
func (m *DeleteOrganizationUserRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteOrganizationUserRequest.Unmarshal(m, b)
}
func (m *DeleteOrganizationUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteOrganizationUserRequest.Marshal(b, m, deterministic)
}
func (m *DeleteOrganizationUserRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteOrganizationUserRequest.Merge(m, src)
}
func (m *DeleteOrganizationUserRequest) XXX_Size() int {
return xxx_messageInfo_DeleteOrganizationUserRequest.Size(m)
}
func (m *DeleteOrganizationUserRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteOrganizationUserRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteOrganizationUserRequest proto.InternalMessageInfo
func (m *DeleteOrganizationUserRequest) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
func (m *DeleteOrganizationUserRequest) GetUserId() int64 {
if m != nil {
return m.UserId
}
return 0
}
type ListOrganizationUsersRequest struct {
// Organization ID.
OrganizationId int64 `protobuf:"varint,1,opt,name=organization_id,json=organizationID,proto3" json:"organization_id,omitempty"`
// Max number of users to return in the result-set.
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// Offset in the result-set (for pagination).
Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListOrganizationUsersRequest) Reset() { *m = ListOrganizationUsersRequest{} }
func (m *ListOrganizationUsersRequest) String() string { return proto.CompactTextString(m) }
func (*ListOrganizationUsersRequest) ProtoMessage() {}
func (*ListOrganizationUsersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{15}
}
func (m *ListOrganizationUsersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListOrganizationUsersRequest.Unmarshal(m, b)
}
func (m *ListOrganizationUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListOrganizationUsersRequest.Marshal(b, m, deterministic)
}
func (m *ListOrganizationUsersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListOrganizationUsersRequest.Merge(m, src)
}
func (m *ListOrganizationUsersRequest) XXX_Size() int {
return xxx_messageInfo_ListOrganizationUsersRequest.Size(m)
}
func (m *ListOrganizationUsersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListOrganizationUsersRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListOrganizationUsersRequest proto.InternalMessageInfo
func (m *ListOrganizationUsersRequest) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
func (m *ListOrganizationUsersRequest) GetLimit() int32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *ListOrganizationUsersRequest) GetOffset() int32 {
if m != nil {
return m.Offset
}
return 0
}
type ListOrganizationUsersResponse struct {
// The total number of users in the organization.
TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
Result []*OrganizationUserListItem `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListOrganizationUsersResponse) Reset() { *m = ListOrganizationUsersResponse{} }
func (m *ListOrganizationUsersResponse) String() string { return proto.CompactTextString(m) }
func (*ListOrganizationUsersResponse) ProtoMessage() {}
func (*ListOrganizationUsersResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{16}
}
func (m *ListOrganizationUsersResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListOrganizationUsersResponse.Unmarshal(m, b)
}
func (m *ListOrganizationUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListOrganizationUsersResponse.Marshal(b, m, deterministic)
}
func (m *ListOrganizationUsersResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListOrganizationUsersResponse.Merge(m, src)
}
func (m *ListOrganizationUsersResponse) XXX_Size() int {
return xxx_messageInfo_ListOrganizationUsersResponse.Size(m)
}
func (m *ListOrganizationUsersResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListOrganizationUsersResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListOrganizationUsersResponse proto.InternalMessageInfo
func (m *ListOrganizationUsersResponse) GetTotalCount() int64 {
if m != nil {
return m.TotalCount
}
return 0
}
func (m *ListOrganizationUsersResponse) GetResult() []*OrganizationUserListItem {
if m != nil {
return m.Result
}
return nil
}
type GetOrganizationUserRequest struct {
// Organization ID.
OrganizationId int64 `protobuf:"varint,1,opt,name=organization_id,json=organizationID,proto3" json:"organization_id,omitempty"`
// User ID.
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userID,proto3" json:"user_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetOrganizationUserRequest) Reset() { *m = GetOrganizationUserRequest{} }
func (m *GetOrganizationUserRequest) String() string { return proto.CompactTextString(m) }
func (*GetOrganizationUserRequest) ProtoMessage() {}
func (*GetOrganizationUserRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{17}
}
func (m *GetOrganizationUserRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetOrganizationUserRequest.Unmarshal(m, b)
}
func (m *GetOrganizationUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetOrganizationUserRequest.Marshal(b, m, deterministic)
}
func (m *GetOrganizationUserRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetOrganizationUserRequest.Merge(m, src)
}
func (m *GetOrganizationUserRequest) XXX_Size() int {
return xxx_messageInfo_GetOrganizationUserRequest.Size(m)
}
func (m *GetOrganizationUserRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetOrganizationUserRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetOrganizationUserRequest proto.InternalMessageInfo
func (m *GetOrganizationUserRequest) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
func (m *GetOrganizationUserRequest) GetUserId() int64 {
if m != nil {
return m.UserId
}
return 0
}
// Response for a user in the organization
type GetOrganizationUserResponse struct {
// Organization-user object.
OrganizationUser *OrganizationUser `protobuf:"bytes,1,opt,name=organization_user,json=organizationUser,proto3" json:"organization_user,omitempty"`
// Created at timestamp.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Last update timestamp.
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetOrganizationUserResponse) Reset() { *m = GetOrganizationUserResponse{} }
func (m *GetOrganizationUserResponse) String() string { return proto.CompactTextString(m) }
func (*GetOrganizationUserResponse) ProtoMessage() {}
func (*GetOrganizationUserResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7185a1e614145d4b, []int{18}
}
func (m *GetOrganizationUserResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetOrganizationUserResponse.Unmarshal(m, b)
}
func (m *GetOrganizationUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetOrganizationUserResponse.Marshal(b, m, deterministic)
}
func (m *GetOrganizationUserResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetOrganizationUserResponse.Merge(m, src)
}
func (m *GetOrganizationUserResponse) XXX_Size() int {
return xxx_messageInfo_GetOrganizationUserResponse.Size(m)
}
func (m *GetOrganizationUserResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetOrganizationUserResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetOrganizationUserResponse proto.InternalMessageInfo
func (m *GetOrganizationUserResponse) GetOrganizationUser() *OrganizationUser {
if m != nil {
return m.OrganizationUser
}
return nil
}
func (m *GetOrganizationUserResponse) GetCreatedAt() *timestamppb.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *GetOrganizationUserResponse) GetUpdatedAt() *timestamppb.Timestamp {
if m != nil {
return m.UpdatedAt
}
return nil
}
func init() {
proto.RegisterType((*Organization)(nil), "api.Organization")
proto.RegisterType((*OrganizationListItem)(nil), "api.OrganizationListItem")
proto.RegisterType((*GetOrganizationRequest)(nil), "api.GetOrganizationRequest")
proto.RegisterType((*GetOrganizationResponse)(nil), "api.GetOrganizationResponse")
proto.RegisterType((*CreateOrganizationRequest)(nil), "api.CreateOrganizationRequest")
proto.RegisterType((*CreateOrganizationResponse)(nil), "api.CreateOrganizationResponse")
proto.RegisterType((*UpdateOrganizationRequest)(nil), "api.UpdateOrganizationRequest")
proto.RegisterType((*DeleteOrganizationRequest)(nil), "api.DeleteOrganizationRequest")
proto.RegisterType((*ListOrganizationRequest)(nil), "api.ListOrganizationRequest")
proto.RegisterType((*ListOrganizationResponse)(nil), "api.ListOrganizationResponse")
proto.RegisterType((*OrganizationUser)(nil), "api.OrganizationUser")
proto.RegisterType((*OrganizationUserListItem)(nil), "api.OrganizationUserListItem")
proto.RegisterType((*AddOrganizationUserRequest)(nil), "api.AddOrganizationUserRequest")
proto.RegisterType((*UpdateOrganizationUserRequest)(nil), "api.UpdateOrganizationUserRequest")
proto.RegisterType((*DeleteOrganizationUserRequest)(nil), "api.DeleteOrganizationUserRequest")
proto.RegisterType((*ListOrganizationUsersRequest)(nil), "api.ListOrganizationUsersRequest")
proto.RegisterType((*ListOrganizationUsersResponse)(nil), "api.ListOrganizationUsersResponse")
proto.RegisterType((*GetOrganizationUserRequest)(nil), "api.GetOrganizationUserRequest")
proto.RegisterType((*GetOrganizationUserResponse)(nil), "api.GetOrganizationUserResponse")
}
func init() {
proto.RegisterFile("as/external/api/organization.proto", fileDescriptor_7185a1e614145d4b)
}
var fileDescriptor_7185a1e614145d4b = []byte{
// 1111 bytes of a gzipped FileDescriptorProto
0x1f, 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0xe7, 0x32, 0x47, 0x3d, 0x1a, 0x5c, 0x38, 0x43, 0x49, 0xfd, 0xab, 0x01, 0xd3, 0x07, 0x44, 0xea,
0x40, 0x9b, 0x65, 0x39, 0x91, 0xa9, 0x76, 0x73, 0xab, 0x1a, 0xa0, 0x25, 0xdc, 0x93, 0x12, 0x3e,
0x41, 0x1f, 0x5f, 0x5d, 0x82, 0xf3, 0x54, 0x37, 0x86, 0x0b, 0xf4, 0x9b, 0x01, 0xd3, 0xbd, 0x20,
0xc8, 0x88, 0xa9, 0xbe, 0x94, 0x2a, 0x63, 0x7f, 0x20, 0x25, 0xf4, 0xac, 0x7b, 0x97, 0x4a, 0x10,
0xbc, 0x76, 0xb9, 0x28, 0x91, 0x06, 0x7f, 0x1a, 0x00, 0x2a, 0xdb, 0xa4, 0x20, 0xab, 0x22, 0xfd,
0xae, 0xa2, 0xc9, 0x97, 0x9a, 0xbe, 0x37, 0xbf, 0x7b, 0x15, 0x4d, 0x65, 0xc8, 0x51, 0xe8, 0x84,
0xde, 0x67, 0x06, 0x80, 0x4a, 0xd5, 0x8c, 0xde, 0x97, 0x5e, 0x87, 0x95, 0x7a, 0xf5, 0x31, 0xee,
0xdc, 0xe8, 0x18, 0xef, 0x3f, 0x82, 0x6d, 0x1a, 0xdb, 0xfe, 0x09, 0x4d, 0x13, 0xc6, 0xb1, 0xff,
0x93, 0x14, 0x82, 0x99, 0x3d, 0xfa, 0x23, 0x17, 0xe3, 0x47, 0x7b, 0x7d, 0xca, 0x09, 0xb1, 0xfd,
0x38, 0x74, 0x82, 0xe3, 0x34, 0x3e, 0x8a, 0xb9, 0x1f, 0x38, 0x2f, 0xf6, 0x7c, 0x20, 0x88, 0xfb,
0xb1, 0x93, 0xfb, 0x91, 0x3f, 0x6a, 0x4a, 0xa5, 0x1f, 0xfd, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xc4,
0xe7, 0xf1, 0x2b, 0xe2, 0x0f, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// OrganizationServiceClient is the client API for OrganizationService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type OrganizationServiceClient interface {
// Get organization list.
List(ctx context.Context, in *ListOrganizationRequest, opts ...grpc.CallOption) (*ListOrganizationResponse, error)
// Get data for a particular organization.
Get(ctx context.Context, in *GetOrganizationRequest, opts ...grpc.CallOption) (*GetOrganizationResponse, error)
// Create a new organization.
Create(ctx context.Context, in *CreateOrganizationRequest, opts ...grpc.CallOption) (*CreateOrganizationResponse, error)
// Update an existing organization.
Update(ctx context.Context, in *UpdateOrganizationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Delete an organization.
Delete(ctx context.Context, in *DeleteOrganizationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Get organization's user list.
ListUsers(ctx context.Context, in *ListOrganizationUsersRequest, opts ...grpc.CallOption) (*ListOrganizationUsersResponse, error)
// Get data for a particular organization user.
GetUser(ctx context.Context, in *GetOrganizationUserRequest, opts ...grpc.CallOption) (*GetOrganizationUserResponse, error)
// Add a new user to an organization.
AddUser(ctx context.Context, in *AddOrganizationUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Update a user in an organization.
UpdateUser(ctx context.Context, in *UpdateOrganizationUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Delete a user from an organization.
DeleteUser(ctx context.Context, in *DeleteOrganizationUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
type organizationServiceClient struct {
cc grpc.ClientConnInterface
}
func NewOrganizationServiceClient(cc grpc.ClientConnInterface) OrganizationServiceClient {
return &organizationServiceClient{cc}
}
func (c *organizationServiceClient) List(ctx context.Context, in *ListOrganizationRequest, opts ...grpc.CallOption) (*ListOrganizationResponse, error) {
out := new(ListOrganizationResponse)
err := c.cc.Invoke(ctx, "/api.OrganizationService/List", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *organizationServiceClient) Get(ctx context.Context, in *GetOrganizationRequest, opts ...grpc.CallOption) (*GetOrganizationResponse, error) {
out := new(GetOrganizationResponse)
err := c.cc.Invoke(ctx, "/api.OrganizationService/Get", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *organizationServiceClient) Create(ctx context.Context, in *CreateOrganizationRequest, opts ...grpc.CallOption) (*CreateOrganizationResponse, error) {
out := new(CreateOrganizationResponse)
err := c.cc.Invoke(ctx, "/api.OrganizationService/Create", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *organizationServiceClient) Update(ctx context.Context, in *UpdateOrganizationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.OrganizationService/Update", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *organizationServiceClient) Delete(ctx context.Context, in *DeleteOrganizationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.OrganizationService/Delete", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *organizationServiceClient) ListUsers(ctx context.Context, in *ListOrganizationUsersRequest, opts ...grpc.CallOption) (*ListOrganizationUsersResponse, error) {
out := new(ListOrganizationUsersResponse)
err := c.cc.Invoke(ctx, "/api.OrganizationService/ListUsers", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *organizationServiceClient) GetUser(ctx context.Context, in *GetOrganizationUserRequest, opts ...grpc.CallOption) (*GetOrganizationUserResponse, error) {
out := new(GetOrganizationUserResponse)
err := c.cc.Invoke(ctx, "/api.OrganizationService/GetUser", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *organizationServiceClient) AddUser(ctx context.Context, in *AddOrganizationUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.OrganizationService/AddUser", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *organizationServiceClient) UpdateUser(ctx context.Context, in *UpdateOrganizationUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.OrganizationService/UpdateUser", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *organizationServiceClient) DeleteUser(ctx context.Context, in *DeleteOrganizationUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.OrganizationService/DeleteUser", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// OrganizationServiceServer is the server API for OrganizationService service.
type OrganizationServiceServer interface {
// Get organization list.
List(context.Context, *ListOrganizationRequest) (*ListOrganizationResponse, error)
// Get data for a particular organization.
Get(context.Context, *GetOrganizationRequest) (*GetOrganizationResponse, error)
// Create a new organization.
Create(context.Context, *CreateOrganizationRequest) (*CreateOrganizationResponse, error)
// Update an existing organization.
Update(context.Context, *UpdateOrganizationRequest) (*emptypb.Empty, error)
// Delete an organization.
Delete(context.Context, *DeleteOrganizationRequest) (*emptypb.Empty, error)
// Get organization's user list.
ListUsers(context.Context, *ListOrganizationUsersRequest) (*ListOrganizationUsersResponse, error)
// Get data for a particular organization user.
GetUser(context.Context, *GetOrganizationUserRequest) (*GetOrganizationUserResponse, error)
// Add a new user to an organization.
AddUser(context.Context, *AddOrganizationUserRequest) (*emptypb.Empty, error)
// Update a user in an organization.
UpdateUser(context.Context, *UpdateOrganizationUserRequest) (*emptypb.Empty, error)
// Delete a user from an organization.
DeleteUser(context.Context, *DeleteOrganizationUserRequest) (*emptypb.Empty, error)
}
// UnimplementedOrganizationServiceServer can be embedded to have forward compatible implementations.
type UnimplementedOrganizationServiceServer struct {
}
func (*UnimplementedOrganizationServiceServer) List(ctx context.Context, req *ListOrganizationRequest) (*ListOrganizationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}
func (*UnimplementedOrganizationServiceServer) Get(ctx context.Context, req *GetOrganizationRequest) (*GetOrganizationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedOrganizationServiceServer) Create(ctx context.Context, req *CreateOrganizationRequest) (*CreateOrganizationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
func (*UnimplementedOrganizationServiceServer) Update(ctx context.Context, req *UpdateOrganizationRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
}
func (*UnimplementedOrganizationServiceServer) Delete(ctx context.Context, req *DeleteOrganizationRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
}
func (*UnimplementedOrganizationServiceServer) ListUsers(ctx context.Context, req *ListOrganizationUsersRequest) (*ListOrganizationUsersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListUsers not implemented")
}
func (*UnimplementedOrganizationServiceServer) GetUser(ctx context.Context, req *GetOrganizationUserRequest) (*GetOrganizationUserResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
}
func (*UnimplementedOrganizationServiceServer) AddUser(ctx context.Context, req *AddOrganizationUserRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddUser not implemented")
}
func (*UnimplementedOrganizationServiceServer) UpdateUser(ctx context.Context, req *UpdateOrganizationUserRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented")
}
func (*UnimplementedOrganizationServiceServer) DeleteUser(ctx context.Context, req *DeleteOrganizationUserRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteUser not implemented")
}
func RegisterOrganizationServiceServer(s *grpc.Server, srv OrganizationServiceServer) {
s.RegisterService(&_OrganizationService_serviceDesc, srv)
}
func _OrganizationService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListOrganizationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrganizationServiceServer).List(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.OrganizationService/List",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrganizationServiceServer).List(ctx, req.(*ListOrganizationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OrganizationService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetOrganizationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrganizationServiceServer).Get(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.OrganizationService/Get",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrganizationServiceServer).Get(ctx, req.(*GetOrganizationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OrganizationService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateOrganizationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrganizationServiceServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.OrganizationService/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrganizationServiceServer).Create(ctx, req.(*CreateOrganizationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OrganizationService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateOrganizationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrganizationServiceServer).Update(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.OrganizationService/Update",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrganizationServiceServer).Update(ctx, req.(*UpdateOrganizationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OrganizationService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteOrganizationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrganizationServiceServer).Delete(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.OrganizationService/Delete",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrganizationServiceServer).Delete(ctx, req.(*DeleteOrganizationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OrganizationService_ListUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListOrganizationUsersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrganizationServiceServer).ListUsers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.OrganizationService/ListUsers",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrganizationServiceServer).ListUsers(ctx, req.(*ListOrganizationUsersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OrganizationService_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetOrganizationUserRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrganizationServiceServer).GetUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.OrganizationService/GetUser",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrganizationServiceServer).GetUser(ctx, req.(*GetOrganizationUserRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OrganizationService_AddUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddOrganizationUserRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrganizationServiceServer).AddUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.OrganizationService/AddUser",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrganizationServiceServer).AddUser(ctx, req.(*AddOrganizationUserRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OrganizationService_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateOrganizationUserRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrganizationServiceServer).UpdateUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.OrganizationService/UpdateUser",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrganizationServiceServer).UpdateUser(ctx, req.(*UpdateOrganizationUserRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OrganizationService_DeleteUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteOrganizationUserRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrganizationServiceServer).DeleteUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.OrganizationService/DeleteUser",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrganizationServiceServer).DeleteUser(ctx, req.(*DeleteOrganizationUserRequest))
}
return interceptor(ctx, in, info, handler)
}
var _OrganizationService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.OrganizationService",
HandlerType: (*OrganizationServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "List",
Handler: _OrganizationService_List_Handler,
},
{
MethodName: "Get",
Handler: _OrganizationService_Get_Handler,
},
{
MethodName: "Create",
Handler: _OrganizationService_Create_Handler,
},
{
MethodName: "Update",
Handler: _OrganizationService_Update_Handler,
},
{
MethodName: "Delete",
Handler: _OrganizationService_Delete_Handler,
},
{
MethodName: "ListUsers",
Handler: _OrganizationService_ListUsers_Handler,
},
{
MethodName: "GetUser",
Handler: _OrganizationService_GetUser_Handler,
},
{
MethodName: "AddUser",
Handler: _OrganizationService_AddUser_Handler,
},
{
MethodName: "UpdateUser",
Handler: _OrganizationService_UpdateUser_Handler,
},
{
MethodName: "DeleteUser",
Handler: _OrganizationService_DeleteUser_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "as/external/api/organization.proto",
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。