Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opencensus/proto/agent/common/v1/common.proto
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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Node(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.opencensus.proto.agent.common.v1.ProcessIdentifier.Builder subBuilder = null;
if (identifier_ != null) {
subBuilder = identifier_.toBuilder();
}
identifier_ = input.readMessage(io.opencensus.proto.agent.common.v1.ProcessIdentifier.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(identifier_);
identifier_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.opencensus.proto.agent.common.v1.LibraryInfo.Builder subBuilder = null;
if (libraryInfo_ != null) {
subBuilder = libraryInfo_.toBuilder();
}
libraryInfo_ = input.readMessage(io.opencensus.proto.agent.common.v1.LibraryInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(libraryInfo_);
libraryInfo_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.opencensus.proto.agent.common.v1.ServiceInfo.Builder subBuilder = null;
if (serviceInfo_ != null) {
subBuilder = serviceInfo_.toBuilder();
}
serviceInfo_ = input.readMessage(io.opencensus.proto.agent.common.v1.ServiceInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(serviceInfo_);
serviceInfo_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
attributes_ = com.google.protobuf.MapField.newMapField(
AttributesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
attributes__ = input.readMessage(
AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
attributes_.getMutableMap().put(
attributes__.getKey(), attributes__.getValue());
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
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.MapField internalGetMapField(
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);
}
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.
*
*
* map<string, string> attributes = 4;
*/
public java.lang.String getAttributesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
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 (identifier_ != null) {
output.writeMessage(1, getIdentifier());
}
if (libraryInfo_ != null) {
output.writeMessage(2, getLibraryInfo());
}
if (serviceInfo_ != null) {
output.writeMessage(3, getServiceInfo());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAttributes(),
AttributesDefaultEntryHolder.defaultEntry,
4);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (identifier_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getIdentifier());
}
if (libraryInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLibraryInfo());
}
if (serviceInfo_ != null) {
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 += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (identifierBuilder_ == null) {
identifier_ = null;
} else {
identifier_ = null;
identifierBuilder_ = null;
}
if (libraryInfoBuilder_ == null) {
libraryInfo_ = null;
} else {
libraryInfo_ = null;
libraryInfoBuilder_ = null;
}
if (serviceInfoBuilder_ == null) {
serviceInfo_ = null;
} else {
serviceInfo_ = null;
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);
int from_bitField0_ = bitField0_;
if (identifierBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = identifierBuilder_.build();
}
if (libraryInfoBuilder_ == null) {
result.libraryInfo_ = libraryInfo_;
} else {
result.libraryInfo_ = libraryInfoBuilder_.build();
}
if (serviceInfoBuilder_ == null) {
result.serviceInfo_ = serviceInfo_;
} else {
result.serviceInfo_ = serviceInfoBuilder_.build();
}
result.attributes_ = internalGetAttributes();
result.attributes_.makeImmutable();
onBuilt();
return result;
}
@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());
this.mergeUnknownFields(other.unknownFields);
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 {
io.opencensus.proto.agent.common.v1.Node parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opencensus.proto.agent.common.v1.Node) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.
*