Package io.opentelemetry.proto.common.v1
Class KeyValueList.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
- io.opentelemetry.proto.common.v1.KeyValueList.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,KeyValueListOrBuilder,Cloneable
- Enclosing class:
- KeyValueList
public static final class KeyValueList.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder> implements KeyValueListOrBuilder
KeyValueList is a list of KeyValue messages. We need KeyValueList as a message since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly to avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches are semantically equivalent.
Protobuf typeopentelemetry.proto.common.v1.KeyValueList
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyValueList.BuilderaddAllValues(Iterable<? extends KeyValue> values)A collection of key/value pairs of key-value pairs.KeyValueList.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)KeyValueList.BuilderaddValues(int index, KeyValue value)A collection of key/value pairs of key-value pairs.KeyValueList.BuilderaddValues(int index, KeyValue.Builder builderForValue)A collection of key/value pairs of key-value pairs.KeyValueList.BuilderaddValues(KeyValue value)A collection of key/value pairs of key-value pairs.KeyValueList.BuilderaddValues(KeyValue.Builder builderForValue)A collection of key/value pairs of key-value pairs.KeyValue.BuilderaddValuesBuilder()A collection of key/value pairs of key-value pairs.KeyValue.BuilderaddValuesBuilder(int index)A collection of key/value pairs of key-value pairs.KeyValueListbuild()KeyValueListbuildPartial()KeyValueList.Builderclear()KeyValueList.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)KeyValueList.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)KeyValueList.BuilderclearValues()A collection of key/value pairs of key-value pairs.KeyValueList.Builderclone()KeyValueListgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()KeyValuegetValues(int index)A collection of key/value pairs of key-value pairs.KeyValue.BuildergetValuesBuilder(int index)A collection of key/value pairs of key-value pairs.List<KeyValue.Builder>getValuesBuilderList()A collection of key/value pairs of key-value pairs.intgetValuesCount()A collection of key/value pairs of key-value pairs.List<KeyValue>getValuesList()A collection of key/value pairs of key-value pairs.KeyValueOrBuildergetValuesOrBuilder(int index)A collection of key/value pairs of key-value pairs.List<? extends KeyValueOrBuilder>getValuesOrBuilderList()A collection of key/value pairs of key-value pairs.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()KeyValueList.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)KeyValueList.BuildermergeFrom(com.google.protobuf.Message other)KeyValueList.BuildermergeFrom(KeyValueList other)KeyValueList.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)KeyValueList.BuilderremoveValues(int index)A collection of key/value pairs of key-value pairs.KeyValueList.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)KeyValueList.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)KeyValueList.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)KeyValueList.BuildersetValues(int index, KeyValue value)A collection of key/value pairs of key-value pairs.KeyValueList.BuildersetValues(int index, KeyValue.Builder builderForValue)A collection of key/value pairs of key-value pairs.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
clear
public KeyValueList.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
getDefaultInstanceForType
public KeyValueList getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public KeyValueList build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public KeyValueList buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public KeyValueList.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
setField
public KeyValueList.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
clearField
public KeyValueList.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
clearOneof
public KeyValueList.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
setRepeatedField
public KeyValueList.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
addRepeatedField
public KeyValueList.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
mergeFrom
public KeyValueList.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KeyValueList.Builder>
-
mergeFrom
public KeyValueList.Builder mergeFrom(KeyValueList other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
mergeFrom
public KeyValueList.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KeyValueList.Builder>- Throws:
IOException
-
getValuesList
public List<KeyValue> getValuesList()
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;- Specified by:
getValuesListin interfaceKeyValueListOrBuilder
-
getValuesCount
public int getValuesCount()
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;- Specified by:
getValuesCountin interfaceKeyValueListOrBuilder
-
getValues
public KeyValue getValues(int index)
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;- Specified by:
getValuesin interfaceKeyValueListOrBuilder
-
setValues
public KeyValueList.Builder setValues(int index, KeyValue value)
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
setValues
public KeyValueList.Builder setValues(int index, KeyValue.Builder builderForValue)
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
addValues
public KeyValueList.Builder addValues(KeyValue value)
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
addValues
public KeyValueList.Builder addValues(int index, KeyValue value)
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
addValues
public KeyValueList.Builder addValues(KeyValue.Builder builderForValue)
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
addValues
public KeyValueList.Builder addValues(int index, KeyValue.Builder builderForValue)
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
addAllValues
public KeyValueList.Builder addAllValues(Iterable<? extends KeyValue> values)
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
clearValues
public KeyValueList.Builder clearValues()
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
removeValues
public KeyValueList.Builder removeValues(int index)
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
getValuesBuilder
public KeyValue.Builder getValuesBuilder(int index)
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
getValuesOrBuilder
public KeyValueOrBuilder getValuesOrBuilder(int index)
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;- Specified by:
getValuesOrBuilderin interfaceKeyValueListOrBuilder
-
getValuesOrBuilderList
public List<? extends KeyValueOrBuilder> getValuesOrBuilderList()
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;- Specified by:
getValuesOrBuilderListin interfaceKeyValueListOrBuilder
-
addValuesBuilder
public KeyValue.Builder addValuesBuilder()
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
addValuesBuilder
public KeyValue.Builder addValuesBuilder(int index)
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
getValuesBuilderList
public List<KeyValue.Builder> getValuesBuilderList()
A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue values = 1;
-
setUnknownFields
public final KeyValueList.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
mergeUnknownFields
public final KeyValueList.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<KeyValueList.Builder>
-
-