Class HelloRequest
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.AspNetCore.Grpc.Contracts.Discovery
Assembly: Cephalon.AspNetCore.Grpc.dll
Describes the caller that is requesting a greeting.
public sealed class HelloRequest : IMessage<HelloRequest>, IEquatable<HelloRequest>, IDeepCloneable<HelloRequest>, IBufferMessage, IMessageInheritance
Section titled “Inheritance”Implements
Section titled “Implements”IMessage<HelloRequest>, IEquatable<HelloRequest>, IDeepCloneable<HelloRequest>, IBufferMessage, IMessage
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”HelloRequest()
Section titled “ HelloRequest()”public HelloRequest()HelloRequest(HelloRequest)
Section titled “ HelloRequest(HelloRequest)”public HelloRequest(HelloRequest other)Parameters
Section titled “Parameters”other HelloRequest
Fields
Section titled “Fields”NameFieldNumber
Section titled “ NameFieldNumber”Field number for the “name” field.
public const int NameFieldNumber = 1Field Value
Section titled “Field Value”Properties
Section titled “Properties”Descriptor
Section titled “ Descriptor”public static MessageDescriptor Descriptor { get; }Property Value
Section titled “Property Value”MessageDescriptor
The display name to greet.
public string Name { get; set; }Property Value
Section titled “Property Value”Parser
Section titled “ Parser”public static MessageParser<HelloRequest> Parser { get; }Property Value
Section titled “Property Value”MessageParser<HelloRequest>
Methods
Section titled “Methods”CalculateSize()
Section titled “ CalculateSize()”Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()Returns
Section titled “Returns”The number of bytes required to write this message to a coded output stream.
Clone()
Section titled “ Clone()”Creates a deep clone of this object.
public HelloRequest Clone()Returns
Section titled “Returns”A deep clone of this object.
Equals(object)
Section titled “ Equals(object)”Determines whether the specified object is equal to the current object.
public override bool Equals(object other)Parameters
Section titled “Parameters”other object
Returns
Section titled “Returns”true if the specified object is equal to the current object; otherwise, false.
Equals(HelloRequest)
Section titled “ Equals(HelloRequest)”Indicates whether the current object is equal to another object of the same type.
public bool Equals(HelloRequest other)Parameters
Section titled “Parameters”other HelloRequest
An object to compare with this object.
Returns
Section titled “Returns”true if the current object is equal to the other parameter; otherwise, false.
GetHashCode()
Section titled “ GetHashCode()”Serves as the default hash function.
public override int GetHashCode()Returns
Section titled “Returns”A hash code for the current object.
MergeFrom(HelloRequest)
Section titled “ MergeFrom(HelloRequest)”Merges the given message into this one.
public void MergeFrom(HelloRequest other)Parameters
Section titled “Parameters”other HelloRequest
Remarks
Section titled “Remarks”See the user guide for precise merge semantics.
MergeFrom(CodedInputStream)
Section titled “ MergeFrom(CodedInputStream)”Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)Parameters
Section titled “Parameters”input CodedInputStream
Remarks
Section titled “Remarks”See the user guide for precise merge semantics.
ToString()
Section titled “ ToString()”Returns a string that represents the current object.
public override string ToString()Returns
Section titled “Returns”A string that represents the current object.
WriteTo(CodedOutputStream)
Section titled “ WriteTo(CodedOutputStream)”Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)Parameters
Section titled “Parameters”output CodedOutputStream
Coded output stream to write the data to. Must not be null.