/** * * * <pre> * A set of attributes on the annotation. You can have up to 4 attributes * per Annotation. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;</code> */ public Builder setAttributes(com.google.devtools.cloudtrace.v2.Span.Attributes value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attributes_ = value; onChanged(); } else { attributesBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * A user-supplied message describing the event. The maximum length for * the description is 256 bytes. * </pre> * * <code>.google.devtools.cloudtrace.v2.TruncatableString description = 1;</code> */ public Builder setDescription(com.google.devtools.cloudtrace.v2.TruncatableString value) { if (descriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); } else { descriptionBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * A set of attributes on the annotation. You can have up to 4 attributes * per Annotation. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;</code> */ public com.google.devtools.cloudtrace.v2.Span.Attributes.Builder getAttributesBuilder() { onChanged(); return getAttributesFieldBuilder().getBuilder(); } /**
/** * * * <pre> * A set of attributes on the annotation. You can have up to 4 attributes * per Annotation. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;</code> */ public Builder setAttributes(com.google.devtools.cloudtrace.v2.Span.Attributes value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attributes_ = value; onChanged(); } else { attributesBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * A user-supplied message describing the event. The maximum length for * the description is 256 bytes. * </pre> * * <code>.google.devtools.cloudtrace.v2.TruncatableString description = 1;</code> */ public Builder setDescription(com.google.devtools.cloudtrace.v2.TruncatableString value) { if (descriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); } else { descriptionBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * A set of attributes on the annotation. You can have up to 4 attributes * per Annotation. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;</code> */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = null; onChanged(); } else { attributes_ = null; attributesBuilder_ = null; } return this; } /**
/** * * * <pre> * A set of attributes on the annotation. You can have up to 4 attributes * per Annotation. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;</code> */ public Builder setAttributes( com.google.devtools.cloudtrace.v2.Span.Attributes.Builder builderForValue) { if (attributesBuilder_ == null) { attributes_ = builderForValue.build(); onChanged(); } else { attributesBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * A user-supplied message describing the event. The maximum length for * the description is 256 bytes. * </pre> * * <code>.google.devtools.cloudtrace.v2.TruncatableString description = 1;</code> */ public Builder clearDescription() { if (descriptionBuilder_ == null) { description_ = null; onChanged(); } else { description_ = null; descriptionBuilder_ = null; } return this; } /**
/** * * * <pre> * A user-supplied message describing the event. The maximum length for * the description is 256 bytes. * </pre> * * <code>.google.devtools.cloudtrace.v2.TruncatableString description = 1;</code> */ public Builder setDescription( com.google.devtools.cloudtrace.v2.TruncatableString.Builder builderForValue) { if (descriptionBuilder_ == null) { description_ = builderForValue.build(); onChanged(); } else { descriptionBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * A user-supplied message describing the event. The maximum length for * the description is 256 bytes. * </pre> * * <code>.google.devtools.cloudtrace.v2.TruncatableString description = 1;</code> */ public com.google.devtools.cloudtrace.v2.TruncatableString.Builder getDescriptionBuilder() { onChanged(); return getDescriptionFieldBuilder().getBuilder(); } /**
public Builder mergeFrom( com.google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation other) { if (other == com.google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation.getDefaultInstance()) return this; if (other.hasDescription()) { mergeDescription(other.getDescription()); } if (other.hasAttributes()) { mergeAttributes(other.getAttributes()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * A set of attributes on the annotation. You can have up to 4 attributes * per Annotation. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;</code> */ public com.google.devtools.cloudtrace.v2.Span.Attributes.Builder getAttributesBuilder() { onChanged(); return getAttributesFieldBuilder().getBuilder(); } /**
/** * * * <pre> * A user-supplied message describing the event. The maximum length for * the description is 256 bytes. * </pre> * * <code>.google.devtools.cloudtrace.v2.TruncatableString description = 1;</code> */ public Builder mergeDescription(com.google.devtools.cloudtrace.v2.TruncatableString value) { if (descriptionBuilder_ == null) { if (description_ != null) { description_ = com.google.devtools.cloudtrace.v2.TruncatableString.newBuilder(description_) .mergeFrom(value) .buildPartial(); } else { description_ = value; } onChanged(); } else { descriptionBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * A set of attributes on the annotation. You can have up to 4 attributes * per Annotation. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;</code> */ public Builder mergeAttributes(com.google.devtools.cloudtrace.v2.Span.Attributes value) { if (attributesBuilder_ == null) { if (attributes_ != null) { attributes_ = com.google.devtools.cloudtrace.v2.Span.Attributes.newBuilder(attributes_) .mergeFrom(value) .buildPartial(); } else { attributes_ = value; } onChanged(); } else { attributesBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * A set of attributes on the annotation. You can have up to 4 attributes * per Annotation. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;</code> */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = null; onChanged(); } else { attributes_ = null; attributesBuilder_ = null; } return this; } /**
/** * * * <pre> * A set of attributes on the annotation. You can have up to 4 attributes * per Annotation. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;</code> */ public Builder setAttributes( com.google.devtools.cloudtrace.v2.Span.Attributes.Builder builderForValue) { if (attributesBuilder_ == null) { attributes_ = builderForValue.build(); onChanged(); } else { attributesBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * A user-supplied message describing the event. The maximum length for * the description is 256 bytes. * </pre> * * <code>.google.devtools.cloudtrace.v2.TruncatableString description = 1;</code> */ public Builder setDescription( com.google.devtools.cloudtrace.v2.TruncatableString.Builder builderForValue) { if (descriptionBuilder_ == null) { description_ = builderForValue.build(); onChanged(); } else { descriptionBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * A user-supplied message describing the event. The maximum length for * the description is 256 bytes. * </pre> * * <code>.google.devtools.cloudtrace.v2.TruncatableString description = 1;</code> */ public Builder clearDescription() { if (descriptionBuilder_ == null) { description_ = null; onChanged(); } else { description_ = null; descriptionBuilder_ = null; } return this; } /**
public Builder mergeFrom( com.google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation other) { if (other == com.google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation.getDefaultInstance()) return this; if (other.hasDescription()) { mergeDescription(other.getDescription()); } if (other.hasAttributes()) { mergeAttributes(other.getAttributes()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * A user-supplied message describing the event. The maximum length for * the description is 256 bytes. * </pre> * * <code>.google.devtools.cloudtrace.v2.TruncatableString description = 1;</code> */ public com.google.devtools.cloudtrace.v2.TruncatableString.Builder getDescriptionBuilder() { onChanged(); return getDescriptionFieldBuilder().getBuilder(); } /**