类 CloudEvent.Types.CloudEventAttributeValue
public sealed class CloudEvent.Types.CloudEventAttributeValue : IMessage<CloudEvent.Types.CloudEventAttributeValue>, IEquatable<CloudEvent.Types.CloudEventAttributeValue>, IDeepCloneable<CloudEvent.Types.CloudEventAttributeValue>, IBufferMessage, IMessage
- 继承
-
CloudEvent.Types.CloudEventAttributeValue
- 实现
-
IBufferMessageIMessage
- 继承的成员
构造函数
CloudEventAttributeValue()
public CloudEventAttributeValue()
CloudEventAttributeValue(CloudEventAttributeValue)
public CloudEventAttributeValue(CloudEvent.Types.CloudEventAttributeValue other)
参数
字段
CeBooleanFieldNumber
字段编号,对应 "ce_boolean" 字段。
public const int CeBooleanFieldNumber = 1
字段值
CeBytesFieldNumber
字段编号,对应 "ce_bytes" 字段。
public const int CeBytesFieldNumber = 4
字段值
CeIntegerFieldNumber
字段编号,对应 "ce_integer" 字段。
public const int CeIntegerFieldNumber = 2
字段值
CeStringFieldNumber
字段编号,对应 "ce_string" 字段。
public const int CeStringFieldNumber = 3
字段值
CeTimestampFieldNumber
字段编号,对应 "ce_timestamp" 字段。
public const int CeTimestampFieldNumber = 7
字段值
CeUriFieldNumber
字段编号,对应 "ce_uri" 字段。
public const int CeUriFieldNumber = 5
字段值
CeUriRefFieldNumber
字段编号,对应 "ce_uri_ref" 字段。
public const int CeUriRefFieldNumber = 6
字段值
属性
AttrCase
public CloudEvent.Types.CloudEventAttributeValue.AttrOneofCase AttrCase { get; }
属性值
CeBoolean
public bool CeBoolean { get; set; }
属性值
CeBytes
public ByteString CeBytes { get; set; }
属性值
- ByteString
CeInteger
public int CeInteger { get; set; }
属性值
CeString
public string CeString { get; set; }
属性值
CeTimestamp
public Timestamp CeTimestamp { get; set; }
属性值
- Timestamp
CeUri
public string CeUri { get; set; }
属性值
CeUriRef
public string CeUriRef { get; set; }
属性值
Descriptor
public static MessageDescriptor Descriptor { get; }
属性值
- MessageDescriptor
HasCeBoolean
获取是否设置了 "ce_boolean" 字段
public bool HasCeBoolean { get; }
属性值
HasCeBytes
获取是否设置了 "ce_bytes" 字段
public bool HasCeBytes { get; }
属性值
HasCeInteger
获取是否设置了 "ce_integer" 字段
public bool HasCeInteger { get; }
属性值
HasCeString
获取是否设置了 "ce_string" 字段
public bool HasCeString { get; }
属性值
HasCeUri
获取是否设置了 "ce_uri" 字段
public bool HasCeUri { get; }
属性值
HasCeUriRef
获取是否设置了 "ce_uri_ref" 字段
public bool HasCeUriRef { get; }
属性值
Parser
public static MessageParser<CloudEvent.Types.CloudEventAttributeValue> Parser { get; }
属性值
- MessageParser<CloudEvent.Types.CloudEventAttributeValue>
方法
CalculateSize()
计算此消息在协议缓冲区线路格式中的大小(以字节为单位)。
public int CalculateSize()
返回值
- int
将此消息写入编码输出流所需的字节数。
ClearAttr()
public void ClearAttr()
ClearCeBoolean()
如果 oneof 当前设置为 "ce_boolean",则清除其值
public void ClearCeBoolean()
ClearCeBytes()
如果 oneof 当前设置为 "ce_bytes",则清除其值
public void ClearCeBytes()
ClearCeInteger()
如果 oneof 当前设置为 "ce_integer",则清除其值
public void ClearCeInteger()
ClearCeString()
如果 oneof 当前设置为 "ce_string",则清除其值
public void ClearCeString()
ClearCeUri()
如果 oneof 当前设置为 "ce_uri",则清除其值
public void ClearCeUri()
ClearCeUriRef()
如果 oneof 当前设置为 "ce_uri_ref",则清除其值
public void ClearCeUriRef()
Clone()
创建此对象的深度克隆。
public CloudEvent.Types.CloudEventAttributeValue Clone()
返回值
- CloudEvent.Types.CloudEventAttributeValue
此对象的深度克隆。
Equals(CloudEventAttributeValue)
指示当前对象是否等于同一类型的另一个对象。
public bool Equals(CloudEvent.Types.CloudEventAttributeValue other)
参数
other
CloudEvent.Types.CloudEventAttributeValue要与此对象进行比较的对象。
返回值
Equals(object)
确定指定的对象是否等于当前对象。
public override bool Equals(object other)
参数
other
object
返回值
GetHashCode()
用作默认哈希函数。
public override int GetHashCode()
返回值
- int
当前对象的哈希代码。
MergeFrom(CodedInputStream)
将指定编码输入流中的数据与当前消息合并。
public void MergeFrom(CodedInputStream input)
参数
input
CodedInputStream
备注
有关精确的合并语义,请参阅用户指南。
MergeFrom(CloudEventAttributeValue)
将给定的消息合并到此消息中。
public void MergeFrom(CloudEvent.Types.CloudEventAttributeValue other)
参数
备注
有关精确的合并语义,请参阅用户指南。
ToString()
返回表示当前对象的字符串。
public override string ToString()
返回值
- string
表示当前对象的字符串。
WriteTo(CodedOutputStream)
将数据写入给定的编码输出流。
public void WriteTo(CodedOutputStream output)
参数
output
CodedOutputStream要将数据写入的编码输出流。不能为空。