v1

package
v0.0.0-...-fa33765 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package v1 is a generated protocol buffer package.

It is generated from these files:

happyco/manage/account/v1/account.proto

It has these top-level messages:

Account
ListAccountsRequest
ListAccountsResponse
UpdateAccountsRequest
UpdateAccountsResponse
User
ListUsersRequest
ListUsersResponse
AddUsersRequest
AddUsersResponse
UpdateUsersRequest
UpdateUsersResponse
UpdateUserStatusesRequest
UpdateUserStatusesResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)

func RegisterAccountUsersServiceServer

func RegisterAccountUsersServiceServer(s *grpc.Server, srv AccountUsersServiceServer)

Types

type Account

type Account struct {
	Id            *happyco_type_v1.IntegrationID `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Inactive      bool                           `protobuf:"varint,2,opt,name=inactive" json:"inactive,omitempty"`
	Name          string                         `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
	Phone         string                         `protobuf:"bytes,4,opt,name=phone" json:"phone,omitempty"`
	AddressLine_1 string                         `protobuf:"bytes,5,opt,name=address_line_1,json=addressLine1" json:"address_line_1,omitempty"`
	AddressLine_2 string                         `protobuf:"bytes,6,opt,name=address_line_2,json=addressLine2" json:"address_line_2,omitempty"`
	City          string                         `protobuf:"bytes,7,opt,name=city" json:"city,omitempty"`
	State         string                         `protobuf:"bytes,8,opt,name=state" json:"state,omitempty"`
	PostalCode    string                         `protobuf:"bytes,9,opt,name=postal_code,json=postalCode" json:"postal_code,omitempty"`
	Country       string                         `protobuf:"bytes,10,opt,name=country" json:"country,omitempty"`
}

func (*Account) Descriptor

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

func (*Account) GetAddressLine_1

func (m *Account) GetAddressLine_1() string

func (*Account) GetAddressLine_2

func (m *Account) GetAddressLine_2() string

func (*Account) GetCity

func (m *Account) GetCity() string

func (*Account) GetCountry

func (m *Account) GetCountry() string

func (*Account) GetId

func (*Account) GetInactive

func (m *Account) GetInactive() bool

func (*Account) GetName

func (m *Account) GetName() string

func (*Account) GetPhone

func (m *Account) GetPhone() string

func (*Account) GetPostalCode

func (m *Account) GetPostalCode() string

func (*Account) GetState

func (m *Account) GetState() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) String

func (m *Account) String() string

type AccountServiceClient

type AccountServiceClient interface {
	ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
	UpdateAccounts(ctx context.Context, in *UpdateAccountsRequest, opts ...grpc.CallOption) (*UpdateAccountsResponse, error)
}

func NewAccountServiceClient

func NewAccountServiceClient(cc *grpc.ClientConn) AccountServiceClient

type AccountServiceServer

type AccountServiceServer interface {
	ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
	UpdateAccounts(context.Context, *UpdateAccountsRequest) (*UpdateAccountsResponse, error)
}

type AccountUsersServiceClient

type AccountUsersServiceClient interface {
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	AddUsers(ctx context.Context, in *AddUsersRequest, opts ...grpc.CallOption) (*AddUsersResponse, error)
	UpdateUsers(ctx context.Context, in *UpdateUsersRequest, opts ...grpc.CallOption) (*UpdateUsersResponse, error)
	UpdateUserStatuses(ctx context.Context, in *UpdateUserStatusesRequest, opts ...grpc.CallOption) (*UpdateUserStatusesResponse, error)
}

func NewAccountUsersServiceClient

func NewAccountUsersServiceClient(cc *grpc.ClientConn) AccountUsersServiceClient

type AddUsersRequest

type AddUsersRequest struct {
	AccountId *happyco_type_v1.IntegrationID `protobuf:"bytes,1,opt,name=account_id,json=accountId" json:"account_id,omitempty"`
	Users     []*User                        `protobuf:"bytes,2,rep,name=users" json:"users,omitempty"`
}

func (*AddUsersRequest) Descriptor

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

func (*AddUsersRequest) GetAccountId

func (m *AddUsersRequest) GetAccountId() *happyco_type_v1.IntegrationID

func (*AddUsersRequest) GetUsers

func (m *AddUsersRequest) GetUsers() []*User

func (*AddUsersRequest) ProtoMessage

func (*AddUsersRequest) ProtoMessage()

func (*AddUsersRequest) Reset

func (m *AddUsersRequest) Reset()

func (*AddUsersRequest) String

func (m *AddUsersRequest) String() string

type AddUsersResponse

type AddUsersResponse struct {
	UserIds []*happyco_type_v1.IntegrationID `protobuf:"bytes,1,rep,name=user_ids,json=userIds" json:"user_ids,omitempty"`
}

func (*AddUsersResponse) Descriptor

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

func (*AddUsersResponse) GetUserIds

func (m *AddUsersResponse) GetUserIds() []*happyco_type_v1.IntegrationID

func (*AddUsersResponse) ProtoMessage

func (*AddUsersResponse) ProtoMessage()

func (*AddUsersResponse) Reset

func (m *AddUsersResponse) Reset()

func (*AddUsersResponse) String

func (m *AddUsersResponse) String() string

type ListAccountsRequest

type ListAccountsRequest struct {
	AccountIds      []*happyco_type_v1.IntegrationID `protobuf:"bytes,1,rep,name=account_ids,json=accountIds" json:"account_ids,omitempty"`
	IncludeInactive bool                             `protobuf:"varint,2,opt,name=include_inactive,json=includeInactive" json:"include_inactive,omitempty"`
	Paging          *happyco_type_v11.Paging         `protobuf:"bytes,3,opt,name=paging" json:"paging,omitempty"`
}

func (*ListAccountsRequest) Descriptor

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

func (*ListAccountsRequest) GetAccountIds

func (m *ListAccountsRequest) GetAccountIds() []*happyco_type_v1.IntegrationID

func (*ListAccountsRequest) GetIncludeInactive

func (m *ListAccountsRequest) GetIncludeInactive() bool

func (*ListAccountsRequest) GetPaging

func (*ListAccountsRequest) ProtoMessage

func (*ListAccountsRequest) ProtoMessage()

func (*ListAccountsRequest) Reset

func (m *ListAccountsRequest) Reset()

func (*ListAccountsRequest) String

func (m *ListAccountsRequest) String() string

type ListAccountsResponse

type ListAccountsResponse struct {
	Accounts []*Account                       `protobuf:"bytes,1,rep,name=accounts" json:"accounts,omitempty"`
	Paging   *happyco_type_v11.PagingResponse `protobuf:"bytes,2,opt,name=paging" json:"paging,omitempty"`
}

func (*ListAccountsResponse) Descriptor

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

func (*ListAccountsResponse) GetAccounts

func (m *ListAccountsResponse) GetAccounts() []*Account

func (*ListAccountsResponse) GetPaging

func (*ListAccountsResponse) ProtoMessage

func (*ListAccountsResponse) ProtoMessage()

func (*ListAccountsResponse) Reset

func (m *ListAccountsResponse) Reset()

func (*ListAccountsResponse) String

func (m *ListAccountsResponse) String() string

type ListUsersRequest

type ListUsersRequest struct {
	AccountId       *happyco_type_v1.IntegrationID   `protobuf:"bytes,1,opt,name=account_id,json=accountId" json:"account_id,omitempty"`
	UserIds         []*happyco_type_v1.IntegrationID `protobuf:"bytes,2,rep,name=user_ids,json=userIds" json:"user_ids,omitempty"`
	IncludeInactive bool                             `protobuf:"varint,3,opt,name=include_inactive,json=includeInactive" json:"include_inactive,omitempty"`
	Paging          *happyco_type_v11.Paging         `protobuf:"bytes,4,opt,name=paging" json:"paging,omitempty"`
}

func (*ListUsersRequest) Descriptor

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

func (*ListUsersRequest) GetAccountId

func (m *ListUsersRequest) GetAccountId() *happyco_type_v1.IntegrationID

func (*ListUsersRequest) GetIncludeInactive

func (m *ListUsersRequest) GetIncludeInactive() bool

func (*ListUsersRequest) GetPaging

func (m *ListUsersRequest) GetPaging() *happyco_type_v11.Paging

func (*ListUsersRequest) GetUserIds

func (m *ListUsersRequest) GetUserIds() []*happyco_type_v1.IntegrationID

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) Reset

func (m *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (m *ListUsersRequest) String() string

type ListUsersResponse

type ListUsersResponse struct {
	Users  []*User                          `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
	Paging *happyco_type_v11.PagingResponse `protobuf:"bytes,2,opt,name=paging" json:"paging,omitempty"`
}

func (*ListUsersResponse) Descriptor

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

func (*ListUsersResponse) GetPaging

func (*ListUsersResponse) GetUsers

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

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) Reset

func (m *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (m *ListUsersResponse) String() string

type UpdateAccountsRequest

type UpdateAccountsRequest struct {
	AccountWithAdminIds []*UpdateAccountsRequest_AccountWithAdminId `protobuf:"bytes,1,rep,name=account_with_admin_ids,json=accountWithAdminIds" json:"account_with_admin_ids,omitempty"`
}

func (*UpdateAccountsRequest) Descriptor

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

func (*UpdateAccountsRequest) GetAccountWithAdminIds

func (m *UpdateAccountsRequest) GetAccountWithAdminIds() []*UpdateAccountsRequest_AccountWithAdminId

func (*UpdateAccountsRequest) ProtoMessage

func (*UpdateAccountsRequest) ProtoMessage()

func (*UpdateAccountsRequest) Reset

func (m *UpdateAccountsRequest) Reset()

func (*UpdateAccountsRequest) String

func (m *UpdateAccountsRequest) String() string

type UpdateAccountsRequest_AccountWithAdminId

type UpdateAccountsRequest_AccountWithAdminId struct {
	Account     *Account                       `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"`
	AdminUserId *happyco_type_v1.IntegrationID `protobuf:"bytes,2,opt,name=admin_user_id,json=adminUserId" json:"admin_user_id,omitempty"`
}

func (*UpdateAccountsRequest_AccountWithAdminId) Descriptor

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

func (*UpdateAccountsRequest_AccountWithAdminId) GetAccount

func (*UpdateAccountsRequest_AccountWithAdminId) GetAdminUserId

func (*UpdateAccountsRequest_AccountWithAdminId) ProtoMessage

func (*UpdateAccountsRequest_AccountWithAdminId) Reset

func (*UpdateAccountsRequest_AccountWithAdminId) String

type UpdateAccountsResponse

type UpdateAccountsResponse struct {
}

func (*UpdateAccountsResponse) Descriptor

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

func (*UpdateAccountsResponse) ProtoMessage

func (*UpdateAccountsResponse) ProtoMessage()

func (*UpdateAccountsResponse) Reset

func (m *UpdateAccountsResponse) Reset()

func (*UpdateAccountsResponse) String

func (m *UpdateAccountsResponse) String() string

type UpdateUserStatusesRequest

type UpdateUserStatusesRequest struct {
	AccountId *happyco_type_v1.IntegrationID   `protobuf:"bytes,1,opt,name=account_id,json=accountId" json:"account_id,omitempty"`
	UserIds   []*happyco_type_v1.IntegrationID `protobuf:"bytes,2,rep,name=user_ids,json=userIds" json:"user_ids,omitempty"`
	Active    bool                             `protobuf:"varint,3,opt,name=active" json:"active,omitempty"`
}

func (*UpdateUserStatusesRequest) Descriptor

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

func (*UpdateUserStatusesRequest) GetAccountId

func (*UpdateUserStatusesRequest) GetActive

func (m *UpdateUserStatusesRequest) GetActive() bool

func (*UpdateUserStatusesRequest) GetUserIds

func (*UpdateUserStatusesRequest) ProtoMessage

func (*UpdateUserStatusesRequest) ProtoMessage()

func (*UpdateUserStatusesRequest) Reset

func (m *UpdateUserStatusesRequest) Reset()

func (*UpdateUserStatusesRequest) String

func (m *UpdateUserStatusesRequest) String() string

type UpdateUserStatusesResponse

type UpdateUserStatusesResponse struct {
}

func (*UpdateUserStatusesResponse) Descriptor

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

func (*UpdateUserStatusesResponse) ProtoMessage

func (*UpdateUserStatusesResponse) ProtoMessage()

func (*UpdateUserStatusesResponse) Reset

func (m *UpdateUserStatusesResponse) Reset()

func (*UpdateUserStatusesResponse) String

func (m *UpdateUserStatusesResponse) String() string

type UpdateUsersRequest

type UpdateUsersRequest struct {
	AccountId *happyco_type_v1.IntegrationID `protobuf:"bytes,1,opt,name=account_id,json=accountId" json:"account_id,omitempty"`
	Users     []*User                        `protobuf:"bytes,2,rep,name=users" json:"users,omitempty"`
}

func (*UpdateUsersRequest) Descriptor

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

func (*UpdateUsersRequest) GetAccountId

func (*UpdateUsersRequest) GetUsers

func (m *UpdateUsersRequest) GetUsers() []*User

func (*UpdateUsersRequest) ProtoMessage

func (*UpdateUsersRequest) ProtoMessage()

func (*UpdateUsersRequest) Reset

func (m *UpdateUsersRequest) Reset()

func (*UpdateUsersRequest) String

func (m *UpdateUsersRequest) String() string

type UpdateUsersResponse

type UpdateUsersResponse struct {
	UserIds []*happyco_type_v1.IntegrationID `protobuf:"bytes,1,rep,name=user_ids,json=userIds" json:"user_ids,omitempty"`
}

func (*UpdateUsersResponse) Descriptor

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

func (*UpdateUsersResponse) GetUserIds

func (*UpdateUsersResponse) ProtoMessage

func (*UpdateUsersResponse) ProtoMessage()

func (*UpdateUsersResponse) Reset

func (m *UpdateUsersResponse) Reset()

func (*UpdateUsersResponse) String

func (m *UpdateUsersResponse) String() string

type User

type User struct {
	Id        *happyco_type_v1.IntegrationID `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Inactive  bool                           `protobuf:"varint,2,opt,name=inactive" json:"inactive,omitempty"`
	FirstName string                         `protobuf:"bytes,3,opt,name=first_name,json=firstName" json:"first_name,omitempty"`
	LastName  string                         `protobuf:"bytes,4,opt,name=last_name,json=lastName" json:"last_name,omitempty"`
	Email     string                         `protobuf:"bytes,5,opt,name=email" json:"email,omitempty"`
	Phone     string                         `protobuf:"bytes,6,opt,name=phone" json:"phone,omitempty"`
}

func (*User) Descriptor

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

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetFirstName

func (m *User) GetFirstName() string

func (*User) GetId

func (m *User) GetId() *happyco_type_v1.IntegrationID

func (*User) GetInactive

func (m *User) GetInactive() bool

func (*User) GetLastName

func (m *User) GetLastName() string

func (*User) GetPhone

func (m *User) GetPhone() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

Jump to

Keyboard shortcuts

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