userv1beta1

package
v0.0.0-...-8c39dc6 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package userv1beta1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserServiceHandler

func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserServiceHandlerClient

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.

func RegisterUserServiceHandlerFromEndpoint

func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserServiceHandlerServer

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterUserServiceServer

func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)

Types

type BatchGetUsersRequest

type BatchGetUsersRequest struct {
	// The resource names of the users to get.
	Names                []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Batch get users request.

func (*BatchGetUsersRequest) Descriptor

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

func (*BatchGetUsersRequest) GetNames

func (m *BatchGetUsersRequest) GetNames() []string

func (*BatchGetUsersRequest) ProtoMessage

func (*BatchGetUsersRequest) ProtoMessage()

func (*BatchGetUsersRequest) Reset

func (m *BatchGetUsersRequest) Reset()

func (*BatchGetUsersRequest) String

func (m *BatchGetUsersRequest) String() string

func (*BatchGetUsersRequest) XXX_DiscardUnknown

func (m *BatchGetUsersRequest) XXX_DiscardUnknown()

func (*BatchGetUsersRequest) XXX_Marshal

func (m *BatchGetUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchGetUsersRequest) XXX_Merge

func (m *BatchGetUsersRequest) XXX_Merge(src proto.Message)

func (*BatchGetUsersRequest) XXX_Size

func (m *BatchGetUsersRequest) XXX_Size() int

func (*BatchGetUsersRequest) XXX_Unmarshal

func (m *BatchGetUsersRequest) XXX_Unmarshal(b []byte) error

type BatchGetUsersResponse

type BatchGetUsersResponse struct {
	// The found users.
	//
	// The order of results in this field is undefined and has no relation to the
	// order of the keys in the input.
	FoundUsers []*User `protobuf:"bytes,1,rep,name=found_users,json=foundUsers,proto3" json:"found_users,omitempty"`
	// The missing resource names.
	//
	// The order of results in this field is undefined and has no relation to the
	// order of the keys in the input.
	MissingNames         []string `protobuf:"bytes,2,rep,name=missing_names,json=missingNames,proto3" json:"missing_names,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Batch get users response.

func (*BatchGetUsersResponse) Descriptor

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

func (*BatchGetUsersResponse) GetFoundUsers

func (m *BatchGetUsersResponse) GetFoundUsers() []*User

func (*BatchGetUsersResponse) GetMissingNames

func (m *BatchGetUsersResponse) GetMissingNames() []string

func (*BatchGetUsersResponse) ProtoMessage

func (*BatchGetUsersResponse) ProtoMessage()

func (*BatchGetUsersResponse) Reset

func (m *BatchGetUsersResponse) Reset()

func (*BatchGetUsersResponse) String

func (m *BatchGetUsersResponse) String() string

func (*BatchGetUsersResponse) XXX_DiscardUnknown

func (m *BatchGetUsersResponse) XXX_DiscardUnknown()

func (*BatchGetUsersResponse) XXX_Marshal

func (m *BatchGetUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchGetUsersResponse) XXX_Merge

func (m *BatchGetUsersResponse) XXX_Merge(src proto.Message)

func (*BatchGetUsersResponse) XXX_Size

func (m *BatchGetUsersResponse) XXX_Size() int

func (*BatchGetUsersResponse) XXX_Unmarshal

func (m *BatchGetUsersResponse) XXX_Unmarshal(b []byte) error

type CreateUserRequest

type CreateUserRequest struct {
	// The user id to use for this user.
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The user resource to create.
	User                 *User    `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Create user request.

func (*CreateUserRequest) Descriptor

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

func (*CreateUserRequest) GetUser

func (m *CreateUserRequest) GetUser() *User

func (*CreateUserRequest) GetUserId

func (m *CreateUserRequest) GetUserId() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) Reset

func (m *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (m *CreateUserRequest) String() string

func (*CreateUserRequest) XXX_DiscardUnknown

func (m *CreateUserRequest) XXX_DiscardUnknown()

func (*CreateUserRequest) XXX_Marshal

func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateUserRequest) XXX_Merge

func (m *CreateUserRequest) XXX_Merge(src proto.Message)

func (*CreateUserRequest) XXX_Size

func (m *CreateUserRequest) XXX_Size() int

func (*CreateUserRequest) XXX_Unmarshal

func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error

type CreateUserResponse

type CreateUserResponse struct {
	// The created user.
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Create user response.

func (*CreateUserResponse) Descriptor

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

func (*CreateUserResponse) GetUser

func (m *CreateUserResponse) GetUser() *User

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) Reset

func (m *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (m *CreateUserResponse) String() string

func (*CreateUserResponse) XXX_DiscardUnknown

func (m *CreateUserResponse) XXX_DiscardUnknown()

func (*CreateUserResponse) XXX_Marshal

func (m *CreateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateUserResponse) XXX_Merge

func (m *CreateUserResponse) XXX_Merge(src proto.Message)

func (*CreateUserResponse) XXX_Size

func (m *CreateUserResponse) XXX_Size() int

func (*CreateUserResponse) XXX_Unmarshal

func (m *CreateUserResponse) XXX_Unmarshal(b []byte) error

type DeleteUserRequest

type DeleteUserRequest struct {
	// The resource name of the user to mark for deletion.
	// For example: "users/1234"
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Delete user request.

func (*DeleteUserRequest) Descriptor

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

func (*DeleteUserRequest) GetName

func (m *DeleteUserRequest) GetName() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) Reset

func (m *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (m *DeleteUserRequest) String() string

func (*DeleteUserRequest) XXX_DiscardUnknown

func (m *DeleteUserRequest) XXX_DiscardUnknown()

func (*DeleteUserRequest) XXX_Marshal

func (m *DeleteUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteUserRequest) XXX_Merge

func (m *DeleteUserRequest) XXX_Merge(src proto.Message)

func (*DeleteUserRequest) XXX_Size

func (m *DeleteUserRequest) XXX_Size() int

func (*DeleteUserRequest) XXX_Unmarshal

func (m *DeleteUserRequest) XXX_Unmarshal(b []byte) error

type DeleteUserResponse

type DeleteUserResponse struct {
	// The user marked for deletion.
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Delete user response.

func (*DeleteUserResponse) Descriptor

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

func (*DeleteUserResponse) GetUser

func (m *DeleteUserResponse) GetUser() *User

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) Reset

func (m *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (m *DeleteUserResponse) String() string

func (*DeleteUserResponse) XXX_DiscardUnknown

func (m *DeleteUserResponse) XXX_DiscardUnknown()

func (*DeleteUserResponse) XXX_Marshal

func (m *DeleteUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteUserResponse) XXX_Merge

func (m *DeleteUserResponse) XXX_Merge(src proto.Message)

func (*DeleteUserResponse) XXX_Size

func (m *DeleteUserResponse) XXX_Size() int

func (*DeleteUserResponse) XXX_Unmarshal

func (m *DeleteUserResponse) XXX_Unmarshal(b []byte) error

type GetUserRequest

type GetUserRequest struct {
	// The resource name of the user to get.
	// Example: "users/1234"
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Get user request.

func (*GetUserRequest) Descriptor

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

func (*GetUserRequest) GetName

func (m *GetUserRequest) GetName() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) Reset

func (m *GetUserRequest) Reset()

func (*GetUserRequest) String

func (m *GetUserRequest) String() string

func (*GetUserRequest) XXX_DiscardUnknown

func (m *GetUserRequest) XXX_DiscardUnknown()

func (*GetUserRequest) XXX_Marshal

func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserRequest) XXX_Merge

func (m *GetUserRequest) XXX_Merge(src proto.Message)

func (*GetUserRequest) XXX_Size

func (m *GetUserRequest) XXX_Size() int

func (*GetUserRequest) XXX_Unmarshal

func (m *GetUserRequest) XXX_Unmarshal(b []byte) error

type GetUserResponse

type GetUserResponse struct {
	// The returned user.
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Get user response.

func (*GetUserResponse) Descriptor

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

func (*GetUserResponse) GetUser

func (m *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) Reset

func (m *GetUserResponse) Reset()

func (*GetUserResponse) String

func (m *GetUserResponse) String() string

func (*GetUserResponse) XXX_DiscardUnknown

func (m *GetUserResponse) XXX_DiscardUnknown()

func (*GetUserResponse) XXX_Marshal

func (m *GetUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserResponse) XXX_Merge

func (m *GetUserResponse) XXX_Merge(src proto.Message)

func (*GetUserResponse) XXX_Size

func (m *GetUserResponse) XXX_Size() int

func (*GetUserResponse) XXX_Unmarshal

func (m *GetUserResponse) XXX_Unmarshal(b []byte) error

type ListUsersPageToken

type ListUsersPageToken struct {
	// Current offset in the total users.
	Offset               int32    `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Page token for the list users endpoint.

func (*ListUsersPageToken) Descriptor

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

func (*ListUsersPageToken) GetOffset

func (m *ListUsersPageToken) GetOffset() int32

func (*ListUsersPageToken) ProtoMessage

func (*ListUsersPageToken) ProtoMessage()

func (*ListUsersPageToken) Reset

func (m *ListUsersPageToken) Reset()

func (*ListUsersPageToken) String

func (m *ListUsersPageToken) String() string

func (*ListUsersPageToken) XXX_DiscardUnknown

func (m *ListUsersPageToken) XXX_DiscardUnknown()

func (*ListUsersPageToken) XXX_Marshal

func (m *ListUsersPageToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListUsersPageToken) XXX_Merge

func (m *ListUsersPageToken) XXX_Merge(src proto.Message)

func (*ListUsersPageToken) XXX_Size

func (m *ListUsersPageToken) XXX_Size() int

func (*ListUsersPageToken) XXX_Unmarshal

func (m *ListUsersPageToken) XXX_Unmarshal(b []byte) error

type ListUsersRequest

type ListUsersRequest struct {
	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Flag for including deleted resources.
	ShowDeleted bool `protobuf:"varint,3,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
	// An optional filter.
	//
	// Uses [Common Expression Language](https://opensource.google/projects/cel):
	// https://opensource.google/projects/cel
	//
	// Available declarations:
	//
	// - [user][odsod.user.v1beta1.User]
	//
	// For example:
	//
	//    user.full_name in ["Jane Doe", "John Doe"]`
	Filter               string   `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

List users request.

func (*ListUsersRequest) Descriptor

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

func (*ListUsersRequest) GetFilter

func (m *ListUsersRequest) GetFilter() string

func (*ListUsersRequest) GetPageSize

func (m *ListUsersRequest) GetPageSize() int32

func (*ListUsersRequest) GetPageToken

func (m *ListUsersRequest) GetPageToken() string

func (*ListUsersRequest) GetShowDeleted

func (m *ListUsersRequest) GetShowDeleted() bool

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) Reset

func (m *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (m *ListUsersRequest) String() string

func (*ListUsersRequest) XXX_DiscardUnknown

func (m *ListUsersRequest) XXX_DiscardUnknown()

func (*ListUsersRequest) XXX_Marshal

func (m *ListUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListUsersRequest) XXX_Merge

func (m *ListUsersRequest) XXX_Merge(src proto.Message)

func (*ListUsersRequest) XXX_Size

func (m *ListUsersRequest) XXX_Size() int

func (*ListUsersRequest) XXX_Unmarshal

func (m *ListUsersRequest) XXX_Unmarshal(b []byte) error

type ListUsersResponse

type ListUsersResponse struct {
	// The returned users.
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no
	// more results in the list.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The total number of users in the list.
	TotalSize            int32    `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

List users response.

func (*ListUsersResponse) Descriptor

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

func (*ListUsersResponse) GetNextPageToken

func (m *ListUsersResponse) GetNextPageToken() string

func (*ListUsersResponse) GetTotalSize

func (m *ListUsersResponse) GetTotalSize() int32

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

func (*ListUsersResponse) XXX_DiscardUnknown

func (m *ListUsersResponse) XXX_DiscardUnknown()

func (*ListUsersResponse) XXX_Marshal

func (m *ListUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListUsersResponse) XXX_Merge

func (m *ListUsersResponse) XXX_Merge(src proto.Message)

func (*ListUsersResponse) XXX_Size

func (m *ListUsersResponse) XXX_Size() int

func (*ListUsersResponse) XXX_Unmarshal

func (m *ListUsersResponse) XXX_Unmarshal(b []byte) error

type UndeleteUserRequest

type UndeleteUserRequest struct {
	// The resource name of the user to undelete.
	// For example: "users/1234"
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Undelete user request.

func (*UndeleteUserRequest) Descriptor

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

func (*UndeleteUserRequest) GetName

func (m *UndeleteUserRequest) GetName() string

func (*UndeleteUserRequest) ProtoMessage

func (*UndeleteUserRequest) ProtoMessage()

func (*UndeleteUserRequest) Reset

func (m *UndeleteUserRequest) Reset()

func (*UndeleteUserRequest) String

func (m *UndeleteUserRequest) String() string

func (*UndeleteUserRequest) XXX_DiscardUnknown

func (m *UndeleteUserRequest) XXX_DiscardUnknown()

func (*UndeleteUserRequest) XXX_Marshal

func (m *UndeleteUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UndeleteUserRequest) XXX_Merge

func (m *UndeleteUserRequest) XXX_Merge(src proto.Message)

func (*UndeleteUserRequest) XXX_Size

func (m *UndeleteUserRequest) XXX_Size() int

func (*UndeleteUserRequest) XXX_Unmarshal

func (m *UndeleteUserRequest) XXX_Unmarshal(b []byte) error

type UndeleteUserResponse

type UndeleteUserResponse struct {
	// The undeleted user.
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Undelete user response.

func (*UndeleteUserResponse) Descriptor

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

func (*UndeleteUserResponse) GetUser

func (m *UndeleteUserResponse) GetUser() *User

func (*UndeleteUserResponse) ProtoMessage

func (*UndeleteUserResponse) ProtoMessage()

func (*UndeleteUserResponse) Reset

func (m *UndeleteUserResponse) Reset()

func (*UndeleteUserResponse) String

func (m *UndeleteUserResponse) String() string

func (*UndeleteUserResponse) XXX_DiscardUnknown

func (m *UndeleteUserResponse) XXX_DiscardUnknown()

func (*UndeleteUserResponse) XXX_Marshal

func (m *UndeleteUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UndeleteUserResponse) XXX_Merge

func (m *UndeleteUserResponse) XXX_Merge(src proto.Message)

func (*UndeleteUserResponse) XXX_Size

func (m *UndeleteUserResponse) XXX_Size() int

func (*UndeleteUserResponse) XXX_Unmarshal

func (m *UndeleteUserResponse) XXX_Unmarshal(b []byte) error

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServiceServer) BatchGetUsers

func (*UnimplementedUserServiceServer) CreateUser

func (*UnimplementedUserServiceServer) DeleteUser

func (*UnimplementedUserServiceServer) GetUser

func (*UnimplementedUserServiceServer) ListUsers

func (*UnimplementedUserServiceServer) UndeleteUser

func (*UnimplementedUserServiceServer) UpdateUser

type UpdateUserRequest

type UpdateUserRequest struct {
	// The user resource which replaces the current user resource.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// The update mask applies to the resource.
	//
	// For the `FieldMask` definition, see:
	// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Update user request.

func (*UpdateUserRequest) Descriptor

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

func (*UpdateUserRequest) GetUpdateMask

func (m *UpdateUserRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateUserRequest) GetUser

func (m *UpdateUserRequest) GetUser() *User

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) Reset

func (m *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (m *UpdateUserRequest) String() string

func (*UpdateUserRequest) XXX_DiscardUnknown

func (m *UpdateUserRequest) XXX_DiscardUnknown()

func (*UpdateUserRequest) XXX_Marshal

func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateUserRequest) XXX_Merge

func (m *UpdateUserRequest) XXX_Merge(src proto.Message)

func (*UpdateUserRequest) XXX_Size

func (m *UpdateUserRequest) XXX_Size() int

func (*UpdateUserRequest) XXX_Unmarshal

func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error

type UpdateUserResponse

type UpdateUserResponse struct {
	// The updated user.
	User                 *User    `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Update user response.

func (*UpdateUserResponse) Descriptor

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

func (*UpdateUserResponse) GetUser

func (m *UpdateUserResponse) GetUser() *User

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) Reset

func (m *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (m *UpdateUserResponse) String() string

func (*UpdateUserResponse) XXX_DiscardUnknown

func (m *UpdateUserResponse) XXX_DiscardUnknown()

func (*UpdateUserResponse) XXX_Marshal

func (m *UpdateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateUserResponse) XXX_Merge

func (m *UpdateUserResponse) XXX_Merge(src proto.Message)

func (*UpdateUserResponse) XXX_Size

func (m *UpdateUserResponse) XXX_Size() int

func (*UpdateUserResponse) XXX_Unmarshal

func (m *UpdateUserResponse) XXX_Unmarshal(b []byte) error

type User

type User struct {
	// Resource name of the user.
	// For example: "users/1234"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Indicates if the user is deleted.
	Deleted bool `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// The creation timestamp of the user.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The last update timestamp of the user.
	//
	// Note: update_time is updated when create/update/delete operation is
	// performed.
	UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The deletion timestamp of the user.
	DeleteTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
	// Full display name of the user.
	// For example: "Jane Smith"
	DisplayName          string   `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A user resource.

func (*User) Descriptor

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

func (*User) GetCreateTime

func (m *User) GetCreateTime() *timestamp.Timestamp

func (*User) GetDeleteTime

func (m *User) GetDeleteTime() *timestamp.Timestamp

func (*User) GetDeleted

func (m *User) GetDeleted() bool

func (*User) GetDisplayName

func (m *User) GetDisplayName() string

func (*User) GetName

func (m *User) GetName() string

func (*User) GetUpdateTime

func (m *User) GetUpdateTime() *timestamp.Timestamp

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*User) XXX_Merge

func (m *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

func (m *User) XXX_Unmarshal(b []byte) error

type UserServiceClient

type UserServiceClient interface {
	// List users.
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	// Get a user.
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	// Get a batch of users.
	BatchGetUsers(ctx context.Context, in *BatchGetUsersRequest, opts ...grpc.CallOption) (*BatchGetUsersResponse, error)
	// Create a user.
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	// Update a user.
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	// Delete a user.
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
	// Unedelete a user.
	UndeleteUser(ctx context.Context, in *UndeleteUserRequest, opts ...grpc.CallOption) (*UndeleteUserResponse, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUserServiceClient

func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient

type UserServiceServer

type UserServiceServer interface {
	// List users.
	ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
	// Get a user.
	GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
	// Get a batch of users.
	BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersResponse, error)
	// Create a user.
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
	// Update a user.
	UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
	// Delete a user.
	DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
	// Unedelete a user.
	UndeleteUser(context.Context, *UndeleteUserRequest) (*UndeleteUserResponse, error)
}

UserServiceServer is the server API for UserService service.

Jump to

Keyboard shortcuts

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