v1

package
v0.0.0-...-ebf00f0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var CatalogService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "catalog.v1.CatalogService",
	HandlerType: (*CatalogServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateCompany",
			Handler:    _CatalogService_CreateCompany_Handler,
		},
		{
			MethodName: "GetCompany",
			Handler:    _CatalogService_GetCompany_Handler,
		},
		{
			MethodName: "ListCompanies",
			Handler:    _CatalogService_ListCompanies_Handler,
		},
		{
			MethodName: "UpdateCompany",
			Handler:    _CatalogService_UpdateCompany_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "catalog/v1/catalog.proto",
}

CatalogService_ServiceDesc is the grpc.ServiceDesc for CatalogService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var CatalogService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "catalog.v1.CatalogService",
	HandlerType: (*CatalogServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateCompany",
			Handler:    _CatalogService_CreateCompany_Handler,
		},
		{
			MethodName: "GetCompany",
			Handler:    _CatalogService_GetCompany_Handler,
		},
		{
			MethodName: "ListCompanies",
			Handler:    _CatalogService_ListCompanies_Handler,
		},
		{
			MethodName: "UpdateCompany",
			Handler:    _CatalogService_UpdateCompany_Handler,
		},
		{
			MethodName: "DeleteCompany",
			Handler:    _CatalogService_DeleteCompany_Handler,
		},
		{
			MethodName: "CreateCatalog",
			Handler:    _CatalogService_CreateCatalog_Handler,
		},
		{
			MethodName: "GetCatalog",
			Handler:    _CatalogService_GetCatalog_Handler,
		},
		{
			MethodName: "ListCatalogs",
			Handler:    _CatalogService_ListCatalogs_Handler,
		},
		{
			MethodName: "UpdateCatalog",
			Handler:    _CatalogService_UpdateCatalog_Handler,
		},
		{
			MethodName: "DeleteCatalog",
			Handler:    _CatalogService_DeleteCatalog_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "catalog/v1/catalog_service.proto",
}

CatalogService_ServiceDesc is the grpc.ServiceDesc for CatalogService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_catalog_v1_catalog_proto protoreflect.FileDescriptor
View Source
var File_catalog_v1_catalog_service_proto protoreflect.FileDescriptor
View Source
var File_catalog_v1_company_proto protoreflect.FileDescriptor

Functions

func RegisterCatalogServiceHandler

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

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

func RegisterCatalogServiceHandlerClient

func RegisterCatalogServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CatalogServiceClient) error

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

func RegisterCatalogServiceHandlerFromEndpoint

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

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

func RegisterCatalogServiceHandlerServer

func RegisterCatalogServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CatalogServiceServer) error

RegisterCatalogServiceHandlerServer registers the http handlers for service CatalogService to "mux". UnaryRPC :call CatalogServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCatalogServiceHandlerFromEndpoint instead.

func RegisterCatalogServiceServer

func RegisterCatalogServiceServer(s grpc.ServiceRegistrar, srv CatalogServiceServer)

Types

type Catalog

type Catalog struct {
	Name        string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Uid         string                 `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	DisplayName string                 `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	CreateTime  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	UpdateTime  *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

Catalog Stuff

func (*Catalog) Descriptor deprecated

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

Deprecated: Use Catalog.ProtoReflect.Descriptor instead.

func (*Catalog) GetCreateTime

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

func (*Catalog) GetDisplayName

func (x *Catalog) GetDisplayName() string

func (*Catalog) GetName

func (x *Catalog) GetName() string

func (*Catalog) GetUid

func (x *Catalog) GetUid() string

func (*Catalog) GetUpdateTime

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

func (*Catalog) ProtoMessage

func (*Catalog) ProtoMessage()

func (*Catalog) ProtoReflect

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

func (*Catalog) Reset

func (x *Catalog) Reset()

func (*Catalog) String

func (x *Catalog) String() string

func (*Catalog) Validate

func (m *Catalog) Validate() error

Validate checks the field values on Catalog with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Catalog) ValidateAll

func (m *Catalog) ValidateAll() error

ValidateAll checks the field values on Catalog with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CatalogMultiError, or nil if none found.

type CatalogMultiError

type CatalogMultiError []error

CatalogMultiError is an error wrapping multiple validation errors returned by Catalog.ValidateAll() if the designated constraints aren't met.

func (CatalogMultiError) AllErrors

func (m CatalogMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CatalogMultiError) Error

func (m CatalogMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CatalogServiceClient

type CatalogServiceClient interface {
	CreateCompany(ctx context.Context, in *CreateCompanyRequest, opts ...grpc.CallOption) (*Company, error)
	GetCompany(ctx context.Context, in *GetCompanyRequest, opts ...grpc.CallOption) (*Company, error)
	ListCompanies(ctx context.Context, in *ListCompaniesRequest, opts ...grpc.CallOption) (*ListCompaniesResponse, error)
	UpdateCompany(ctx context.Context, in *UpdateCompanyRequest, opts ...grpc.CallOption) (*Company, error)
	DeleteCompany(ctx context.Context, in *DeleteCompanyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Catalog CRUD
	CreateCatalog(ctx context.Context, in *CreateCatalogRequest, opts ...grpc.CallOption) (*Catalog, error)
	GetCatalog(ctx context.Context, in *GetCatalogRequest, opts ...grpc.CallOption) (*Catalog, error)
	ListCatalogs(ctx context.Context, in *ListCatalogsRequest, opts ...grpc.CallOption) (*ListCatalogsResponse, error)
	UpdateCatalog(ctx context.Context, in *UpdateCatalogRequest, opts ...grpc.CallOption) (*Catalog, error)
	DeleteCatalog(ctx context.Context, in *DeleteCatalogRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

CatalogServiceClient is the client API for CatalogService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewCatalogServiceClient

func NewCatalogServiceClient(cc grpc.ClientConnInterface) CatalogServiceClient

type CatalogServiceServer

type CatalogServiceServer interface {
	CreateCompany(context.Context, *CreateCompanyRequest) (*Company, error)
	GetCompany(context.Context, *GetCompanyRequest) (*Company, error)
	ListCompanies(context.Context, *ListCompaniesRequest) (*ListCompaniesResponse, error)
	UpdateCompany(context.Context, *UpdateCompanyRequest) (*Company, error)
	DeleteCompany(context.Context, *DeleteCompanyRequest) (*emptypb.Empty, error)
	// Catalog CRUD
	CreateCatalog(context.Context, *CreateCatalogRequest) (*Catalog, error)
	GetCatalog(context.Context, *GetCatalogRequest) (*Catalog, error)
	ListCatalogs(context.Context, *ListCatalogsRequest) (*ListCatalogsResponse, error)
	UpdateCatalog(context.Context, *UpdateCatalogRequest) (*Catalog, error)
	DeleteCatalog(context.Context, *DeleteCatalogRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

CatalogServiceServer is the server API for CatalogService service. All implementations must embed UnimplementedCatalogServiceServer for forward compatibility

type CatalogValidationError

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

CatalogValidationError is the validation error returned by Catalog.Validate if the designated constraints aren't met.

func (CatalogValidationError) Cause

func (e CatalogValidationError) Cause() error

Cause function returns cause value.

func (CatalogValidationError) Error

func (e CatalogValidationError) Error() string

Error satisfies the builtin error interface

func (CatalogValidationError) ErrorName

func (e CatalogValidationError) ErrorName() string

ErrorName returns error name.

func (CatalogValidationError) Field

func (e CatalogValidationError) Field() string

Field function returns field value.

func (CatalogValidationError) Key

func (e CatalogValidationError) Key() bool

Key function returns key value.

func (CatalogValidationError) Reason

func (e CatalogValidationError) Reason() string

Reason function returns reason value.

type Company

type Company struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// shoud uid be unique - in google's apis they don't
	// specify IMMUTABLE
	Uid         string                 `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	DisplayName string                 `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	CreateTime  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	UpdateTime  *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

Root object is a company

func (*Company) Descriptor deprecated

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

Deprecated: Use Company.ProtoReflect.Descriptor instead.

func (*Company) GetCreateTime

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

func (*Company) GetDisplayName

func (x *Company) GetDisplayName() string

func (*Company) GetName

func (x *Company) GetName() string

func (*Company) GetUid

func (x *Company) GetUid() string

func (*Company) GetUpdateTime

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

func (*Company) ProtoMessage

func (*Company) ProtoMessage()

func (*Company) ProtoReflect

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

func (*Company) Reset

func (x *Company) Reset()

func (*Company) String

func (x *Company) String() string

func (*Company) Validate

func (m *Company) Validate() error

Validate checks the field values on Company with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Company) ValidateAll

func (m *Company) ValidateAll() error

ValidateAll checks the field values on Company with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CompanyMultiError, or nil if none found.

type CompanyMultiError

type CompanyMultiError []error

CompanyMultiError is an error wrapping multiple validation errors returned by Company.ValidateAll() if the designated constraints aren't met.

func (CompanyMultiError) AllErrors

func (m CompanyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CompanyMultiError) Error

func (m CompanyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CompanyValidationError

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

CompanyValidationError is the validation error returned by Company.Validate if the designated constraints aren't met.

func (CompanyValidationError) Cause

func (e CompanyValidationError) Cause() error

Cause function returns cause value.

func (CompanyValidationError) Error

func (e CompanyValidationError) Error() string

Error satisfies the builtin error interface

func (CompanyValidationError) ErrorName

func (e CompanyValidationError) ErrorName() string

ErrorName returns error name.

func (CompanyValidationError) Field

func (e CompanyValidationError) Field() string

Field function returns field value.

func (CompanyValidationError) Key

func (e CompanyValidationError) Key() bool

Key function returns key value.

func (CompanyValidationError) Reason

func (e CompanyValidationError) Reason() string

Reason function returns reason value.

type CreateCatalogRequest

type CreateCatalogRequest struct {
	Parent  string   `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Catalog *Catalog `protobuf:"bytes,2,opt,name=catalog,proto3" json:"catalog,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCatalogRequest) Descriptor deprecated

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

Deprecated: Use CreateCatalogRequest.ProtoReflect.Descriptor instead.

func (*CreateCatalogRequest) GetCatalog

func (x *CreateCatalogRequest) GetCatalog() *Catalog

func (*CreateCatalogRequest) GetParent

func (x *CreateCatalogRequest) GetParent() string

func (*CreateCatalogRequest) ProtoMessage

func (*CreateCatalogRequest) ProtoMessage()

func (*CreateCatalogRequest) ProtoReflect

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

func (*CreateCatalogRequest) Reset

func (x *CreateCatalogRequest) Reset()

func (*CreateCatalogRequest) String

func (x *CreateCatalogRequest) String() string

func (*CreateCatalogRequest) Validate

func (m *CreateCatalogRequest) Validate() error

Validate checks the field values on CreateCatalogRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateCatalogRequest) ValidateAll

func (m *CreateCatalogRequest) ValidateAll() error

ValidateAll checks the field values on CreateCatalogRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateCatalogRequestMultiError, or nil if none found.

type CreateCatalogRequestMultiError

type CreateCatalogRequestMultiError []error

CreateCatalogRequestMultiError is an error wrapping multiple validation errors returned by CreateCatalogRequest.ValidateAll() if the designated constraints aren't met.

func (CreateCatalogRequestMultiError) AllErrors

func (m CreateCatalogRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateCatalogRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateCatalogRequestValidationError

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

CreateCatalogRequestValidationError is the validation error returned by CreateCatalogRequest.Validate if the designated constraints aren't met.

func (CreateCatalogRequestValidationError) Cause

Cause function returns cause value.

func (CreateCatalogRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateCatalogRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateCatalogRequestValidationError) Field

Field function returns field value.

func (CreateCatalogRequestValidationError) Key

Key function returns key value.

func (CreateCatalogRequestValidationError) Reason

Reason function returns reason value.

type CreateCompanyRequest

type CreateCompanyRequest struct {
	Company *Company `protobuf:"bytes,1,opt,name=company,proto3" json:"company,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCompanyRequest) Descriptor deprecated

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

Deprecated: Use CreateCompanyRequest.ProtoReflect.Descriptor instead.

func (*CreateCompanyRequest) GetCompany

func (x *CreateCompanyRequest) GetCompany() *Company

func (*CreateCompanyRequest) ProtoMessage

func (*CreateCompanyRequest) ProtoMessage()

func (*CreateCompanyRequest) ProtoReflect

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

func (*CreateCompanyRequest) Reset

func (x *CreateCompanyRequest) Reset()

func (*CreateCompanyRequest) String

func (x *CreateCompanyRequest) String() string

func (*CreateCompanyRequest) Validate

func (m *CreateCompanyRequest) Validate() error

Validate checks the field values on CreateCompanyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateCompanyRequest) ValidateAll

func (m *CreateCompanyRequest) ValidateAll() error

ValidateAll checks the field values on CreateCompanyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateCompanyRequestMultiError, or nil if none found.

type CreateCompanyRequestMultiError

type CreateCompanyRequestMultiError []error

CreateCompanyRequestMultiError is an error wrapping multiple validation errors returned by CreateCompanyRequest.ValidateAll() if the designated constraints aren't met.

func (CreateCompanyRequestMultiError) AllErrors

func (m CreateCompanyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateCompanyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateCompanyRequestValidationError

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

CreateCompanyRequestValidationError is the validation error returned by CreateCompanyRequest.Validate if the designated constraints aren't met.

func (CreateCompanyRequestValidationError) Cause

Cause function returns cause value.

func (CreateCompanyRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateCompanyRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateCompanyRequestValidationError) Field

Field function returns field value.

func (CreateCompanyRequestValidationError) Key

Key function returns key value.

func (CreateCompanyRequestValidationError) Reason

Reason function returns reason value.

type DeleteCatalogRequest

type DeleteCatalogRequest struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Force bool   `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCatalogRequest) Descriptor deprecated

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

Deprecated: Use DeleteCatalogRequest.ProtoReflect.Descriptor instead.

func (*DeleteCatalogRequest) GetForce

func (x *DeleteCatalogRequest) GetForce() bool

func (*DeleteCatalogRequest) GetName

func (x *DeleteCatalogRequest) GetName() string

func (*DeleteCatalogRequest) ProtoMessage

func (*DeleteCatalogRequest) ProtoMessage()

func (*DeleteCatalogRequest) ProtoReflect

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

func (*DeleteCatalogRequest) Reset

func (x *DeleteCatalogRequest) Reset()

func (*DeleteCatalogRequest) String

func (x *DeleteCatalogRequest) String() string

func (*DeleteCatalogRequest) Validate

func (m *DeleteCatalogRequest) Validate() error

Validate checks the field values on DeleteCatalogRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteCatalogRequest) ValidateAll

func (m *DeleteCatalogRequest) ValidateAll() error

ValidateAll checks the field values on DeleteCatalogRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteCatalogRequestMultiError, or nil if none found.

type DeleteCatalogRequestMultiError

type DeleteCatalogRequestMultiError []error

DeleteCatalogRequestMultiError is an error wrapping multiple validation errors returned by DeleteCatalogRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteCatalogRequestMultiError) AllErrors

func (m DeleteCatalogRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteCatalogRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteCatalogRequestValidationError

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

DeleteCatalogRequestValidationError is the validation error returned by DeleteCatalogRequest.Validate if the designated constraints aren't met.

func (DeleteCatalogRequestValidationError) Cause

Cause function returns cause value.

func (DeleteCatalogRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteCatalogRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteCatalogRequestValidationError) Field

Field function returns field value.

func (DeleteCatalogRequestValidationError) Key

Key function returns key value.

func (DeleteCatalogRequestValidationError) Reason

Reason function returns reason value.

type DeleteCompanyRequest

type DeleteCompanyRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// https://google.aip.dev/135 - cascade delete
	// must fail if not provided
	Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCompanyRequest) Descriptor deprecated

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

Deprecated: Use DeleteCompanyRequest.ProtoReflect.Descriptor instead.

func (*DeleteCompanyRequest) GetForce

func (x *DeleteCompanyRequest) GetForce() bool

func (*DeleteCompanyRequest) GetName

func (x *DeleteCompanyRequest) GetName() string

func (*DeleteCompanyRequest) ProtoMessage

func (*DeleteCompanyRequest) ProtoMessage()

func (*DeleteCompanyRequest) ProtoReflect

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

func (*DeleteCompanyRequest) Reset

func (x *DeleteCompanyRequest) Reset()

func (*DeleteCompanyRequest) String

func (x *DeleteCompanyRequest) String() string

func (*DeleteCompanyRequest) Validate

func (m *DeleteCompanyRequest) Validate() error

Validate checks the field values on DeleteCompanyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteCompanyRequest) ValidateAll

func (m *DeleteCompanyRequest) ValidateAll() error

ValidateAll checks the field values on DeleteCompanyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteCompanyRequestMultiError, or nil if none found.

type DeleteCompanyRequestMultiError

type DeleteCompanyRequestMultiError []error

DeleteCompanyRequestMultiError is an error wrapping multiple validation errors returned by DeleteCompanyRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteCompanyRequestMultiError) AllErrors

func (m DeleteCompanyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteCompanyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteCompanyRequestValidationError

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

DeleteCompanyRequestValidationError is the validation error returned by DeleteCompanyRequest.Validate if the designated constraints aren't met.

func (DeleteCompanyRequestValidationError) Cause

Cause function returns cause value.

func (DeleteCompanyRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteCompanyRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteCompanyRequestValidationError) Field

Field function returns field value.

func (DeleteCompanyRequestValidationError) Key

Key function returns key value.

func (DeleteCompanyRequestValidationError) Reason

Reason function returns reason value.

type GetCatalogRequest

type GetCatalogRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCatalogRequest) Descriptor deprecated

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

Deprecated: Use GetCatalogRequest.ProtoReflect.Descriptor instead.

func (*GetCatalogRequest) GetName

func (x *GetCatalogRequest) GetName() string

func (*GetCatalogRequest) ProtoMessage

func (*GetCatalogRequest) ProtoMessage()

func (*GetCatalogRequest) ProtoReflect

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

func (*GetCatalogRequest) Reset

func (x *GetCatalogRequest) Reset()

func (*GetCatalogRequest) String

func (x *GetCatalogRequest) String() string

func (*GetCatalogRequest) Validate

func (m *GetCatalogRequest) Validate() error

Validate checks the field values on GetCatalogRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetCatalogRequest) ValidateAll

func (m *GetCatalogRequest) ValidateAll() error

ValidateAll checks the field values on GetCatalogRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCatalogRequestMultiError, or nil if none found.

type GetCatalogRequestMultiError

type GetCatalogRequestMultiError []error

GetCatalogRequestMultiError is an error wrapping multiple validation errors returned by GetCatalogRequest.ValidateAll() if the designated constraints aren't met.

func (GetCatalogRequestMultiError) AllErrors

func (m GetCatalogRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetCatalogRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetCatalogRequestValidationError

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

GetCatalogRequestValidationError is the validation error returned by GetCatalogRequest.Validate if the designated constraints aren't met.

func (GetCatalogRequestValidationError) Cause

Cause function returns cause value.

func (GetCatalogRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCatalogRequestValidationError) ErrorName

ErrorName returns error name.

func (GetCatalogRequestValidationError) Field

Field function returns field value.

func (GetCatalogRequestValidationError) Key

Key function returns key value.

func (GetCatalogRequestValidationError) Reason

Reason function returns reason value.

type GetCompanyRequest

type GetCompanyRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCompanyRequest) Descriptor deprecated

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

Deprecated: Use GetCompanyRequest.ProtoReflect.Descriptor instead.

func (*GetCompanyRequest) GetName

func (x *GetCompanyRequest) GetName() string

func (*GetCompanyRequest) ProtoMessage

func (*GetCompanyRequest) ProtoMessage()

func (*GetCompanyRequest) ProtoReflect

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

func (*GetCompanyRequest) Reset

func (x *GetCompanyRequest) Reset()

func (*GetCompanyRequest) String

func (x *GetCompanyRequest) String() string

func (*GetCompanyRequest) Validate

func (m *GetCompanyRequest) Validate() error

Validate checks the field values on GetCompanyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetCompanyRequest) ValidateAll

func (m *GetCompanyRequest) ValidateAll() error

ValidateAll checks the field values on GetCompanyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCompanyRequestMultiError, or nil if none found.

type GetCompanyRequestMultiError

type GetCompanyRequestMultiError []error

GetCompanyRequestMultiError is an error wrapping multiple validation errors returned by GetCompanyRequest.ValidateAll() if the designated constraints aren't met.

func (GetCompanyRequestMultiError) AllErrors

func (m GetCompanyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetCompanyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetCompanyRequestValidationError

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

GetCompanyRequestValidationError is the validation error returned by GetCompanyRequest.Validate if the designated constraints aren't met.

func (GetCompanyRequestValidationError) Cause

Cause function returns cause value.

func (GetCompanyRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCompanyRequestValidationError) ErrorName

ErrorName returns error name.

func (GetCompanyRequestValidationError) Field

Field function returns field value.

func (GetCompanyRequestValidationError) Key

Key function returns key value.

func (GetCompanyRequestValidationError) Reason

Reason function returns reason value.

type ListCatalogsRequest

type ListCatalogsRequest struct {
	Parent    string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	PageSize  int32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	Filter    string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	OrderBy   string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCatalogsRequest) Descriptor deprecated

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

Deprecated: Use ListCatalogsRequest.ProtoReflect.Descriptor instead.

func (*ListCatalogsRequest) GetFilter

func (x *ListCatalogsRequest) GetFilter() string

func (*ListCatalogsRequest) GetOrderBy

func (x *ListCatalogsRequest) GetOrderBy() string

func (*ListCatalogsRequest) GetPageSize

func (x *ListCatalogsRequest) GetPageSize() int32

func (*ListCatalogsRequest) GetPageToken

func (x *ListCatalogsRequest) GetPageToken() string

func (*ListCatalogsRequest) GetParent

func (x *ListCatalogsRequest) GetParent() string

func (*ListCatalogsRequest) ProtoMessage

func (*ListCatalogsRequest) ProtoMessage()

func (*ListCatalogsRequest) ProtoReflect

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

func (*ListCatalogsRequest) Reset

func (x *ListCatalogsRequest) Reset()

func (*ListCatalogsRequest) String

func (x *ListCatalogsRequest) String() string

func (*ListCatalogsRequest) Validate

func (m *ListCatalogsRequest) Validate() error

Validate checks the field values on ListCatalogsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListCatalogsRequest) ValidateAll

func (m *ListCatalogsRequest) ValidateAll() error

ValidateAll checks the field values on ListCatalogsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListCatalogsRequestMultiError, or nil if none found.

type ListCatalogsRequestMultiError

type ListCatalogsRequestMultiError []error

ListCatalogsRequestMultiError is an error wrapping multiple validation errors returned by ListCatalogsRequest.ValidateAll() if the designated constraints aren't met.

func (ListCatalogsRequestMultiError) AllErrors

func (m ListCatalogsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListCatalogsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListCatalogsRequestValidationError

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

ListCatalogsRequestValidationError is the validation error returned by ListCatalogsRequest.Validate if the designated constraints aren't met.

func (ListCatalogsRequestValidationError) Cause

Cause function returns cause value.

func (ListCatalogsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListCatalogsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListCatalogsRequestValidationError) Field

Field function returns field value.

func (ListCatalogsRequestValidationError) Key

Key function returns key value.

func (ListCatalogsRequestValidationError) Reason

Reason function returns reason value.

type ListCatalogsResponse

type ListCatalogsResponse struct {
	Catalogs      []*Catalog `protobuf:"bytes,1,rep,name=catalogs,proto3" json:"catalogs,omitempty"`
	NextPageToken string     `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCatalogsResponse) Descriptor deprecated

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

Deprecated: Use ListCatalogsResponse.ProtoReflect.Descriptor instead.

func (*ListCatalogsResponse) GetCatalogs

func (x *ListCatalogsResponse) GetCatalogs() []*Catalog

func (*ListCatalogsResponse) GetNextPageToken

func (x *ListCatalogsResponse) GetNextPageToken() string

func (*ListCatalogsResponse) ProtoMessage

func (*ListCatalogsResponse) ProtoMessage()

func (*ListCatalogsResponse) ProtoReflect

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

func (*ListCatalogsResponse) Reset

func (x *ListCatalogsResponse) Reset()

func (*ListCatalogsResponse) String

func (x *ListCatalogsResponse) String() string

func (*ListCatalogsResponse) Validate

func (m *ListCatalogsResponse) Validate() error

Validate checks the field values on ListCatalogsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListCatalogsResponse) ValidateAll

func (m *ListCatalogsResponse) ValidateAll() error

ValidateAll checks the field values on ListCatalogsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListCatalogsResponseMultiError, or nil if none found.

type ListCatalogsResponseMultiError

type ListCatalogsResponseMultiError []error

ListCatalogsResponseMultiError is an error wrapping multiple validation errors returned by ListCatalogsResponse.ValidateAll() if the designated constraints aren't met.

func (ListCatalogsResponseMultiError) AllErrors

func (m ListCatalogsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListCatalogsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListCatalogsResponseValidationError

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

ListCatalogsResponseValidationError is the validation error returned by ListCatalogsResponse.Validate if the designated constraints aren't met.

func (ListCatalogsResponseValidationError) Cause

Cause function returns cause value.

func (ListCatalogsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListCatalogsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListCatalogsResponseValidationError) Field

Field function returns field value.

func (ListCatalogsResponseValidationError) Key

Key function returns key value.

func (ListCatalogsResponseValidationError) Reason

Reason function returns reason value.

type ListCompaniesRequest

type ListCompaniesRequest struct {
	PageSize  int32  `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	Filter    string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	OrderBy   string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCompaniesRequest) Descriptor deprecated

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

Deprecated: Use ListCompaniesRequest.ProtoReflect.Descriptor instead.

func (*ListCompaniesRequest) GetFilter

func (x *ListCompaniesRequest) GetFilter() string

func (*ListCompaniesRequest) GetOrderBy

func (x *ListCompaniesRequest) GetOrderBy() string

func (*ListCompaniesRequest) GetPageSize

func (x *ListCompaniesRequest) GetPageSize() int32

func (*ListCompaniesRequest) GetPageToken

func (x *ListCompaniesRequest) GetPageToken() string

func (*ListCompaniesRequest) ProtoMessage

func (*ListCompaniesRequest) ProtoMessage()

func (*ListCompaniesRequest) ProtoReflect

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

func (*ListCompaniesRequest) Reset

func (x *ListCompaniesRequest) Reset()

func (*ListCompaniesRequest) String

func (x *ListCompaniesRequest) String() string

func (*ListCompaniesRequest) Validate

func (m *ListCompaniesRequest) Validate() error

Validate checks the field values on ListCompaniesRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListCompaniesRequest) ValidateAll

func (m *ListCompaniesRequest) ValidateAll() error

ValidateAll checks the field values on ListCompaniesRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListCompaniesRequestMultiError, or nil if none found.

type ListCompaniesRequestMultiError

type ListCompaniesRequestMultiError []error

ListCompaniesRequestMultiError is an error wrapping multiple validation errors returned by ListCompaniesRequest.ValidateAll() if the designated constraints aren't met.

func (ListCompaniesRequestMultiError) AllErrors

func (m ListCompaniesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListCompaniesRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListCompaniesRequestValidationError

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

ListCompaniesRequestValidationError is the validation error returned by ListCompaniesRequest.Validate if the designated constraints aren't met.

func (ListCompaniesRequestValidationError) Cause

Cause function returns cause value.

func (ListCompaniesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListCompaniesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListCompaniesRequestValidationError) Field

Field function returns field value.

func (ListCompaniesRequestValidationError) Key

Key function returns key value.

func (ListCompaniesRequestValidationError) Reason

Reason function returns reason value.

type ListCompaniesResponse

type ListCompaniesResponse struct {
	Companies     []*Company `protobuf:"bytes,1,rep,name=companies,proto3" json:"companies,omitempty"`
	NextPageToken string     `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCompaniesResponse) Descriptor deprecated

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

Deprecated: Use ListCompaniesResponse.ProtoReflect.Descriptor instead.

func (*ListCompaniesResponse) GetCompanies

func (x *ListCompaniesResponse) GetCompanies() []*Company

func (*ListCompaniesResponse) GetNextPageToken

func (x *ListCompaniesResponse) GetNextPageToken() string

func (*ListCompaniesResponse) ProtoMessage

func (*ListCompaniesResponse) ProtoMessage()

func (*ListCompaniesResponse) ProtoReflect

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

func (*ListCompaniesResponse) Reset

func (x *ListCompaniesResponse) Reset()

func (*ListCompaniesResponse) String

func (x *ListCompaniesResponse) String() string

func (*ListCompaniesResponse) Validate

func (m *ListCompaniesResponse) Validate() error

Validate checks the field values on ListCompaniesResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListCompaniesResponse) ValidateAll

func (m *ListCompaniesResponse) ValidateAll() error

ValidateAll checks the field values on ListCompaniesResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListCompaniesResponseMultiError, or nil if none found.

type ListCompaniesResponseMultiError

type ListCompaniesResponseMultiError []error

ListCompaniesResponseMultiError is an error wrapping multiple validation errors returned by ListCompaniesResponse.ValidateAll() if the designated constraints aren't met.

func (ListCompaniesResponseMultiError) AllErrors

func (m ListCompaniesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListCompaniesResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListCompaniesResponseValidationError

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

ListCompaniesResponseValidationError is the validation error returned by ListCompaniesResponse.Validate if the designated constraints aren't met.

func (ListCompaniesResponseValidationError) Cause

Cause function returns cause value.

func (ListCompaniesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListCompaniesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListCompaniesResponseValidationError) Field

Field function returns field value.

func (ListCompaniesResponseValidationError) Key

Key function returns key value.

func (ListCompaniesResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedCatalogServiceServer

type UnimplementedCatalogServiceServer struct {
}

UnimplementedCatalogServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCatalogServiceServer) CreateCatalog

func (UnimplementedCatalogServiceServer) CreateCompany

func (UnimplementedCatalogServiceServer) CreateCompany(context.Context, *CreateCompanyRequest) (*Company, error)

func (UnimplementedCatalogServiceServer) DeleteCatalog

func (UnimplementedCatalogServiceServer) DeleteCompany

func (UnimplementedCatalogServiceServer) GetCatalog

func (UnimplementedCatalogServiceServer) GetCompany

func (UnimplementedCatalogServiceServer) GetCompany(context.Context, *GetCompanyRequest) (*Company, error)

func (UnimplementedCatalogServiceServer) ListCatalogs

func (UnimplementedCatalogServiceServer) ListCompanies

func (UnimplementedCatalogServiceServer) ListCompanies(context.Context, *ListCompaniesRequest) (*ListCompaniesResponse, error)

func (UnimplementedCatalogServiceServer) UpdateCatalog

func (UnimplementedCatalogServiceServer) UpdateCompany

func (UnimplementedCatalogServiceServer) UpdateCompany(context.Context, *UpdateCompanyRequest) (*Company, error)

type UnsafeCatalogServiceServer

type UnsafeCatalogServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCatalogServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CatalogServiceServer will result in compilation errors.

type UpdateCatalogRequest

type UpdateCatalogRequest struct {
	Catalog    *Catalog               `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCatalogRequest) Descriptor deprecated

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

Deprecated: Use UpdateCatalogRequest.ProtoReflect.Descriptor instead.

func (*UpdateCatalogRequest) GetCatalog

func (x *UpdateCatalogRequest) GetCatalog() *Catalog

func (*UpdateCatalogRequest) GetUpdateMask

func (x *UpdateCatalogRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateCatalogRequest) ProtoMessage

func (*UpdateCatalogRequest) ProtoMessage()

func (*UpdateCatalogRequest) ProtoReflect

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

func (*UpdateCatalogRequest) Reset

func (x *UpdateCatalogRequest) Reset()

func (*UpdateCatalogRequest) String

func (x *UpdateCatalogRequest) String() string

func (*UpdateCatalogRequest) Validate

func (m *UpdateCatalogRequest) Validate() error

Validate checks the field values on UpdateCatalogRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateCatalogRequest) ValidateAll

func (m *UpdateCatalogRequest) ValidateAll() error

ValidateAll checks the field values on UpdateCatalogRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateCatalogRequestMultiError, or nil if none found.

type UpdateCatalogRequestMultiError

type UpdateCatalogRequestMultiError []error

UpdateCatalogRequestMultiError is an error wrapping multiple validation errors returned by UpdateCatalogRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateCatalogRequestMultiError) AllErrors

func (m UpdateCatalogRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateCatalogRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateCatalogRequestValidationError

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

UpdateCatalogRequestValidationError is the validation error returned by UpdateCatalogRequest.Validate if the designated constraints aren't met.

func (UpdateCatalogRequestValidationError) Cause

Cause function returns cause value.

func (UpdateCatalogRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateCatalogRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateCatalogRequestValidationError) Field

Field function returns field value.

func (UpdateCatalogRequestValidationError) Key

Key function returns key value.

func (UpdateCatalogRequestValidationError) Reason

Reason function returns reason value.

type UpdateCompanyRequest

type UpdateCompanyRequest struct {
	Company    *Company               `protobuf:"bytes,1,opt,name=company,proto3" json:"company,omitempty"`
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCompanyRequest) Descriptor deprecated

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

Deprecated: Use UpdateCompanyRequest.ProtoReflect.Descriptor instead.

func (*UpdateCompanyRequest) GetCompany

func (x *UpdateCompanyRequest) GetCompany() *Company

func (*UpdateCompanyRequest) GetUpdateMask

func (x *UpdateCompanyRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateCompanyRequest) ProtoMessage

func (*UpdateCompanyRequest) ProtoMessage()

func (*UpdateCompanyRequest) ProtoReflect

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

func (*UpdateCompanyRequest) Reset

func (x *UpdateCompanyRequest) Reset()

func (*UpdateCompanyRequest) String

func (x *UpdateCompanyRequest) String() string

func (*UpdateCompanyRequest) Validate

func (m *UpdateCompanyRequest) Validate() error

Validate checks the field values on UpdateCompanyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateCompanyRequest) ValidateAll

func (m *UpdateCompanyRequest) ValidateAll() error

ValidateAll checks the field values on UpdateCompanyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateCompanyRequestMultiError, or nil if none found.

type UpdateCompanyRequestMultiError

type UpdateCompanyRequestMultiError []error

UpdateCompanyRequestMultiError is an error wrapping multiple validation errors returned by UpdateCompanyRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateCompanyRequestMultiError) AllErrors

func (m UpdateCompanyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateCompanyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateCompanyRequestValidationError

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

UpdateCompanyRequestValidationError is the validation error returned by UpdateCompanyRequest.Validate if the designated constraints aren't met.

func (UpdateCompanyRequestValidationError) Cause

Cause function returns cause value.

func (UpdateCompanyRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateCompanyRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateCompanyRequestValidationError) Field

Field function returns field value.

func (UpdateCompanyRequestValidationError) Key

Key function returns key value.

func (UpdateCompanyRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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