
io.opentelemetry.proto.profiles.v1experimental.ProfilesData Maven / Gradle / Ivy
// 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;
/**
*
* ProfilesData represents the profiles data that can be stored in persistent storage,
* OR can be embedded by other protocols that transfer OTLP profiles data but do not
* implement the OTLP protocol.
*
* The main difference between this message and collector protocol is that
* in this message there will not be any "control" or "metadata" specific to
* OTLP protocol.
*
* When new fields are added into this message, the OTLP request MUST be updated
* as well.
*
*
* Protobuf type {@code opentelemetry.proto.profiles.v1experimental.ProfilesData}
*/
public final class ProfilesData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opentelemetry.proto.profiles.v1experimental.ProfilesData)
ProfilesDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProfilesData.newBuilder() to construct.
private ProfilesData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProfilesData() {
resourceProfiles_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProfilesData();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ProfilesData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ProfilesData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.profiles.v1experimental.ProfilesData.class, io.opentelemetry.proto.profiles.v1experimental.ProfilesData.Builder.class);
}
public static final int RESOURCE_PROFILES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List resourceProfiles_;
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
@java.lang.Override
public java.util.List getResourceProfilesList() {
return resourceProfiles_;
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
@java.lang.Override
public java.util.List extends io.opentelemetry.proto.profiles.v1experimental.ResourceProfilesOrBuilder>
getResourceProfilesOrBuilderList() {
return resourceProfiles_;
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
@java.lang.Override
public int getResourceProfilesCount() {
return resourceProfiles_.size();
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles getResourceProfiles(int index) {
return resourceProfiles_.get(index);
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.ResourceProfilesOrBuilder getResourceProfilesOrBuilder(
int index) {
return resourceProfiles_.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 < resourceProfiles_.size(); i++) {
output.writeMessage(1, resourceProfiles_.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 < resourceProfiles_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, resourceProfiles_.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 io.opentelemetry.proto.profiles.v1experimental.ProfilesData)) {
return super.equals(obj);
}
io.opentelemetry.proto.profiles.v1experimental.ProfilesData other = (io.opentelemetry.proto.profiles.v1experimental.ProfilesData) obj;
if (!getResourceProfilesList()
.equals(other.getResourceProfilesList())) 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 (getResourceProfilesCount() > 0) {
hash = (37 * hash) + RESOURCE_PROFILES_FIELD_NUMBER;
hash = (53 * hash) + getResourceProfilesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfilesData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfilesData 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.ProfilesData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfilesData 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.ProfilesData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfilesData 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.ProfilesData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfilesData 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.ProfilesData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfilesData 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.ProfilesData 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.ProfilesData 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.ProfilesData 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;
}
/**
*
* ProfilesData represents the profiles data that can be stored in persistent storage,
* OR can be embedded by other protocols that transfer OTLP profiles data but do not
* implement the OTLP protocol.
*
* The main difference between this message and collector protocol is that
* in this message there will not be any "control" or "metadata" specific to
* OTLP protocol.
*
* When new fields are added into this message, the OTLP request MUST be updated
* as well.
*
*
* Protobuf type {@code opentelemetry.proto.profiles.v1experimental.ProfilesData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opentelemetry.proto.profiles.v1experimental.ProfilesData)
io.opentelemetry.proto.profiles.v1experimental.ProfilesDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ProfilesData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ProfilesData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.profiles.v1experimental.ProfilesData.class, io.opentelemetry.proto.profiles.v1experimental.ProfilesData.Builder.class);
}
// Construct using io.opentelemetry.proto.profiles.v1experimental.ProfilesData.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (resourceProfilesBuilder_ == null) {
resourceProfiles_ = java.util.Collections.emptyList();
} else {
resourceProfiles_ = null;
resourceProfilesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
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_ProfilesData_descriptor;
}
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.ProfilesData getDefaultInstanceForType() {
return io.opentelemetry.proto.profiles.v1experimental.ProfilesData.getDefaultInstance();
}
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.ProfilesData build() {
io.opentelemetry.proto.profiles.v1experimental.ProfilesData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.ProfilesData buildPartial() {
io.opentelemetry.proto.profiles.v1experimental.ProfilesData result = new io.opentelemetry.proto.profiles.v1experimental.ProfilesData(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.opentelemetry.proto.profiles.v1experimental.ProfilesData result) {
if (resourceProfilesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
resourceProfiles_ = java.util.Collections.unmodifiableList(resourceProfiles_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.resourceProfiles_ = resourceProfiles_;
} else {
result.resourceProfiles_ = resourceProfilesBuilder_.build();
}
}
private void buildPartial0(io.opentelemetry.proto.profiles.v1experimental.ProfilesData 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 io.opentelemetry.proto.profiles.v1experimental.ProfilesData) {
return mergeFrom((io.opentelemetry.proto.profiles.v1experimental.ProfilesData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opentelemetry.proto.profiles.v1experimental.ProfilesData other) {
if (other == io.opentelemetry.proto.profiles.v1experimental.ProfilesData.getDefaultInstance()) return this;
if (resourceProfilesBuilder_ == null) {
if (!other.resourceProfiles_.isEmpty()) {
if (resourceProfiles_.isEmpty()) {
resourceProfiles_ = other.resourceProfiles_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResourceProfilesIsMutable();
resourceProfiles_.addAll(other.resourceProfiles_);
}
onChanged();
}
} else {
if (!other.resourceProfiles_.isEmpty()) {
if (resourceProfilesBuilder_.isEmpty()) {
resourceProfilesBuilder_.dispose();
resourceProfilesBuilder_ = null;
resourceProfiles_ = other.resourceProfiles_;
bitField0_ = (bitField0_ & ~0x00000001);
resourceProfilesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResourceProfilesFieldBuilder() : null;
} else {
resourceProfilesBuilder_.addAllMessages(other.resourceProfiles_);
}
}
}
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: {
io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles m =
input.readMessage(
io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.parser(),
extensionRegistry);
if (resourceProfilesBuilder_ == null) {
ensureResourceProfilesIsMutable();
resourceProfiles_.add(m);
} else {
resourceProfilesBuilder_.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 resourceProfiles_ =
java.util.Collections.emptyList();
private void ensureResourceProfilesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
resourceProfiles_ = new java.util.ArrayList(resourceProfiles_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles, io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.Builder, io.opentelemetry.proto.profiles.v1experimental.ResourceProfilesOrBuilder> resourceProfilesBuilder_;
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public java.util.List getResourceProfilesList() {
if (resourceProfilesBuilder_ == null) {
return java.util.Collections.unmodifiableList(resourceProfiles_);
} else {
return resourceProfilesBuilder_.getMessageList();
}
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public int getResourceProfilesCount() {
if (resourceProfilesBuilder_ == null) {
return resourceProfiles_.size();
} else {
return resourceProfilesBuilder_.getCount();
}
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles getResourceProfiles(int index) {
if (resourceProfilesBuilder_ == null) {
return resourceProfiles_.get(index);
} else {
return resourceProfilesBuilder_.getMessage(index);
}
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public Builder setResourceProfiles(
int index, io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles value) {
if (resourceProfilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceProfilesIsMutable();
resourceProfiles_.set(index, value);
onChanged();
} else {
resourceProfilesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public Builder setResourceProfiles(
int index, io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.Builder builderForValue) {
if (resourceProfilesBuilder_ == null) {
ensureResourceProfilesIsMutable();
resourceProfiles_.set(index, builderForValue.build());
onChanged();
} else {
resourceProfilesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public Builder addResourceProfiles(io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles value) {
if (resourceProfilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceProfilesIsMutable();
resourceProfiles_.add(value);
onChanged();
} else {
resourceProfilesBuilder_.addMessage(value);
}
return this;
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public Builder addResourceProfiles(
int index, io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles value) {
if (resourceProfilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceProfilesIsMutable();
resourceProfiles_.add(index, value);
onChanged();
} else {
resourceProfilesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public Builder addResourceProfiles(
io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.Builder builderForValue) {
if (resourceProfilesBuilder_ == null) {
ensureResourceProfilesIsMutable();
resourceProfiles_.add(builderForValue.build());
onChanged();
} else {
resourceProfilesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public Builder addResourceProfiles(
int index, io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.Builder builderForValue) {
if (resourceProfilesBuilder_ == null) {
ensureResourceProfilesIsMutable();
resourceProfiles_.add(index, builderForValue.build());
onChanged();
} else {
resourceProfilesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public Builder addAllResourceProfiles(
java.lang.Iterable extends io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles> values) {
if (resourceProfilesBuilder_ == null) {
ensureResourceProfilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, resourceProfiles_);
onChanged();
} else {
resourceProfilesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public Builder clearResourceProfiles() {
if (resourceProfilesBuilder_ == null) {
resourceProfiles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
resourceProfilesBuilder_.clear();
}
return this;
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public Builder removeResourceProfiles(int index) {
if (resourceProfilesBuilder_ == null) {
ensureResourceProfilesIsMutable();
resourceProfiles_.remove(index);
onChanged();
} else {
resourceProfilesBuilder_.remove(index);
}
return this;
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.Builder getResourceProfilesBuilder(
int index) {
return getResourceProfilesFieldBuilder().getBuilder(index);
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public io.opentelemetry.proto.profiles.v1experimental.ResourceProfilesOrBuilder getResourceProfilesOrBuilder(
int index) {
if (resourceProfilesBuilder_ == null) {
return resourceProfiles_.get(index); } else {
return resourceProfilesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public java.util.List extends io.opentelemetry.proto.profiles.v1experimental.ResourceProfilesOrBuilder>
getResourceProfilesOrBuilderList() {
if (resourceProfilesBuilder_ != null) {
return resourceProfilesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(resourceProfiles_);
}
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.Builder addResourceProfilesBuilder() {
return getResourceProfilesFieldBuilder().addBuilder(
io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.getDefaultInstance());
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.Builder addResourceProfilesBuilder(
int index) {
return getResourceProfilesFieldBuilder().addBuilder(
index, io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.getDefaultInstance());
}
/**
*
* An array of ResourceProfiles.
* For data coming from a single resource this array will typically contain
* one element. Intermediary nodes that receive data from multiple origins
* typically batch the data before forwarding further and in that case this
* array will contain multiple elements.
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
*/
public java.util.List
getResourceProfilesBuilderList() {
return getResourceProfilesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles, io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.Builder, io.opentelemetry.proto.profiles.v1experimental.ResourceProfilesOrBuilder>
getResourceProfilesFieldBuilder() {
if (resourceProfilesBuilder_ == null) {
resourceProfilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles, io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.Builder, io.opentelemetry.proto.profiles.v1experimental.ResourceProfilesOrBuilder>(
resourceProfiles_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
resourceProfiles_ = null;
}
return resourceProfilesBuilder_;
}
@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.ProfilesData)
}
// @@protoc_insertion_point(class_scope:opentelemetry.proto.profiles.v1experimental.ProfilesData)
private static final io.opentelemetry.proto.profiles.v1experimental.ProfilesData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opentelemetry.proto.profiles.v1experimental.ProfilesData();
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfilesData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProfilesData 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.ProfilesData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy