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

io.opentelemetry.proto.logs.v1.ScopeLogs Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: opentelemetry/proto/logs/v1/logs.proto

package io.opentelemetry.proto.logs.v1;

/**
 * 
 * A collection of Logs produced by a Scope.
 * 
* * Protobuf type {@code opentelemetry.proto.logs.v1.ScopeLogs} */ public final class ScopeLogs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opentelemetry.proto.logs.v1.ScopeLogs) ScopeLogsOrBuilder { private static final long serialVersionUID = 0L; // Use ScopeLogs.newBuilder() to construct. private ScopeLogs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScopeLogs() { logRecords_ = java.util.Collections.emptyList(); schemaUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScopeLogs(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScopeLogs( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.opentelemetry.proto.common.v1.InstrumentationScope.Builder subBuilder = null; if (scope_ != null) { subBuilder = scope_.toBuilder(); } scope_ = input.readMessage(io.opentelemetry.proto.common.v1.InstrumentationScope.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scope_); scope_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { logRecords_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } logRecords_.add( input.readMessage(io.opentelemetry.proto.logs.v1.LogRecord.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); schemaUrl_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { logRecords_ = java.util.Collections.unmodifiableList(logRecords_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opentelemetry.proto.logs.v1.LogsProto.internal_static_opentelemetry_proto_logs_v1_ScopeLogs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.logs.v1.LogsProto.internal_static_opentelemetry_proto_logs_v1_ScopeLogs_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.logs.v1.ScopeLogs.class, io.opentelemetry.proto.logs.v1.ScopeLogs.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private io.opentelemetry.proto.common.v1.InstrumentationScope scope_; /** *
   * The instrumentation scope information for the logs in this message.
   * Semantically when InstrumentationScope isn't set, it is equivalent with
   * an empty instrumentation scope name (unknown).
   * 
* * .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; * @return Whether the scope field is set. */ @java.lang.Override public boolean hasScope() { return scope_ != null; } /** *
   * The instrumentation scope information for the logs in this message.
   * Semantically when InstrumentationScope isn't set, it is equivalent with
   * an empty instrumentation scope name (unknown).
   * 
* * .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; * @return The scope. */ @java.lang.Override public io.opentelemetry.proto.common.v1.InstrumentationScope getScope() { return scope_ == null ? io.opentelemetry.proto.common.v1.InstrumentationScope.getDefaultInstance() : scope_; } /** *
   * The instrumentation scope information for the logs in this message.
   * Semantically when InstrumentationScope isn't set, it is equivalent with
   * an empty instrumentation scope name (unknown).
   * 
* * .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; */ @java.lang.Override public io.opentelemetry.proto.common.v1.InstrumentationScopeOrBuilder getScopeOrBuilder() { return getScope(); } public static final int LOG_RECORDS_FIELD_NUMBER = 2; private java.util.List logRecords_; /** *
   * A list of log records.
   * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ @java.lang.Override public java.util.List getLogRecordsList() { return logRecords_; } /** *
   * A list of log records.
   * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ @java.lang.Override public java.util.List getLogRecordsOrBuilderList() { return logRecords_; } /** *
   * A list of log records.
   * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ @java.lang.Override public int getLogRecordsCount() { return logRecords_.size(); } /** *
   * A list of log records.
   * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ @java.lang.Override public io.opentelemetry.proto.logs.v1.LogRecord getLogRecords(int index) { return logRecords_.get(index); } /** *
   * A list of log records.
   * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ @java.lang.Override public io.opentelemetry.proto.logs.v1.LogRecordOrBuilder getLogRecordsOrBuilder( int index) { return logRecords_.get(index); } public static final int SCHEMA_URL_FIELD_NUMBER = 3; private volatile java.lang.Object schemaUrl_; /** *
   * This schema_url applies to all logs in the "logs" field.
   * 
* * string schema_url = 3; * @return The schemaUrl. */ @java.lang.Override public java.lang.String getSchemaUrl() { java.lang.Object ref = schemaUrl_; 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(); schemaUrl_ = s; return s; } } /** *
   * This schema_url applies to all logs in the "logs" field.
   * 
* * string schema_url = 3; * @return The bytes for schemaUrl. */ @java.lang.Override public com.google.protobuf.ByteString getSchemaUrlBytes() { java.lang.Object ref = schemaUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (scope_ != null) { output.writeMessage(1, getScope()); } for (int i = 0; i < logRecords_.size(); i++) { output.writeMessage(2, logRecords_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaUrl_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (scope_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getScope()); } for (int i = 0; i < logRecords_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, logRecords_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaUrl_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.opentelemetry.proto.logs.v1.ScopeLogs)) { return super.equals(obj); } io.opentelemetry.proto.logs.v1.ScopeLogs other = (io.opentelemetry.proto.logs.v1.ScopeLogs) obj; if (hasScope() != other.hasScope()) return false; if (hasScope()) { if (!getScope() .equals(other.getScope())) return false; } if (!getLogRecordsList() .equals(other.getLogRecordsList())) return false; if (!getSchemaUrl() .equals(other.getSchemaUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasScope()) { hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScope().hashCode(); } if (getLogRecordsCount() > 0) { hash = (37 * hash) + LOG_RECORDS_FIELD_NUMBER; hash = (53 * hash) + getLogRecordsList().hashCode(); } hash = (37 * hash) + SCHEMA_URL_FIELD_NUMBER; hash = (53 * hash) + getSchemaUrl().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opentelemetry.proto.logs.v1.ScopeLogs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.logs.v1.ScopeLogs parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.logs.v1.ScopeLogs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.logs.v1.ScopeLogs parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.logs.v1.ScopeLogs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.logs.v1.ScopeLogs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.logs.v1.ScopeLogs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.logs.v1.ScopeLogs 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 io.opentelemetry.proto.logs.v1.ScopeLogs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opentelemetry.proto.logs.v1.ScopeLogs 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 io.opentelemetry.proto.logs.v1.ScopeLogs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.logs.v1.ScopeLogs 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(io.opentelemetry.proto.logs.v1.ScopeLogs 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; } /** *
   * A collection of Logs produced by a Scope.
   * 
* * Protobuf type {@code opentelemetry.proto.logs.v1.ScopeLogs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.logs.v1.ScopeLogs) io.opentelemetry.proto.logs.v1.ScopeLogsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opentelemetry.proto.logs.v1.LogsProto.internal_static_opentelemetry_proto_logs_v1_ScopeLogs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.logs.v1.LogsProto.internal_static_opentelemetry_proto_logs_v1_ScopeLogs_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.logs.v1.ScopeLogs.class, io.opentelemetry.proto.logs.v1.ScopeLogs.Builder.class); } // Construct using io.opentelemetry.proto.logs.v1.ScopeLogs.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLogRecordsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (scopeBuilder_ == null) { scope_ = null; } else { scope_ = null; scopeBuilder_ = null; } if (logRecordsBuilder_ == null) { logRecords_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { logRecordsBuilder_.clear(); } schemaUrl_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opentelemetry.proto.logs.v1.LogsProto.internal_static_opentelemetry_proto_logs_v1_ScopeLogs_descriptor; } @java.lang.Override public io.opentelemetry.proto.logs.v1.ScopeLogs getDefaultInstanceForType() { return io.opentelemetry.proto.logs.v1.ScopeLogs.getDefaultInstance(); } @java.lang.Override public io.opentelemetry.proto.logs.v1.ScopeLogs build() { io.opentelemetry.proto.logs.v1.ScopeLogs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opentelemetry.proto.logs.v1.ScopeLogs buildPartial() { io.opentelemetry.proto.logs.v1.ScopeLogs result = new io.opentelemetry.proto.logs.v1.ScopeLogs(this); int from_bitField0_ = bitField0_; if (scopeBuilder_ == null) { result.scope_ = scope_; } else { result.scope_ = scopeBuilder_.build(); } if (logRecordsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { logRecords_ = java.util.Collections.unmodifiableList(logRecords_); bitField0_ = (bitField0_ & ~0x00000001); } result.logRecords_ = logRecords_; } else { result.logRecords_ = logRecordsBuilder_.build(); } result.schemaUrl_ = schemaUrl_; onBuilt(); return result; } @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 io.opentelemetry.proto.logs.v1.ScopeLogs) { return mergeFrom((io.opentelemetry.proto.logs.v1.ScopeLogs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opentelemetry.proto.logs.v1.ScopeLogs other) { if (other == io.opentelemetry.proto.logs.v1.ScopeLogs.getDefaultInstance()) return this; if (other.hasScope()) { mergeScope(other.getScope()); } if (logRecordsBuilder_ == null) { if (!other.logRecords_.isEmpty()) { if (logRecords_.isEmpty()) { logRecords_ = other.logRecords_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLogRecordsIsMutable(); logRecords_.addAll(other.logRecords_); } onChanged(); } } else { if (!other.logRecords_.isEmpty()) { if (logRecordsBuilder_.isEmpty()) { logRecordsBuilder_.dispose(); logRecordsBuilder_ = null; logRecords_ = other.logRecords_; bitField0_ = (bitField0_ & ~0x00000001); logRecordsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLogRecordsFieldBuilder() : null; } else { logRecordsBuilder_.addAllMessages(other.logRecords_); } } } if (!other.getSchemaUrl().isEmpty()) { schemaUrl_ = other.schemaUrl_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { io.opentelemetry.proto.logs.v1.ScopeLogs parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opentelemetry.proto.logs.v1.ScopeLogs) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.opentelemetry.proto.common.v1.InstrumentationScope scope_; private com.google.protobuf.SingleFieldBuilderV3< io.opentelemetry.proto.common.v1.InstrumentationScope, io.opentelemetry.proto.common.v1.InstrumentationScope.Builder, io.opentelemetry.proto.common.v1.InstrumentationScopeOrBuilder> scopeBuilder_; /** *
     * The instrumentation scope information for the logs in this message.
     * Semantically when InstrumentationScope isn't set, it is equivalent with
     * an empty instrumentation scope name (unknown).
     * 
* * .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; * @return Whether the scope field is set. */ public boolean hasScope() { return scopeBuilder_ != null || scope_ != null; } /** *
     * The instrumentation scope information for the logs in this message.
     * Semantically when InstrumentationScope isn't set, it is equivalent with
     * an empty instrumentation scope name (unknown).
     * 
* * .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; * @return The scope. */ public io.opentelemetry.proto.common.v1.InstrumentationScope getScope() { if (scopeBuilder_ == null) { return scope_ == null ? io.opentelemetry.proto.common.v1.InstrumentationScope.getDefaultInstance() : scope_; } else { return scopeBuilder_.getMessage(); } } /** *
     * The instrumentation scope information for the logs in this message.
     * Semantically when InstrumentationScope isn't set, it is equivalent with
     * an empty instrumentation scope name (unknown).
     * 
* * .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; */ public Builder setScope(io.opentelemetry.proto.common.v1.InstrumentationScope value) { if (scopeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scope_ = value; onChanged(); } else { scopeBuilder_.setMessage(value); } return this; } /** *
     * The instrumentation scope information for the logs in this message.
     * Semantically when InstrumentationScope isn't set, it is equivalent with
     * an empty instrumentation scope name (unknown).
     * 
* * .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; */ public Builder setScope( io.opentelemetry.proto.common.v1.InstrumentationScope.Builder builderForValue) { if (scopeBuilder_ == null) { scope_ = builderForValue.build(); onChanged(); } else { scopeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The instrumentation scope information for the logs in this message.
     * Semantically when InstrumentationScope isn't set, it is equivalent with
     * an empty instrumentation scope name (unknown).
     * 
* * .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; */ public Builder mergeScope(io.opentelemetry.proto.common.v1.InstrumentationScope value) { if (scopeBuilder_ == null) { if (scope_ != null) { scope_ = io.opentelemetry.proto.common.v1.InstrumentationScope.newBuilder(scope_).mergeFrom(value).buildPartial(); } else { scope_ = value; } onChanged(); } else { scopeBuilder_.mergeFrom(value); } return this; } /** *
     * The instrumentation scope information for the logs in this message.
     * Semantically when InstrumentationScope isn't set, it is equivalent with
     * an empty instrumentation scope name (unknown).
     * 
* * .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; */ public Builder clearScope() { if (scopeBuilder_ == null) { scope_ = null; onChanged(); } else { scope_ = null; scopeBuilder_ = null; } return this; } /** *
     * The instrumentation scope information for the logs in this message.
     * Semantically when InstrumentationScope isn't set, it is equivalent with
     * an empty instrumentation scope name (unknown).
     * 
* * .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; */ public io.opentelemetry.proto.common.v1.InstrumentationScope.Builder getScopeBuilder() { onChanged(); return getScopeFieldBuilder().getBuilder(); } /** *
     * The instrumentation scope information for the logs in this message.
     * Semantically when InstrumentationScope isn't set, it is equivalent with
     * an empty instrumentation scope name (unknown).
     * 
* * .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; */ public io.opentelemetry.proto.common.v1.InstrumentationScopeOrBuilder getScopeOrBuilder() { if (scopeBuilder_ != null) { return scopeBuilder_.getMessageOrBuilder(); } else { return scope_ == null ? io.opentelemetry.proto.common.v1.InstrumentationScope.getDefaultInstance() : scope_; } } /** *
     * The instrumentation scope information for the logs in this message.
     * Semantically when InstrumentationScope isn't set, it is equivalent with
     * an empty instrumentation scope name (unknown).
     * 
* * .opentelemetry.proto.common.v1.InstrumentationScope scope = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.opentelemetry.proto.common.v1.InstrumentationScope, io.opentelemetry.proto.common.v1.InstrumentationScope.Builder, io.opentelemetry.proto.common.v1.InstrumentationScopeOrBuilder> getScopeFieldBuilder() { if (scopeBuilder_ == null) { scopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opentelemetry.proto.common.v1.InstrumentationScope, io.opentelemetry.proto.common.v1.InstrumentationScope.Builder, io.opentelemetry.proto.common.v1.InstrumentationScopeOrBuilder>( getScope(), getParentForChildren(), isClean()); scope_ = null; } return scopeBuilder_; } private java.util.List logRecords_ = java.util.Collections.emptyList(); private void ensureLogRecordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { logRecords_ = new java.util.ArrayList(logRecords_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.logs.v1.LogRecord, io.opentelemetry.proto.logs.v1.LogRecord.Builder, io.opentelemetry.proto.logs.v1.LogRecordOrBuilder> logRecordsBuilder_; /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public java.util.List getLogRecordsList() { if (logRecordsBuilder_ == null) { return java.util.Collections.unmodifiableList(logRecords_); } else { return logRecordsBuilder_.getMessageList(); } } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public int getLogRecordsCount() { if (logRecordsBuilder_ == null) { return logRecords_.size(); } else { return logRecordsBuilder_.getCount(); } } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public io.opentelemetry.proto.logs.v1.LogRecord getLogRecords(int index) { if (logRecordsBuilder_ == null) { return logRecords_.get(index); } else { return logRecordsBuilder_.getMessage(index); } } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public Builder setLogRecords( int index, io.opentelemetry.proto.logs.v1.LogRecord value) { if (logRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogRecordsIsMutable(); logRecords_.set(index, value); onChanged(); } else { logRecordsBuilder_.setMessage(index, value); } return this; } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public Builder setLogRecords( int index, io.opentelemetry.proto.logs.v1.LogRecord.Builder builderForValue) { if (logRecordsBuilder_ == null) { ensureLogRecordsIsMutable(); logRecords_.set(index, builderForValue.build()); onChanged(); } else { logRecordsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public Builder addLogRecords(io.opentelemetry.proto.logs.v1.LogRecord value) { if (logRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogRecordsIsMutable(); logRecords_.add(value); onChanged(); } else { logRecordsBuilder_.addMessage(value); } return this; } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public Builder addLogRecords( int index, io.opentelemetry.proto.logs.v1.LogRecord value) { if (logRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogRecordsIsMutable(); logRecords_.add(index, value); onChanged(); } else { logRecordsBuilder_.addMessage(index, value); } return this; } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public Builder addLogRecords( io.opentelemetry.proto.logs.v1.LogRecord.Builder builderForValue) { if (logRecordsBuilder_ == null) { ensureLogRecordsIsMutable(); logRecords_.add(builderForValue.build()); onChanged(); } else { logRecordsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public Builder addLogRecords( int index, io.opentelemetry.proto.logs.v1.LogRecord.Builder builderForValue) { if (logRecordsBuilder_ == null) { ensureLogRecordsIsMutable(); logRecords_.add(index, builderForValue.build()); onChanged(); } else { logRecordsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public Builder addAllLogRecords( java.lang.Iterable values) { if (logRecordsBuilder_ == null) { ensureLogRecordsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, logRecords_); onChanged(); } else { logRecordsBuilder_.addAllMessages(values); } return this; } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public Builder clearLogRecords() { if (logRecordsBuilder_ == null) { logRecords_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { logRecordsBuilder_.clear(); } return this; } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public Builder removeLogRecords(int index) { if (logRecordsBuilder_ == null) { ensureLogRecordsIsMutable(); logRecords_.remove(index); onChanged(); } else { logRecordsBuilder_.remove(index); } return this; } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public io.opentelemetry.proto.logs.v1.LogRecord.Builder getLogRecordsBuilder( int index) { return getLogRecordsFieldBuilder().getBuilder(index); } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public io.opentelemetry.proto.logs.v1.LogRecordOrBuilder getLogRecordsOrBuilder( int index) { if (logRecordsBuilder_ == null) { return logRecords_.get(index); } else { return logRecordsBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public java.util.List getLogRecordsOrBuilderList() { if (logRecordsBuilder_ != null) { return logRecordsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(logRecords_); } } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public io.opentelemetry.proto.logs.v1.LogRecord.Builder addLogRecordsBuilder() { return getLogRecordsFieldBuilder().addBuilder( io.opentelemetry.proto.logs.v1.LogRecord.getDefaultInstance()); } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public io.opentelemetry.proto.logs.v1.LogRecord.Builder addLogRecordsBuilder( int index) { return getLogRecordsFieldBuilder().addBuilder( index, io.opentelemetry.proto.logs.v1.LogRecord.getDefaultInstance()); } /** *
     * A list of log records.
     * 
* * repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2; */ public java.util.List getLogRecordsBuilderList() { return getLogRecordsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.logs.v1.LogRecord, io.opentelemetry.proto.logs.v1.LogRecord.Builder, io.opentelemetry.proto.logs.v1.LogRecordOrBuilder> getLogRecordsFieldBuilder() { if (logRecordsBuilder_ == null) { logRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.logs.v1.LogRecord, io.opentelemetry.proto.logs.v1.LogRecord.Builder, io.opentelemetry.proto.logs.v1.LogRecordOrBuilder>( logRecords_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); logRecords_ = null; } return logRecordsBuilder_; } private java.lang.Object schemaUrl_ = ""; /** *
     * This schema_url applies to all logs in the "logs" field.
     * 
* * string schema_url = 3; * @return The schemaUrl. */ public java.lang.String getSchemaUrl() { java.lang.Object ref = schemaUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * This schema_url applies to all logs in the "logs" field.
     * 
* * string schema_url = 3; * @return The bytes for schemaUrl. */ public com.google.protobuf.ByteString getSchemaUrlBytes() { java.lang.Object ref = schemaUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * This schema_url applies to all logs in the "logs" field.
     * 
* * string schema_url = 3; * @param value The schemaUrl to set. * @return This builder for chaining. */ public Builder setSchemaUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } schemaUrl_ = value; onChanged(); return this; } /** *
     * This schema_url applies to all logs in the "logs" field.
     * 
* * string schema_url = 3; * @return This builder for chaining. */ public Builder clearSchemaUrl() { schemaUrl_ = getDefaultInstance().getSchemaUrl(); onChanged(); return this; } /** *
     * This schema_url applies to all logs in the "logs" field.
     * 
* * string schema_url = 3; * @param value The bytes for schemaUrl to set. * @return This builder for chaining. */ public Builder setSchemaUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaUrl_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:opentelemetry.proto.logs.v1.ScopeLogs) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.logs.v1.ScopeLogs) private static final io.opentelemetry.proto.logs.v1.ScopeLogs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opentelemetry.proto.logs.v1.ScopeLogs(); } public static io.opentelemetry.proto.logs.v1.ScopeLogs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScopeLogs parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScopeLogs(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.opentelemetry.proto.logs.v1.ScopeLogs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy