All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opencensus.proto.agent.common.v1.Node Maven / Gradle / Ivy

There is a newer version: 1.0.47
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: opencensus/proto/agent/common/v1/common.proto

// Protobuf Java Version: 3.25.1
package io.opencensus.proto.agent.common.v1;

/**
 * 
 * Identifier metadata of the Node that produces the span or tracing data.
 * Note, this is not the metadata about the Node or service that is described by associated spans.
 * In the future we plan to extend the identifier proto definition to support
 * additional information (e.g cloud id, etc.)
 * 
* * Protobuf type {@code opencensus.proto.agent.common.v1.Node} */ public final class Node extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opencensus.proto.agent.common.v1.Node) NodeOrBuilder { private static final long serialVersionUID = 0L; // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Node() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Node(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.agent.common.v1.CommonProto.internal_static_opencensus_proto_agent_common_v1_Node_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opencensus.proto.agent.common.v1.CommonProto.internal_static_opencensus_proto_agent_common_v1_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.agent.common.v1.Node.class, io.opencensus.proto.agent.common.v1.Node.Builder.class); } private int bitField0_; public static final int IDENTIFIER_FIELD_NUMBER = 1; private io.opencensus.proto.agent.common.v1.ProcessIdentifier identifier_; /** *
   * Identifier that uniquely identifies a process within a VM/container.
   * 
* * .opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1; * @return Whether the identifier field is set. */ @java.lang.Override public boolean hasIdentifier() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Identifier that uniquely identifies a process within a VM/container.
   * 
* * .opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1; * @return The identifier. */ @java.lang.Override public io.opencensus.proto.agent.common.v1.ProcessIdentifier getIdentifier() { return identifier_ == null ? io.opencensus.proto.agent.common.v1.ProcessIdentifier.getDefaultInstance() : identifier_; } /** *
   * Identifier that uniquely identifies a process within a VM/container.
   * 
* * .opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1; */ @java.lang.Override public io.opencensus.proto.agent.common.v1.ProcessIdentifierOrBuilder getIdentifierOrBuilder() { return identifier_ == null ? io.opencensus.proto.agent.common.v1.ProcessIdentifier.getDefaultInstance() : identifier_; } public static final int LIBRARY_INFO_FIELD_NUMBER = 2; private io.opencensus.proto.agent.common.v1.LibraryInfo libraryInfo_; /** *
   * Information on the OpenCensus Library that initiates the stream.
   * 
* * .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2; * @return Whether the libraryInfo field is set. */ @java.lang.Override public boolean hasLibraryInfo() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Information on the OpenCensus Library that initiates the stream.
   * 
* * .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2; * @return The libraryInfo. */ @java.lang.Override public io.opencensus.proto.agent.common.v1.LibraryInfo getLibraryInfo() { return libraryInfo_ == null ? io.opencensus.proto.agent.common.v1.LibraryInfo.getDefaultInstance() : libraryInfo_; } /** *
   * Information on the OpenCensus Library that initiates the stream.
   * 
* * .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2; */ @java.lang.Override public io.opencensus.proto.agent.common.v1.LibraryInfoOrBuilder getLibraryInfoOrBuilder() { return libraryInfo_ == null ? io.opencensus.proto.agent.common.v1.LibraryInfo.getDefaultInstance() : libraryInfo_; } public static final int SERVICE_INFO_FIELD_NUMBER = 3; private io.opencensus.proto.agent.common.v1.ServiceInfo serviceInfo_; /** *
   * Additional information on service.
   * 
* * .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3; * @return Whether the serviceInfo field is set. */ @java.lang.Override public boolean hasServiceInfo() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Additional information on service.
   * 
* * .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3; * @return The serviceInfo. */ @java.lang.Override public io.opencensus.proto.agent.common.v1.ServiceInfo getServiceInfo() { return serviceInfo_ == null ? io.opencensus.proto.agent.common.v1.ServiceInfo.getDefaultInstance() : serviceInfo_; } /** *
   * Additional information on service.
   * 
* * .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3; */ @java.lang.Override public io.opencensus.proto.agent.common.v1.ServiceInfoOrBuilder getServiceInfoOrBuilder() { return serviceInfo_ == null ? io.opencensus.proto.agent.common.v1.ServiceInfo.getDefaultInstance() : serviceInfo_; } public static final int ATTRIBUTES_FIELD_NUMBER = 4; private static final class AttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.opencensus.proto.agent.common.v1.CommonProto.internal_static_opencensus_proto_agent_common_v1_Node_AttributesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** *
   * Additional attributes.
   * 
* * map<string, string> attributes = 4; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** *
   * Additional attributes.
   * 
* * map<string, string> attributes = 4; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** *
   * Additional attributes.
   * 
* * map<string, string> attributes = 4; */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * Additional attributes.
   * 
* * map<string, string> attributes = 4; */ @java.lang.Override public java.lang.String getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getIdentifier()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getLibraryInfo()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getServiceInfo()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 4); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getIdentifier()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLibraryInfo()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getServiceInfo()); } for (java.util.Map.Entry entry : internalGetAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, attributes__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.opencensus.proto.agent.common.v1.Node)) { return super.equals(obj); } io.opencensus.proto.agent.common.v1.Node other = (io.opencensus.proto.agent.common.v1.Node) obj; if (hasIdentifier() != other.hasIdentifier()) return false; if (hasIdentifier()) { if (!getIdentifier() .equals(other.getIdentifier())) return false; } if (hasLibraryInfo() != other.hasLibraryInfo()) return false; if (hasLibraryInfo()) { if (!getLibraryInfo() .equals(other.getLibraryInfo())) return false; } if (hasServiceInfo() != other.hasServiceInfo()) return false; if (hasServiceInfo()) { if (!getServiceInfo() .equals(other.getServiceInfo())) return false; } if (!internalGetAttributes().equals( other.internalGetAttributes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasIdentifier()) { hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getIdentifier().hashCode(); } if (hasLibraryInfo()) { hash = (37 * hash) + LIBRARY_INFO_FIELD_NUMBER; hash = (53 * hash) + getLibraryInfo().hashCode(); } if (hasServiceInfo()) { hash = (37 * hash) + SERVICE_INFO_FIELD_NUMBER; hash = (53 * hash) + getServiceInfo().hashCode(); } if (!internalGetAttributes().getMap().isEmpty()) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributes().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.opencensus.proto.agent.common.v1.Node parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.agent.common.v1.Node parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.agent.common.v1.Node parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.agent.common.v1.Node parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.agent.common.v1.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.agent.common.v1.Node parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.agent.common.v1.Node parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencensus.proto.agent.common.v1.Node parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.opencensus.proto.agent.common.v1.Node parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opencensus.proto.agent.common.v1.Node parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.opencensus.proto.agent.common.v1.Node parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencensus.proto.agent.common.v1.Node parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.opencensus.proto.agent.common.v1.Node prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Identifier metadata of the Node that produces the span or tracing data.
   * Note, this is not the metadata about the Node or service that is described by associated spans.
   * In the future we plan to extend the identifier proto definition to support
   * additional information (e.g cloud id, etc.)
   * 
* * Protobuf type {@code opencensus.proto.agent.common.v1.Node} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opencensus.proto.agent.common.v1.Node) io.opencensus.proto.agent.common.v1.NodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.agent.common.v1.CommonProto.internal_static_opencensus_proto_agent_common_v1_Node_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 4: return internalGetMutableAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opencensus.proto.agent.common.v1.CommonProto.internal_static_opencensus_proto_agent_common_v1_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.agent.common.v1.Node.class, io.opencensus.proto.agent.common.v1.Node.Builder.class); } // Construct using io.opencensus.proto.agent.common.v1.Node.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIdentifierFieldBuilder(); getLibraryInfoFieldBuilder(); getServiceInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; identifier_ = null; if (identifierBuilder_ != null) { identifierBuilder_.dispose(); identifierBuilder_ = null; } libraryInfo_ = null; if (libraryInfoBuilder_ != null) { libraryInfoBuilder_.dispose(); libraryInfoBuilder_ = null; } serviceInfo_ = null; if (serviceInfoBuilder_ != null) { serviceInfoBuilder_.dispose(); serviceInfoBuilder_ = null; } internalGetMutableAttributes().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opencensus.proto.agent.common.v1.CommonProto.internal_static_opencensus_proto_agent_common_v1_Node_descriptor; } @java.lang.Override public io.opencensus.proto.agent.common.v1.Node getDefaultInstanceForType() { return io.opencensus.proto.agent.common.v1.Node.getDefaultInstance(); } @java.lang.Override public io.opencensus.proto.agent.common.v1.Node build() { io.opencensus.proto.agent.common.v1.Node result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opencensus.proto.agent.common.v1.Node buildPartial() { io.opencensus.proto.agent.common.v1.Node result = new io.opencensus.proto.agent.common.v1.Node(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.opencensus.proto.agent.common.v1.Node result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.identifier_ = identifierBuilder_ == null ? identifier_ : identifierBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.libraryInfo_ = libraryInfoBuilder_ == null ? libraryInfo_ : libraryInfoBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.serviceInfo_ = serviceInfoBuilder_ == null ? serviceInfo_ : serviceInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.attributes_ = internalGetAttributes(); result.attributes_.makeImmutable(); } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.opencensus.proto.agent.common.v1.Node) { return mergeFrom((io.opencensus.proto.agent.common.v1.Node)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opencensus.proto.agent.common.v1.Node other) { if (other == io.opencensus.proto.agent.common.v1.Node.getDefaultInstance()) return this; if (other.hasIdentifier()) { mergeIdentifier(other.getIdentifier()); } if (other.hasLibraryInfo()) { mergeLibraryInfo(other.getLibraryInfo()); } if (other.hasServiceInfo()) { mergeServiceInfo(other.getServiceInfo()); } internalGetMutableAttributes().mergeFrom( other.internalGetAttributes()); bitField0_ |= 0x00000008; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getIdentifierFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getLibraryInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getServiceInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.protobuf.MapEntry attributes__ = input.readMessage( AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAttributes().getMutableMap().put( attributes__.getKey(), attributes__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private io.opencensus.proto.agent.common.v1.ProcessIdentifier identifier_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.agent.common.v1.ProcessIdentifier, io.opencensus.proto.agent.common.v1.ProcessIdentifier.Builder, io.opencensus.proto.agent.common.v1.ProcessIdentifierOrBuilder> identifierBuilder_; /** *
     * Identifier that uniquely identifies a process within a VM/container.
     * 
* * .opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1; * @return Whether the identifier field is set. */ public boolean hasIdentifier() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Identifier that uniquely identifies a process within a VM/container.
     * 
* * .opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1; * @return The identifier. */ public io.opencensus.proto.agent.common.v1.ProcessIdentifier getIdentifier() { if (identifierBuilder_ == null) { return identifier_ == null ? io.opencensus.proto.agent.common.v1.ProcessIdentifier.getDefaultInstance() : identifier_; } else { return identifierBuilder_.getMessage(); } } /** *
     * Identifier that uniquely identifies a process within a VM/container.
     * 
* * .opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1; */ public Builder setIdentifier(io.opencensus.proto.agent.common.v1.ProcessIdentifier value) { if (identifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } identifier_ = value; } else { identifierBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Identifier that uniquely identifies a process within a VM/container.
     * 
* * .opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1; */ public Builder setIdentifier( io.opencensus.proto.agent.common.v1.ProcessIdentifier.Builder builderForValue) { if (identifierBuilder_ == null) { identifier_ = builderForValue.build(); } else { identifierBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Identifier that uniquely identifies a process within a VM/container.
     * 
* * .opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1; */ public Builder mergeIdentifier(io.opencensus.proto.agent.common.v1.ProcessIdentifier value) { if (identifierBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && identifier_ != null && identifier_ != io.opencensus.proto.agent.common.v1.ProcessIdentifier.getDefaultInstance()) { getIdentifierBuilder().mergeFrom(value); } else { identifier_ = value; } } else { identifierBuilder_.mergeFrom(value); } if (identifier_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * Identifier that uniquely identifies a process within a VM/container.
     * 
* * .opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1; */ public Builder clearIdentifier() { bitField0_ = (bitField0_ & ~0x00000001); identifier_ = null; if (identifierBuilder_ != null) { identifierBuilder_.dispose(); identifierBuilder_ = null; } onChanged(); return this; } /** *
     * Identifier that uniquely identifies a process within a VM/container.
     * 
* * .opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1; */ public io.opencensus.proto.agent.common.v1.ProcessIdentifier.Builder getIdentifierBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIdentifierFieldBuilder().getBuilder(); } /** *
     * Identifier that uniquely identifies a process within a VM/container.
     * 
* * .opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1; */ public io.opencensus.proto.agent.common.v1.ProcessIdentifierOrBuilder getIdentifierOrBuilder() { if (identifierBuilder_ != null) { return identifierBuilder_.getMessageOrBuilder(); } else { return identifier_ == null ? io.opencensus.proto.agent.common.v1.ProcessIdentifier.getDefaultInstance() : identifier_; } } /** *
     * Identifier that uniquely identifies a process within a VM/container.
     * 
* * .opencensus.proto.agent.common.v1.ProcessIdentifier identifier = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.agent.common.v1.ProcessIdentifier, io.opencensus.proto.agent.common.v1.ProcessIdentifier.Builder, io.opencensus.proto.agent.common.v1.ProcessIdentifierOrBuilder> getIdentifierFieldBuilder() { if (identifierBuilder_ == null) { identifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.agent.common.v1.ProcessIdentifier, io.opencensus.proto.agent.common.v1.ProcessIdentifier.Builder, io.opencensus.proto.agent.common.v1.ProcessIdentifierOrBuilder>( getIdentifier(), getParentForChildren(), isClean()); identifier_ = null; } return identifierBuilder_; } private io.opencensus.proto.agent.common.v1.LibraryInfo libraryInfo_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.agent.common.v1.LibraryInfo, io.opencensus.proto.agent.common.v1.LibraryInfo.Builder, io.opencensus.proto.agent.common.v1.LibraryInfoOrBuilder> libraryInfoBuilder_; /** *
     * Information on the OpenCensus Library that initiates the stream.
     * 
* * .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2; * @return Whether the libraryInfo field is set. */ public boolean hasLibraryInfo() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Information on the OpenCensus Library that initiates the stream.
     * 
* * .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2; * @return The libraryInfo. */ public io.opencensus.proto.agent.common.v1.LibraryInfo getLibraryInfo() { if (libraryInfoBuilder_ == null) { return libraryInfo_ == null ? io.opencensus.proto.agent.common.v1.LibraryInfo.getDefaultInstance() : libraryInfo_; } else { return libraryInfoBuilder_.getMessage(); } } /** *
     * Information on the OpenCensus Library that initiates the stream.
     * 
* * .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2; */ public Builder setLibraryInfo(io.opencensus.proto.agent.common.v1.LibraryInfo value) { if (libraryInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } libraryInfo_ = value; } else { libraryInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Information on the OpenCensus Library that initiates the stream.
     * 
* * .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2; */ public Builder setLibraryInfo( io.opencensus.proto.agent.common.v1.LibraryInfo.Builder builderForValue) { if (libraryInfoBuilder_ == null) { libraryInfo_ = builderForValue.build(); } else { libraryInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Information on the OpenCensus Library that initiates the stream.
     * 
* * .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2; */ public Builder mergeLibraryInfo(io.opencensus.proto.agent.common.v1.LibraryInfo value) { if (libraryInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && libraryInfo_ != null && libraryInfo_ != io.opencensus.proto.agent.common.v1.LibraryInfo.getDefaultInstance()) { getLibraryInfoBuilder().mergeFrom(value); } else { libraryInfo_ = value; } } else { libraryInfoBuilder_.mergeFrom(value); } if (libraryInfo_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * Information on the OpenCensus Library that initiates the stream.
     * 
* * .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2; */ public Builder clearLibraryInfo() { bitField0_ = (bitField0_ & ~0x00000002); libraryInfo_ = null; if (libraryInfoBuilder_ != null) { libraryInfoBuilder_.dispose(); libraryInfoBuilder_ = null; } onChanged(); return this; } /** *
     * Information on the OpenCensus Library that initiates the stream.
     * 
* * .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2; */ public io.opencensus.proto.agent.common.v1.LibraryInfo.Builder getLibraryInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getLibraryInfoFieldBuilder().getBuilder(); } /** *
     * Information on the OpenCensus Library that initiates the stream.
     * 
* * .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2; */ public io.opencensus.proto.agent.common.v1.LibraryInfoOrBuilder getLibraryInfoOrBuilder() { if (libraryInfoBuilder_ != null) { return libraryInfoBuilder_.getMessageOrBuilder(); } else { return libraryInfo_ == null ? io.opencensus.proto.agent.common.v1.LibraryInfo.getDefaultInstance() : libraryInfo_; } } /** *
     * Information on the OpenCensus Library that initiates the stream.
     * 
* * .opencensus.proto.agent.common.v1.LibraryInfo library_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.agent.common.v1.LibraryInfo, io.opencensus.proto.agent.common.v1.LibraryInfo.Builder, io.opencensus.proto.agent.common.v1.LibraryInfoOrBuilder> getLibraryInfoFieldBuilder() { if (libraryInfoBuilder_ == null) { libraryInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.agent.common.v1.LibraryInfo, io.opencensus.proto.agent.common.v1.LibraryInfo.Builder, io.opencensus.proto.agent.common.v1.LibraryInfoOrBuilder>( getLibraryInfo(), getParentForChildren(), isClean()); libraryInfo_ = null; } return libraryInfoBuilder_; } private io.opencensus.proto.agent.common.v1.ServiceInfo serviceInfo_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.agent.common.v1.ServiceInfo, io.opencensus.proto.agent.common.v1.ServiceInfo.Builder, io.opencensus.proto.agent.common.v1.ServiceInfoOrBuilder> serviceInfoBuilder_; /** *
     * Additional information on service.
     * 
* * .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3; * @return Whether the serviceInfo field is set. */ public boolean hasServiceInfo() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Additional information on service.
     * 
* * .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3; * @return The serviceInfo. */ public io.opencensus.proto.agent.common.v1.ServiceInfo getServiceInfo() { if (serviceInfoBuilder_ == null) { return serviceInfo_ == null ? io.opencensus.proto.agent.common.v1.ServiceInfo.getDefaultInstance() : serviceInfo_; } else { return serviceInfoBuilder_.getMessage(); } } /** *
     * Additional information on service.
     * 
* * .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3; */ public Builder setServiceInfo(io.opencensus.proto.agent.common.v1.ServiceInfo value) { if (serviceInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serviceInfo_ = value; } else { serviceInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Additional information on service.
     * 
* * .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3; */ public Builder setServiceInfo( io.opencensus.proto.agent.common.v1.ServiceInfo.Builder builderForValue) { if (serviceInfoBuilder_ == null) { serviceInfo_ = builderForValue.build(); } else { serviceInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Additional information on service.
     * 
* * .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3; */ public Builder mergeServiceInfo(io.opencensus.proto.agent.common.v1.ServiceInfo value) { if (serviceInfoBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && serviceInfo_ != null && serviceInfo_ != io.opencensus.proto.agent.common.v1.ServiceInfo.getDefaultInstance()) { getServiceInfoBuilder().mergeFrom(value); } else { serviceInfo_ = value; } } else { serviceInfoBuilder_.mergeFrom(value); } if (serviceInfo_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * Additional information on service.
     * 
* * .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3; */ public Builder clearServiceInfo() { bitField0_ = (bitField0_ & ~0x00000004); serviceInfo_ = null; if (serviceInfoBuilder_ != null) { serviceInfoBuilder_.dispose(); serviceInfoBuilder_ = null; } onChanged(); return this; } /** *
     * Additional information on service.
     * 
* * .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3; */ public io.opencensus.proto.agent.common.v1.ServiceInfo.Builder getServiceInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getServiceInfoFieldBuilder().getBuilder(); } /** *
     * Additional information on service.
     * 
* * .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3; */ public io.opencensus.proto.agent.common.v1.ServiceInfoOrBuilder getServiceInfoOrBuilder() { if (serviceInfoBuilder_ != null) { return serviceInfoBuilder_.getMessageOrBuilder(); } else { return serviceInfo_ == null ? io.opencensus.proto.agent.common.v1.ServiceInfo.getDefaultInstance() : serviceInfo_; } } /** *
     * Additional information on service.
     * 
* * .opencensus.proto.agent.common.v1.ServiceInfo service_info = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.agent.common.v1.ServiceInfo, io.opencensus.proto.agent.common.v1.ServiceInfo.Builder, io.opencensus.proto.agent.common.v1.ServiceInfoOrBuilder> getServiceInfoFieldBuilder() { if (serviceInfoBuilder_ == null) { serviceInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.agent.common.v1.ServiceInfo, io.opencensus.proto.agent.common.v1.ServiceInfo.Builder, io.opencensus.proto.agent.common.v1.ServiceInfoOrBuilder>( getServiceInfo(), getParentForChildren(), isClean()); serviceInfo_ = null; } return serviceInfoBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } private com.google.protobuf.MapField internalGetMutableAttributes() { if (attributes_ == null) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); } bitField0_ |= 0x00000008; onChanged(); return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** *
     * Additional attributes.
     * 
* * map<string, string> attributes = 4; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** *
     * Additional attributes.
     * 
* * map<string, string> attributes = 4; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** *
     * Additional attributes.
     * 
* * map<string, string> attributes = 4; */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Additional attributes.
     * 
* * map<string, string> attributes = 4; */ @java.lang.Override public java.lang.String getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableAttributes().getMutableMap() .clear(); return this; } /** *
     * Additional attributes.
     * 
* * map<string, string> attributes = 4; */ public Builder removeAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAttributes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { bitField0_ |= 0x00000008; return internalGetMutableAttributes().getMutableMap(); } /** *
     * Additional attributes.
     * 
* * map<string, string> attributes = 4; */ public Builder putAttributes( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAttributes().getMutableMap() .put(key, value); bitField0_ |= 0x00000008; return this; } /** *
     * Additional attributes.
     * 
* * map<string, string> attributes = 4; */ public Builder putAllAttributes( java.util.Map values) { internalGetMutableAttributes().getMutableMap() .putAll(values); bitField0_ |= 0x00000008; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:opencensus.proto.agent.common.v1.Node) } // @@protoc_insertion_point(class_scope:opencensus.proto.agent.common.v1.Node) private static final io.opencensus.proto.agent.common.v1.Node DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opencensus.proto.agent.common.v1.Node(); } public static io.opencensus.proto.agent.common.v1.Node getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Node parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.opencensus.proto.agent.common.v1.Node getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy