Class ProviderProfile
- Namespace
- Openshell.V1
- Assembly
- OpenShell.Sdk.dll
Provider type profile metadata exposed to clients.
public sealed class ProviderProfile : IMessage<ProviderProfile>, IEquatable<ProviderProfile>, IDeepCloneable<ProviderProfile>, IBufferMessage, IMessage
- Inheritance
-
ProviderProfile
- Implements
-
IMessage<ProviderProfile>IDeepCloneable<ProviderProfile>IBufferMessageIMessage
- Inherited Members
Constructors
ProviderProfile()
public ProviderProfile()
ProviderProfile(ProviderProfile)
public ProviderProfile(ProviderProfile other)
Parameters
otherProviderProfile
Fields
AnnotationsFieldNumber
Field number for the "annotations" field.
public const int AnnotationsFieldNumber = 11
Field Value
BinariesFieldNumber
Field number for the "binaries" field.
public const int BinariesFieldNumber = 7
Field Value
CategoryFieldNumber
Field number for the "category" field.
public const int CategoryFieldNumber = 4
Field Value
CredentialsFieldNumber
Field number for the "credentials" field.
public const int CredentialsFieldNumber = 5
Field Value
DescriptionFieldNumber
Field number for the "description" field.
public const int DescriptionFieldNumber = 3
Field Value
DiscoveryFieldNumber
Field number for the "discovery" field.
public const int DiscoveryFieldNumber = 9
Field Value
DisplayNameFieldNumber
Field number for the "display_name" field.
public const int DisplayNameFieldNumber = 2
Field Value
EndpointsFieldNumber
Field number for the "endpoints" field.
public const int EndpointsFieldNumber = 6
Field Value
FilesFieldNumber
Field number for the "files" field.
public const int FilesFieldNumber = 14
Field Value
IdFieldNumber
Field number for the "id" field.
public const int IdFieldNumber = 1
Field Value
InferenceCapableFieldNumber
Field number for the "inference_capable" field.
public const int InferenceCapableFieldNumber = 8
Field Value
ResourceVersionFieldNumber
Field number for the "resource_version" field.
public const int ResourceVersionFieldNumber = 10
Field Value
ScopeFieldNumber
Field number for the "scope" field.
public const int ScopeFieldNumber = 13
Field Value
SourceFieldNumber
Field number for the "source" field.
public const int SourceFieldNumber = 12
Field Value
Properties
Annotations
Optional non-secret annotations attached by profile sources or importers.
public MapField<string, string> Annotations { get; }
Property Value
Binaries
public RepeatedField<NetworkBinary> Binaries { get; }
Property Value
- RepeatedField<NetworkBinary>
Category
public ProviderProfileCategory Category { get; set; }
Property Value
Credentials
public RepeatedField<ProviderProfileCredential> Credentials { get; }
Property Value
- RepeatedField<ProviderProfileCredential>
Description
public string Description { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Discovery
public ProviderProfileDiscovery Discovery { get; set; }
Property Value
DisplayName
public string DisplayName { get; set; }
Property Value
Endpoints
public RepeatedField<NetworkEndpoint> Endpoints { get; }
Property Value
- RepeatedField<NetworkEndpoint>
Files
EXPERIMENTAL: Non-secret files rendered from provider configuration for the workload. This API and its behavior may change or be removed.
public RepeatedField<ProviderProfileFile> Files { get; }
Property Value
- RepeatedField<ProviderProfileFile>
Id
public string Id { get; set; }
Property Value
InferenceCapable
public bool InferenceCapable { get; set; }
Property Value
Parser
public static MessageParser<ProviderProfile> Parser { get; }
Property Value
- MessageParser<ProviderProfile>
ResourceVersion
Storage resource version for custom profiles. Built-in profiles and new profile files use 0. Gateway responses set this for stored custom profiles. Update calls use this for optimistic concurrency.
public ulong ResourceVersion { get; set; }
Property Value
Scope
Server-set visibility: "platform", "workspace", or empty for non-scoped sources. Ignored on import/update payloads.
public string Scope { get; set; }
Property Value
Source
Server-set provenance: "builtin", "user", or "interceptor/{name}". Ignored on import/update payloads.
public string Source { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public ProviderProfile Clone()
Returns
- ProviderProfile
A deep clone of this object.
Equals(ProviderProfile)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ProviderProfile other)
Parameters
otherProviderProfileAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(ProviderProfile)
Merges the given message into this one.
public void MergeFrom(ProviderProfile other)
Parameters
otherProviderProfile
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.