All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.apphosting.base.protos.AppLogsPb Maven / Gradle / Ivy

There is a newer version: 2.0.31
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: app_logs.proto

package com.google.apphosting.base.protos;

public final class AppLogsPb {
  private AppLogsPb() {}
  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 AppLogLineOrBuilder extends
      // @@protoc_insertion_point(interface_extends:java.apphosting.AppLogLine)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * unix timestamp * 1e6 + microseconds
     * 
* * required int64 timestamp_usec = 1; * @return Whether the timestampUsec field is set. */ boolean hasTimestampUsec(); /** *
     * unix timestamp * 1e6 + microseconds
     * 
* * required int64 timestamp_usec = 1; * @return The timestampUsec. */ long getTimestampUsec(); /** *
     * Application log level.  Value between 0 and 4.  There is no name
     * association with these levels as they are different from runtime to
     * runtime.  Each runtime will need to map its log levels to this field.
     * 
* * required int64 level = 2; * @return Whether the level field is set. */ boolean hasLevel(); /** *
     * Application log level.  Value between 0 and 4.  There is no name
     * association with these levels as they are different from runtime to
     * runtime.  Each runtime will need to map its log levels to this field.
     * 
* * required int64 level = 2; * @return The level. */ long getLevel(); /** *
     * Message generated by application with details.
     * 
* * required string message = 3; * @return Whether the message field is set. */ boolean hasMessage(); /** *
     * Message generated by application with details.
     * 
* * required string message = 3; * @return The message. */ java.lang.String getMessage(); /** *
     * Message generated by application with details.
     * 
* * required string message = 3; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** *
     * Line of code that generated this log message.
     * 
* * optional .java.apphosting.SourceLocation source_location = 4; * @return Whether the sourceLocation field is set. */ boolean hasSourceLocation(); /** *
     * Line of code that generated this log message.
     * 
* * optional .java.apphosting.SourceLocation source_location = 4; * @return The sourceLocation. */ com.google.apphosting.base.protos.SourcePb.SourceLocation getSourceLocation(); /** *
     * Line of code that generated this log message.
     * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder getSourceLocationOrBuilder(); } /** *
   * TODO: Remove AppLogLine/Group in favor of those in log_service.proto.
   * 
* * Protobuf type {@code java.apphosting.AppLogLine} */ public static final class AppLogLine extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.AppLogLine) AppLogLineOrBuilder { private static final long serialVersionUID = 0L; // Use AppLogLine.newBuilder() to construct. private AppLogLine(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AppLogLine() { message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AppLogLine(); } @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.AppLogsPb.internal_static_java_apphosting_AppLogLine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogLine_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.AppLogsPb.AppLogLine.class, com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder.class); } private int bitField0_; public static final int TIMESTAMP_USEC_FIELD_NUMBER = 1; private long timestampUsec_ = 0L; /** *
     * unix timestamp * 1e6 + microseconds
     * 
* * required int64 timestamp_usec = 1; * @return Whether the timestampUsec field is set. */ @java.lang.Override public boolean hasTimestampUsec() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * unix timestamp * 1e6 + microseconds
     * 
* * required int64 timestamp_usec = 1; * @return The timestampUsec. */ @java.lang.Override public long getTimestampUsec() { return timestampUsec_; } public static final int LEVEL_FIELD_NUMBER = 2; private long level_ = 0L; /** *
     * Application log level.  Value between 0 and 4.  There is no name
     * association with these levels as they are different from runtime to
     * runtime.  Each runtime will need to map its log levels to this field.
     * 
* * required int64 level = 2; * @return Whether the level field is set. */ @java.lang.Override public boolean hasLevel() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Application log level.  Value between 0 and 4.  There is no name
     * association with these levels as they are different from runtime to
     * runtime.  Each runtime will need to map its log levels to this field.
     * 
* * required int64 level = 2; * @return The level. */ @java.lang.Override public long getLevel() { return level_; } public static final int MESSAGE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** *
     * Message generated by application with details.
     * 
* * required string message = 3; * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Message generated by application with details.
     * 
* * required string message = 3; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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()) { message_ = s; } return s; } } /** *
     * Message generated by application with details.
     * 
* * required string message = 3; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_LOCATION_FIELD_NUMBER = 4; private com.google.apphosting.base.protos.SourcePb.SourceLocation sourceLocation_; /** *
     * Line of code that generated this log message.
     * 
* * optional .java.apphosting.SourceLocation source_location = 4; * @return Whether the sourceLocation field is set. */ @java.lang.Override public boolean hasSourceLocation() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Line of code that generated this log message.
     * 
* * optional .java.apphosting.SourceLocation source_location = 4; * @return The sourceLocation. */ @java.lang.Override public com.google.apphosting.base.protos.SourcePb.SourceLocation getSourceLocation() { return sourceLocation_ == null ? com.google.apphosting.base.protos.SourcePb.SourceLocation.getDefaultInstance() : sourceLocation_; } /** *
     * Line of code that generated this log message.
     * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ @java.lang.Override public com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder getSourceLocationOrBuilder() { return sourceLocation_ == null ? com.google.apphosting.base.protos.SourcePb.SourceLocation.getDefaultInstance() : sourceLocation_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasTimestampUsec()) { memoizedIsInitialized = 0; return false; } if (!hasLevel()) { memoizedIsInitialized = 0; return false; } if (!hasMessage()) { memoizedIsInitialized = 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)) { output.writeInt64(1, timestampUsec_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, level_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getSourceLocation()); } 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.CodedOutputStream .computeInt64Size(1, timestampUsec_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, level_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSourceLocation()); } 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.AppLogsPb.AppLogLine)) { return super.equals(obj); } com.google.apphosting.base.protos.AppLogsPb.AppLogLine other = (com.google.apphosting.base.protos.AppLogsPb.AppLogLine) obj; if (hasTimestampUsec() != other.hasTimestampUsec()) return false; if (hasTimestampUsec()) { if (getTimestampUsec() != other.getTimestampUsec()) return false; } if (hasLevel() != other.hasLevel()) return false; if (hasLevel()) { if (getLevel() != other.getLevel()) return false; } if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { if (!getMessage() .equals(other.getMessage())) return false; } if (hasSourceLocation() != other.hasSourceLocation()) return false; if (hasSourceLocation()) { if (!getSourceLocation() .equals(other.getSourceLocation())) 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 (hasTimestampUsec()) { hash = (37 * hash) + TIMESTAMP_USEC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestampUsec()); } if (hasLevel()) { hash = (37 * hash) + LEVEL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLevel()); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } if (hasSourceLocation()) { hash = (37 * hash) + SOURCE_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getSourceLocation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.base.protos.AppLogsPb.AppLogLine parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogLine 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.AppLogsPb.AppLogLine parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogLine 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.AppLogsPb.AppLogLine parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogLine 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.AppLogsPb.AppLogLine parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogLine 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.AppLogsPb.AppLogLine parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogLine 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.AppLogsPb.AppLogLine 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.AppLogsPb.AppLogLine 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.AppLogsPb.AppLogLine 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; } /** *
     * TODO: Remove AppLogLine/Group in favor of those in log_service.proto.
     * 
* * Protobuf type {@code java.apphosting.AppLogLine} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.AppLogLine) com.google.apphosting.base.protos.AppLogsPb.AppLogLineOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogLine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogLine_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.AppLogsPb.AppLogLine.class, com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder.class); } // Construct using com.google.apphosting.base.protos.AppLogsPb.AppLogLine.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSourceLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; timestampUsec_ = 0L; level_ = 0L; message_ = ""; sourceLocation_ = null; if (sourceLocationBuilder_ != null) { sourceLocationBuilder_.dispose(); sourceLocationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogLine_descriptor; } @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogLine getDefaultInstanceForType() { return com.google.apphosting.base.protos.AppLogsPb.AppLogLine.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogLine build() { com.google.apphosting.base.protos.AppLogsPb.AppLogLine result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogLine buildPartial() { com.google.apphosting.base.protos.AppLogsPb.AppLogLine result = new com.google.apphosting.base.protos.AppLogsPb.AppLogLine(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.base.protos.AppLogsPb.AppLogLine result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.timestampUsec_ = timestampUsec_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.level_ = level_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.message_ = message_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.sourceLocation_ = sourceLocationBuilder_ == null ? sourceLocation_ : sourceLocationBuilder_.build(); to_bitField0_ |= 0x00000008; } 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.AppLogsPb.AppLogLine) { return mergeFrom((com.google.apphosting.base.protos.AppLogsPb.AppLogLine)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.base.protos.AppLogsPb.AppLogLine other) { if (other == com.google.apphosting.base.protos.AppLogsPb.AppLogLine.getDefaultInstance()) return this; if (other.hasTimestampUsec()) { setTimestampUsec(other.getTimestampUsec()); } if (other.hasLevel()) { setLevel(other.getLevel()); } if (other.hasMessage()) { message_ = other.message_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasSourceLocation()) { mergeSourceLocation(other.getSourceLocation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasTimestampUsec()) { return false; } if (!hasLevel()) { return false; } if (!hasMessage()) { return false; } 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 8: { timestampUsec_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { level_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { message_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getSourceLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 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 long timestampUsec_ ; /** *
       * unix timestamp * 1e6 + microseconds
       * 
* * required int64 timestamp_usec = 1; * @return Whether the timestampUsec field is set. */ @java.lang.Override public boolean hasTimestampUsec() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * unix timestamp * 1e6 + microseconds
       * 
* * required int64 timestamp_usec = 1; * @return The timestampUsec. */ @java.lang.Override public long getTimestampUsec() { return timestampUsec_; } /** *
       * unix timestamp * 1e6 + microseconds
       * 
* * required int64 timestamp_usec = 1; * @param value The timestampUsec to set. * @return This builder for chaining. */ public Builder setTimestampUsec(long value) { timestampUsec_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * unix timestamp * 1e6 + microseconds
       * 
* * required int64 timestamp_usec = 1; * @return This builder for chaining. */ public Builder clearTimestampUsec() { bitField0_ = (bitField0_ & ~0x00000001); timestampUsec_ = 0L; onChanged(); return this; } private long level_ ; /** *
       * Application log level.  Value between 0 and 4.  There is no name
       * association with these levels as they are different from runtime to
       * runtime.  Each runtime will need to map its log levels to this field.
       * 
* * required int64 level = 2; * @return Whether the level field is set. */ @java.lang.Override public boolean hasLevel() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Application log level.  Value between 0 and 4.  There is no name
       * association with these levels as they are different from runtime to
       * runtime.  Each runtime will need to map its log levels to this field.
       * 
* * required int64 level = 2; * @return The level. */ @java.lang.Override public long getLevel() { return level_; } /** *
       * Application log level.  Value between 0 and 4.  There is no name
       * association with these levels as they are different from runtime to
       * runtime.  Each runtime will need to map its log levels to this field.
       * 
* * required int64 level = 2; * @param value The level to set. * @return This builder for chaining. */ public Builder setLevel(long value) { level_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Application log level.  Value between 0 and 4.  There is no name
       * association with these levels as they are different from runtime to
       * runtime.  Each runtime will need to map its log levels to this field.
       * 
* * required int64 level = 2; * @return This builder for chaining. */ public Builder clearLevel() { bitField0_ = (bitField0_ & ~0x00000002); level_ = 0L; onChanged(); return this; } private java.lang.Object message_ = ""; /** *
       * Message generated by application with details.
       * 
* * required string message = 3; * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Message generated by application with details.
       * 
* * required string message = 3; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; 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()) { message_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Message generated by application with details.
       * 
* * required string message = 3; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Message generated by application with details.
       * 
* * required string message = 3; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Message generated by application with details.
       * 
* * required string message = 3; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Message generated by application with details.
       * 
* * required string message = 3; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.apphosting.base.protos.SourcePb.SourceLocation sourceLocation_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.base.protos.SourcePb.SourceLocation, com.google.apphosting.base.protos.SourcePb.SourceLocation.Builder, com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder> sourceLocationBuilder_; /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; * @return Whether the sourceLocation field is set. */ public boolean hasSourceLocation() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; * @return The sourceLocation. */ public com.google.apphosting.base.protos.SourcePb.SourceLocation getSourceLocation() { if (sourceLocationBuilder_ == null) { return sourceLocation_ == null ? com.google.apphosting.base.protos.SourcePb.SourceLocation.getDefaultInstance() : sourceLocation_; } else { return sourceLocationBuilder_.getMessage(); } } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ public Builder setSourceLocation(com.google.apphosting.base.protos.SourcePb.SourceLocation value) { if (sourceLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sourceLocation_ = value; } else { sourceLocationBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ public Builder setSourceLocation( com.google.apphosting.base.protos.SourcePb.SourceLocation.Builder builderForValue) { if (sourceLocationBuilder_ == null) { sourceLocation_ = builderForValue.build(); } else { sourceLocationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ public Builder mergeSourceLocation(com.google.apphosting.base.protos.SourcePb.SourceLocation value) { if (sourceLocationBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && sourceLocation_ != null && sourceLocation_ != com.google.apphosting.base.protos.SourcePb.SourceLocation.getDefaultInstance()) { getSourceLocationBuilder().mergeFrom(value); } else { sourceLocation_ = value; } } else { sourceLocationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ public Builder clearSourceLocation() { bitField0_ = (bitField0_ & ~0x00000008); sourceLocation_ = null; if (sourceLocationBuilder_ != null) { sourceLocationBuilder_.dispose(); sourceLocationBuilder_ = null; } onChanged(); return this; } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ public com.google.apphosting.base.protos.SourcePb.SourceLocation.Builder getSourceLocationBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSourceLocationFieldBuilder().getBuilder(); } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ public com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder getSourceLocationOrBuilder() { if (sourceLocationBuilder_ != null) { return sourceLocationBuilder_.getMessageOrBuilder(); } else { return sourceLocation_ == null ? com.google.apphosting.base.protos.SourcePb.SourceLocation.getDefaultInstance() : sourceLocation_; } } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.base.protos.SourcePb.SourceLocation, com.google.apphosting.base.protos.SourcePb.SourceLocation.Builder, com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder> getSourceLocationFieldBuilder() { if (sourceLocationBuilder_ == null) { sourceLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.base.protos.SourcePb.SourceLocation, com.google.apphosting.base.protos.SourcePb.SourceLocation.Builder, com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder>( getSourceLocation(), getParentForChildren(), isClean()); sourceLocation_ = null; } return sourceLocationBuilder_; } @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.AppLogLine) } // @@protoc_insertion_point(class_scope:java.apphosting.AppLogLine) private static final com.google.apphosting.base.protos.AppLogsPb.AppLogLine DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.base.protos.AppLogsPb.AppLogLine(); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogLine getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AppLogLine 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.AppLogsPb.AppLogLine getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AppLogGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.AppLogGroup) com.google.protobuf.MessageOrBuilder { /** *
     * Collection of log lines associated with this request.  This field will in
     * practice always have > 0 log lines, as groups with empty log lines are not
     * stored in the applog bigtable.
     * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ java.util.List getLogLineList(); /** *
     * Collection of log lines associated with this request.  This field will in
     * practice always have > 0 log lines, as groups with empty log lines are not
     * stored in the applog bigtable.
     * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ com.google.apphosting.base.protos.AppLogsPb.AppLogLine getLogLine(int index); /** *
     * Collection of log lines associated with this request.  This field will in
     * practice always have > 0 log lines, as groups with empty log lines are not
     * stored in the applog bigtable.
     * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ int getLogLineCount(); /** *
     * Collection of log lines associated with this request.  This field will in
     * practice always have > 0 log lines, as groups with empty log lines are not
     * stored in the applog bigtable.
     * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ java.util.List getLogLineOrBuilderList(); /** *
     * Collection of log lines associated with this request.  This field will in
     * practice always have > 0 log lines, as groups with empty log lines are not
     * stored in the applog bigtable.
     * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ com.google.apphosting.base.protos.AppLogsPb.AppLogLineOrBuilder getLogLineOrBuilder( int index); } /** *
   * Application log group.  All logs in this structure belong to the same
   * request.
   * 
* * Protobuf type {@code java.apphosting.AppLogGroup} */ public static final class AppLogGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.AppLogGroup) AppLogGroupOrBuilder { private static final long serialVersionUID = 0L; // Use AppLogGroup.newBuilder() to construct. private AppLogGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AppLogGroup() { logLine_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AppLogGroup(); } @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.AppLogsPb.internal_static_java_apphosting_AppLogGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.AppLogsPb.AppLogGroup.class, com.google.apphosting.base.protos.AppLogsPb.AppLogGroup.Builder.class); } public static final int LOG_LINE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List logLine_; /** *
     * Collection of log lines associated with this request.  This field will in
     * practice always have > 0 log lines, as groups with empty log lines are not
     * stored in the applog bigtable.
     * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ @java.lang.Override public java.util.List getLogLineList() { return logLine_; } /** *
     * Collection of log lines associated with this request.  This field will in
     * practice always have > 0 log lines, as groups with empty log lines are not
     * stored in the applog bigtable.
     * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ @java.lang.Override public java.util.List getLogLineOrBuilderList() { return logLine_; } /** *
     * Collection of log lines associated with this request.  This field will in
     * practice always have > 0 log lines, as groups with empty log lines are not
     * stored in the applog bigtable.
     * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ @java.lang.Override public int getLogLineCount() { return logLine_.size(); } /** *
     * Collection of log lines associated with this request.  This field will in
     * practice always have > 0 log lines, as groups with empty log lines are not
     * stored in the applog bigtable.
     * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogLine getLogLine(int index) { return logLine_.get(index); } /** *
     * Collection of log lines associated with this request.  This field will in
     * practice always have > 0 log lines, as groups with empty log lines are not
     * stored in the applog bigtable.
     * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogLineOrBuilder getLogLineOrBuilder( int index) { return logLine_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getLogLineCount(); i++) { if (!getLogLine(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < logLine_.size(); i++) { output.writeMessage(2, logLine_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < logLine_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, logLine_.get(i)); } 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.AppLogsPb.AppLogGroup)) { return super.equals(obj); } com.google.apphosting.base.protos.AppLogsPb.AppLogGroup other = (com.google.apphosting.base.protos.AppLogsPb.AppLogGroup) obj; if (!getLogLineList() .equals(other.getLogLineList())) 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 (getLogLineCount() > 0) { hash = (37 * hash) + LOG_LINE_FIELD_NUMBER; hash = (53 * hash) + getLogLineList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.base.protos.AppLogsPb.AppLogGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogGroup 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.AppLogsPb.AppLogGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogGroup 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.AppLogsPb.AppLogGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogGroup 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.AppLogsPb.AppLogGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogGroup 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.AppLogsPb.AppLogGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogGroup 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.AppLogsPb.AppLogGroup 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.AppLogsPb.AppLogGroup 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.AppLogsPb.AppLogGroup 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; } /** *
     * Application log group.  All logs in this structure belong to the same
     * request.
     * 
* * Protobuf type {@code java.apphosting.AppLogGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.AppLogGroup) com.google.apphosting.base.protos.AppLogsPb.AppLogGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.AppLogsPb.AppLogGroup.class, com.google.apphosting.base.protos.AppLogsPb.AppLogGroup.Builder.class); } // Construct using com.google.apphosting.base.protos.AppLogsPb.AppLogGroup.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (logLineBuilder_ == null) { logLine_ = java.util.Collections.emptyList(); } else { logLine_ = null; logLineBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogGroup_descriptor; } @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogGroup getDefaultInstanceForType() { return com.google.apphosting.base.protos.AppLogsPb.AppLogGroup.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogGroup build() { com.google.apphosting.base.protos.AppLogsPb.AppLogGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogGroup buildPartial() { com.google.apphosting.base.protos.AppLogsPb.AppLogGroup result = new com.google.apphosting.base.protos.AppLogsPb.AppLogGroup(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.base.protos.AppLogsPb.AppLogGroup result) { if (logLineBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { logLine_ = java.util.Collections.unmodifiableList(logLine_); bitField0_ = (bitField0_ & ~0x00000001); } result.logLine_ = logLine_; } else { result.logLine_ = logLineBuilder_.build(); } } private void buildPartial0(com.google.apphosting.base.protos.AppLogsPb.AppLogGroup result) { int from_bitField0_ = 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.AppLogsPb.AppLogGroup) { return mergeFrom((com.google.apphosting.base.protos.AppLogsPb.AppLogGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.base.protos.AppLogsPb.AppLogGroup other) { if (other == com.google.apphosting.base.protos.AppLogsPb.AppLogGroup.getDefaultInstance()) return this; if (logLineBuilder_ == null) { if (!other.logLine_.isEmpty()) { if (logLine_.isEmpty()) { logLine_ = other.logLine_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLogLineIsMutable(); logLine_.addAll(other.logLine_); } onChanged(); } } else { if (!other.logLine_.isEmpty()) { if (logLineBuilder_.isEmpty()) { logLineBuilder_.dispose(); logLineBuilder_ = null; logLine_ = other.logLine_; bitField0_ = (bitField0_ & ~0x00000001); logLineBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLogLineFieldBuilder() : null; } else { logLineBuilder_.addAllMessages(other.logLine_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getLogLineCount(); i++) { if (!getLogLine(i).isInitialized()) { return false; } } 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 18: { com.google.apphosting.base.protos.AppLogsPb.AppLogLine m = input.readMessage( com.google.apphosting.base.protos.AppLogsPb.AppLogLine.PARSER, extensionRegistry); if (logLineBuilder_ == null) { ensureLogLineIsMutable(); logLine_.add(m); } else { logLineBuilder_.addMessage(m); } break; } // case 18 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.util.List logLine_ = java.util.Collections.emptyList(); private void ensureLogLineIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { logLine_ = new java.util.ArrayList(logLine_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.base.protos.AppLogsPb.AppLogLine, com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder, com.google.apphosting.base.protos.AppLogsPb.AppLogLineOrBuilder> logLineBuilder_; /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public java.util.List getLogLineList() { if (logLineBuilder_ == null) { return java.util.Collections.unmodifiableList(logLine_); } else { return logLineBuilder_.getMessageList(); } } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public int getLogLineCount() { if (logLineBuilder_ == null) { return logLine_.size(); } else { return logLineBuilder_.getCount(); } } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public com.google.apphosting.base.protos.AppLogsPb.AppLogLine getLogLine(int index) { if (logLineBuilder_ == null) { return logLine_.get(index); } else { return logLineBuilder_.getMessage(index); } } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public Builder setLogLine( int index, com.google.apphosting.base.protos.AppLogsPb.AppLogLine value) { if (logLineBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogLineIsMutable(); logLine_.set(index, value); onChanged(); } else { logLineBuilder_.setMessage(index, value); } return this; } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public Builder setLogLine( int index, com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder builderForValue) { if (logLineBuilder_ == null) { ensureLogLineIsMutable(); logLine_.set(index, builderForValue.build()); onChanged(); } else { logLineBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public Builder addLogLine(com.google.apphosting.base.protos.AppLogsPb.AppLogLine value) { if (logLineBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogLineIsMutable(); logLine_.add(value); onChanged(); } else { logLineBuilder_.addMessage(value); } return this; } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public Builder addLogLine( int index, com.google.apphosting.base.protos.AppLogsPb.AppLogLine value) { if (logLineBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogLineIsMutable(); logLine_.add(index, value); onChanged(); } else { logLineBuilder_.addMessage(index, value); } return this; } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public Builder addLogLine( com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder builderForValue) { if (logLineBuilder_ == null) { ensureLogLineIsMutable(); logLine_.add(builderForValue.build()); onChanged(); } else { logLineBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public Builder addLogLine( int index, com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder builderForValue) { if (logLineBuilder_ == null) { ensureLogLineIsMutable(); logLine_.add(index, builderForValue.build()); onChanged(); } else { logLineBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public Builder addAllLogLine( java.lang.Iterable values) { if (logLineBuilder_ == null) { ensureLogLineIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, logLine_); onChanged(); } else { logLineBuilder_.addAllMessages(values); } return this; } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public Builder clearLogLine() { if (logLineBuilder_ == null) { logLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { logLineBuilder_.clear(); } return this; } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public Builder removeLogLine(int index) { if (logLineBuilder_ == null) { ensureLogLineIsMutable(); logLine_.remove(index); onChanged(); } else { logLineBuilder_.remove(index); } return this; } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder getLogLineBuilder( int index) { return getLogLineFieldBuilder().getBuilder(index); } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public com.google.apphosting.base.protos.AppLogsPb.AppLogLineOrBuilder getLogLineOrBuilder( int index) { if (logLineBuilder_ == null) { return logLine_.get(index); } else { return logLineBuilder_.getMessageOrBuilder(index); } } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public java.util.List getLogLineOrBuilderList() { if (logLineBuilder_ != null) { return logLineBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(logLine_); } } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder addLogLineBuilder() { return getLogLineFieldBuilder().addBuilder( com.google.apphosting.base.protos.AppLogsPb.AppLogLine.getDefaultInstance()); } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder addLogLineBuilder( int index) { return getLogLineFieldBuilder().addBuilder( index, com.google.apphosting.base.protos.AppLogsPb.AppLogLine.getDefaultInstance()); } /** *
       * Collection of log lines associated with this request.  This field will in
       * practice always have > 0 log lines, as groups with empty log lines are not
       * stored in the applog bigtable.
       * 
* * repeated .java.apphosting.AppLogLine log_line = 2; */ public java.util.List getLogLineBuilderList() { return getLogLineFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.base.protos.AppLogsPb.AppLogLine, com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder, com.google.apphosting.base.protos.AppLogsPb.AppLogLineOrBuilder> getLogLineFieldBuilder() { if (logLineBuilder_ == null) { logLineBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.base.protos.AppLogsPb.AppLogLine, com.google.apphosting.base.protos.AppLogsPb.AppLogLine.Builder, com.google.apphosting.base.protos.AppLogsPb.AppLogLineOrBuilder>( logLine_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); logLine_ = null; } return logLineBuilder_; } @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.AppLogGroup) } // @@protoc_insertion_point(class_scope:java.apphosting.AppLogGroup) private static final com.google.apphosting.base.protos.AppLogsPb.AppLogGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.base.protos.AppLogsPb.AppLogGroup(); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogGroup getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AppLogGroup 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.AppLogsPb.AppLogGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AppLogMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.AppLogMessage) com.google.protobuf.MessageOrBuilder { /** *
     * Microseconds since the epoch.
     * 
* * optional int64 timestamp_usec = 1; * @return Whether the timestampUsec field is set. */ boolean hasTimestampUsec(); /** *
     * Microseconds since the epoch.
     * 
* * optional int64 timestamp_usec = 1; * @return The timestampUsec. */ long getTimestampUsec(); /** *
     * Message generated by application with details.
     * 
* * optional string log_message = 2; * @return Whether the logMessage field is set. */ boolean hasLogMessage(); /** *
     * Message generated by application with details.
     * 
* * optional string log_message = 2; * @return The logMessage. */ java.lang.String getLogMessage(); /** *
     * Message generated by application with details.
     * 
* * optional string log_message = 2; * @return The bytes for logMessage. */ com.google.protobuf.ByteString getLogMessageBytes(); /** *
     * Line of code that generated this log message.
     * 
* * optional .java.apphosting.SourceLocation source_location = 4; * @return Whether the sourceLocation field is set. */ boolean hasSourceLocation(); /** *
     * Line of code that generated this log message.
     * 
* * optional .java.apphosting.SourceLocation source_location = 4; * @return The sourceLocation. */ com.google.apphosting.base.protos.SourcePb.SourceLocation getSourceLocation(); /** *
     * Line of code that generated this log message.
     * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder getSourceLocationOrBuilder(); } /** *
   * Log message produced by an application, as stored in Bigtable in logs v2.
   * 
* * Protobuf type {@code java.apphosting.AppLogMessage} */ public static final class AppLogMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.AppLogMessage) AppLogMessageOrBuilder { private static final long serialVersionUID = 0L; // Use AppLogMessage.newBuilder() to construct. private AppLogMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AppLogMessage() { logMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AppLogMessage(); } @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.AppLogsPb.internal_static_java_apphosting_AppLogMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.class, com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.Builder.class); } private int bitField0_; public static final int TIMESTAMP_USEC_FIELD_NUMBER = 1; private long timestampUsec_ = 0L; /** *
     * Microseconds since the epoch.
     * 
* * optional int64 timestamp_usec = 1; * @return Whether the timestampUsec field is set. */ @java.lang.Override public boolean hasTimestampUsec() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Microseconds since the epoch.
     * 
* * optional int64 timestamp_usec = 1; * @return The timestampUsec. */ @java.lang.Override public long getTimestampUsec() { return timestampUsec_; } public static final int LOG_MESSAGE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object logMessage_ = ""; /** *
     * Message generated by application with details.
     * 
* * optional string log_message = 2; * @return Whether the logMessage field is set. */ @java.lang.Override public boolean hasLogMessage() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Message generated by application with details.
     * 
* * optional string log_message = 2; * @return The logMessage. */ @java.lang.Override public java.lang.String getLogMessage() { java.lang.Object ref = logMessage_; 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()) { logMessage_ = s; } return s; } } /** *
     * Message generated by application with details.
     * 
* * optional string log_message = 2; * @return The bytes for logMessage. */ @java.lang.Override public com.google.protobuf.ByteString getLogMessageBytes() { java.lang.Object ref = logMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_LOCATION_FIELD_NUMBER = 4; private com.google.apphosting.base.protos.SourcePb.SourceLocation sourceLocation_; /** *
     * Line of code that generated this log message.
     * 
* * optional .java.apphosting.SourceLocation source_location = 4; * @return Whether the sourceLocation field is set. */ @java.lang.Override public boolean hasSourceLocation() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Line of code that generated this log message.
     * 
* * optional .java.apphosting.SourceLocation source_location = 4; * @return The sourceLocation. */ @java.lang.Override public com.google.apphosting.base.protos.SourcePb.SourceLocation getSourceLocation() { return sourceLocation_ == null ? com.google.apphosting.base.protos.SourcePb.SourceLocation.getDefaultInstance() : sourceLocation_; } /** *
     * Line of code that generated this log message.
     * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ @java.lang.Override public com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder getSourceLocationOrBuilder() { return sourceLocation_ == null ? com.google.apphosting.base.protos.SourcePb.SourceLocation.getDefaultInstance() : sourceLocation_; } 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)) { output.writeInt64(1, timestampUsec_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, logMessage_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getSourceLocation()); } 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.CodedOutputStream .computeInt64Size(1, timestampUsec_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, logMessage_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSourceLocation()); } 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.AppLogsPb.AppLogMessage)) { return super.equals(obj); } com.google.apphosting.base.protos.AppLogsPb.AppLogMessage other = (com.google.apphosting.base.protos.AppLogsPb.AppLogMessage) obj; if (hasTimestampUsec() != other.hasTimestampUsec()) return false; if (hasTimestampUsec()) { if (getTimestampUsec() != other.getTimestampUsec()) return false; } if (hasLogMessage() != other.hasLogMessage()) return false; if (hasLogMessage()) { if (!getLogMessage() .equals(other.getLogMessage())) return false; } if (hasSourceLocation() != other.hasSourceLocation()) return false; if (hasSourceLocation()) { if (!getSourceLocation() .equals(other.getSourceLocation())) 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 (hasTimestampUsec()) { hash = (37 * hash) + TIMESTAMP_USEC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestampUsec()); } if (hasLogMessage()) { hash = (37 * hash) + LOG_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getLogMessage().hashCode(); } if (hasSourceLocation()) { hash = (37 * hash) + SOURCE_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getSourceLocation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessage 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.AppLogsPb.AppLogMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessage 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.AppLogsPb.AppLogMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessage 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.AppLogsPb.AppLogMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessage 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.AppLogsPb.AppLogMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessage 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.AppLogsPb.AppLogMessage 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.AppLogsPb.AppLogMessage 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.AppLogsPb.AppLogMessage 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; } /** *
     * Log message produced by an application, as stored in Bigtable in logs v2.
     * 
* * Protobuf type {@code java.apphosting.AppLogMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.AppLogMessage) com.google.apphosting.base.protos.AppLogsPb.AppLogMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.class, com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.Builder.class); } // Construct using com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSourceLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; timestampUsec_ = 0L; logMessage_ = ""; sourceLocation_ = null; if (sourceLocationBuilder_ != null) { sourceLocationBuilder_.dispose(); sourceLocationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogMessage_descriptor; } @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogMessage getDefaultInstanceForType() { return com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogMessage build() { com.google.apphosting.base.protos.AppLogsPb.AppLogMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogMessage buildPartial() { com.google.apphosting.base.protos.AppLogsPb.AppLogMessage result = new com.google.apphosting.base.protos.AppLogsPb.AppLogMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.base.protos.AppLogsPb.AppLogMessage result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.timestampUsec_ = timestampUsec_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.logMessage_ = logMessage_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.sourceLocation_ = sourceLocationBuilder_ == null ? sourceLocation_ : sourceLocationBuilder_.build(); 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.AppLogsPb.AppLogMessage) { return mergeFrom((com.google.apphosting.base.protos.AppLogsPb.AppLogMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.base.protos.AppLogsPb.AppLogMessage other) { if (other == com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.getDefaultInstance()) return this; if (other.hasTimestampUsec()) { setTimestampUsec(other.getTimestampUsec()); } if (other.hasLogMessage()) { logMessage_ = other.logMessage_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasSourceLocation()) { mergeSourceLocation(other.getSourceLocation()); } 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 8: { timestampUsec_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { logMessage_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage( getSourceLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 34 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 long timestampUsec_ ; /** *
       * Microseconds since the epoch.
       * 
* * optional int64 timestamp_usec = 1; * @return Whether the timestampUsec field is set. */ @java.lang.Override public boolean hasTimestampUsec() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Microseconds since the epoch.
       * 
* * optional int64 timestamp_usec = 1; * @return The timestampUsec. */ @java.lang.Override public long getTimestampUsec() { return timestampUsec_; } /** *
       * Microseconds since the epoch.
       * 
* * optional int64 timestamp_usec = 1; * @param value The timestampUsec to set. * @return This builder for chaining. */ public Builder setTimestampUsec(long value) { timestampUsec_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Microseconds since the epoch.
       * 
* * optional int64 timestamp_usec = 1; * @return This builder for chaining. */ public Builder clearTimestampUsec() { bitField0_ = (bitField0_ & ~0x00000001); timestampUsec_ = 0L; onChanged(); return this; } private java.lang.Object logMessage_ = ""; /** *
       * Message generated by application with details.
       * 
* * optional string log_message = 2; * @return Whether the logMessage field is set. */ public boolean hasLogMessage() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Message generated by application with details.
       * 
* * optional string log_message = 2; * @return The logMessage. */ public java.lang.String getLogMessage() { java.lang.Object ref = logMessage_; 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()) { logMessage_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Message generated by application with details.
       * 
* * optional string log_message = 2; * @return The bytes for logMessage. */ public com.google.protobuf.ByteString getLogMessageBytes() { java.lang.Object ref = logMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Message generated by application with details.
       * 
* * optional string log_message = 2; * @param value The logMessage to set. * @return This builder for chaining. */ public Builder setLogMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } logMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Message generated by application with details.
       * 
* * optional string log_message = 2; * @return This builder for chaining. */ public Builder clearLogMessage() { logMessage_ = getDefaultInstance().getLogMessage(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Message generated by application with details.
       * 
* * optional string log_message = 2; * @param value The bytes for logMessage to set. * @return This builder for chaining. */ public Builder setLogMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } logMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.apphosting.base.protos.SourcePb.SourceLocation sourceLocation_; private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.base.protos.SourcePb.SourceLocation, com.google.apphosting.base.protos.SourcePb.SourceLocation.Builder, com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder> sourceLocationBuilder_; /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; * @return Whether the sourceLocation field is set. */ public boolean hasSourceLocation() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; * @return The sourceLocation. */ public com.google.apphosting.base.protos.SourcePb.SourceLocation getSourceLocation() { if (sourceLocationBuilder_ == null) { return sourceLocation_ == null ? com.google.apphosting.base.protos.SourcePb.SourceLocation.getDefaultInstance() : sourceLocation_; } else { return sourceLocationBuilder_.getMessage(); } } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ public Builder setSourceLocation(com.google.apphosting.base.protos.SourcePb.SourceLocation value) { if (sourceLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sourceLocation_ = value; } else { sourceLocationBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ public Builder setSourceLocation( com.google.apphosting.base.protos.SourcePb.SourceLocation.Builder builderForValue) { if (sourceLocationBuilder_ == null) { sourceLocation_ = builderForValue.build(); } else { sourceLocationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ public Builder mergeSourceLocation(com.google.apphosting.base.protos.SourcePb.SourceLocation value) { if (sourceLocationBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && sourceLocation_ != null && sourceLocation_ != com.google.apphosting.base.protos.SourcePb.SourceLocation.getDefaultInstance()) { getSourceLocationBuilder().mergeFrom(value); } else { sourceLocation_ = value; } } else { sourceLocationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ public Builder clearSourceLocation() { bitField0_ = (bitField0_ & ~0x00000004); sourceLocation_ = null; if (sourceLocationBuilder_ != null) { sourceLocationBuilder_.dispose(); sourceLocationBuilder_ = null; } onChanged(); return this; } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ public com.google.apphosting.base.protos.SourcePb.SourceLocation.Builder getSourceLocationBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSourceLocationFieldBuilder().getBuilder(); } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ public com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder getSourceLocationOrBuilder() { if (sourceLocationBuilder_ != null) { return sourceLocationBuilder_.getMessageOrBuilder(); } else { return sourceLocation_ == null ? com.google.apphosting.base.protos.SourcePb.SourceLocation.getDefaultInstance() : sourceLocation_; } } /** *
       * Line of code that generated this log message.
       * 
* * optional .java.apphosting.SourceLocation source_location = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.base.protos.SourcePb.SourceLocation, com.google.apphosting.base.protos.SourcePb.SourceLocation.Builder, com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder> getSourceLocationFieldBuilder() { if (sourceLocationBuilder_ == null) { sourceLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.apphosting.base.protos.SourcePb.SourceLocation, com.google.apphosting.base.protos.SourcePb.SourceLocation.Builder, com.google.apphosting.base.protos.SourcePb.SourceLocationOrBuilder>( getSourceLocation(), getParentForChildren(), isClean()); sourceLocation_ = null; } return sourceLocationBuilder_; } @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.AppLogMessage) } // @@protoc_insertion_point(class_scope:java.apphosting.AppLogMessage) private static final com.google.apphosting.base.protos.AppLogsPb.AppLogMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.base.protos.AppLogsPb.AppLogMessage(); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessage getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AppLogMessage 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.AppLogsPb.AppLogMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AppLogMessagesOrBuilder extends // @@protoc_insertion_point(interface_extends:java.apphosting.AppLogMessages) com.google.protobuf.MessageOrBuilder { /** * repeated .java.apphosting.AppLogMessage logs = 1; */ java.util.List getLogsList(); /** * repeated .java.apphosting.AppLogMessage logs = 1; */ com.google.apphosting.base.protos.AppLogsPb.AppLogMessage getLogs(int index); /** * repeated .java.apphosting.AppLogMessage logs = 1; */ int getLogsCount(); /** * repeated .java.apphosting.AppLogMessage logs = 1; */ java.util.List getLogsOrBuilderList(); /** * repeated .java.apphosting.AppLogMessage logs = 1; */ com.google.apphosting.base.protos.AppLogsPb.AppLogMessageOrBuilder getLogsOrBuilder( int index); } /** *
   * Collection of log messages as stored in the level_X: columns in logs v2.
   * 
* * Protobuf type {@code java.apphosting.AppLogMessages} */ public static final class AppLogMessages extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.AppLogMessages) AppLogMessagesOrBuilder { private static final long serialVersionUID = 0L; // Use AppLogMessages.newBuilder() to construct. private AppLogMessages(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AppLogMessages() { logs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AppLogMessages(); } @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.AppLogsPb.internal_static_java_apphosting_AppLogMessages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogMessages_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.AppLogsPb.AppLogMessages.class, com.google.apphosting.base.protos.AppLogsPb.AppLogMessages.Builder.class); } public static final int LOGS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List logs_; /** * repeated .java.apphosting.AppLogMessage logs = 1; */ @java.lang.Override public java.util.List getLogsList() { return logs_; } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ @java.lang.Override public java.util.List getLogsOrBuilderList() { return logs_; } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ @java.lang.Override public int getLogsCount() { return logs_.size(); } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogMessage getLogs(int index) { return logs_.get(index); } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogMessageOrBuilder getLogsOrBuilder( int index) { return logs_.get(index); } 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 { for (int i = 0; i < logs_.size(); i++) { output.writeMessage(1, logs_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < logs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, logs_.get(i)); } 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.AppLogsPb.AppLogMessages)) { return super.equals(obj); } com.google.apphosting.base.protos.AppLogsPb.AppLogMessages other = (com.google.apphosting.base.protos.AppLogsPb.AppLogMessages) obj; if (!getLogsList() .equals(other.getLogsList())) 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 (getLogsCount() > 0) { hash = (37 * hash) + LOGS_FIELD_NUMBER; hash = (53 * hash) + getLogsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessages parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessages 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.AppLogsPb.AppLogMessages parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessages 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.AppLogsPb.AppLogMessages parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessages 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.AppLogsPb.AppLogMessages parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessages 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.AppLogsPb.AppLogMessages parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessages 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.AppLogsPb.AppLogMessages 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.AppLogsPb.AppLogMessages 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.AppLogsPb.AppLogMessages 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; } /** *
     * Collection of log messages as stored in the level_X: columns in logs v2.
     * 
* * Protobuf type {@code java.apphosting.AppLogMessages} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.AppLogMessages) com.google.apphosting.base.protos.AppLogsPb.AppLogMessagesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogMessages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogMessages_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.AppLogsPb.AppLogMessages.class, com.google.apphosting.base.protos.AppLogsPb.AppLogMessages.Builder.class); } // Construct using com.google.apphosting.base.protos.AppLogsPb.AppLogMessages.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (logsBuilder_ == null) { logs_ = java.util.Collections.emptyList(); } else { logs_ = null; logsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.base.protos.AppLogsPb.internal_static_java_apphosting_AppLogMessages_descriptor; } @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogMessages getDefaultInstanceForType() { return com.google.apphosting.base.protos.AppLogsPb.AppLogMessages.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogMessages build() { com.google.apphosting.base.protos.AppLogsPb.AppLogMessages result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.base.protos.AppLogsPb.AppLogMessages buildPartial() { com.google.apphosting.base.protos.AppLogsPb.AppLogMessages result = new com.google.apphosting.base.protos.AppLogsPb.AppLogMessages(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.apphosting.base.protos.AppLogsPb.AppLogMessages result) { if (logsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { logs_ = java.util.Collections.unmodifiableList(logs_); bitField0_ = (bitField0_ & ~0x00000001); } result.logs_ = logs_; } else { result.logs_ = logsBuilder_.build(); } } private void buildPartial0(com.google.apphosting.base.protos.AppLogsPb.AppLogMessages result) { int from_bitField0_ = 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.AppLogsPb.AppLogMessages) { return mergeFrom((com.google.apphosting.base.protos.AppLogsPb.AppLogMessages)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.base.protos.AppLogsPb.AppLogMessages other) { if (other == com.google.apphosting.base.protos.AppLogsPb.AppLogMessages.getDefaultInstance()) return this; if (logsBuilder_ == null) { if (!other.logs_.isEmpty()) { if (logs_.isEmpty()) { logs_ = other.logs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLogsIsMutable(); logs_.addAll(other.logs_); } onChanged(); } } else { if (!other.logs_.isEmpty()) { if (logsBuilder_.isEmpty()) { logsBuilder_.dispose(); logsBuilder_ = null; logs_ = other.logs_; bitField0_ = (bitField0_ & ~0x00000001); logsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLogsFieldBuilder() : null; } else { logsBuilder_.addAllMessages(other.logs_); } } } 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: { com.google.apphosting.base.protos.AppLogsPb.AppLogMessage m = input.readMessage( com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.PARSER, extensionRegistry); if (logsBuilder_ == null) { ensureLogsIsMutable(); logs_.add(m); } else { logsBuilder_.addMessage(m); } break; } // case 10 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.util.List logs_ = java.util.Collections.emptyList(); private void ensureLogsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { logs_ = new java.util.ArrayList(logs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.base.protos.AppLogsPb.AppLogMessage, com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.Builder, com.google.apphosting.base.protos.AppLogsPb.AppLogMessageOrBuilder> logsBuilder_; /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public java.util.List getLogsList() { if (logsBuilder_ == null) { return java.util.Collections.unmodifiableList(logs_); } else { return logsBuilder_.getMessageList(); } } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public int getLogsCount() { if (logsBuilder_ == null) { return logs_.size(); } else { return logsBuilder_.getCount(); } } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public com.google.apphosting.base.protos.AppLogsPb.AppLogMessage getLogs(int index) { if (logsBuilder_ == null) { return logs_.get(index); } else { return logsBuilder_.getMessage(index); } } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public Builder setLogs( int index, com.google.apphosting.base.protos.AppLogsPb.AppLogMessage value) { if (logsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogsIsMutable(); logs_.set(index, value); onChanged(); } else { logsBuilder_.setMessage(index, value); } return this; } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public Builder setLogs( int index, com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.Builder builderForValue) { if (logsBuilder_ == null) { ensureLogsIsMutable(); logs_.set(index, builderForValue.build()); onChanged(); } else { logsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public Builder addLogs(com.google.apphosting.base.protos.AppLogsPb.AppLogMessage value) { if (logsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogsIsMutable(); logs_.add(value); onChanged(); } else { logsBuilder_.addMessage(value); } return this; } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public Builder addLogs( int index, com.google.apphosting.base.protos.AppLogsPb.AppLogMessage value) { if (logsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogsIsMutable(); logs_.add(index, value); onChanged(); } else { logsBuilder_.addMessage(index, value); } return this; } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public Builder addLogs( com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.Builder builderForValue) { if (logsBuilder_ == null) { ensureLogsIsMutable(); logs_.add(builderForValue.build()); onChanged(); } else { logsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public Builder addLogs( int index, com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.Builder builderForValue) { if (logsBuilder_ == null) { ensureLogsIsMutable(); logs_.add(index, builderForValue.build()); onChanged(); } else { logsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public Builder addAllLogs( java.lang.Iterable values) { if (logsBuilder_ == null) { ensureLogsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, logs_); onChanged(); } else { logsBuilder_.addAllMessages(values); } return this; } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public Builder clearLogs() { if (logsBuilder_ == null) { logs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { logsBuilder_.clear(); } return this; } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public Builder removeLogs(int index) { if (logsBuilder_ == null) { ensureLogsIsMutable(); logs_.remove(index); onChanged(); } else { logsBuilder_.remove(index); } return this; } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.Builder getLogsBuilder( int index) { return getLogsFieldBuilder().getBuilder(index); } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public com.google.apphosting.base.protos.AppLogsPb.AppLogMessageOrBuilder getLogsOrBuilder( int index) { if (logsBuilder_ == null) { return logs_.get(index); } else { return logsBuilder_.getMessageOrBuilder(index); } } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public java.util.List getLogsOrBuilderList() { if (logsBuilder_ != null) { return logsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(logs_); } } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.Builder addLogsBuilder() { return getLogsFieldBuilder().addBuilder( com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.getDefaultInstance()); } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.Builder addLogsBuilder( int index) { return getLogsFieldBuilder().addBuilder( index, com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.getDefaultInstance()); } /** * repeated .java.apphosting.AppLogMessage logs = 1; */ public java.util.List getLogsBuilderList() { return getLogsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.base.protos.AppLogsPb.AppLogMessage, com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.Builder, com.google.apphosting.base.protos.AppLogsPb.AppLogMessageOrBuilder> getLogsFieldBuilder() { if (logsBuilder_ == null) { logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.apphosting.base.protos.AppLogsPb.AppLogMessage, com.google.apphosting.base.protos.AppLogsPb.AppLogMessage.Builder, com.google.apphosting.base.protos.AppLogsPb.AppLogMessageOrBuilder>( logs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); logs_ = null; } return logsBuilder_; } @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.AppLogMessages) } // @@protoc_insertion_point(class_scope:java.apphosting.AppLogMessages) private static final com.google.apphosting.base.protos.AppLogsPb.AppLogMessages DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.base.protos.AppLogsPb.AppLogMessages(); } public static com.google.apphosting.base.protos.AppLogsPb.AppLogMessages getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AppLogMessages 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.AppLogsPb.AppLogMessages getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_AppLogLine_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_AppLogLine_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_AppLogGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_AppLogGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_AppLogMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_AppLogMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_AppLogMessages_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_AppLogMessages_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\016app_logs.proto\022\017java.apphosting\032\014sourc" + "e.proto\"~\n\nAppLogLine\022\026\n\016timestamp_usec\030" + "\001 \002(\003\022\r\n\005level\030\002 \002(\003\022\017\n\007message\030\003 \002(\t\0228\n" + "\017source_location\030\004 \001(\0132\037.java.apphosting" + ".SourceLocation\"<\n\013AppLogGroup\022-\n\010log_li" + "ne\030\002 \003(\0132\033.java.apphosting.AppLogLine\"v\n" + "\rAppLogMessage\022\026\n\016timestamp_usec\030\001 \001(\003\022\023" + "\n\013log_message\030\002 \001(\t\0228\n\017source_location\030\004" + " \001(\0132\037.java.apphosting.SourceLocation\">\n" + "\016AppLogMessages\022,\n\004logs\030\001 \003(\0132\036.java.app" + "hosting.AppLogMessageB1\n!com.google.apph" + "osting.base.protosB\tAppLogsPb\370\001\001" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.apphosting.base.protos.SourcePb.getDescriptor(), }); internal_static_java_apphosting_AppLogLine_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_java_apphosting_AppLogLine_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_AppLogLine_descriptor, new java.lang.String[] { "TimestampUsec", "Level", "Message", "SourceLocation", }); internal_static_java_apphosting_AppLogGroup_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_java_apphosting_AppLogGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_AppLogGroup_descriptor, new java.lang.String[] { "LogLine", }); internal_static_java_apphosting_AppLogMessage_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_java_apphosting_AppLogMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_AppLogMessage_descriptor, new java.lang.String[] { "TimestampUsec", "LogMessage", "SourceLocation", }); internal_static_java_apphosting_AppLogMessages_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_java_apphosting_AppLogMessages_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_AppLogMessages_descriptor, new java.lang.String[] { "Logs", }); com.google.apphosting.base.protos.SourcePb.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy