Class SourceLocation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
- com.google.devtools.clouderrorreporting.v1beta1.SourceLocation.Builder
-
- All Implemented Interfaces:
SourceLocationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SourceLocation
public static final class SourceLocation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder> implements SourceLocationOrBuilder
Indicates a location in the source code of the service for which errors are reported. `functionName` must be provided by the application when reporting an error, unless the error report contains a `message` with a supported exception stack trace. All fields are optional for the later case.
Protobuf typegoogle.devtools.clouderrorreporting.v1beta1.SourceLocation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceLocation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SourceLocation
build()
SourceLocation
buildPartial()
SourceLocation.Builder
clear()
SourceLocation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SourceLocation.Builder
clearFilePath()
The source code filename, which can include a truncated relative path, or a full path from a production machine.SourceLocation.Builder
clearFunctionName()
Human-readable name of a function or method.SourceLocation.Builder
clearLineNumber()
1-based.SourceLocation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SourceLocation.Builder
clone()
SourceLocation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFilePath()
The source code filename, which can include a truncated relative path, or a full path from a production machine.com.google.protobuf.ByteString
getFilePathBytes()
The source code filename, which can include a truncated relative path, or a full path from a production machine.String
getFunctionName()
Human-readable name of a function or method.com.google.protobuf.ByteString
getFunctionNameBytes()
Human-readable name of a function or method.int
getLineNumber()
1-based.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SourceLocation.Builder
mergeFrom(SourceLocation other)
SourceLocation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SourceLocation.Builder
mergeFrom(com.google.protobuf.Message other)
SourceLocation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SourceLocation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SourceLocation.Builder
setFilePath(String value)
The source code filename, which can include a truncated relative path, or a full path from a production machine.SourceLocation.Builder
setFilePathBytes(com.google.protobuf.ByteString value)
The source code filename, which can include a truncated relative path, or a full path from a production machine.SourceLocation.Builder
setFunctionName(String value)
Human-readable name of a function or method.SourceLocation.Builder
setFunctionNameBytes(com.google.protobuf.ByteString value)
Human-readable name of a function or method.SourceLocation.Builder
setLineNumber(int value)
1-based.SourceLocation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SourceLocation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
clear
public SourceLocation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
getDefaultInstanceForType
public SourceLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SourceLocation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SourceLocation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SourceLocation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
setField
public SourceLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
clearField
public SourceLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
clearOneof
public SourceLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
setRepeatedField
public SourceLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
addRepeatedField
public SourceLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
mergeFrom
public SourceLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SourceLocation.Builder>
-
mergeFrom
public SourceLocation.Builder mergeFrom(SourceLocation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
mergeFrom
public SourceLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SourceLocation.Builder>
- Throws:
IOException
-
getFilePath
public String getFilePath()
The source code filename, which can include a truncated relative path, or a full path from a production machine.
string file_path = 1;
- Specified by:
getFilePath
in interfaceSourceLocationOrBuilder
- Returns:
- The filePath.
-
getFilePathBytes
public com.google.protobuf.ByteString getFilePathBytes()
The source code filename, which can include a truncated relative path, or a full path from a production machine.
string file_path = 1;
- Specified by:
getFilePathBytes
in interfaceSourceLocationOrBuilder
- Returns:
- The bytes for filePath.
-
setFilePath
public SourceLocation.Builder setFilePath(String value)
The source code filename, which can include a truncated relative path, or a full path from a production machine.
string file_path = 1;
- Parameters:
value
- The filePath to set.- Returns:
- This builder for chaining.
-
clearFilePath
public SourceLocation.Builder clearFilePath()
The source code filename, which can include a truncated relative path, or a full path from a production machine.
string file_path = 1;
- Returns:
- This builder for chaining.
-
setFilePathBytes
public SourceLocation.Builder setFilePathBytes(com.google.protobuf.ByteString value)
The source code filename, which can include a truncated relative path, or a full path from a production machine.
string file_path = 1;
- Parameters:
value
- The bytes for filePath to set.- Returns:
- This builder for chaining.
-
getLineNumber
public int getLineNumber()
1-based. 0 indicates that the line number is unknown.
int32 line_number = 2;
- Specified by:
getLineNumber
in interfaceSourceLocationOrBuilder
- Returns:
- The lineNumber.
-
setLineNumber
public SourceLocation.Builder setLineNumber(int value)
1-based. 0 indicates that the line number is unknown.
int32 line_number = 2;
- Parameters:
value
- The lineNumber to set.- Returns:
- This builder for chaining.
-
clearLineNumber
public SourceLocation.Builder clearLineNumber()
1-based. 0 indicates that the line number is unknown.
int32 line_number = 2;
- Returns:
- This builder for chaining.
-
getFunctionName
public String getFunctionName()
Human-readable name of a function or method. The value can include optional context like the class or package name. For example, `my.package.MyClass.method` in case of Java.
string function_name = 4;
- Specified by:
getFunctionName
in interfaceSourceLocationOrBuilder
- Returns:
- The functionName.
-
getFunctionNameBytes
public com.google.protobuf.ByteString getFunctionNameBytes()
Human-readable name of a function or method. The value can include optional context like the class or package name. For example, `my.package.MyClass.method` in case of Java.
string function_name = 4;
- Specified by:
getFunctionNameBytes
in interfaceSourceLocationOrBuilder
- Returns:
- The bytes for functionName.
-
setFunctionName
public SourceLocation.Builder setFunctionName(String value)
Human-readable name of a function or method. The value can include optional context like the class or package name. For example, `my.package.MyClass.method` in case of Java.
string function_name = 4;
- Parameters:
value
- The functionName to set.- Returns:
- This builder for chaining.
-
clearFunctionName
public SourceLocation.Builder clearFunctionName()
Human-readable name of a function or method. The value can include optional context like the class or package name. For example, `my.package.MyClass.method` in case of Java.
string function_name = 4;
- Returns:
- This builder for chaining.
-
setFunctionNameBytes
public SourceLocation.Builder setFunctionNameBytes(com.google.protobuf.ByteString value)
Human-readable name of a function or method. The value can include optional context like the class or package name. For example, `my.package.MyClass.method` in case of Java.
string function_name = 4;
- Parameters:
value
- The bytes for functionName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SourceLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
mergeUnknownFields
public final SourceLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceLocation.Builder>
-
-