[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface FieldOrBuilder (3.19.4)\n\n public interface FieldOrBuilder extends MessageLiteOrBuilder\n\nImplements\n----------\n\n[MessageLiteOrBuilder](/java/docs/reference/protobuf/latest/com.google.protobuf.MessageLiteOrBuilder)\n\nMethods\n-------\n\n### getCardinality()\n\n public abstract Field.Cardinality getCardinality()\n\nThe field cardinality.\n\n`.google.protobuf.Field.Cardinality cardinality = 2;`\n\n### getCardinalityValue()\n\n public abstract int getCardinalityValue()\n\nThe field cardinality.\n\n`.google.protobuf.Field.Cardinality cardinality = 2;`\n\n### getDefaultValue()\n\n public abstract String getDefaultValue()\n\nThe string value of the default value of this field. Proto2 syntax only.\n\n`string default_value = 11;`\n\n### getDefaultValueBytes()\n\n public abstract ByteString getDefaultValueBytes()\n\nThe string value of the default value of this field. Proto2 syntax only.\n\n`string default_value = 11;`\n\n### getJsonName()\n\n public abstract String getJsonName()\n\nThe field JSON name.\n\n`string json_name = 10;`\n\n### getJsonNameBytes()\n\n public abstract ByteString getJsonNameBytes()\n\nThe field JSON name.\n\n`string json_name = 10;`\n\n### getKind()\n\n public abstract Field.Kind getKind()\n\nThe field type.\n\n`.google.protobuf.Field.Kind kind = 1;`\n\n### getKindValue()\n\n public abstract int getKindValue()\n\nThe field type.\n\n`.google.protobuf.Field.Kind kind = 1;`\n\n### getName()\n\n public abstract String getName()\n\nThe field name.\n\n`string name = 4;`\n\n### getNameBytes()\n\n public abstract ByteString getNameBytes()\n\nThe field name.\n\n`string name = 4;`\n\n### getNumber()\n\n public abstract int getNumber()\n\nThe field number.\n\n`int32 number = 3;`\n\n### getOneofIndex()\n\n public abstract int getOneofIndex()\n\nThe index of the field type in `Type.oneofs`, for message or enumeration\ntypes. The first type has index 1; zero means the type is not in the list.\n\n`int32 oneof_index = 7;`\n\n### getOptions(int index)\n\n public abstract Option getOptions(int index)\n\nThe protocol buffer options.\n\n`repeated .google.protobuf.Option options = 9;`\n\n### getOptionsCount()\n\n public abstract int getOptionsCount()\n\nThe protocol buffer options.\n\n`repeated .google.protobuf.Option options = 9;`\n\n### getOptionsList()\n\n public abstract List\u003cOption\u003e getOptionsList()\n\nThe protocol buffer options.\n\n`repeated .google.protobuf.Option options = 9;`\n\n### getPacked()\n\n public abstract boolean getPacked()\n\nWhether to use alternative packed wire representation.\n\n`bool packed = 8;`\n\n### getTypeUrl()\n\n public abstract String getTypeUrl()\n\nThe field type URL, without the scheme, for message or enumeration\ntypes. Example: `\"type.googleapis.com/google.protobuf.Timestamp\"`.\n\n`string type_url = 6;`\n\n### getTypeUrlBytes()\n\n public abstract ByteString getTypeUrlBytes()\n\nThe field type URL, without the scheme, for message or enumeration\ntypes. Example: `\"type.googleapis.com/google.protobuf.Timestamp\"`.\n\n`string type_url = 6;`"]]