ocrpcs_go_proto

package
v0.0.0-...-56ce121 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ocrpcs_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type OCProtocol

type OCProtocol struct {

	// Full name of the gRPC method specification.
	// Format: <package>.<service>.<rpc>
	// Example: gnoi.healthz.Healthz.Get
	// Example: gnmi.gNMI.Subscribe
	MethodName []string `protobuf:"bytes,1,rep,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
	// The semantic version of the gRPC protocol release.
	//
	// This must refer to a release tag when "v" is prepended to the string.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

OCProtocol is the list of OpenConfig RPC methods supported or required that belong to the same OpenConfig RPC protocol (e.g. gNOI, gNMI, gRIBI, gNSI).

func (*OCProtocol) Descriptor deprecated

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

Deprecated: Use OCProtocol.ProtoReflect.Descriptor instead.

func (*OCProtocol) GetMethodName

func (x *OCProtocol) GetMethodName() []string

func (*OCProtocol) GetVersion

func (x *OCProtocol) GetVersion() string

func (*OCProtocol) ProtoMessage

func (*OCProtocol) ProtoMessage()

func (*OCProtocol) ProtoReflect

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

func (*OCProtocol) Reset

func (x *OCProtocol) Reset()

func (*OCProtocol) String

func (x *OCProtocol) String() string

type OCRPCs

type OCRPCs struct {

	// Required OpenConfig RPC service support for this entity.
	//
	// The key of this map is the full name of the gRPC protocol in lower caps.
	// Examples: gnoi, gnmi, gnsi, gribi.
	OcProtocols map[string]*OCProtocol `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

OCRPCs is the complete list of all OpenConfig RPCs associated with some entity (e.g. NOS, or RPC requirements list for a particular device role).

func (*OCRPCs) Descriptor deprecated

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

Deprecated: Use OCRPCs.ProtoReflect.Descriptor instead.

func (*OCRPCs) GetOcProtocols

func (x *OCRPCs) GetOcProtocols() map[string]*OCProtocol

func (*OCRPCs) ProtoMessage

func (*OCRPCs) ProtoMessage()

func (*OCRPCs) ProtoReflect

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

func (*OCRPCs) Reset

func (x *OCRPCs) Reset()

func (*OCRPCs) String

func (x *OCRPCs) String() string

Jump to

Keyboard shortcuts

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