@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetAttributeMap(); default: throw new RuntimeException("Invalid map field number: " + number); } }
/** * * * <pre> * The set of attributes. Each attribute's key can be up to 128 bytes * long. The value can be a string up to 256 bytes, an integer, or the * Boolean values `true` and `false`. For example: * "/instance_id": "my-instance" * "/http/user_agent": "" * "/http/request_bytes": 300 * "abc.com/myattribute": true * </pre> * * <code>map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1; * </code> */ public com.google.devtools.cloudtrace.v2.AttributeValue getAttributeMapOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> map = internalGetAttributeMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
/** * * * <pre> * The set of attributes. Each attribute's key can be up to 128 bytes * long. The value can be a string up to 256 bytes, an integer, or the * Boolean values `true` and `false`. For example: * "/instance_id": "my-instance" * "/http/user_agent": "" * "/http/request_bytes": 300 * "abc.com/myattribute": true * </pre> * * <code>map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1; * </code> */ public com.google.devtools.cloudtrace.v2.AttributeValue getAttributeMapOrDefault( java.lang.String key, com.google.devtools.cloudtrace.v2.AttributeValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> map = internalGetAttributeMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
/** * * * <pre> * The set of attributes. Each attribute's key can be up to 128 bytes * long. The value can be a string up to 256 bytes, an integer, or the * Boolean values `true` and `false`. For example: * "/instance_id": "my-instance" * "/http/user_agent": "" * "/http/request_bytes": 300 * "abc.com/myattribute": true * </pre> * * <code>map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1; * </code> */ public com.google.devtools.cloudtrace.v2.AttributeValue getAttributeMapOrDefault( java.lang.String key, com.google.devtools.cloudtrace.v2.AttributeValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> map = internalGetAttributeMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
/** * * * <pre> * The set of attributes. Each attribute's key can be up to 128 bytes * long. The value can be a string up to 256 bytes, an integer, or the * Boolean values `true` and `false`. For example: * "/instance_id": "my-instance" * "/http/user_agent": "" * "/http/request_bytes": 300 * "abc.com/myattribute": true * </pre> * * <code>map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1; * </code> */ public com.google.devtools.cloudtrace.v2.AttributeValue getAttributeMapOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> map = internalGetAttributeMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
/** * * * <pre> * The set of attributes. Each attribute's key can be up to 128 bytes * long. The value can be a string up to 256 bytes, an integer, or the * Boolean values `true` and `false`. For example: * "/instance_id": "my-instance" * "/http/user_agent": "" * "/http/request_bytes": 300 * "abc.com/myattribute": true * </pre> * * <code>map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1; * </code> */ public boolean containsAttributeMap(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttributeMap().getMap().containsKey(key); } /** Use {@link #getAttributeMapMap()} instead. */
/** * * * <pre> * The set of attributes. Each attribute's key can be up to 128 bytes * long. The value can be a string up to 256 bytes, an integer, or the * Boolean values `true` and `false`. For example: * "/instance_id": "my-instance" * "/http/user_agent": "" * "/http/request_bytes": 300 * "abc.com/myattribute": true * </pre> * * <code>map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1; * </code> */ public java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> getAttributeMapMap() { return internalGetAttributeMap().getMap(); } /**
@java.lang.Override public com.google.devtools.cloudtrace.v2.Span.Attributes buildPartial() { com.google.devtools.cloudtrace.v2.Span.Attributes result = new com.google.devtools.cloudtrace.v2.Span.Attributes(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.attributeMap_ = internalGetAttributeMap(); result.attributeMap_.makeImmutable(); result.droppedAttributesCount_ = droppedAttributesCount_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public int getAttributeMapCount() { return internalGetAttributeMap().getMap().size(); } /**
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetAttributeMap(); default: throw new RuntimeException("Invalid map field number: " + number); } }
/** * * * <pre> * The set of attributes. Each attribute's key can be up to 128 bytes * long. The value can be a string up to 256 bytes, an integer, or the * Boolean values `true` and `false`. For example: * "/instance_id": "my-instance" * "/http/user_agent": "" * "/http/request_bytes": 300 * "abc.com/myattribute": true * </pre> * * <code>map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1; * </code> */ public boolean containsAttributeMap(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAttributeMap().getMap().containsKey(key); } /** Use {@link #getAttributeMapMap()} instead. */
/** * * * <pre> * The set of attributes. Each attribute's key can be up to 128 bytes * long. The value can be a string up to 256 bytes, an integer, or the * Boolean values `true` and `false`. For example: * "/instance_id": "my-instance" * "/http/user_agent": "" * "/http/request_bytes": 300 * "abc.com/myattribute": true * </pre> * * <code>map<string, .google.devtools.cloudtrace.v2.AttributeValue> attribute_map = 1; * </code> */ public java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> getAttributeMapMap() { return internalGetAttributeMap().getMap(); } /**
@java.lang.Override public com.google.devtools.cloudtrace.v2.Span.Attributes buildPartial() { com.google.devtools.cloudtrace.v2.Span.Attributes result = new com.google.devtools.cloudtrace.v2.Span.Attributes(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.attributeMap_ = internalGetAttributeMap(); result.attributeMap_.makeImmutable(); result.droppedAttributesCount_ = droppedAttributesCount_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public int getAttributeMapCount() { return internalGetAttributeMap().getMap().size(); } /**