Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.google.protobuf.Descriptors.FieldDescriptor Class Reference
Inheritance diagram for com.google.protobuf.Descriptors.FieldDescriptor:
Inheritance graph
[legend]

Classes

enum  JavaType
 
enum  Type
 

Public Member Functions

int compareTo (final FieldDescriptor other)
 
int compareTo (final FieldDescriptor other)
 
OneofDescriptor getContainingOneof ()
 
OneofDescriptor getContainingOneof ()
 
Descriptor getContainingType ()
 
Descriptor getContainingType ()
 
Object getDefaultValue ()
 
Object getDefaultValue ()
 
EnumDescriptor getEnumType ()
 
EnumDescriptor getEnumType ()
 
Descriptor getExtensionScope ()
 
Descriptor getExtensionScope ()
 
FileDescriptor getFile ()
 
FileDescriptor getFile ()
 
String getFullName ()
 
String getFullName ()
 
int getIndex ()
 
int getIndex ()
 
JavaType getJavaType ()
 
JavaType getJavaType ()
 
String getJsonName ()
 
String getJsonName ()
 
WireFormat.JavaType getLiteJavaType ()
 
WireFormat.JavaType getLiteJavaType ()
 
WireFormat.FieldType getLiteType ()
 
WireFormat.FieldType getLiteType ()
 
Descriptor getMessageType ()
 
Descriptor getMessageType ()
 
String getName ()
 
String getName ()
 
int getNumber ()
 
int getNumber ()
 
FieldOptions getOptions ()
 
FieldOptions getOptions ()
 
OneofDescriptor getRealContainingOneof ()
 
Type getType ()
 
Type getType ()
 
boolean hasDefaultValue ()
 
boolean hasDefaultValue ()
 
boolean hasOptionalKeyword ()
 
boolean hasPresence ()
 
MessageLite.Builder internalMergeFrom (MessageLite.Builder to, MessageLite from)
 
MessageLite.Builder internalMergeFrom (MessageLite.Builder to, MessageLite from)
 
boolean isExtension ()
 
boolean isExtension ()
 
boolean isMapField ()
 
boolean isMapField ()
 
boolean isOptional ()
 
boolean isOptional ()
 
boolean isPackable ()
 
boolean isPackable ()
 
boolean isPacked ()
 
boolean isPacked ()
 
boolean isRepeated ()
 
boolean isRepeated ()
 
boolean isRequired ()
 
boolean isRequired ()
 
boolean needsUtf8Check ()
 
boolean needsUtf8Check ()
 
FieldDescriptorProto toProto ()
 
FieldDescriptorProto toProto ()
 
String toString ()
 
String toString ()
 
- Public Member Functions inherited from com.google.protobuf.FieldSet< T extends FieldSet.FieldDescriptorLite< T >.FieldDescriptorLite< FieldDescriptor >
Internal.EnumLiteMap<?> getEnumType ()
 
Internal.EnumLiteMap<?> getEnumType ()
 
WireFormat.JavaType getLiteJavaType ()
 
WireFormat.JavaType getLiteJavaType ()
 
WireFormat.FieldType getLiteType ()
 
WireFormat.FieldType getLiteType ()
 
int getNumber ()
 
int getNumber ()
 
MessageLite.Builder internalMergeFrom (MessageLite.Builder to, MessageLite from)
 
MessageLite.Builder internalMergeFrom (MessageLite.Builder to, MessageLite from)
 
boolean isPacked ()
 
boolean isPacked ()
 
boolean isRepeated ()
 
boolean isRepeated ()
 

Private Member Functions

void crossLink () throws DescriptorValidationException
 
void crossLink () throws DescriptorValidationException
 
 FieldDescriptor (final FieldDescriptorProto proto, final FileDescriptor file, final Descriptor parent, final int index, final boolean isExtension) throws DescriptorValidationException
 
 FieldDescriptor (final FieldDescriptorProto proto, final FileDescriptor file, final Descriptor parent, final int index, final boolean isExtension) throws DescriptorValidationException
 
void setProto (final FieldDescriptorProto proto)
 
void setProto (final FieldDescriptorProto proto)
 

Static Private Member Functions

static String fieldNameToJsonName (String name)
 
static String fieldNameToJsonName (String name)
 

Private Attributes

OneofDescriptor containingOneof
 
Descriptor containingType
 
Object defaultValue
 
EnumDescriptor enumType
 
final Descriptor extensionScope
 
final FileDescriptor file
 
final String fullName
 
final int index
 
final boolean isProto3Optional
 
final String jsonName
 
String jsonName
 
Descriptor messageType
 
FieldDescriptorProto proto
 
Type type
 

Static Private Attributes

static final NumberGetter< FieldDescriptorNUMBER_GETTER
 
static final WireFormat.FieldType[] table = WireFormat.FieldType.values()
 

Detailed Description

Describes a field of a message type.

Definition at line 949 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

Constructor & Destructor Documentation

◆ FieldDescriptor() [1/2]

com.google.protobuf.Descriptors.FieldDescriptor.FieldDescriptor ( final FieldDescriptorProto  proto,
final FileDescriptor  file,
final Descriptor  parent,
final int  index,
final boolean  isExtension 
) throws DescriptorValidationException
inlineprivate

◆ FieldDescriptor() [2/2]

com.google.protobuf.Descriptors.FieldDescriptor.FieldDescriptor ( final FieldDescriptorProto  proto,
final FileDescriptor  file,
final Descriptor  parent,
final int  index,
final boolean  isExtension 
) throws DescriptorValidationException
inlineprivate

Member Function Documentation

◆ compareTo() [1/2]

int com.google.protobuf.Descriptors.FieldDescriptor.compareTo ( final FieldDescriptor  other)
inline

Compare with another

. This orders fields in "canonical" order, which simply means ascending order by field number.

other

must be a field of the same type – i.e.

must return the same

for both fields.

Returns
negative, zero, or positive if
this
is less than, equal to, or greater than
other
, respectively.

Definition at line 1185 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ compareTo() [2/2]

int com.google.protobuf.Descriptors.FieldDescriptor.compareTo ( final FieldDescriptor  other)
inline

Compare with another

. This orders fields in "canonical" order, which simply means ascending order by field number.

other

must be a field of the same type – i.e.

must return the same

for both fields.

Returns
negative, zero, or positive if
this
is less than, equal to, or greater than
other
, respectively.

Definition at line 1342 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ crossLink() [1/2]

void com.google.protobuf.Descriptors.FieldDescriptor.crossLink ( ) throws DescriptorValidationException
inlineprivate

Look up and cross-link all field types, etc.

Definition at line 1377 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ crossLink() [2/2]

void com.google.protobuf.Descriptors.FieldDescriptor.crossLink ( ) throws DescriptorValidationException
inlineprivate

Look up and cross-link all field types, etc.

Definition at line 1535 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ fieldNameToJsonName() [1/2]

static String com.google.protobuf.Descriptors.FieldDescriptor.fieldNameToJsonName ( String  name)
inlinestaticprivate

◆ fieldNameToJsonName() [2/2]

static String com.google.protobuf.Descriptors.FieldDescriptor.fieldNameToJsonName ( String  name)
inlinestaticprivate

◆ getContainingOneof() [1/2]

OneofDescriptor com.google.protobuf.Descriptors.FieldDescriptor.getContainingOneof ( )
inline

Get the field's containing oneof.

Definition at line 1124 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getContainingOneof() [2/2]

OneofDescriptor com.google.protobuf.Descriptors.FieldDescriptor.getContainingOneof ( )
inline

Get the field's containing oneof.

Definition at line 1247 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getContainingType() [1/2]

Descriptor com.google.protobuf.Descriptors.FieldDescriptor.getContainingType ( )
inline

Get the field's containing type. For extensions, this is the type being extended, not the location where the extension was defined. See getExtensionScope().

Definition at line 1119 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getContainingType() [2/2]

Descriptor com.google.protobuf.Descriptors.FieldDescriptor.getContainingType ( )
inline

Get the field's containing type. For extensions, this is the type being extended, not the location where the extension was defined. See getExtensionScope().

Definition at line 1242 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getDefaultValue() [1/2]

Object com.google.protobuf.Descriptors.FieldDescriptor.getDefaultValue ( )
inline

Returns the field's default value. Valid for all types except for messages and groups. For all other types, the object returned is of the same class that would returned by Message.getField(this).

Definition at line 1097 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getDefaultValue() [2/2]

Object com.google.protobuf.Descriptors.FieldDescriptor.getDefaultValue ( )
inline

Returns the field's default value. Valid for all types except for messages and groups. For all other types, the object returned is of the same class that would returned by Message.getField(this).

Definition at line 1220 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getEnumType() [1/2]

EnumDescriptor com.google.protobuf.Descriptors.FieldDescriptor.getEnumType ( )
inline

For enum fields, gets the field's type.

Definition at line 1168 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getEnumType() [2/2]

EnumDescriptor com.google.protobuf.Descriptors.FieldDescriptor.getEnumType ( )
inline

For enum fields, gets the field's type.

Definition at line 1325 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getExtensionScope() [1/2]

Descriptor com.google.protobuf.Descriptors.FieldDescriptor.getExtensionScope ( )
inline

For extensions defined nested within message types, gets the outer type. Not valid for non-extension fields. For example, consider this

.proto

file:

  message Foo {
    extensions 1000 to max;
  }
  extend Foo {
    optional int32 baz = 1234;
  }
  message Bar {
    extend Foo {
      optional int32 qux = 4321;
    }
  }

Both

baz

's and

qux

's containing type is

. However,

baz

's extension scope is

null

while

qux

's extension scope is

Bar

.

Definition at line 1149 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getExtensionScope() [2/2]

Descriptor com.google.protobuf.Descriptors.FieldDescriptor.getExtensionScope ( )
inline

For extensions defined nested within message types, gets the outer type. Not valid for non-extension fields. For example, consider this

.proto

file:

  message Foo {
    extensions 1000 to max;
  }
  extend Foo {
    optional int32 baz = 1234;
  }
  message Bar {
    extend Foo {
      optional int32 qux = 4321;
    }
  }

Both

baz

's and

qux

's containing type is

. However,

baz

's extension scope is

null

while

qux

's extension scope is

Bar

.

Definition at line 1306 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getFile() [1/2]

FileDescriptor com.google.protobuf.Descriptors.FieldDescriptor.getFile ( )
inline

◆ getFile() [2/2]

FileDescriptor com.google.protobuf.Descriptors.FieldDescriptor.getFile ( )
inline

◆ getFullName() [1/2]

String com.google.protobuf.Descriptors.FieldDescriptor.getFullName ( )
inline

◆ getFullName() [2/2]

String com.google.protobuf.Descriptors.FieldDescriptor.getFullName ( )
inline

◆ getIndex() [1/2]

int com.google.protobuf.Descriptors.FieldDescriptor.getIndex ( )
inline

Get the index of this descriptor within its parent.

See also
Descriptors.Descriptor::getIndex()

Definition at line 956 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getIndex() [2/2]

int com.google.protobuf.Descriptors.FieldDescriptor.getIndex ( )
inline

Get the index of this descriptor within its parent.

See also
Descriptors.Descriptor::getIndex()

Definition at line 1072 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getJavaType() [1/2]

JavaType com.google.protobuf.Descriptors.FieldDescriptor.getJavaType ( )
inline

Get the field's java type. This is just for convenience. Every

maps to exactly one Java type.

Definition at line 997 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getJavaType() [2/2]

JavaType com.google.protobuf.Descriptors.FieldDescriptor.getJavaType ( )
inline

Get the field's java type. This is just for convenience. Every

maps to exactly one Java type.

Definition at line 1120 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getJsonName() [1/2]

String com.google.protobuf.Descriptors.FieldDescriptor.getJsonName ( )
inline

Get the JSON name of this field.

Definition at line 989 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getJsonName() [2/2]

String com.google.protobuf.Descriptors.FieldDescriptor.getJsonName ( )
inline

Get the JSON name of this field.

Definition at line 1105 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getLiteJavaType() [1/2]

WireFormat.JavaType com.google.protobuf.Descriptors.FieldDescriptor.getLiteJavaType ( )
inline

◆ getLiteJavaType() [2/2]

WireFormat.JavaType com.google.protobuf.Descriptors.FieldDescriptor.getLiteJavaType ( )
inline

For internal use only.

Definition at line 1126 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getLiteType() [1/2]

WireFormat.FieldType com.google.protobuf.Descriptors.FieldDescriptor.getLiteType ( )
inline

◆ getLiteType() [2/2]

WireFormat.FieldType com.google.protobuf.Descriptors.FieldDescriptor.getLiteType ( )
inline

For internal use only.

Definition at line 1143 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getMessageType() [1/2]

Descriptor com.google.protobuf.Descriptors.FieldDescriptor.getMessageType ( )
inline

For embedded message and group fields, gets the field's type.

Definition at line 1158 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getMessageType() [2/2]

Descriptor com.google.protobuf.Descriptors.FieldDescriptor.getMessageType ( )
inline

For embedded message and group fields, gets the field's type.

Definition at line 1315 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getName() [1/2]

String com.google.protobuf.Descriptors.FieldDescriptor.getName ( )
inline

◆ getName() [2/2]

String com.google.protobuf.Descriptors.FieldDescriptor.getName ( )
inline

Get the field's unqualified name.

Reimplemented from com.google.protobuf.Descriptors.GenericDescriptor.

Definition at line 1084 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getNumber() [1/2]

int com.google.protobuf.Descriptors.FieldDescriptor.getNumber ( )
inline

◆ getNumber() [2/2]

int com.google.protobuf.Descriptors.FieldDescriptor.getNumber ( )
inline

Get the field's number.

Definition at line 1090 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getOptions() [1/2]

FieldOptions com.google.protobuf.Descriptors.FieldDescriptor.getOptions ( )
inline

◆ getOptions() [2/2]

FieldOptions com.google.protobuf.Descriptors.FieldDescriptor.getOptions ( )
inline

◆ getRealContainingOneof()

OneofDescriptor com.google.protobuf.Descriptors.FieldDescriptor.getRealContainingOneof ( )
inline

Get the field's containing oneof, only if non-synthetic.

Definition at line 1252 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getType() [1/2]

Type com.google.protobuf.Descriptors.FieldDescriptor.getType ( )
inline

Get the field's declared type.

Definition at line 1014 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ getType() [2/2]

Type com.google.protobuf.Descriptors.FieldDescriptor.getType ( )
inline

Get the field's declared type.

Definition at line 1137 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ hasDefaultValue() [1/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.hasDefaultValue ( )
inline

Returns true if the field had an explicitly-defined default value.

Definition at line 1088 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ hasDefaultValue() [2/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.hasDefaultValue ( )
inline

Returns true if the field had an explicitly-defined default value.

Definition at line 1211 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ hasOptionalKeyword()

boolean com.google.protobuf.Descriptors.FieldDescriptor.hasOptionalKeyword ( )
inline

Returns true if this field was syntactically written with "optional" in the .proto file. Excludes singular proto3 fields that do not have a label.

Definition at line 1260 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ hasPresence()

boolean com.google.protobuf.Descriptors.FieldDescriptor.hasPresence ( )
inline

Returns true if this field tracks presence, ie. does the field distinguish between "unset" and "present with default value."

This includes required, optional, and oneof fields. It excludes maps, repeated fields, and singular proto3 fields without "optional".

For fields where hasPresence() == true, the return value of msg.hasField() is semantically meaningful.

Definition at line 1275 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ internalMergeFrom() [1/2]

MessageLite.Builder com.google.protobuf.Descriptors.FieldDescriptor.internalMergeFrom ( MessageLite.Builder  to,
MessageLite  from 
)
inline

For internal use only. This is to satisfy the FieldDescriptorLite interface.

Definition at line 1572 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ internalMergeFrom() [2/2]

MessageLite.Builder com.google.protobuf.Descriptors.FieldDescriptor.internalMergeFrom ( MessageLite.Builder  to,
MessageLite  from 
)
inline

For internal use only. This is to satisfy the FieldDescriptorLite interface.

Definition at line 1726 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ isExtension() [1/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isExtension ( )
inline

◆ isExtension() [2/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isExtension ( )
inline

Is this field an extension?

Definition at line 1234 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ isMapField() [1/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isMapField ( )
inline

◆ isMapField() [2/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isMapField ( )
inline

◆ isOptional() [1/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isOptional ( )
inline

Is this field declared optional?

Definition at line 1056 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ isOptional() [2/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isOptional ( )
inline

Is this field declared optional?

Definition at line 1179 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ isPackable() [1/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isPackable ( )
inline

Can this field be packed? i.e. is it a repeated primitive field?

Definition at line 1083 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ isPackable() [2/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isPackable ( )
inline

Can this field be packed? i.e. is it a repeated primitive field?

Definition at line 1206 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ isPacked() [1/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isPacked ( )
inline

Does this field have the

[packed = true]

option or is this field packable in proto3 and not explicitly setted to unpacked?

Definition at line 1071 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ isPacked() [2/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isPacked ( )
inline

Does this field have the

[packed = true]

option or is this field packable in proto3 and not explicitly set to unpacked?

Definition at line 1194 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ isRepeated() [1/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isRepeated ( )
inline

Is this field declared repeated?

Definition at line 1062 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ isRepeated() [2/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isRepeated ( )
inline

Is this field declared repeated?

Definition at line 1185 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ isRequired() [1/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isRequired ( )
inline

Is this field declared required?

Definition at line 1051 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ isRequired() [2/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.isRequired ( )
inline

Is this field declared required?

Definition at line 1174 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ needsUtf8Check() [1/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.needsUtf8Check ( )
inline

◆ needsUtf8Check() [2/2]

boolean com.google.protobuf.Descriptors.FieldDescriptor.needsUtf8Check ( )
inline

For internal use only.

Definition at line 1148 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ setProto() [1/2]

void com.google.protobuf.Descriptors.FieldDescriptor.setProto ( final FieldDescriptorProto  proto)
inlineprivate

◆ setProto() [2/2]

void com.google.protobuf.Descriptors.FieldDescriptor.setProto ( final FieldDescriptorProto  proto)
inlineprivate

◆ toProto() [1/2]

FieldDescriptorProto com.google.protobuf.Descriptors.FieldDescriptor.toProto ( )
inline

Convert the descriptor to its protocol message representation.

Reimplemented from com.google.protobuf.Descriptors.GenericDescriptor.

Definition at line 962 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ toProto() [2/2]

FieldDescriptorProto com.google.protobuf.Descriptors.FieldDescriptor.toProto ( )
inline

Convert the descriptor to its protocol message representation.

Reimplemented from com.google.protobuf.Descriptors.GenericDescriptor.

Definition at line 1078 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ toString() [1/2]

String com.google.protobuf.Descriptors.FieldDescriptor.toString ( )
inline

◆ toString() [2/2]

String com.google.protobuf.Descriptors.FieldDescriptor.toString ( )
inline

Member Data Documentation

◆ containingOneof

OneofDescriptor com.google.protobuf.Descriptors.FieldDescriptor.containingOneof
private

◆ containingType

Descriptor com.google.protobuf.Descriptors.FieldDescriptor.containingType
private

◆ defaultValue

Object com.google.protobuf.Descriptors.FieldDescriptor.defaultValue
private

◆ enumType

EnumDescriptor com.google.protobuf.Descriptors.FieldDescriptor.enumType
private

◆ extensionScope

final Descriptor com.google.protobuf.Descriptors.FieldDescriptor.extensionScope
private

◆ file

final FileDescriptor com.google.protobuf.Descriptors.FieldDescriptor.file
private

◆ fullName

final String com.google.protobuf.Descriptors.FieldDescriptor.fullName
private

◆ index

final int com.google.protobuf.Descriptors.FieldDescriptor.index
private

◆ isProto3Optional

final boolean com.google.protobuf.Descriptors.FieldDescriptor.isProto3Optional
private

◆ jsonName [1/2]

final String com.google.protobuf.Descriptors.FieldDescriptor.jsonName
private

◆ jsonName [2/2]

String com.google.protobuf.Descriptors.FieldDescriptor.jsonName
private

◆ messageType

Descriptor com.google.protobuf.Descriptors.FieldDescriptor.messageType
private

◆ NUMBER_GETTER

final NumberGetter<FieldDescriptor> com.google.protobuf.Descriptors.FieldDescriptor.NUMBER_GETTER
staticprivate
Initial value:
=
new NumberGetter<FieldDescriptor>() {
@Override
public int getNumber(FieldDescriptor fieldDescriptor) {
return fieldDescriptor.getNumber();
}
}

Definition at line 1059 of file protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java.

◆ proto

FieldDescriptorProto com.google.protobuf.Descriptors.FieldDescriptor.proto
private

◆ table

final WireFormat.FieldType [] com.google.protobuf.Descriptors.FieldDescriptor.table = WireFormat.FieldType.values()
staticprivate

◆ type

Type com.google.protobuf.Descriptors.FieldDescriptor.type
private

The documentation for this class was generated from the following file:
FieldOptions
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.pb.h:4590
FieldDescriptorProto
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.pb.h:1851
FileDescriptor
Definition: bloaty/third_party/protobuf/ruby/ext/google/protobuf_c/protobuf.h:128
Descriptor
Definition: bloaty/third_party/protobuf/ruby/ext/google/protobuf_c/protobuf.h:121
FieldDescriptor
Definition: bloaty/third_party/protobuf/ruby/ext/google/protobuf_c/protobuf.h:133
Foo
Definition: abseil-cpp/absl/debugging/symbolize_test.cc:65
com.google.protobuf.Descriptors.FieldDescriptor.getNumber
int getNumber()
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java:974
FieldDescriptorProto::Type
FieldDescriptorProto_Type Type
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.pb.h:1981
com.google.protobuf.Descriptors.FieldDescriptor.getContainingType
Descriptor getContainingType()
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java:1119
descriptor
static const char descriptor[1336]
Definition: certs.upbdefs.c:16


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:04