com.google.apphosting.base.protos.SourcePb Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: source.proto
package com.google.apphosting.base.protos;
public final class SourcePb {
private SourcePb() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface SourceLocationOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.SourceLocation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Source file. It doesn't need to be fully qualified, since once the app is
* built and running in the GAE sandbox the location no longer maps directly
* to its location in the source repository. Heuristics will be needed to
* clean up the path and search for the fully-qualified path.
*
*
* optional string file = 1;
* @return Whether the file field is set.
*/
boolean hasFile();
/**
*
* Source file. It doesn't need to be fully qualified, since once the app is
* built and running in the GAE sandbox the location no longer maps directly
* to its location in the source repository. Heuristics will be needed to
* clean up the path and search for the fully-qualified path.
*
*
* optional string file = 1;
* @return The file.
*/
java.lang.String getFile();
/**
*
* Source file. It doesn't need to be fully qualified, since once the app is
* built and running in the GAE sandbox the location no longer maps directly
* to its location in the source repository. Heuristics will be needed to
* clean up the path and search for the fully-qualified path.
*
*
* optional string file = 1;
* @return The bytes for file.
*/
com.google.protobuf.ByteString
getFileBytes();
/**
*
* Line within the source file.
*
*
* optional int64 line = 2;
* @return Whether the line field is set.
*/
boolean hasLine();
/**
*
* Line within the source file.
*
*
* optional int64 line = 2;
* @return The line.
*/
long getLine();
/**
*
* Human-readable name of the function or method being invoked, with optional
* context such as the class or package name, for use in contexts such as the
* logs viewer where file:line number is less meaningful. This may vary by
* language, for example:
* in Java: qual.if.ied.Class.method
* in Go: dir/package.func
* in Python: function
* ...
*
*
* optional string function_name = 3;
* @return Whether the functionName field is set.
*/
boolean hasFunctionName();
/**
*
* Human-readable name of the function or method being invoked, with optional
* context such as the class or package name, for use in contexts such as the
* logs viewer where file:line number is less meaningful. This may vary by
* language, for example:
* in Java: qual.if.ied.Class.method
* in Go: dir/package.func
* in Python: function
* ...
*
*
* optional string function_name = 3;
* @return The functionName.
*/
java.lang.String getFunctionName();
/**
*
* Human-readable name of the function or method being invoked, with optional
* context such as the class or package name, for use in contexts such as the
* logs viewer where file:line number is less meaningful. This may vary by
* language, for example:
* in Java: qual.if.ied.Class.method
* in Go: dir/package.func
* in Python: function
* ...
*
*
* optional string function_name = 3;
* @return The bytes for functionName.
*/
com.google.protobuf.ByteString
getFunctionNameBytes();
}
/**
*
* This one of two master versions of this protocol message.
* proto2: apphosting/api/source.proto
* proto3: apphosting/api/oneplatform/logservice/source.proto
* Other versions appear in:
* google/appengine/logging/v1/request_log.proto
*
*
* Protobuf type {@code java.apphosting.SourceLocation}
*/
public static final class SourceLocation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.SourceLocation)
SourceLocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use SourceLocation.newBuilder() to construct.
private SourceLocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SourceLocation() {
file_ = "";
functionName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SourceLocation();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.SourcePb.internal_static_java_apphosting_SourceLocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.SourcePb.internal_static_java_apphosting_SourceLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.SourcePb.SourceLocation.class, com.google.apphosting.base.protos.SourcePb.SourceLocation.Builder.class);
}
private int bitField0_;
public static final int FILE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object file_ = "";
/**
*
* Source file. It doesn't need to be fully qualified, since once the app is
* built and running in the GAE sandbox the location no longer maps directly
* to its location in the source repository. Heuristics will be needed to
* clean up the path and search for the fully-qualified path.
*
*
* optional string file = 1;
* @return Whether the file field is set.
*/
@java.lang.Override
public boolean hasFile() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Source file. It doesn't need to be fully qualified, since once the app is
* built and running in the GAE sandbox the location no longer maps directly
* to its location in the source repository. Heuristics will be needed to
* clean up the path and search for the fully-qualified path.
*
*
* optional string file = 1;
* @return The file.
*/
@java.lang.Override
public java.lang.String getFile() {
java.lang.Object ref = file_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
file_ = s;
}
return s;
}
}
/**
*
* Source file. It doesn't need to be fully qualified, since once the app is
* built and running in the GAE sandbox the location no longer maps directly
* to its location in the source repository. Heuristics will be needed to
* clean up the path and search for the fully-qualified path.
*
*
* optional string file = 1;
* @return The bytes for file.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFileBytes() {
java.lang.Object ref = file_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
file_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LINE_FIELD_NUMBER = 2;
private long line_ = 0L;
/**
*
* Line within the source file.
*
*
* optional int64 line = 2;
* @return Whether the line field is set.
*/
@java.lang.Override
public boolean hasLine() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Line within the source file.
*
*
* optional int64 line = 2;
* @return The line.
*/
@java.lang.Override
public long getLine() {
return line_;
}
public static final int FUNCTION_NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object functionName_ = "";
/**
*
* Human-readable name of the function or method being invoked, with optional
* context such as the class or package name, for use in contexts such as the
* logs viewer where file:line number is less meaningful. This may vary by
* language, for example:
* in Java: qual.if.ied.Class.method
* in Go: dir/package.func
* in Python: function
* ...
*
*
* optional string function_name = 3;
* @return Whether the functionName field is set.
*/
@java.lang.Override
public boolean hasFunctionName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Human-readable name of the function or method being invoked, with optional
* context such as the class or package name, for use in contexts such as the
* logs viewer where file:line number is less meaningful. This may vary by
* language, for example:
* in Java: qual.if.ied.Class.method
* in Go: dir/package.func
* in Python: function
* ...
*
*
* optional string function_name = 3;
* @return The functionName.
*/
@java.lang.Override
public java.lang.String getFunctionName() {
java.lang.Object ref = functionName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
functionName_ = s;
}
return s;
}
}
/**
*
* Human-readable name of the function or method being invoked, with optional
* context such as the class or package name, for use in contexts such as the
* logs viewer where file:line number is less meaningful. This may vary by
* language, for example:
* in Java: qual.if.ied.Class.method
* in Go: dir/package.func
* in Python: function
* ...
*
*
* optional string function_name = 3;
* @return The bytes for functionName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFunctionNameBytes() {
java.lang.Object ref = functionName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
functionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, file_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, line_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, functionName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, file_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, line_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, functionName_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.apphosting.base.protos.SourcePb.SourceLocation)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.SourcePb.SourceLocation other = (com.google.apphosting.base.protos.SourcePb.SourceLocation) obj;
if (hasFile() != other.hasFile()) return false;
if (hasFile()) {
if (!getFile()
.equals(other.getFile())) return false;
}
if (hasLine() != other.hasLine()) return false;
if (hasLine()) {
if (getLine()
!= other.getLine()) return false;
}
if (hasFunctionName() != other.hasFunctionName()) return false;
if (hasFunctionName()) {
if (!getFunctionName()
.equals(other.getFunctionName())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasFile()) {
hash = (37 * hash) + FILE_FIELD_NUMBER;
hash = (53 * hash) + getFile().hashCode();
}
if (hasLine()) {
hash = (37 * hash) + LINE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLine());
}
if (hasFunctionName()) {
hash = (37 * hash) + FUNCTION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFunctionName().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.apphosting.base.protos.SourcePb.SourceLocation prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This one of two master versions of this protocol message.
* proto2: apphosting/api/source.proto
* proto3: apphosting/api/oneplatform/logservice/source.proto
* Other versions appear in:
* google/appengine/logging/v1/request_log.proto
*
*
* Protobuf type {@code java.apphosting.SourceLocation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.SourceLocation)
com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.SourcePb.internal_static_java_apphosting_SourceLocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.SourcePb.internal_static_java_apphosting_SourceLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.SourcePb.SourceLocation.class, com.google.apphosting.base.protos.SourcePb.SourceLocation.Builder.class);
}
// Construct using com.google.apphosting.base.protos.SourcePb.SourceLocation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
file_ = "";
line_ = 0L;
functionName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.SourcePb.internal_static_java_apphosting_SourceLocation_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.SourcePb.SourceLocation getDefaultInstanceForType() {
return com.google.apphosting.base.protos.SourcePb.SourceLocation.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.SourcePb.SourceLocation build() {
com.google.apphosting.base.protos.SourcePb.SourceLocation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.SourcePb.SourceLocation buildPartial() {
com.google.apphosting.base.protos.SourcePb.SourceLocation result = new com.google.apphosting.base.protos.SourcePb.SourceLocation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.SourcePb.SourceLocation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.file_ = file_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.line_ = line_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.functionName_ = functionName_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.SourcePb.SourceLocation) {
return mergeFrom((com.google.apphosting.base.protos.SourcePb.SourceLocation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.SourcePb.SourceLocation other) {
if (other == com.google.apphosting.base.protos.SourcePb.SourceLocation.getDefaultInstance()) return this;
if (other.hasFile()) {
file_ = other.file_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasLine()) {
setLine(other.getLine());
}
if (other.hasFunctionName()) {
functionName_ = other.functionName_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
file_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
line_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
functionName_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object file_ = "";
/**
*
* Source file. It doesn't need to be fully qualified, since once the app is
* built and running in the GAE sandbox the location no longer maps directly
* to its location in the source repository. Heuristics will be needed to
* clean up the path and search for the fully-qualified path.
*
*
* optional string file = 1;
* @return Whether the file field is set.
*/
public boolean hasFile() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Source file. It doesn't need to be fully qualified, since once the app is
* built and running in the GAE sandbox the location no longer maps directly
* to its location in the source repository. Heuristics will be needed to
* clean up the path and search for the fully-qualified path.
*
*
* optional string file = 1;
* @return The file.
*/
public java.lang.String getFile() {
java.lang.Object ref = file_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
file_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Source file. It doesn't need to be fully qualified, since once the app is
* built and running in the GAE sandbox the location no longer maps directly
* to its location in the source repository. Heuristics will be needed to
* clean up the path and search for the fully-qualified path.
*
*
* optional string file = 1;
* @return The bytes for file.
*/
public com.google.protobuf.ByteString
getFileBytes() {
java.lang.Object ref = file_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
file_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Source file. It doesn't need to be fully qualified, since once the app is
* built and running in the GAE sandbox the location no longer maps directly
* to its location in the source repository. Heuristics will be needed to
* clean up the path and search for the fully-qualified path.
*
*
* optional string file = 1;
* @param value The file to set.
* @return This builder for chaining.
*/
public Builder setFile(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
file_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Source file. It doesn't need to be fully qualified, since once the app is
* built and running in the GAE sandbox the location no longer maps directly
* to its location in the source repository. Heuristics will be needed to
* clean up the path and search for the fully-qualified path.
*
*
* optional string file = 1;
* @return This builder for chaining.
*/
public Builder clearFile() {
file_ = getDefaultInstance().getFile();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Source file. It doesn't need to be fully qualified, since once the app is
* built and running in the GAE sandbox the location no longer maps directly
* to its location in the source repository. Heuristics will be needed to
* clean up the path and search for the fully-qualified path.
*
*
* optional string file = 1;
* @param value The bytes for file to set.
* @return This builder for chaining.
*/
public Builder setFileBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
file_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long line_ ;
/**
*
* Line within the source file.
*
*
* optional int64 line = 2;
* @return Whether the line field is set.
*/
@java.lang.Override
public boolean hasLine() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Line within the source file.
*
*
* optional int64 line = 2;
* @return The line.
*/
@java.lang.Override
public long getLine() {
return line_;
}
/**
*
* Line within the source file.
*
*
* optional int64 line = 2;
* @param value The line to set.
* @return This builder for chaining.
*/
public Builder setLine(long value) {
line_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Line within the source file.
*
*
* optional int64 line = 2;
* @return This builder for chaining.
*/
public Builder clearLine() {
bitField0_ = (bitField0_ & ~0x00000002);
line_ = 0L;
onChanged();
return this;
}
private java.lang.Object functionName_ = "";
/**
*
* Human-readable name of the function or method being invoked, with optional
* context such as the class or package name, for use in contexts such as the
* logs viewer where file:line number is less meaningful. This may vary by
* language, for example:
* in Java: qual.if.ied.Class.method
* in Go: dir/package.func
* in Python: function
* ...
*
*
* optional string function_name = 3;
* @return Whether the functionName field is set.
*/
public boolean hasFunctionName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Human-readable name of the function or method being invoked, with optional
* context such as the class or package name, for use in contexts such as the
* logs viewer where file:line number is less meaningful. This may vary by
* language, for example:
* in Java: qual.if.ied.Class.method
* in Go: dir/package.func
* in Python: function
* ...
*
*
* optional string function_name = 3;
* @return The functionName.
*/
public java.lang.String getFunctionName() {
java.lang.Object ref = functionName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
functionName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Human-readable name of the function or method being invoked, with optional
* context such as the class or package name, for use in contexts such as the
* logs viewer where file:line number is less meaningful. This may vary by
* language, for example:
* in Java: qual.if.ied.Class.method
* in Go: dir/package.func
* in Python: function
* ...
*
*
* optional string function_name = 3;
* @return The bytes for functionName.
*/
public com.google.protobuf.ByteString
getFunctionNameBytes() {
java.lang.Object ref = functionName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
functionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Human-readable name of the function or method being invoked, with optional
* context such as the class or package name, for use in contexts such as the
* logs viewer where file:line number is less meaningful. This may vary by
* language, for example:
* in Java: qual.if.ied.Class.method
* in Go: dir/package.func
* in Python: function
* ...
*
*
* optional string function_name = 3;
* @param value The functionName to set.
* @return This builder for chaining.
*/
public Builder setFunctionName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
functionName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Human-readable name of the function or method being invoked, with optional
* context such as the class or package name, for use in contexts such as the
* logs viewer where file:line number is less meaningful. This may vary by
* language, for example:
* in Java: qual.if.ied.Class.method
* in Go: dir/package.func
* in Python: function
* ...
*
*
* optional string function_name = 3;
* @return This builder for chaining.
*/
public Builder clearFunctionName() {
functionName_ = getDefaultInstance().getFunctionName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Human-readable name of the function or method being invoked, with optional
* context such as the class or package name, for use in contexts such as the
* logs viewer where file:line number is less meaningful. This may vary by
* language, for example:
* in Java: qual.if.ied.Class.method
* in Go: dir/package.func
* in Python: function
* ...
*
*
* optional string function_name = 3;
* @param value The bytes for functionName to set.
* @return This builder for chaining.
*/
public Builder setFunctionNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
functionName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.SourceLocation)
}
// @@protoc_insertion_point(class_scope:java.apphosting.SourceLocation)
private static final com.google.apphosting.base.protos.SourcePb.SourceLocation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.SourcePb.SourceLocation();
}
public static com.google.apphosting.base.protos.SourcePb.SourceLocation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SourceLocation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.SourcePb.SourceLocation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_SourceLocation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_SourceLocation_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\014source.proto\022\017java.apphosting\"C\n\016Sourc" +
"eLocation\022\014\n\004file\030\001 \001(\t\022\014\n\004line\030\002 \001(\003\022\025\n" +
"\rfunction_name\030\003 \001(\tB0\n!com.google.appho" +
"sting.base.protosB\010SourcePb\370\001\001"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_java_apphosting_SourceLocation_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_java_apphosting_SourceLocation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_SourceLocation_descriptor,
new java.lang.String[] { "File", "Line", "FunctionName", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy