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

io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles Maven / Gradle / Ivy

There is a newer version: 1.0.47
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: opentelemetry/proto/profiles/v1experimental/profiles.proto

// Protobuf Java Version: 3.25.1
package io.opentelemetry.proto.profiles.v1experimental;

/**
 * 
 * A collection of ProfileContainers produced by an InstrumentationScope.
 * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.ScopeProfiles} */ public final class ScopeProfiles extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opentelemetry.proto.profiles.v1experimental.ScopeProfiles) ScopeProfilesOrBuilder { private static final long serialVersionUID = 0L; // Use ScopeProfiles.newBuilder() to construct. private ScopeProfiles(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScopeProfiles() { profiles_ = java.util.Collections.emptyList(); schemaUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScopeProfiles(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ScopeProfiles_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ScopeProfiles_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles.class, io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles.Builder.class); } private int bitField0_; public static final int SCOPE_FIELD_NUMBER = 1; private io.opentelemetry.proto.common.v1.InstrumentationScope scope_; /** *
   * The instrumentation scope information for the profiles 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 ((bitField0_ & 0x00000001) != 0); } /** *
   * The instrumentation scope information for the profiles 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 profiles 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 scope_ == null ? io.opentelemetry.proto.common.v1.InstrumentationScope.getDefaultInstance() : scope_; } public static final int PROFILES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List profiles_; /** *
   * A list of ProfileContainers that originate from an instrumentation scope.
   * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ @java.lang.Override public java.util.List getProfilesList() { return profiles_; } /** *
   * A list of ProfileContainers that originate from an instrumentation scope.
   * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ @java.lang.Override public java.util.List getProfilesOrBuilderList() { return profiles_; } /** *
   * A list of ProfileContainers that originate from an instrumentation scope.
   * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ @java.lang.Override public int getProfilesCount() { return profiles_.size(); } /** *
   * A list of ProfileContainers that originate from an instrumentation scope.
   * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1experimental.ProfileContainer getProfiles(int index) { return profiles_.get(index); } /** *
   * A list of ProfileContainers that originate from an instrumentation scope.
   * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1experimental.ProfileContainerOrBuilder getProfilesOrBuilder( int index) { return profiles_.get(index); } public static final int SCHEMA_URL_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object schemaUrl_ = ""; /** *
   * The Schema URL, if known. This is the identifier of the Schema that the metric data
   * is recorded in. To learn more about Schema URL see
   * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
   * This schema_url applies to all profiles in the "profiles" 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; } } /** *
   * The Schema URL, if known. This is the identifier of the Schema that the metric data
   * is recorded in. To learn more about Schema URL see
   * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
   * This schema_url applies to all profiles in the "profiles" 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getScope()); } for (int i = 0; i < profiles_.size(); i++) { output.writeMessage(2, profiles_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaUrl_); } 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 .computeMessageSize(1, getScope()); } for (int i = 0; i < profiles_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, profiles_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaUrl_); } 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 io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles)) { return super.equals(obj); } io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles other = (io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles) obj; if (hasScope() != other.hasScope()) return false; if (hasScope()) { if (!getScope() .equals(other.getScope())) return false; } if (!getProfilesList() .equals(other.getProfilesList())) return false; if (!getSchemaUrl() .equals(other.getSchemaUrl())) 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 (hasScope()) { hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScope().hashCode(); } if (getProfilesCount() > 0) { hash = (37 * hash) + PROFILES_FIELD_NUMBER; hash = (53 * hash) + getProfilesList().hashCode(); } hash = (37 * hash) + SCHEMA_URL_FIELD_NUMBER; hash = (53 * hash) + getSchemaUrl().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles 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.profiles.v1experimental.ScopeProfiles parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles 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.profiles.v1experimental.ScopeProfiles parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles 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.profiles.v1experimental.ScopeProfiles parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles 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.profiles.v1experimental.ScopeProfiles parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles 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.profiles.v1experimental.ScopeProfiles 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 ProfileContainers produced by an InstrumentationScope.
   * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.ScopeProfiles} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.profiles.v1experimental.ScopeProfiles) io.opentelemetry.proto.profiles.v1experimental.ScopeProfilesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ScopeProfiles_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ScopeProfiles_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles.class, io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles.Builder.class); } // Construct using io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getScopeFieldBuilder(); getProfilesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; scope_ = null; if (scopeBuilder_ != null) { scopeBuilder_.dispose(); scopeBuilder_ = null; } if (profilesBuilder_ == null) { profiles_ = java.util.Collections.emptyList(); } else { profiles_ = null; profilesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); schemaUrl_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ScopeProfiles_descriptor; } @java.lang.Override public io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles getDefaultInstanceForType() { return io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles.getDefaultInstance(); } @java.lang.Override public io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles build() { io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles buildPartial() { io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles result = new io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles result) { if (profilesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { profiles_ = java.util.Collections.unmodifiableList(profiles_); bitField0_ = (bitField0_ & ~0x00000002); } result.profiles_ = profiles_; } else { result.profiles_ = profilesBuilder_.build(); } } private void buildPartial0(io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.scope_ = scopeBuilder_ == null ? scope_ : scopeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.schemaUrl_ = schemaUrl_; } 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 io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles) { return mergeFrom((io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles other) { if (other == io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles.getDefaultInstance()) return this; if (other.hasScope()) { mergeScope(other.getScope()); } if (profilesBuilder_ == null) { if (!other.profiles_.isEmpty()) { if (profiles_.isEmpty()) { profiles_ = other.profiles_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureProfilesIsMutable(); profiles_.addAll(other.profiles_); } onChanged(); } } else { if (!other.profiles_.isEmpty()) { if (profilesBuilder_.isEmpty()) { profilesBuilder_.dispose(); profilesBuilder_ = null; profiles_ = other.profiles_; bitField0_ = (bitField0_ & ~0x00000002); profilesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getProfilesFieldBuilder() : null; } else { profilesBuilder_.addAllMessages(other.profiles_); } } } if (!other.getSchemaUrl().isEmpty()) { schemaUrl_ = other.schemaUrl_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getScopeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { io.opentelemetry.proto.profiles.v1experimental.ProfileContainer m = input.readMessage( io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.parser(), extensionRegistry); if (profilesBuilder_ == null) { ensureProfilesIsMutable(); profiles_.add(m); } else { profilesBuilder_.addMessage(m); } break; } // case 18 case 26: { schemaUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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 profiles 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * The instrumentation scope information for the profiles 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 profiles 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; } else { scopeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The instrumentation scope information for the profiles 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(); } else { scopeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The instrumentation scope information for the profiles 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 (((bitField0_ & 0x00000001) != 0) && scope_ != null && scope_ != io.opentelemetry.proto.common.v1.InstrumentationScope.getDefaultInstance()) { getScopeBuilder().mergeFrom(value); } else { scope_ = value; } } else { scopeBuilder_.mergeFrom(value); } if (scope_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The instrumentation scope information for the profiles 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() { bitField0_ = (bitField0_ & ~0x00000001); scope_ = null; if (scopeBuilder_ != null) { scopeBuilder_.dispose(); scopeBuilder_ = null; } onChanged(); return this; } /** *
     * The instrumentation scope information for the profiles 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() { bitField0_ |= 0x00000001; onChanged(); return getScopeFieldBuilder().getBuilder(); } /** *
     * The instrumentation scope information for the profiles 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 profiles 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 profiles_ = java.util.Collections.emptyList(); private void ensureProfilesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { profiles_ = new java.util.ArrayList(profiles_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1experimental.ProfileContainer, io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.Builder, io.opentelemetry.proto.profiles.v1experimental.ProfileContainerOrBuilder> profilesBuilder_; /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public java.util.List getProfilesList() { if (profilesBuilder_ == null) { return java.util.Collections.unmodifiableList(profiles_); } else { return profilesBuilder_.getMessageList(); } } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public int getProfilesCount() { if (profilesBuilder_ == null) { return profiles_.size(); } else { return profilesBuilder_.getCount(); } } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public io.opentelemetry.proto.profiles.v1experimental.ProfileContainer getProfiles(int index) { if (profilesBuilder_ == null) { return profiles_.get(index); } else { return profilesBuilder_.getMessage(index); } } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public Builder setProfiles( int index, io.opentelemetry.proto.profiles.v1experimental.ProfileContainer value) { if (profilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProfilesIsMutable(); profiles_.set(index, value); onChanged(); } else { profilesBuilder_.setMessage(index, value); } return this; } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public Builder setProfiles( int index, io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.Builder builderForValue) { if (profilesBuilder_ == null) { ensureProfilesIsMutable(); profiles_.set(index, builderForValue.build()); onChanged(); } else { profilesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public Builder addProfiles(io.opentelemetry.proto.profiles.v1experimental.ProfileContainer value) { if (profilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProfilesIsMutable(); profiles_.add(value); onChanged(); } else { profilesBuilder_.addMessage(value); } return this; } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public Builder addProfiles( int index, io.opentelemetry.proto.profiles.v1experimental.ProfileContainer value) { if (profilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProfilesIsMutable(); profiles_.add(index, value); onChanged(); } else { profilesBuilder_.addMessage(index, value); } return this; } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public Builder addProfiles( io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.Builder builderForValue) { if (profilesBuilder_ == null) { ensureProfilesIsMutable(); profiles_.add(builderForValue.build()); onChanged(); } else { profilesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public Builder addProfiles( int index, io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.Builder builderForValue) { if (profilesBuilder_ == null) { ensureProfilesIsMutable(); profiles_.add(index, builderForValue.build()); onChanged(); } else { profilesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public Builder addAllProfiles( java.lang.Iterable values) { if (profilesBuilder_ == null) { ensureProfilesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, profiles_); onChanged(); } else { profilesBuilder_.addAllMessages(values); } return this; } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public Builder clearProfiles() { if (profilesBuilder_ == null) { profiles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { profilesBuilder_.clear(); } return this; } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public Builder removeProfiles(int index) { if (profilesBuilder_ == null) { ensureProfilesIsMutable(); profiles_.remove(index); onChanged(); } else { profilesBuilder_.remove(index); } return this; } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.Builder getProfilesBuilder( int index) { return getProfilesFieldBuilder().getBuilder(index); } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public io.opentelemetry.proto.profiles.v1experimental.ProfileContainerOrBuilder getProfilesOrBuilder( int index) { if (profilesBuilder_ == null) { return profiles_.get(index); } else { return profilesBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public java.util.List getProfilesOrBuilderList() { if (profilesBuilder_ != null) { return profilesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(profiles_); } } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.Builder addProfilesBuilder() { return getProfilesFieldBuilder().addBuilder( io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.getDefaultInstance()); } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.Builder addProfilesBuilder( int index) { return getProfilesFieldBuilder().addBuilder( index, io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.getDefaultInstance()); } /** *
     * A list of ProfileContainers that originate from an instrumentation scope.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; */ public java.util.List getProfilesBuilderList() { return getProfilesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1experimental.ProfileContainer, io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.Builder, io.opentelemetry.proto.profiles.v1experimental.ProfileContainerOrBuilder> getProfilesFieldBuilder() { if (profilesBuilder_ == null) { profilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1experimental.ProfileContainer, io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.Builder, io.opentelemetry.proto.profiles.v1experimental.ProfileContainerOrBuilder>( profiles_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); profiles_ = null; } return profilesBuilder_; } private java.lang.Object schemaUrl_ = ""; /** *
     * The Schema URL, if known. This is the identifier of the Schema that the metric data
     * is recorded in. To learn more about Schema URL see
     * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
     * This schema_url applies to all profiles in the "profiles" 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; } } /** *
     * The Schema URL, if known. This is the identifier of the Schema that the metric data
     * is recorded in. To learn more about Schema URL see
     * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
     * This schema_url applies to all profiles in the "profiles" 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; } } /** *
     * The Schema URL, if known. This is the identifier of the Schema that the metric data
     * is recorded in. To learn more about Schema URL see
     * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
     * This schema_url applies to all profiles in the "profiles" 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The Schema URL, if known. This is the identifier of the Schema that the metric data
     * is recorded in. To learn more about Schema URL see
     * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
     * This schema_url applies to all profiles in the "profiles" field.
     * 
* * string schema_url = 3; * @return This builder for chaining. */ public Builder clearSchemaUrl() { schemaUrl_ = getDefaultInstance().getSchemaUrl(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * The Schema URL, if known. This is the identifier of the Schema that the metric data
     * is recorded in. To learn more about Schema URL see
     * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
     * This schema_url applies to all profiles in the "profiles" 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; bitField0_ |= 0x00000004; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:opentelemetry.proto.profiles.v1experimental.ScopeProfiles) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.profiles.v1experimental.ScopeProfiles) private static final io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles(); } public static io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScopeProfiles 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 io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy