Package io.opentelemetry.proto.common.v1
Class AnyValue.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<AnyValue,AnyValue.Builder>
io.opentelemetry.proto.common.v1.AnyValue.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,AnyValueOrBuilder,Cloneable
- Enclosing class:
- AnyValue
public static final class AnyValue.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<AnyValue,AnyValue.Builder>
implements AnyValueOrBuilder
Represents any type of attribute value. AnyValue may contain a primitive value such as a string or integer or it may contain an arbitrary nested object containing arrays, key-value lists and primitives.Protobuf type
opentelemetry.proto.common.v1.AnyValue-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription.opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];bool bool_value = 2 [json_name = "boolValue"];bytes bytes_value = 7 [json_name = "bytesValue"];double double_value = 4 [json_name = "doubleValue"];int64 int_value = 3 [json_name = "intValue"];.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];string string_value = 1 [json_name = "stringValue"];.opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];booleanbool bool_value = 2 [json_name = "boolValue"];com.google.protobuf.ByteStringbytes bytes_value = 7 [json_name = "bytesValue"];doubledouble double_value = 4 [json_name = "doubleValue"];longint64 int_value = 3 [json_name = "intValue"];.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];string string_value = 1 [json_name = "stringValue"];com.google.protobuf.ByteStringstring string_value = 1 [json_name = "stringValue"];boolean.opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];booleanbool bool_value = 2 [json_name = "boolValue"];booleanbytes bytes_value = 7 [json_name = "bytesValue"];booleandouble double_value = 4 [json_name = "doubleValue"];booleanint64 int_value = 3 [json_name = "intValue"];boolean.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];booleanstring string_value = 1 [json_name = "stringValue"];mergeArrayValue(ArrayValue value) .opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];mergeKvlistValue(KeyValueList value) .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];setArrayValue(ArrayValue value) .opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];setArrayValue(ArrayValue.Builder builderForValue) .opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];setBoolValue(boolean value) bool bool_value = 2 [json_name = "boolValue"];setBytesValue(com.google.protobuf.ByteString value) bytes bytes_value = 7 [json_name = "bytesValue"];setDoubleValue(double value) double double_value = 4 [json_name = "doubleValue"];setIntValue(long value) int64 int_value = 3 [json_name = "intValue"];setKvlistValue(KeyValueList value) .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];setKvlistValue(KeyValueList.Builder builderForValue) .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];setStringValue(String value) string string_value = 1 [json_name = "stringValue"];setStringValueBytes(com.google.protobuf.ByteString value) string string_value = 1 [json_name = "stringValue"];Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getValueCase
- Specified by:
getValueCasein interfaceAnyValueOrBuilder
-
clearValue
-
hasStringValue
public boolean hasStringValue()string string_value = 1 [json_name = "stringValue"];- Specified by:
hasStringValuein interfaceAnyValueOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
string string_value = 1 [json_name = "stringValue"];- Specified by:
getStringValuein interfaceAnyValueOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()string string_value = 1 [json_name = "stringValue"];- Specified by:
getStringValueBytesin interfaceAnyValueOrBuilder- Returns:
- The bytes for stringValue.
-
setStringValue
string string_value = 1 [json_name = "stringValue"];- Parameters:
value- The stringValue to set.- Returns:
- This builder for chaining.
-
clearStringValue
string string_value = 1 [json_name = "stringValue"];- Returns:
- This builder for chaining.
-
setStringValueBytes
string string_value = 1 [json_name = "stringValue"];- Parameters:
value- The bytes for stringValue to set.- Returns:
- This builder for chaining.
-
hasBoolValue
public boolean hasBoolValue()bool bool_value = 2 [json_name = "boolValue"];- Specified by:
hasBoolValuein interfaceAnyValueOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()bool bool_value = 2 [json_name = "boolValue"];- Specified by:
getBoolValuein interfaceAnyValueOrBuilder- Returns:
- The boolValue.
-
setBoolValue
bool bool_value = 2 [json_name = "boolValue"];- Parameters:
value- The boolValue to set.- Returns:
- This builder for chaining.
-
clearBoolValue
bool bool_value = 2 [json_name = "boolValue"];- Returns:
- This builder for chaining.
-
hasIntValue
public boolean hasIntValue()int64 int_value = 3 [json_name = "intValue"];- Specified by:
hasIntValuein interfaceAnyValueOrBuilder- Returns:
- Whether the intValue field is set.
-
getIntValue
public long getIntValue()int64 int_value = 3 [json_name = "intValue"];- Specified by:
getIntValuein interfaceAnyValueOrBuilder- Returns:
- The intValue.
-
setIntValue
int64 int_value = 3 [json_name = "intValue"];- Parameters:
value- The intValue to set.- Returns:
- This builder for chaining.
-
clearIntValue
int64 int_value = 3 [json_name = "intValue"];- Returns:
- This builder for chaining.
-
hasDoubleValue
public boolean hasDoubleValue()double double_value = 4 [json_name = "doubleValue"];- Specified by:
hasDoubleValuein interfaceAnyValueOrBuilder- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()double double_value = 4 [json_name = "doubleValue"];- Specified by:
getDoubleValuein interfaceAnyValueOrBuilder- Returns:
- The doubleValue.
-
setDoubleValue
double double_value = 4 [json_name = "doubleValue"];- Parameters:
value- The doubleValue to set.- Returns:
- This builder for chaining.
-
clearDoubleValue
double double_value = 4 [json_name = "doubleValue"];- Returns:
- This builder for chaining.
-
hasArrayValue
public boolean hasArrayValue().opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];- Specified by:
hasArrayValuein interfaceAnyValueOrBuilder- Returns:
- Whether the arrayValue field is set.
-
getArrayValue
.opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];- Specified by:
getArrayValuein interfaceAnyValueOrBuilder- Returns:
- The arrayValue.
-
setArrayValue
.opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"]; -
setArrayValue
.opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"]; -
mergeArrayValue
.opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"]; -
clearArrayValue
.opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"]; -
hasKvlistValue
public boolean hasKvlistValue().opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];- Specified by:
hasKvlistValuein interfaceAnyValueOrBuilder- Returns:
- Whether the kvlistValue field is set.
-
getKvlistValue
.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];- Specified by:
getKvlistValuein interfaceAnyValueOrBuilder- Returns:
- The kvlistValue.
-
setKvlistValue
.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"]; -
setKvlistValue
.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"]; -
mergeKvlistValue
.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"]; -
clearKvlistValue
.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"]; -
hasBytesValue
public boolean hasBytesValue()bytes bytes_value = 7 [json_name = "bytesValue"];- Specified by:
hasBytesValuein interfaceAnyValueOrBuilder- Returns:
- Whether the bytesValue field is set.
-
getBytesValue
public com.google.protobuf.ByteString getBytesValue()bytes bytes_value = 7 [json_name = "bytesValue"];- Specified by:
getBytesValuein interfaceAnyValueOrBuilder- Returns:
- The bytesValue.
-
setBytesValue
bytes bytes_value = 7 [json_name = "bytesValue"];- Parameters:
value- The bytesValue to set.- Returns:
- This builder for chaining.
-
clearBytesValue
bytes bytes_value = 7 [json_name = "bytesValue"];- Returns:
- This builder for chaining.
-