Class LogEntrySourceLocation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LogEntrySourceLocation.Builder>
com.google.logging.v2.LogEntrySourceLocation.Builder
All Implemented Interfaces:
LogEntrySourceLocationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LogEntrySourceLocation

public static final class LogEntrySourceLocation.Builder extends com.google.protobuf.GeneratedMessage.Builder<LogEntrySourceLocation.Builder> implements LogEntrySourceLocationOrBuilder
 Additional information about the source code location that produced the log
 entry.
 
Protobuf type google.logging.v2.LogEntrySourceLocation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<LogEntrySourceLocation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<LogEntrySourceLocation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<LogEntrySourceLocation.Builder>
    • getDefaultInstanceForType

      public LogEntrySourceLocation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public LogEntrySourceLocation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public LogEntrySourceLocation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public LogEntrySourceLocation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogEntrySourceLocation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<LogEntrySourceLocation.Builder>
    • mergeFrom

      public LogEntrySourceLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogEntrySourceLocation.Builder>
      Throws:
      IOException
    • getFile

      public String getFile()
       Optional. Source file name. Depending on the runtime environment, this
       might be a simple name or a fully-qualified name.
       
      string file = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFile in interface LogEntrySourceLocationOrBuilder
      Returns:
      The file.
    • getFileBytes

      public com.google.protobuf.ByteString getFileBytes()
       Optional. Source file name. Depending on the runtime environment, this
       might be a simple name or a fully-qualified name.
       
      string file = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileBytes in interface LogEntrySourceLocationOrBuilder
      Returns:
      The bytes for file.
    • setFile

      public LogEntrySourceLocation.Builder setFile(String value)
       Optional. Source file name. Depending on the runtime environment, this
       might be a simple name or a fully-qualified name.
       
      string file = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The file to set.
      Returns:
      This builder for chaining.
    • clearFile

      public LogEntrySourceLocation.Builder clearFile()
       Optional. Source file name. Depending on the runtime environment, this
       might be a simple name or a fully-qualified name.
       
      string file = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFileBytes

      public LogEntrySourceLocation.Builder setFileBytes(com.google.protobuf.ByteString value)
       Optional. Source file name. Depending on the runtime environment, this
       might be a simple name or a fully-qualified name.
       
      string file = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for file to set.
      Returns:
      This builder for chaining.
    • getLine

      public long getLine()
       Optional. Line within the source file. 1-based; 0 indicates no line number
       available.
       
      int64 line = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLine in interface LogEntrySourceLocationOrBuilder
      Returns:
      The line.
    • setLine

      public LogEntrySourceLocation.Builder setLine(long value)
       Optional. Line within the source file. 1-based; 0 indicates no line number
       available.
       
      int64 line = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The line to set.
      Returns:
      This builder for chaining.
    • clearLine

      public LogEntrySourceLocation.Builder clearLine()
       Optional. Line within the source file. 1-based; 0 indicates no line number
       available.
       
      int64 line = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getFunction

      public String getFunction()
       Optional. Human-readable name of the function or method being invoked, with
       optional context such as the class or package name. This information may be
       used in contexts such as the logs viewer, where a file and line number are
       less meaningful. The format can vary by language. For example:
       `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`
       (Python).
       
      string function = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFunction in interface LogEntrySourceLocationOrBuilder
      Returns:
      The function.
    • getFunctionBytes

      public com.google.protobuf.ByteString getFunctionBytes()
       Optional. Human-readable name of the function or method being invoked, with
       optional context such as the class or package name. This information may be
       used in contexts such as the logs viewer, where a file and line number are
       less meaningful. The format can vary by language. For example:
       `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`
       (Python).
       
      string function = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFunctionBytes in interface LogEntrySourceLocationOrBuilder
      Returns:
      The bytes for function.
    • setFunction

      public LogEntrySourceLocation.Builder setFunction(String value)
       Optional. Human-readable name of the function or method being invoked, with
       optional context such as the class or package name. This information may be
       used in contexts such as the logs viewer, where a file and line number are
       less meaningful. The format can vary by language. For example:
       `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`
       (Python).
       
      string function = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The function to set.
      Returns:
      This builder for chaining.
    • clearFunction

      public LogEntrySourceLocation.Builder clearFunction()
       Optional. Human-readable name of the function or method being invoked, with
       optional context such as the class or package name. This information may be
       used in contexts such as the logs viewer, where a file and line number are
       less meaningful. The format can vary by language. For example:
       `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`
       (Python).
       
      string function = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFunctionBytes

      public LogEntrySourceLocation.Builder setFunctionBytes(com.google.protobuf.ByteString value)
       Optional. Human-readable name of the function or method being invoked, with
       optional context such as the class or package name. This information may be
       used in contexts such as the logs viewer, where a file and line number are
       less meaningful. The format can vary by language. For example:
       `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`
       (Python).
       
      string function = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for function to set.
      Returns:
      This builder for chaining.