Documentation ¶
Index ¶
- Variables
- func RegisterComponentStatusServiceServer(s grpc.ServiceRegistrar, srv ComponentStatusServiceServer)
- type ComponentState
- func (*ComponentState) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentState) GetComponent() string
- func (x *ComponentState) GetState() ComponentStateType
- func (x *ComponentState) GetStateTime() *timestamppb.Timestamp
- func (*ComponentState) ProtoMessage()
- func (x *ComponentState) ProtoReflect() protoreflect.Message
- func (x *ComponentState) Reset()
- func (x *ComponentState) String() string
- type ComponentStateType
- func (ComponentStateType) Descriptor() protoreflect.EnumDescriptor
- func (x ComponentStateType) Enum() *ComponentStateType
- func (ComponentStateType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComponentStateType) Number() protoreflect.EnumNumber
- func (x ComponentStateType) String() string
- func (ComponentStateType) Type() protoreflect.EnumType
- type ComponentStatusServiceClient
- type ComponentStatusServiceServer
- type UnimplementedComponentStatusServiceServer
- type UnsafeComponentStatusServiceServer
- type UpdateComponentStatusRequest
- func (*UpdateComponentStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateComponentStatusRequest) GetBillingId() string
- func (x *UpdateComponentStatusRequest) GetComponentState() *ComponentState
- func (*UpdateComponentStatusRequest) ProtoMessage()
- func (x *UpdateComponentStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateComponentStatusRequest) Reset()
- func (x *UpdateComponentStatusRequest) String() string
- type UpdateComponentStatusResponse
- func (*UpdateComponentStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateComponentStatusResponse) GetBillingId() string
- func (x *UpdateComponentStatusResponse) GetComponentState() *ComponentState
- func (*UpdateComponentStatusResponse) ProtoMessage()
- func (x *UpdateComponentStatusResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateComponentStatusResponse) Reset()
- func (x *UpdateComponentStatusResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ComponentStateType_name = map[int32]string{ 0: "COMPONENT_STATE_TYPE_UNSPECIFIED", 1: "PENDING", 2: "STARTED", 3: "ERROR_STARTING", 4: "RUNNING", 5: "FINISHED", 6: "ERROR", } ComponentStateType_value = map[string]int32{ "COMPONENT_STATE_TYPE_UNSPECIFIED": 0, "PENDING": 1, "STARTED": 2, "ERROR_STARTING": 3, "RUNNING": 4, "FINISHED": 5, "ERROR": 6, } )
Enum value maps for ComponentStateType.
var ComponentStatusService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "strmprivacy.api.installations.v1.ComponentStatusService", HandlerType: (*ComponentStatusServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateComponentStatus", Handler: _ComponentStatusService_UpdateComponentStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "strmprivacy/api/installations/v1/installations_v1.proto", }
ComponentStatusService_ServiceDesc is the grpc.ServiceDesc for ComponentStatusService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_strmprivacy_api_installations_v1_installations_v1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterComponentStatusServiceServer ¶
func RegisterComponentStatusServiceServer(s grpc.ServiceRegistrar, srv ComponentStatusServiceServer)
Types ¶
type ComponentState ¶
type ComponentState struct { StateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` Component string `protobuf:"bytes,2,opt,name=component,proto3" json:"component,omitempty"` State ComponentStateType `protobuf:"varint,3,opt,name=state,proto3,enum=strmprivacy.api.installations.v1.ComponentStateType" json:"state,omitempty"` // contains filtered or unexported fields }
func (*ComponentState) Descriptor
deprecated
func (*ComponentState) Descriptor() ([]byte, []int)
Deprecated: Use ComponentState.ProtoReflect.Descriptor instead.
func (*ComponentState) GetComponent ¶
func (x *ComponentState) GetComponent() string
func (*ComponentState) GetState ¶
func (x *ComponentState) GetState() ComponentStateType
func (*ComponentState) GetStateTime ¶
func (x *ComponentState) GetStateTime() *timestamppb.Timestamp
func (*ComponentState) ProtoMessage ¶
func (*ComponentState) ProtoMessage()
func (*ComponentState) ProtoReflect ¶
func (x *ComponentState) ProtoReflect() protoreflect.Message
func (*ComponentState) Reset ¶
func (x *ComponentState) Reset()
func (*ComponentState) String ¶
func (x *ComponentState) String() string
type ComponentStateType ¶
type ComponentStateType int32
const ( ComponentStateType_COMPONENT_STATE_TYPE_UNSPECIFIED ComponentStateType = 0 ComponentStateType_PENDING ComponentStateType = 1 ComponentStateType_STARTED ComponentStateType = 2 ComponentStateType_ERROR_STARTING ComponentStateType = 3 ComponentStateType_RUNNING ComponentStateType = 4 ComponentStateType_FINISHED ComponentStateType = 5 ComponentStateType_ERROR ComponentStateType = 6 )
func (ComponentStateType) Descriptor ¶
func (ComponentStateType) Descriptor() protoreflect.EnumDescriptor
func (ComponentStateType) Enum ¶
func (x ComponentStateType) Enum() *ComponentStateType
func (ComponentStateType) EnumDescriptor
deprecated
func (ComponentStateType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ComponentStateType.Descriptor instead.
func (ComponentStateType) Number ¶
func (x ComponentStateType) Number() protoreflect.EnumNumber
func (ComponentStateType) String ¶
func (x ComponentStateType) String() string
func (ComponentStateType) Type ¶
func (ComponentStateType) Type() protoreflect.EnumType
type ComponentStatusServiceClient ¶
type ComponentStatusServiceClient interface {
UpdateComponentStatus(ctx context.Context, in *UpdateComponentStatusRequest, opts ...grpc.CallOption) (*UpdateComponentStatusResponse, error)
}
ComponentStatusServiceClient is the client API for ComponentStatusService 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 NewComponentStatusServiceClient ¶
func NewComponentStatusServiceClient(cc grpc.ClientConnInterface) ComponentStatusServiceClient
type ComponentStatusServiceServer ¶
type ComponentStatusServiceServer interface { UpdateComponentStatus(context.Context, *UpdateComponentStatusRequest) (*UpdateComponentStatusResponse, error) // contains filtered or unexported methods }
ComponentStatusServiceServer is the server API for ComponentStatusService service. All implementations must embed UnimplementedComponentStatusServiceServer for forward compatibility
type UnimplementedComponentStatusServiceServer ¶
type UnimplementedComponentStatusServiceServer struct { }
UnimplementedComponentStatusServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedComponentStatusServiceServer) UpdateComponentStatus ¶
func (UnimplementedComponentStatusServiceServer) UpdateComponentStatus(context.Context, *UpdateComponentStatusRequest) (*UpdateComponentStatusResponse, error)
type UnsafeComponentStatusServiceServer ¶
type UnsafeComponentStatusServiceServer interface {
// contains filtered or unexported methods
}
UnsafeComponentStatusServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ComponentStatusServiceServer will result in compilation errors.
type UpdateComponentStatusRequest ¶
type UpdateComponentStatusRequest struct { BillingId string `protobuf:"bytes,1,opt,name=billing_id,json=billingId,proto3" json:"billing_id,omitempty"` ComponentState *ComponentState `protobuf:"bytes,2,opt,name=component_state,json=componentState,proto3" json:"component_state,omitempty"` // contains filtered or unexported fields }
(-- api-linter: core::0134::request-mask-required=disabled
aip.dev/not-precedent: This RPC only updates one field. --)
func (*UpdateComponentStatusRequest) Descriptor
deprecated
func (*UpdateComponentStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateComponentStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateComponentStatusRequest) GetBillingId ¶
func (x *UpdateComponentStatusRequest) GetBillingId() string
func (*UpdateComponentStatusRequest) GetComponentState ¶
func (x *UpdateComponentStatusRequest) GetComponentState() *ComponentState
func (*UpdateComponentStatusRequest) ProtoMessage ¶
func (*UpdateComponentStatusRequest) ProtoMessage()
func (*UpdateComponentStatusRequest) ProtoReflect ¶
func (x *UpdateComponentStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateComponentStatusRequest) Reset ¶
func (x *UpdateComponentStatusRequest) Reset()
func (*UpdateComponentStatusRequest) String ¶
func (x *UpdateComponentStatusRequest) String() string
type UpdateComponentStatusResponse ¶
type UpdateComponentStatusResponse struct { BillingId string `protobuf:"bytes,1,opt,name=billing_id,json=billingId,proto3" json:"billing_id,omitempty"` ComponentState *ComponentState `protobuf:"bytes,2,opt,name=component_state,json=componentState,proto3" json:"component_state,omitempty"` // contains filtered or unexported fields }
func (*UpdateComponentStatusResponse) Descriptor
deprecated
func (*UpdateComponentStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateComponentStatusResponse.ProtoReflect.Descriptor instead.
func (*UpdateComponentStatusResponse) GetBillingId ¶
func (x *UpdateComponentStatusResponse) GetBillingId() string
func (*UpdateComponentStatusResponse) GetComponentState ¶
func (x *UpdateComponentStatusResponse) GetComponentState() *ComponentState
func (*UpdateComponentStatusResponse) ProtoMessage ¶
func (*UpdateComponentStatusResponse) ProtoMessage()
func (*UpdateComponentStatusResponse) ProtoReflect ¶
func (x *UpdateComponentStatusResponse) ProtoReflect() protoreflect.Message
func (*UpdateComponentStatusResponse) Reset ¶
func (x *UpdateComponentStatusResponse) Reset()
func (*UpdateComponentStatusResponse) String ¶
func (x *UpdateComponentStatusResponse) String() string