@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableAttributeMap(); 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 Builder putAttributeMap( java.lang.String key, com.google.devtools.cloudtrace.v2.AttributeValue value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableAttributeMap().getMutableMap().put(key, value); return this; } /**
/** * * * <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 Builder removeAttributeMap(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAttributeMap().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors 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 Builder putAttributeMap( java.lang.String key, com.google.devtools.cloudtrace.v2.AttributeValue value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableAttributeMap().getMutableMap().put(key, value); return this; } /**
/** * * * <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 Builder removeAttributeMap(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAttributeMap().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors 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 Builder putAllAttributeMap( java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> values) { internalGetMutableAttributeMap().getMutableMap().putAll(values); return this; }
/** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> getMutableAttributeMap() { return internalGetMutableAttributeMap().getMutableMap(); } /**
@java.lang.Override public Builder clear() { super.clear(); internalGetMutableAttributeMap().clear(); droppedAttributesCount_ = 0; return this; }
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableAttributeMap(); default: throw new RuntimeException("Invalid map field number: " + number); } }
public Builder clearAttributeMap() { internalGetMutableAttributeMap().getMutableMap().clear(); return this; } /**
public Builder mergeFrom(com.google.devtools.cloudtrace.v2.Span.Attributes other) { if (other == com.google.devtools.cloudtrace.v2.Span.Attributes.getDefaultInstance()) return this; internalGetMutableAttributeMap().mergeFrom(other.internalGetAttributeMap()); if (other.getDroppedAttributesCount() != 0) { setDroppedAttributesCount(other.getDroppedAttributesCount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <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 Builder putAllAttributeMap( java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> values) { internalGetMutableAttributeMap().getMutableMap().putAll(values); return this; }
/** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, com.google.devtools.cloudtrace.v2.AttributeValue> getMutableAttributeMap() { return internalGetMutableAttributeMap().getMutableMap(); } /**
public Builder mergeFrom(com.google.devtools.cloudtrace.v2.Span.Attributes other) { if (other == com.google.devtools.cloudtrace.v2.Span.Attributes.getDefaultInstance()) return this; internalGetMutableAttributeMap().mergeFrom(other.internalGetAttributeMap()); if (other.getDroppedAttributesCount() != 0) { setDroppedAttributesCount(other.getDroppedAttributesCount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder clearAttributeMap() { internalGetMutableAttributeMap().getMutableMap().clear(); return this; } /**
@java.lang.Override public Builder clear() { super.clear(); internalGetMutableAttributeMap().clear(); droppedAttributesCount_ = 0; return this; }