Class SourceContext.Builder

All Implemented Interfaces:
MessageLite.Builder, MessageLiteOrBuilder, SourceContextOrBuilder, Cloneable
Enclosing class:
SourceContext

public static final class SourceContext.Builder extends GeneratedMessageLite.Builder<SourceContext,SourceContext.Builder> implements SourceContextOrBuilder
 `SourceContext` represents information about the source of a
 protobuf element, like the file in which it is defined.
 
Protobuf type google.protobuf.SourceContext
  • Constructor Details

    • Builder

      private Builder()
  • Method Details

    • getFileName

      public String 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;
      Specified by:
      getFileName in interface SourceContextOrBuilder
      Returns:
      The fileName.
    • getFileNameBytes

      public ByteString 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;
      Specified by:
      getFileNameBytes in interface SourceContextOrBuilder
      Returns:
      The bytes for fileName.
    • setFileName

      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;
      Parameters:
      value - The fileName to set.
      Returns:
      This builder for chaining.
    • clearFileName

      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;
      Returns:
      This builder for chaining.
    • setFileNameBytes

      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;
      Parameters:
      value - The bytes for fileName to set.
      Returns:
      This builder for chaining.