Język

ProtoOutputStream.GetFieldCountString(Int64) Method

Definition

Get the developer-usable name of a field count.

[Android.Runtime.Register("getFieldCountString", "(J)Ljava/lang/String;", "", ApiSince=30)]
public static string? GetFieldCountString(long fieldCount);
[<Android.Runtime.Register("getFieldCountString", "(J)Ljava/lang/String;", "", ApiSince=30)>]
static member GetFieldCountString : int64 -> string

Parameters

fieldCount
Int64

A field count flag, such as FieldCountSingle, FieldCountRepeated, or FieldCountPacked, without a field number or type flags.

Returns

An empty string for a single field, "Repeated" for a repeated field, or "Packed" for a packed field; otherwise, null.

Attributes

Remarks

Get the developer-usable name of a field count.

Android reference for android.util.proto.ProtoOutputStream.getFieldCountString.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to