Top Description Inners Fields Constructors Methods
com.google.protobuf

public final Class SourceContext

extends GeneratedMessageV3
implements SourceContextOrBuilder
Class Inheritance
All Implemented Interfaces
com.google.protobuf.SourceContextOrBuilder, com.google.protobuf.MessageOrBuilder, com.google.protobuf.MessageLiteOrBuilder

`SourceContext` represents information about the source of a
protobuf element, like the file in which it is defined.
Protobuf type google.protobuf.SourceContext

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
SourceContext.Builder

`SourceContext` represents information about the source of a
protobuf element, like the file in which it is defined.

Field Summary

Modifier and TypeField and Description
private static final SourceContext
public static final int
private volatile Object
private byte
private static final Parser<SourceContext>
private static final long
Inherited from com.google.protobuf.GeneratedMessageV3:
alwaysUseFieldBuildersunknownFields

Constructor Summary

AccessConstructor and Description
private
private
private

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(final Object
object to be compared for equality with this message
obj
)

Overrides com.google.protobuf.AbstractMessage.equals.

Implements com.google.protobuf.Message.equals.

Compares the specified object with this message for equality.
public static SourceContext
public SourceContext
public static final Descriptors.Descriptor
public String
getFileName()

Implements com.google.protobuf.SourceContextOrBuilder.getFileName.

The path-qualified name of the .proto file that contained the associated
protobuf element.
public ByteString
getFileNameBytes()

Implements com.google.protobuf.SourceContextOrBuilder.getFileNameBytes.

The path-qualified name of the .proto file that contained the associated
protobuf element.
public Parser<SourceContext>
public int
getSerializedSize()

Overrides com.google.protobuf.GeneratedMessageV3.getSerializedSize.

Implements com.google.protobuf.MessageLite.getSerializedSize.

Get the number of bytes required to encode this message.
public final UnknownFieldSet
public int
hashCode()

Overrides com.google.protobuf.AbstractMessage.hashCode.

Implements com.google.protobuf.Message.hashCode.

Returns the hash code value for this message.
protected GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()

Implements abstract com.google.protobuf.GeneratedMessageV3.internalGetFieldAccessorTable.

Get the FieldAccessorTable for this type.
public final boolean
isInitialized()

Overrides com.google.protobuf.GeneratedMessageV3.isInitialized.

Implements com.google.protobuf.MessageLiteOrBuilder.isInitialized.

Returns true if all required fields in the message and all embedded messages are set, false otherwise.
public static SourceContext.Builder
public static SourceContext.Builder
public SourceContext.Builder
newBuilderForType()

Implements com.google.protobuf.Message.newBuilderForType, com.google.protobuf.MessageLite.newBuilderForType.

Constructs a new builder for a message of the same type as this message.
protected SourceContext.Builder
newBuilderForType(GeneratedMessageV3.BuilderParent parent)

Implements abstract com.google.protobuf.GeneratedMessageV3.newBuilderForType.

TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.
public static SourceContext
public static SourceContext
public static SourceContext
public static SourceContext
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SourceContext
public static SourceContext
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SourceContext
parseFrom(byte[] data)

public static SourceContext
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SourceContext
public static SourceContext
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SourceContext
public static SourceContext
public static Parser<SourceContext>
public SourceContext.Builder
toBuilder()

Implements com.google.protobuf.Message.toBuilder, com.google.protobuf.MessageLite.toBuilder.

Constructs a builder initialized with the current message.
public void
writeTo(CodedOutputStream output)

Overrides com.google.protobuf.GeneratedMessageV3.writeTo.

Implements com.google.protobuf.MessageLite.writeTo.

Serializes the message and writes it to output.
Inherited from com.google.protobuf.GeneratedMessageV3:
canUseUnsafecomputeStringSizecomputeStringSizeNoTagemptyBooleanListemptyDoubleListemptyFloatListemptyIntListemptyLongListenableAlwaysUseFieldBuildersForTestinggetAllFieldsgetAllFieldsRawgetDescriptorForTypegetFieldgetFieldRawgetOneofFieldDescriptorgetRepeatedFieldgetRepeatedFieldCounthasFieldhasOneofinternalGetMapFieldmakeExtensionsImmutablemutableCopymutableCopymutableCopymutableCopymutableCopynewBooleanListnewBuilderForTypenewDoubleListnewFloatListnewIntListnewLongListparseDelimitedWithIOExceptionparseDelimitedWithIOExceptionparseUnknownFieldparseUnknownFieldProto3parseWithIOExceptionparseWithIOExceptionparseWithIOExceptionparseWithIOExceptionserializeBooleanMapToserializeIntegerMapToserializeLongMapToserializeStringMapTowriteReplacewriteStringwriteStringNoTag

Field Detail

DEFAULT_INSTANCEback to summary
private static final SourceContext DEFAULT_INSTANCE
FILE_NAME_FIELD_NUMBERback to summary
public static final int FILE_NAME_FIELD_NUMBER
fileName_back to summary
private volatile Object fileName_
memoizedIsInitializedback to summary
private byte memoizedIsInitialized
PARSERback to summary
private static final Parser<SourceContext> PARSER
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.google.protobuf.GeneratedMessageV3.serialVersionUID.

Constructor Detail

SourceContextback to summary
private SourceContext(GeneratedMessageV3.Builder<?> builder)
SourceContextback to summary
private SourceContext()
SourceContextback to summary
private SourceContext(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException

Method Detail

equalsback to summary
public boolean equals(final Object obj)

Overrides com.google.protobuf.AbstractMessage.equals.

Implements com.google.protobuf.Message.equals.

Doc from com.google.protobuf.Message.equals.

Compares the specified object with this message for equality. Returns true if the given object is a message of the same type (as defined by getDescriptorForType()) and has identical values for all of its fields. Subclasses must implement this; inheriting Object.equals() is incorrect.

Parameters
obj:Object

object to be compared for equality with this message

Returns:boolean

true if the specified object is equal to this message

Annotations
@Override
getDefaultInstanceback to summary
public static SourceContext getDefaultInstance()
getDefaultInstanceForTypeback to summary
public SourceContext getDefaultInstanceForType()

Implements com.google.protobuf.MessageOrBuilder.getDefaultInstanceForType, com.google.protobuf.MessageLiteOrBuilder.getDefaultInstanceForType.

Doc from com.google.protobuf.MessageLiteOrBuilder.getDefaultInstanceForType.

Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the getDefaultInstance() method of generated message classes in that this method is an abstract method of the MessageLite interface whereas getDefaultInstance() is a static method of a specific class. They return the same thing.

Annotations
@Override
getDescriptorback to summary
public static final Descriptors.Descriptor getDescriptor()
getFileNameback to summary
public String getFileName()

Implements com.google.protobuf.SourceContextOrBuilder.getFileName.

The path-qualified name of the .proto file that contained the associated
protobuf element.  For example: `"google/protobuf/source_context.proto"`.
string file_name = 1;
getFileNameBytesback to summary
public ByteString getFileNameBytes()

Implements com.google.protobuf.SourceContextOrBuilder.getFileNameBytes.

The path-qualified name of the .proto file that contained the associated
protobuf element.  For example: `"google/protobuf/source_context.proto"`.
string file_name = 1;
getParserForTypeback to summary
public Parser<SourceContext> getParserForType()

Overrides com.google.protobuf.GeneratedMessageV3.getParserForType.

Implements com.google.protobuf.Message.getParserForType, com.google.protobuf.MessageLite.getParserForType.

Doc from com.google.protobuf.MessageLite.getParserForType.

Gets the parser for a message of the same type as this message.

Annotations
@Override
getSerializedSizeback to summary
public int getSerializedSize()

Overrides com.google.protobuf.GeneratedMessageV3.getSerializedSize.

Implements com.google.protobuf.MessageLite.getSerializedSize.

Doc from com.google.protobuf.MessageLite.getSerializedSize.

Get the number of bytes required to encode this message. The result is only computed on the first call and memoized after that.

Annotations
@Override
getUnknownFieldsback to summary
public final UnknownFieldSet getUnknownFields()

Overrides com.google.protobuf.GeneratedMessageV3.getUnknownFields.

Implements com.google.protobuf.MessageOrBuilder.getUnknownFields.

Doc from com.google.protobuf.MessageOrBuilder.getUnknownFields.

Get the UnknownFieldSet for this message.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides com.google.protobuf.AbstractMessage.hashCode.

Implements com.google.protobuf.Message.hashCode.

Doc from com.google.protobuf.Message.hashCode.

Returns the hash code value for this message. The hash code of a message should mix the message's type (object identity of the descriptor) with its contents (known and unknown field values). Subclasses must implement this; inheriting Object.hashCode() is incorrect.

Returns:int

the hash code value for this message

Annotations
@Override
internalGetFieldAccessorTableback to summary
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()

Implements abstract com.google.protobuf.GeneratedMessageV3.internalGetFieldAccessorTable.

Doc from com.google.protobuf.GeneratedMessageV3.internalGetFieldAccessorTable.

Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.

Annotations
@Override
isInitializedback to summary
public final boolean isInitialized()

Overrides com.google.protobuf.GeneratedMessageV3.isInitialized.

Implements com.google.protobuf.MessageLiteOrBuilder.isInitialized.

Doc from com.google.protobuf.MessageLiteOrBuilder.isInitialized.

Returns true if all required fields in the message and all embedded messages are set, false otherwise.

See also: MessageOrBuilder#getInitializationErrorString()

Annotations
@Override
newBuilderback to summary
public static SourceContext.Builder newBuilder()
newBuilderback to summary
public static SourceContext.Builder newBuilder(SourceContext prototype)
newBuilderForTypeback to summary
public SourceContext.Builder newBuilderForType()

Implements com.google.protobuf.Message.newBuilderForType, com.google.protobuf.MessageLite.newBuilderForType.

Doc from com.google.protobuf.MessageLite.newBuilderForType.

Constructs a new builder for a message of the same type as this message.

Annotations
@Override
newBuilderForTypeback to summary
protected SourceContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)

Implements abstract com.google.protobuf.GeneratedMessageV3.newBuilderForType.

Doc from com.google.protobuf.GeneratedMessageV3.newBuilderForType.

TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.

Annotations
@Override
parseDelimitedFromback to summary
public static SourceContext parseDelimitedFrom(InputStream input) throws IOException
parseDelimitedFromback to summary
public static SourceContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
parseFromback to summary
public static SourceContext parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
parseFromback to summary
public static SourceContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
parseFromback to summary
public static SourceContext parseFrom(ByteString data) throws InvalidProtocolBufferException
parseFromback to summary
public static SourceContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
parseFromback to summary
public static SourceContext parseFrom(byte[] data) throws InvalidProtocolBufferException
parseFromback to summary
public static SourceContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
parseFromback to summary
public static SourceContext parseFrom(InputStream input) throws IOException
parseFromback to summary
public static SourceContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
parseFromback to summary
public static SourceContext parseFrom(CodedInputStream input) throws IOException
parseFromback to summary
public static SourceContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
parserback to summary
public static Parser<SourceContext> parser()
toBuilderback to summary
public SourceContext.Builder toBuilder()

Implements com.google.protobuf.Message.toBuilder, com.google.protobuf.MessageLite.toBuilder.

Doc from com.google.protobuf.MessageLite.toBuilder.

Constructs a builder initialized with the current message. Use this to derive a new message from the current one.

Annotations
@Override
writeToback to summary
public void writeTo(CodedOutputStream output) throws IOException

Overrides com.google.protobuf.GeneratedMessageV3.writeTo.

Implements com.google.protobuf.MessageLite.writeTo.

Doc from com.google.protobuf.MessageLite.writeTo.

Serializes the message and writes it to output. This does not flush or close the stream.

Annotations
@Override
com.google.protobuf back to summary

public final Class SourceContext.Builder

extends GeneratedMessageV3.Builder<SourceContext.Builder>
implements SourceContextOrBuilder
Class Inheritance
All Implemented Interfaces
com.google.protobuf.SourceContextOrBuilder, com.google.protobuf.MessageOrBuilder, com.google.protobuf.MessageLiteOrBuilder

`SourceContext` represents information about the source of a
protobuf element, like the file in which it is defined.
Protobuf type google.protobuf.SourceContext

Field Summary

Modifier and TypeField and Description
private Object

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

Modifier and TypeMethod and Description
public SourceContext.Builder
public SourceContext
build()

Implements com.google.protobuf.Message.Builder.build, com.google.protobuf.MessageLite.Builder.build.

Constructs the message based on the state of the Builder.
public SourceContext
buildPartial()

Implements com.google.protobuf.Message.Builder.buildPartial, com.google.protobuf.MessageLite.Builder.buildPartial.

Like build(), but does not throw an exception if the message is missing required fields.
public SourceContext.Builder
clear()

Overrides com.google.protobuf.GeneratedMessageV3.Builder.clear.

Implements com.google.protobuf.Message.Builder.clear, com.google.protobuf.MessageLite.Builder.clear.

Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.
public SourceContext.Builder
public SourceContext.Builder
clearFileName()

The path-qualified name of the .proto file that contained the associated
protobuf element.
public SourceContext.Builder
clearOneof(Descriptors.OneofDescriptor oneof)

Overrides com.google.protobuf.GeneratedMessageV3.Builder.clearOneof.

Implements com.google.protobuf.Message.Builder.clearOneof.

TODO(jieluo): Clear it when all subclasses have implemented this method.
public SourceContext.Builder
public SourceContext
public static final Descriptors.Descriptor
public Descriptors.Descriptor
public String
getFileName()

Implements com.google.protobuf.SourceContextOrBuilder.getFileName.

The path-qualified name of the .proto file that contained the associated
protobuf element.
public ByteString
getFileNameBytes()

Implements com.google.protobuf.SourceContextOrBuilder.getFileNameBytes.

The path-qualified name of the .proto file that contained the associated
protobuf element.
protected GeneratedMessageV3.FieldAccessorTable
public final boolean
isInitialized()

Overrides com.google.protobuf.GeneratedMessageV3.Builder.isInitialized.

Implements com.google.protobuf.MessageLiteOrBuilder.isInitialized.

Returns true if all required fields in the message and all embedded messages are set, false otherwise.
private void
public SourceContext.Builder
public SourceContext.Builder
public SourceContext.Builder
public final SourceContext.Builder
public SourceContext.Builder
public SourceContext.Builder
setFileName(String value)

The path-qualified name of the .proto file that contained the associated
protobuf element.
public SourceContext.Builder
setFileNameBytes(ByteString value)

The path-qualified name of the .proto file that contained the associated
protobuf element.
public SourceContext.Builder
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

Overrides com.google.protobuf.GeneratedMessageV3.Builder.setRepeatedField.

Implements com.google.protobuf.Message.Builder.setRepeatedField.

Sets an element of a repeated field to the given value.
public final SourceContext.Builder
Inherited from com.google.protobuf.GeneratedMessageV3.Builder:
disposegetAllFieldsgetFieldgetFieldBuildergetOneofFieldDescriptorgetParentForChildrengetRepeatedFieldgetRepeatedFieldBuildergetRepeatedFieldCountgetUnknownFieldshasFieldhasOneofinternalGetMapFieldinternalGetMutableMapFieldisCleanmarkCleannewBuilderForFieldonBuiltonChangedsetUnknownFieldsProto3

Field Detail

fileName_back to summary
private Object fileName_

Constructor Detail

Builderback to summary
private Builder()
Builderback to summary
private Builder(GeneratedMessageV3.BuilderParent parent)

Method Detail

addRepeatedFieldback to summary
public SourceContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)

Overrides com.google.protobuf.GeneratedMessageV3.Builder.addRepeatedField.

Implements com.google.protobuf.Message.Builder.addRepeatedField.

Doc from com.google.protobuf.Message.Builder.addRepeatedField.

Like setRepeatedField, but appends the value as a new element.

Annotations
@Override
buildback to summary
public SourceContext build()

Implements com.google.protobuf.Message.Builder.build, com.google.protobuf.MessageLite.Builder.build.

Doc from com.google.protobuf.MessageLite.Builder.build.

Constructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.

Annotations
@Override
buildPartialback to summary
public SourceContext buildPartial()

Implements com.google.protobuf.Message.Builder.buildPartial, com.google.protobuf.MessageLite.Builder.buildPartial.

Doc from com.google.protobuf.MessageLite.Builder.buildPartial.

Like build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.

Annotations
@Override
clearback to summary
public SourceContext.Builder clear()

Overrides com.google.protobuf.GeneratedMessageV3.Builder.clear.

Implements com.google.protobuf.Message.Builder.clear, com.google.protobuf.MessageLite.Builder.clear.

Doc from com.google.protobuf.GeneratedMessageV3.Builder.clear.

Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.

Annotations
@Override
clearFieldback to summary
public SourceContext.Builder clearField(Descriptors.FieldDescriptor field)

Overrides com.google.protobuf.GeneratedMessageV3.Builder.clearField.

Implements com.google.protobuf.Message.Builder.clearField.

Doc from com.google.protobuf.Message.Builder.clearField.

Clears the field. This is exactly equivalent to calling the generated "clear" accessor method corresponding to the field.

Annotations
@Override
clearFileNameback to summary
public SourceContext.Builder clearFileName()
The path-qualified name of the .proto file that contained the associated
protobuf element.  For example: `"google/protobuf/source_context.proto"`.
string file_name = 1;
clearOneofback to summary
public SourceContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)

Overrides com.google.protobuf.GeneratedMessageV3.Builder.clearOneof.

Implements com.google.protobuf.Message.Builder.clearOneof.

Doc from com.google.protobuf.AbstractMessage.Builder.clearOneof.

TODO(jieluo): Clear it when all subclasses have implemented this method.

Annotations
@Override
cloneback to summary
public SourceContext.Builder clone()

Overrides com.google.protobuf.GeneratedMessageV3.Builder.clone.

Implements com.google.protobuf.Message.Builder.clone, com.google.protobuf.MessageLite.Builder.clone.

Doc from com.google.protobuf.MessageLite.Builder.clone.

Clones the Builder.

Returns:SourceContext.Builder

Doc from java.lang.Object.clone.

a clone of this instance.

Annotations
@Override
getDefaultInstanceForTypeback to summary
public SourceContext getDefaultInstanceForType()

Implements com.google.protobuf.MessageOrBuilder.getDefaultInstanceForType, com.google.protobuf.MessageLiteOrBuilder.getDefaultInstanceForType.

Doc from com.google.protobuf.MessageLiteOrBuilder.getDefaultInstanceForType.

Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the getDefaultInstance() method of generated message classes in that this method is an abstract method of the MessageLite interface whereas getDefaultInstance() is a static method of a specific class. They return the same thing.

Annotations
@Override
getDescriptorback to summary
public static final Descriptors.Descriptor getDescriptor()
getDescriptorForTypeback to summary
public Descriptors.Descriptor getDescriptorForType()

Overrides com.google.protobuf.GeneratedMessageV3.Builder.getDescriptorForType.

Implements com.google.protobuf.MessageOrBuilder.getDescriptorForType, com.google.protobuf.Message.Builder.getDescriptorForType.

Doc from com.google.protobuf.MessageOrBuilder.getDescriptorForType.

Get the message's type's descriptor. This differs from the getDescriptor() method of generated message classes in that this method is an abstract method of the Message interface whereas getDescriptor() is a static method of a specific class. They return the same thing.

Annotations
@Override
getFileNameback to summary
public String getFileName()

Implements com.google.protobuf.SourceContextOrBuilder.getFileName.

The path-qualified name of the .proto file that contained the associated
protobuf element.  For example: `"google/protobuf/source_context.proto"`.
string file_name = 1;
getFileNameBytesback to summary
public ByteString getFileNameBytes()

Implements com.google.protobuf.SourceContextOrBuilder.getFileNameBytes.

The path-qualified name of the .proto file that contained the associated
protobuf element.  For example: `"google/protobuf/source_context.proto"`.
string file_name = 1;
internalGetFieldAccessorTableback to summary
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()

Implements abstract com.google.protobuf.GeneratedMessageV3.Builder.internalGetFieldAccessorTable.

Doc from com.google.protobuf.GeneratedMessageV3.Builder.internalGetFieldAccessorTable.

Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.

Annotations
@Override
isInitializedback to summary
public final boolean isInitialized()

Overrides com.google.protobuf.GeneratedMessageV3.Builder.isInitialized.

Implements com.google.protobuf.MessageLiteOrBuilder.isInitialized.

Doc from com.google.protobuf.MessageLiteOrBuilder.isInitialized.

Returns true if all required fields in the message and all embedded messages are set, false otherwise.

See also: MessageOrBuilder#getInitializationErrorString()

Annotations
@Override
maybeForceBuilderInitializationback to summary
private void maybeForceBuilderInitialization()
mergeFromback to summary
public SourceContext.Builder mergeFrom(Message other)

Overrides com.google.protobuf.AbstractMessage.Builder.mergeFrom.

Implements com.google.protobuf.Message.Builder.mergeFrom.

Doc from com.google.protobuf.Message.Builder.mergeFrom.

Merge other into the message being built. other must have the exact same type as this (i.e. getDescriptorForType() == other.getDescriptorForType()).

Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set in other, then other's value overwrites the value in this message.
* For singular message fields, if the field is set in other, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements in other are concatenated with the elements in this message.
* For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.

This is equivalent to the Message::MergeFrom method in C++.

Annotations
@Override
mergeFromback to summary
public SourceContext.Builder mergeFrom(SourceContext other)
mergeFromback to summary
public SourceContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException

Overrides com.google.protobuf.AbstractMessage.Builder.mergeFrom.

Implements com.google.protobuf.Message.Builder.mergeFrom, com.google.protobuf.MessageLite.Builder.mergeFrom.

Doc from com.google.protobuf.MessageLite.Builder.mergeFrom.

Like Builder#mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered in extensionRegistry. Extensions not in the registry will be treated as unknown fields.

Annotations
@Override
mergeUnknownFieldsback to summary
public final SourceContext.Builder mergeUnknownFields(final UnknownFieldSet unknownFields)

Overrides com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownFields.

Implements com.google.protobuf.Message.Builder.mergeUnknownFields.

Doc from com.google.protobuf.Message.Builder.mergeUnknownFields.

Merge some unknown fields into the UnknownFieldSet for this message.

Annotations
@Override
setFieldback to summary
public SourceContext.Builder setField(Descriptors.FieldDescriptor field, Object value)

Overrides com.google.protobuf.GeneratedMessageV3.Builder.setField.

Implements com.google.protobuf.Message.Builder.setField.

Doc from com.google.protobuf.Message.Builder.setField.

Sets a field to the given value. The value must be of the correct type for this field, i.e. the same type that Message#getField(Descriptors.FieldDescriptor) would return.

Annotations
@Override
setFileNameback to summary
public SourceContext.Builder setFileName(String value)
The path-qualified name of the .proto file that contained the associated
protobuf element.  For example: `"google/protobuf/source_context.proto"`.
string file_name = 1;
setFileNameBytesback to summary
public SourceContext.Builder setFileNameBytes(ByteString value)
The path-qualified name of the .proto file that contained the associated
protobuf element.  For example: `"google/protobuf/source_context.proto"`.
string file_name = 1;
setRepeatedFieldback to summary
public SourceContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

Overrides com.google.protobuf.GeneratedMessageV3.Builder.setRepeatedField.

Implements com.google.protobuf.Message.Builder.setRepeatedField.

Doc from com.google.protobuf.Message.Builder.setRepeatedField.

Sets an element of a repeated field to the given value. The value must be of the correct type for this field, i.e. the same type that Message#getRepeatedField(Descriptors.FieldDescriptor, int) would return.

Annotations
@Override
setUnknownFieldsback to summary
public final SourceContext.Builder setUnknownFields(final UnknownFieldSet unknownFields)

Overrides com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFields.

Implements com.google.protobuf.Message.Builder.setUnknownFields.

Doc from com.google.protobuf.Message.Builder.setUnknownFields.

Set the UnknownFieldSet for this message.

Annotations
@Override