com.expedia.open.tracing.api.CallNode Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: api/traceReader.proto
package com.expedia.open.tracing.api;
/**
* Protobuf type {@code CallNode}
*/
public final class CallNode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:CallNode)
CallNodeOrBuilder {
// Use CallNode.newBuilder() to construct.
private CallNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CallNode() {
serviceName_ = "";
operationName_ = "";
infrastructureProvider_ = "";
infrastructureLocation_ = "";
duration_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CallNode(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
serviceName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
operationName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
infrastructureProvider_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
infrastructureLocation_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
duration_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.expedia.open.tracing.api.TraceReaderOuterClass.internal_static_CallNode_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.expedia.open.tracing.api.TraceReaderOuterClass.internal_static_CallNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.expedia.open.tracing.api.CallNode.class, com.expedia.open.tracing.api.CallNode.Builder.class);
}
public static final int SERVICENAME_FIELD_NUMBER = 1;
private volatile java.lang.Object serviceName_;
/**
* optional string serviceName = 1;
*/
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceName_ = s;
return s;
}
}
/**
* optional string serviceName = 1;
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPERATIONNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object operationName_;
/**
* optional string operationName = 2;
*/
public java.lang.String getOperationName() {
java.lang.Object ref = operationName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operationName_ = s;
return s;
}
}
/**
* optional string operationName = 2;
*/
public com.google.protobuf.ByteString
getOperationNameBytes() {
java.lang.Object ref = operationName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFRASTRUCTUREPROVIDER_FIELD_NUMBER = 3;
private volatile java.lang.Object infrastructureProvider_;
/**
*
* infrastructure provider hosting the sevice
*
*
* optional string infrastructureProvider = 3;
*/
public java.lang.String getInfrastructureProvider() {
java.lang.Object ref = infrastructureProvider_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
infrastructureProvider_ = s;
return s;
}
}
/**
*
* infrastructure provider hosting the sevice
*
*
* optional string infrastructureProvider = 3;
*/
public com.google.protobuf.ByteString
getInfrastructureProviderBytes() {
java.lang.Object ref = infrastructureProvider_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
infrastructureProvider_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFRASTRUCTURELOCATION_FIELD_NUMBER = 4;
private volatile java.lang.Object infrastructureLocation_;
/**
*
* infrastructure location hosting the sevice
*
*
* optional string infrastructureLocation = 4;
*/
public java.lang.String getInfrastructureLocation() {
java.lang.Object ref = infrastructureLocation_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
infrastructureLocation_ = s;
return s;
}
}
/**
*
* infrastructure location hosting the sevice
*
*
* optional string infrastructureLocation = 4;
*/
public com.google.protobuf.ByteString
getInfrastructureLocationBytes() {
java.lang.Object ref = infrastructureLocation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
infrastructureLocation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DURATION_FIELD_NUMBER = 5;
private volatile java.lang.Object duration_;
/**
*
* duration of the call percieved by the service
*
*
* optional string duration = 5;
*/
public java.lang.String getDuration() {
java.lang.Object ref = duration_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
duration_ = s;
return s;
}
}
/**
*
* duration of the call percieved by the service
*
*
* optional string duration = 5;
*/
public com.google.protobuf.ByteString
getDurationBytes() {
java.lang.Object ref = duration_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
duration_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getServiceNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceName_);
}
if (!getOperationNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operationName_);
}
if (!getInfrastructureProviderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, infrastructureProvider_);
}
if (!getInfrastructureLocationBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, infrastructureLocation_);
}
if (!getDurationBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, duration_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getServiceNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceName_);
}
if (!getOperationNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operationName_);
}
if (!getInfrastructureProviderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, infrastructureProvider_);
}
if (!getInfrastructureLocationBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, infrastructureLocation_);
}
if (!getDurationBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, duration_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.expedia.open.tracing.api.CallNode)) {
return super.equals(obj);
}
com.expedia.open.tracing.api.CallNode other = (com.expedia.open.tracing.api.CallNode) obj;
boolean result = true;
result = result && getServiceName()
.equals(other.getServiceName());
result = result && getOperationName()
.equals(other.getOperationName());
result = result && getInfrastructureProvider()
.equals(other.getInfrastructureProvider());
result = result && getInfrastructureLocation()
.equals(other.getInfrastructureLocation());
result = result && getDuration()
.equals(other.getDuration());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + SERVICENAME_FIELD_NUMBER;
hash = (53 * hash) + getServiceName().hashCode();
hash = (37 * hash) + OPERATIONNAME_FIELD_NUMBER;
hash = (53 * hash) + getOperationName().hashCode();
hash = (37 * hash) + INFRASTRUCTUREPROVIDER_FIELD_NUMBER;
hash = (53 * hash) + getInfrastructureProvider().hashCode();
hash = (37 * hash) + INFRASTRUCTURELOCATION_FIELD_NUMBER;
hash = (53 * hash) + getInfrastructureLocation().hashCode();
hash = (37 * hash) + DURATION_FIELD_NUMBER;
hash = (53 * hash) + getDuration().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.expedia.open.tracing.api.CallNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.expedia.open.tracing.api.CallNode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.expedia.open.tracing.api.CallNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.expedia.open.tracing.api.CallNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.expedia.open.tracing.api.CallNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.expedia.open.tracing.api.CallNode 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 com.expedia.open.tracing.api.CallNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.expedia.open.tracing.api.CallNode 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 com.expedia.open.tracing.api.CallNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.expedia.open.tracing.api.CallNode parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.expedia.open.tracing.api.CallNode prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code CallNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:CallNode)
com.expedia.open.tracing.api.CallNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.expedia.open.tracing.api.TraceReaderOuterClass.internal_static_CallNode_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.expedia.open.tracing.api.TraceReaderOuterClass.internal_static_CallNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.expedia.open.tracing.api.CallNode.class, com.expedia.open.tracing.api.CallNode.Builder.class);
}
// Construct using com.expedia.open.tracing.api.CallNode.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
serviceName_ = "";
operationName_ = "";
infrastructureProvider_ = "";
infrastructureLocation_ = "";
duration_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.expedia.open.tracing.api.TraceReaderOuterClass.internal_static_CallNode_descriptor;
}
public com.expedia.open.tracing.api.CallNode getDefaultInstanceForType() {
return com.expedia.open.tracing.api.CallNode.getDefaultInstance();
}
public com.expedia.open.tracing.api.CallNode build() {
com.expedia.open.tracing.api.CallNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.expedia.open.tracing.api.CallNode buildPartial() {
com.expedia.open.tracing.api.CallNode result = new com.expedia.open.tracing.api.CallNode(this);
result.serviceName_ = serviceName_;
result.operationName_ = operationName_;
result.infrastructureProvider_ = infrastructureProvider_;
result.infrastructureLocation_ = infrastructureLocation_;
result.duration_ = duration_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.expedia.open.tracing.api.CallNode) {
return mergeFrom((com.expedia.open.tracing.api.CallNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.expedia.open.tracing.api.CallNode other) {
if (other == com.expedia.open.tracing.api.CallNode.getDefaultInstance()) return this;
if (!other.getServiceName().isEmpty()) {
serviceName_ = other.serviceName_;
onChanged();
}
if (!other.getOperationName().isEmpty()) {
operationName_ = other.operationName_;
onChanged();
}
if (!other.getInfrastructureProvider().isEmpty()) {
infrastructureProvider_ = other.infrastructureProvider_;
onChanged();
}
if (!other.getInfrastructureLocation().isEmpty()) {
infrastructureLocation_ = other.infrastructureLocation_;
onChanged();
}
if (!other.getDuration().isEmpty()) {
duration_ = other.duration_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.expedia.open.tracing.api.CallNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.expedia.open.tracing.api.CallNode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object serviceName_ = "";
/**
* optional string serviceName = 1;
*/
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string serviceName = 1;
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string serviceName = 1;
*/
public Builder setServiceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceName_ = value;
onChanged();
return this;
}
/**
* optional string serviceName = 1;
*/
public Builder clearServiceName() {
serviceName_ = getDefaultInstance().getServiceName();
onChanged();
return this;
}
/**
* optional string serviceName = 1;
*/
public Builder setServiceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceName_ = value;
onChanged();
return this;
}
private java.lang.Object operationName_ = "";
/**
* optional string operationName = 2;
*/
public java.lang.String getOperationName() {
java.lang.Object ref = operationName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operationName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string operationName = 2;
*/
public com.google.protobuf.ByteString
getOperationNameBytes() {
java.lang.Object ref = operationName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string operationName = 2;
*/
public Builder setOperationName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
operationName_ = value;
onChanged();
return this;
}
/**
* optional string operationName = 2;
*/
public Builder clearOperationName() {
operationName_ = getDefaultInstance().getOperationName();
onChanged();
return this;
}
/**
* optional string operationName = 2;
*/
public Builder setOperationNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
operationName_ = value;
onChanged();
return this;
}
private java.lang.Object infrastructureProvider_ = "";
/**
*
* infrastructure provider hosting the sevice
*
*
* optional string infrastructureProvider = 3;
*/
public java.lang.String getInfrastructureProvider() {
java.lang.Object ref = infrastructureProvider_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
infrastructureProvider_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* infrastructure provider hosting the sevice
*
*
* optional string infrastructureProvider = 3;
*/
public com.google.protobuf.ByteString
getInfrastructureProviderBytes() {
java.lang.Object ref = infrastructureProvider_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
infrastructureProvider_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* infrastructure provider hosting the sevice
*
*
* optional string infrastructureProvider = 3;
*/
public Builder setInfrastructureProvider(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
infrastructureProvider_ = value;
onChanged();
return this;
}
/**
*
* infrastructure provider hosting the sevice
*
*
* optional string infrastructureProvider = 3;
*/
public Builder clearInfrastructureProvider() {
infrastructureProvider_ = getDefaultInstance().getInfrastructureProvider();
onChanged();
return this;
}
/**
*
* infrastructure provider hosting the sevice
*
*
* optional string infrastructureProvider = 3;
*/
public Builder setInfrastructureProviderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
infrastructureProvider_ = value;
onChanged();
return this;
}
private java.lang.Object infrastructureLocation_ = "";
/**
*
* infrastructure location hosting the sevice
*
*
* optional string infrastructureLocation = 4;
*/
public java.lang.String getInfrastructureLocation() {
java.lang.Object ref = infrastructureLocation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
infrastructureLocation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* infrastructure location hosting the sevice
*
*
* optional string infrastructureLocation = 4;
*/
public com.google.protobuf.ByteString
getInfrastructureLocationBytes() {
java.lang.Object ref = infrastructureLocation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
infrastructureLocation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* infrastructure location hosting the sevice
*
*
* optional string infrastructureLocation = 4;
*/
public Builder setInfrastructureLocation(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
infrastructureLocation_ = value;
onChanged();
return this;
}
/**
*
* infrastructure location hosting the sevice
*
*
* optional string infrastructureLocation = 4;
*/
public Builder clearInfrastructureLocation() {
infrastructureLocation_ = getDefaultInstance().getInfrastructureLocation();
onChanged();
return this;
}
/**
*
* infrastructure location hosting the sevice
*
*
* optional string infrastructureLocation = 4;
*/
public Builder setInfrastructureLocationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
infrastructureLocation_ = value;
onChanged();
return this;
}
private java.lang.Object duration_ = "";
/**
*
* duration of the call percieved by the service
*
*
* optional string duration = 5;
*/
public java.lang.String getDuration() {
java.lang.Object ref = duration_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
duration_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* duration of the call percieved by the service
*
*
* optional string duration = 5;
*/
public com.google.protobuf.ByteString
getDurationBytes() {
java.lang.Object ref = duration_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
duration_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* duration of the call percieved by the service
*
*
* optional string duration = 5;
*/
public Builder setDuration(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
duration_ = value;
onChanged();
return this;
}
/**
*
* duration of the call percieved by the service
*
*
* optional string duration = 5;
*/
public Builder clearDuration() {
duration_ = getDefaultInstance().getDuration();
onChanged();
return this;
}
/**
*
* duration of the call percieved by the service
*
*
* optional string duration = 5;
*/
public Builder setDurationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
duration_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:CallNode)
}
// @@protoc_insertion_point(class_scope:CallNode)
private static final com.expedia.open.tracing.api.CallNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.expedia.open.tracing.api.CallNode();
}
public static com.expedia.open.tracing.api.CallNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CallNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CallNode(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.expedia.open.tracing.api.CallNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}