contract_grpc_service

package
v0.0.0-...-e437075 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RenewalCycle_name = map[int32]string{
		0: "NONE",
		1: "MONTHLY_RENEWAL",
		2: "ANNUALLY_RENEWAL",
		3: "QUARTERLY_RENEWAL",
	}
	RenewalCycle_value = map[string]int32{
		"NONE":              0,
		"MONTHLY_RENEWAL":   1,
		"ANNUALLY_RENEWAL":  2,
		"QUARTERLY_RENEWAL": 3,
	}
)

Enum value maps for RenewalCycle.

View Source
var ContractGrpcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ContractGrpcService",
	HandlerType: (*ContractGrpcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateContract",
			Handler:    _ContractGrpcService_CreateContract_Handler,
		},
		{
			MethodName: "UpdateContract",
			Handler:    _ContractGrpcService_UpdateContract_Handler,
		},
		{
			MethodName: "RolloutRenewalOpportunityOnExpiration",
			Handler:    _ContractGrpcService_RolloutRenewalOpportunityOnExpiration_Handler,
		},
		{
			MethodName: "RefreshContractStatus",
			Handler:    _ContractGrpcService_RefreshContractStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "contract.proto",
}

ContractGrpcService_ServiceDesc is the grpc.ServiceDesc for ContractGrpcService 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_contract_proto protoreflect.FileDescriptor

Functions

func RegisterContractGrpcServiceServer

func RegisterContractGrpcServiceServer(s grpc.ServiceRegistrar, srv ContractGrpcServiceServer)

Types

type ContractGrpcServiceClient

type ContractGrpcServiceClient interface {
	CreateContract(ctx context.Context, in *CreateContractGrpcRequest, opts ...grpc.CallOption) (*ContractIdGrpcResponse, error)
	UpdateContract(ctx context.Context, in *UpdateContractGrpcRequest, opts ...grpc.CallOption) (*ContractIdGrpcResponse, error)
	RolloutRenewalOpportunityOnExpiration(ctx context.Context, in *RolloutRenewalOpportunityOnExpirationGrpcRequest, opts ...grpc.CallOption) (*ContractIdGrpcResponse, error)
	RefreshContractStatus(ctx context.Context, in *RefreshContractStatusGrpcRequest, opts ...grpc.CallOption) (*ContractIdGrpcResponse, error)
}

ContractGrpcServiceClient is the client API for ContractGrpcService 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.

type ContractGrpcServiceServer

ContractGrpcServiceServer is the server API for ContractGrpcService service. All implementations should embed UnimplementedContractGrpcServiceServer for forward compatibility

type ContractIdGrpcResponse

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

Contract response message

func (*ContractIdGrpcResponse) Descriptor deprecated

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

Deprecated: Use ContractIdGrpcResponse.ProtoReflect.Descriptor instead.

func (*ContractIdGrpcResponse) GetId

func (x *ContractIdGrpcResponse) GetId() string

func (*ContractIdGrpcResponse) ProtoMessage

func (*ContractIdGrpcResponse) ProtoMessage()

func (*ContractIdGrpcResponse) ProtoReflect

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

func (*ContractIdGrpcResponse) Reset

func (x *ContractIdGrpcResponse) Reset()

func (*ContractIdGrpcResponse) String

func (x *ContractIdGrpcResponse) String() string

type CreateContractGrpcRequest

type CreateContractGrpcRequest struct {
	Tenant               string                       `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	LoggedInUserId       string                       `protobuf:"bytes,2,opt,name=loggedInUserId,proto3" json:"loggedInUserId,omitempty"`
	OrganizationId       string                       `protobuf:"bytes,3,opt,name=organizationId,proto3" json:"organizationId,omitempty"`
	Name                 string                       `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	CreatedByUserId      string                       `protobuf:"bytes,5,opt,name=createdByUserId,proto3" json:"createdByUserId,omitempty"`
	CreatedAt            *timestamppb.Timestamp       `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt            *timestamppb.Timestamp       `protobuf:"bytes,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	ServiceStartedAt     *timestamppb.Timestamp       `protobuf:"bytes,8,opt,name=serviceStartedAt,proto3" json:"serviceStartedAt,omitempty"`
	SignedAt             *timestamppb.Timestamp       `protobuf:"bytes,9,opt,name=signedAt,proto3" json:"signedAt,omitempty"`
	RenewalCycle         RenewalCycle                 `protobuf:"varint,10,opt,name=renewalCycle,proto3,enum=RenewalCycle" json:"renewalCycle,omitempty"`
	SourceFields         *common.SourceFields         `protobuf:"bytes,12,opt,name=sourceFields,proto3" json:"sourceFields,omitempty"`
	ExternalSystemFields *common.ExternalSystemFields `protobuf:"bytes,13,opt,name=externalSystemFields,proto3" json:"externalSystemFields,omitempty"`
	ContractUrl          string                       `protobuf:"bytes,14,opt,name=contractUrl,proto3" json:"contractUrl,omitempty"`
	RenewalPeriods       *int64                       `protobuf:"varint,15,opt,name=renewalPeriods,proto3,oneof" json:"renewalPeriods,omitempty"` // applicable only for yearly renewal
	// contains filtered or unexported fields
}

CreateContract request message

func (*CreateContractGrpcRequest) Descriptor deprecated

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

Deprecated: Use CreateContractGrpcRequest.ProtoReflect.Descriptor instead.

func (*CreateContractGrpcRequest) GetContractUrl

func (x *CreateContractGrpcRequest) GetContractUrl() string

func (*CreateContractGrpcRequest) GetCreatedAt

func (x *CreateContractGrpcRequest) GetCreatedAt() *timestamppb.Timestamp

func (*CreateContractGrpcRequest) GetCreatedByUserId

func (x *CreateContractGrpcRequest) GetCreatedByUserId() string

func (*CreateContractGrpcRequest) GetExternalSystemFields

func (x *CreateContractGrpcRequest) GetExternalSystemFields() *common.ExternalSystemFields

func (*CreateContractGrpcRequest) GetLoggedInUserId

func (x *CreateContractGrpcRequest) GetLoggedInUserId() string

func (*CreateContractGrpcRequest) GetName

func (x *CreateContractGrpcRequest) GetName() string

func (*CreateContractGrpcRequest) GetOrganizationId

func (x *CreateContractGrpcRequest) GetOrganizationId() string

func (*CreateContractGrpcRequest) GetRenewalCycle

func (x *CreateContractGrpcRequest) GetRenewalCycle() RenewalCycle

func (*CreateContractGrpcRequest) GetRenewalPeriods

func (x *CreateContractGrpcRequest) GetRenewalPeriods() int64

func (*CreateContractGrpcRequest) GetServiceStartedAt

func (x *CreateContractGrpcRequest) GetServiceStartedAt() *timestamppb.Timestamp

func (*CreateContractGrpcRequest) GetSignedAt

func (*CreateContractGrpcRequest) GetSourceFields

func (x *CreateContractGrpcRequest) GetSourceFields() *common.SourceFields

func (*CreateContractGrpcRequest) GetTenant

func (x *CreateContractGrpcRequest) GetTenant() string

func (*CreateContractGrpcRequest) GetUpdatedAt

func (x *CreateContractGrpcRequest) GetUpdatedAt() *timestamppb.Timestamp

func (*CreateContractGrpcRequest) ProtoMessage

func (*CreateContractGrpcRequest) ProtoMessage()

func (*CreateContractGrpcRequest) ProtoReflect

func (*CreateContractGrpcRequest) Reset

func (x *CreateContractGrpcRequest) Reset()

func (*CreateContractGrpcRequest) String

func (x *CreateContractGrpcRequest) String() string

type RefreshContractStatusGrpcRequest

type RefreshContractStatusGrpcRequest struct {
	Id             string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Tenant         string `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"`
	LoggedInUserId string `protobuf:"bytes,3,opt,name=loggedInUserId,proto3" json:"loggedInUserId,omitempty"`
	AppSource      string `protobuf:"bytes,4,opt,name=appSource,proto3" json:"appSource,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshContractStatusGrpcRequest) Descriptor deprecated

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

Deprecated: Use RefreshContractStatusGrpcRequest.ProtoReflect.Descriptor instead.

func (*RefreshContractStatusGrpcRequest) GetAppSource

func (x *RefreshContractStatusGrpcRequest) GetAppSource() string

func (*RefreshContractStatusGrpcRequest) GetId

func (*RefreshContractStatusGrpcRequest) GetLoggedInUserId

func (x *RefreshContractStatusGrpcRequest) GetLoggedInUserId() string

func (*RefreshContractStatusGrpcRequest) GetTenant

func (*RefreshContractStatusGrpcRequest) ProtoMessage

func (*RefreshContractStatusGrpcRequest) ProtoMessage()

func (*RefreshContractStatusGrpcRequest) ProtoReflect

func (*RefreshContractStatusGrpcRequest) Reset

func (*RefreshContractStatusGrpcRequest) String

type RenewalCycle

type RenewalCycle int32

Enum for RenewalCycle

const (
	RenewalCycle_NONE              RenewalCycle = 0
	RenewalCycle_MONTHLY_RENEWAL   RenewalCycle = 1
	RenewalCycle_ANNUALLY_RENEWAL  RenewalCycle = 2
	RenewalCycle_QUARTERLY_RENEWAL RenewalCycle = 3
)

func (RenewalCycle) Descriptor

func (RenewalCycle) Enum

func (x RenewalCycle) Enum() *RenewalCycle

func (RenewalCycle) EnumDescriptor deprecated

func (RenewalCycle) EnumDescriptor() ([]byte, []int)

Deprecated: Use RenewalCycle.Descriptor instead.

func (RenewalCycle) Number

func (RenewalCycle) String

func (x RenewalCycle) String() string

func (RenewalCycle) Type

type RolloutRenewalOpportunityOnExpirationGrpcRequest

type RolloutRenewalOpportunityOnExpirationGrpcRequest struct {
	Id             string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Tenant         string `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"`
	LoggedInUserId string `protobuf:"bytes,3,opt,name=loggedInUserId,proto3" json:"loggedInUserId,omitempty"`
	AppSource      string `protobuf:"bytes,4,opt,name=appSource,proto3" json:"appSource,omitempty"`
	// contains filtered or unexported fields
}

func (*RolloutRenewalOpportunityOnExpirationGrpcRequest) Descriptor deprecated

Deprecated: Use RolloutRenewalOpportunityOnExpirationGrpcRequest.ProtoReflect.Descriptor instead.

func (*RolloutRenewalOpportunityOnExpirationGrpcRequest) GetAppSource

func (*RolloutRenewalOpportunityOnExpirationGrpcRequest) GetId

func (*RolloutRenewalOpportunityOnExpirationGrpcRequest) GetLoggedInUserId

func (*RolloutRenewalOpportunityOnExpirationGrpcRequest) GetTenant

func (*RolloutRenewalOpportunityOnExpirationGrpcRequest) ProtoMessage

func (*RolloutRenewalOpportunityOnExpirationGrpcRequest) ProtoReflect

func (*RolloutRenewalOpportunityOnExpirationGrpcRequest) Reset

func (*RolloutRenewalOpportunityOnExpirationGrpcRequest) String

type UnimplementedContractGrpcServiceServer

type UnimplementedContractGrpcServiceServer struct {
}

UnimplementedContractGrpcServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedContractGrpcServiceServer) CreateContract

func (UnimplementedContractGrpcServiceServer) RefreshContractStatus

func (UnimplementedContractGrpcServiceServer) UpdateContract

type UnsafeContractGrpcServiceServer

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

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

type UpdateContractGrpcRequest

type UpdateContractGrpcRequest struct {
	Id                   string                       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Tenant               string                       `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"`
	LoggedInUserId       string                       `protobuf:"bytes,3,opt,name=loggedInUserId,proto3" json:"loggedInUserId,omitempty"`
	Name                 string                       `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	UpdatedAt            *timestamppb.Timestamp       `protobuf:"bytes,5,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	ServiceStartedAt     *timestamppb.Timestamp       `protobuf:"bytes,6,opt,name=serviceStartedAt,proto3" json:"serviceStartedAt,omitempty"`
	SignedAt             *timestamppb.Timestamp       `protobuf:"bytes,7,opt,name=signedAt,proto3" json:"signedAt,omitempty"`
	EndedAt              *timestamppb.Timestamp       `protobuf:"bytes,8,opt,name=endedAt,proto3" json:"endedAt,omitempty"`
	RenewalCycle         RenewalCycle                 `protobuf:"varint,9,opt,name=renewalCycle,proto3,enum=RenewalCycle" json:"renewalCycle,omitempty"`
	SourceFields         *common.SourceFields         `protobuf:"bytes,10,opt,name=sourceFields,proto3" json:"sourceFields,omitempty"`
	ExternalSystemFields *common.ExternalSystemFields `protobuf:"bytes,11,opt,name=externalSystemFields,proto3" json:"externalSystemFields,omitempty"`
	ContractUrl          string                       `protobuf:"bytes,12,opt,name=contractUrl,proto3" json:"contractUrl,omitempty"`
	RenewalPeriods       *int64                       `protobuf:"varint,13,opt,name=renewalPeriods,proto3,oneof" json:"renewalPeriods,omitempty"` // applicable only for yearly renewal
	// contains filtered or unexported fields
}

func (*UpdateContractGrpcRequest) Descriptor deprecated

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

Deprecated: Use UpdateContractGrpcRequest.ProtoReflect.Descriptor instead.

func (*UpdateContractGrpcRequest) GetContractUrl

func (x *UpdateContractGrpcRequest) GetContractUrl() string

func (*UpdateContractGrpcRequest) GetEndedAt

func (*UpdateContractGrpcRequest) GetExternalSystemFields

func (x *UpdateContractGrpcRequest) GetExternalSystemFields() *common.ExternalSystemFields

func (*UpdateContractGrpcRequest) GetId

func (x *UpdateContractGrpcRequest) GetId() string

func (*UpdateContractGrpcRequest) GetLoggedInUserId

func (x *UpdateContractGrpcRequest) GetLoggedInUserId() string

func (*UpdateContractGrpcRequest) GetName

func (x *UpdateContractGrpcRequest) GetName() string

func (*UpdateContractGrpcRequest) GetRenewalCycle

func (x *UpdateContractGrpcRequest) GetRenewalCycle() RenewalCycle

func (*UpdateContractGrpcRequest) GetRenewalPeriods

func (x *UpdateContractGrpcRequest) GetRenewalPeriods() int64

func (*UpdateContractGrpcRequest) GetServiceStartedAt

func (x *UpdateContractGrpcRequest) GetServiceStartedAt() *timestamppb.Timestamp

func (*UpdateContractGrpcRequest) GetSignedAt

func (*UpdateContractGrpcRequest) GetSourceFields

func (x *UpdateContractGrpcRequest) GetSourceFields() *common.SourceFields

func (*UpdateContractGrpcRequest) GetTenant

func (x *UpdateContractGrpcRequest) GetTenant() string

func (*UpdateContractGrpcRequest) GetUpdatedAt

func (x *UpdateContractGrpcRequest) GetUpdatedAt() *timestamppb.Timestamp

func (*UpdateContractGrpcRequest) ProtoMessage

func (*UpdateContractGrpcRequest) ProtoMessage()

func (*UpdateContractGrpcRequest) ProtoReflect

func (*UpdateContractGrpcRequest) Reset

func (x *UpdateContractGrpcRequest) Reset()

func (*UpdateContractGrpcRequest) String

func (x *UpdateContractGrpcRequest) String() string

Jump to

Keyboard shortcuts

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