// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/instrumentation/v1alpha/monitoring.proto
package io.grpc.instrumentation.v1alpha;
/**
* <pre>
* The wrapper for custom monitoring data.
* </pre>
*
* Protobuf type {@code grpc.instrumentation.v1alpha.CustomMonitoringData}
*/
public final class CustomMonitoringData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.instrumentation.v1alpha.CustomMonitoringData)
CustomMonitoringDataOrBuilder {
// Use CustomMonitoringData.newBuilder() to construct.
private CustomMonitoringData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CustomMonitoringData() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CustomMonitoringData(
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: {
com.google.protobuf.Any.Builder subBuilder = null;
if (contents_ != null) {
subBuilder = contents_.toBuilder();
}
contents_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contents_);
contents_ = subBuilder.buildPartial();
}
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 io.grpc.instrumentation.v1alpha.MonitoringProto.internal_static_grpc_instrumentation_v1alpha_CustomMonitoringData_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.instrumentation.v1alpha.MonitoringProto.internal_static_grpc_instrumentation_v1alpha_CustomMonitoringData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.instrumentation.v1alpha.CustomMonitoringData.class, io.grpc.instrumentation.v1alpha.CustomMonitoringData.Builder.class);
}
public static final int CONTENTS_FIELD_NUMBER = 1;
private com.google.protobuf.Any contents_;
/**
* <pre>
* can be any application specific monitoring data
* </pre>
*
* <code>.google.protobuf.Any contents = 1;</code>
*/
public boolean hasContents() {
return contents_ != null;
}
/**
* <pre>
* can be any application specific monitoring data
* </pre>
*
* <code>.google.protobuf.Any contents = 1;</code>
*/
public com.google.protobuf.Any getContents() {
return contents_ == null ? com.google.protobuf.Any.getDefaultInstance() : contents_;
}
/**
* <pre>
* can be any application specific monitoring data
* </pre>
*
* <code>.google.protobuf.Any contents = 1;</code>
*/
public com.google.protobuf.AnyOrBuilder getContentsOrBuilder() {
return getContents();
}
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 (contents_ != null) {
output.writeMessage(1, getContents());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contents_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContents());
}
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 io.grpc.instrumentation.v1alpha.CustomMonitoringData)) {
return super.equals(obj);
}
io.grpc.instrumentation.v1alpha.CustomMonitoringData other = (io.grpc.instrumentation.v1alpha.CustomMonitoringData) obj;
boolean result = true;
result = result && (hasContents() == other.hasContents());
if (hasContents()) {
result = result && getContents()
.equals(other.getContents());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasContents()) {
hash = (37 * hash) + CONTENTS_FIELD_NUMBER;
hash = (53 * hash) + getContents().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grpc.instrumentation.v1alpha.CustomMonitoringData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.instrumentation.v1alpha.CustomMonitoringData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.instrumentation.v1alpha.CustomMonitoringData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.instrumentation.v1alpha.CustomMonitoringData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.instrumentation.v1alpha.CustomMonitoringData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.instrumentation.v1alpha.CustomMonitoringData 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.grpc.instrumentation.v1alpha.CustomMonitoringData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.instrumentation.v1alpha.CustomMonitoringData 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.grpc.instrumentation.v1alpha.CustomMonitoringData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.instrumentation.v1alpha.CustomMonitoringData 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(io.grpc.instrumentation.v1alpha.CustomMonitoringData 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;
}
/**
* <pre>
* The wrapper for custom monitoring data.
* </pre>
*
* Protobuf type {@code grpc.instrumentation.v1alpha.CustomMonitoringData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.instrumentation.v1alpha.CustomMonitoringData)
io.grpc.instrumentation.v1alpha.CustomMonitoringDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.instrumentation.v1alpha.MonitoringProto.internal_static_grpc_instrumentation_v1alpha_CustomMonitoringData_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.instrumentation.v1alpha.MonitoringProto.internal_static_grpc_instrumentation_v1alpha_CustomMonitoringData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.instrumentation.v1alpha.CustomMonitoringData.class, io.grpc.instrumentation.v1alpha.CustomMonitoringData.Builder.class);
}
// Construct using io.grpc.instrumentation.v1alpha.CustomMonitoringData.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();
if (contentsBuilder_ == null) {
contents_ = null;
} else {
contents_ = null;
contentsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.grpc.instrumentation.v1alpha.MonitoringProto.internal_static_grpc_instrumentation_v1alpha_CustomMonitoringData_descriptor;
}
public io.grpc.instrumentation.v1alpha.CustomMonitoringData getDefaultInstanceForType() {
return io.grpc.instrumentation.v1alpha.CustomMonitoringData.getDefaultInstance();
}
public io.grpc.instrumentation.v1alpha.CustomMonitoringData build() {
io.grpc.instrumentation.v1alpha.CustomMonitoringData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.grpc.instrumentation.v1alpha.CustomMonitoringData buildPartial() {
io.grpc.instrumentation.v1alpha.CustomMonitoringData result = new io.grpc.instrumentation.v1alpha.CustomMonitoringData(this);
if (contentsBuilder_ == null) {
result.contents_ = contents_;
} else {
result.contents_ = contentsBuilder_.build();
}
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 io.grpc.instrumentation.v1alpha.CustomMonitoringData) {
return mergeFrom((io.grpc.instrumentation.v1alpha.CustomMonitoringData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grpc.instrumentation.v1alpha.CustomMonitoringData other) {
if (other == io.grpc.instrumentation.v1alpha.CustomMonitoringData.getDefaultInstance()) return this;
if (other.hasContents()) {
mergeContents(other.getContents());
}
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 {
io.grpc.instrumentation.v1alpha.CustomMonitoringData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.grpc.instrumentation.v1alpha.CustomMonitoringData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Any contents_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> contentsBuilder_;
/**
* <pre>
* can be any application specific monitoring data
* </pre>
*
* <code>.google.protobuf.Any contents = 1;</code>
*/
public boolean hasContents() {
return contentsBuilder_ != null || contents_ != null;
}
/**
* <pre>
* can be any application specific monitoring data
* </pre>
*
* <code>.google.protobuf.Any contents = 1;</code>
*/
public com.google.protobuf.Any getContents() {
if (contentsBuilder_ == null) {
return contents_ == null ? com.google.protobuf.Any.getDefaultInstance() : contents_;
} else {
return contentsBuilder_.getMessage();
}
}
/**
* <pre>
* can be any application specific monitoring data
* </pre>
*
* <code>.google.protobuf.Any contents = 1;</code>
*/
public Builder setContents(com.google.protobuf.Any value) {
if (contentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contents_ = value;
onChanged();
} else {
contentsBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* can be any application specific monitoring data
* </pre>
*
* <code>.google.protobuf.Any contents = 1;</code>
*/
public Builder setContents(
com.google.protobuf.Any.Builder builderForValue) {
if (contentsBuilder_ == null) {
contents_ = builderForValue.build();
onChanged();
} else {
contentsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* can be any application specific monitoring data
* </pre>
*
* <code>.google.protobuf.Any contents = 1;</code>
*/
public Builder mergeContents(com.google.protobuf.Any value) {
if (contentsBuilder_ == null) {
if (contents_ != null) {
contents_ =
com.google.protobuf.Any.newBuilder(contents_).mergeFrom(value).buildPartial();
} else {
contents_ = value;
}
onChanged();
} else {
contentsBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* can be any application specific monitoring data
* </pre>
*
* <code>.google.protobuf.Any contents = 1;</code>
*/
public Builder clearContents() {
if (contentsBuilder_ == null) {
contents_ = null;
onChanged();
} else {
contents_ = null;
contentsBuilder_ = null;
}
return this;
}
/**
* <pre>
* can be any application specific monitoring data
* </pre>
*
* <code>.google.protobuf.Any contents = 1;</code>
*/
public com.google.protobuf.Any.Builder getContentsBuilder() {
onChanged();
return getContentsFieldBuilder().getBuilder();
}
/**
* <pre>
* can be any application specific monitoring data
* </pre>
*
* <code>.google.protobuf.Any contents = 1;</code>
*/
public com.google.protobuf.AnyOrBuilder getContentsOrBuilder() {
if (contentsBuilder_ != null) {
return contentsBuilder_.getMessageOrBuilder();
} else {
return contents_ == null ?
com.google.protobuf.Any.getDefaultInstance() : contents_;
}
}
/**
* <pre>
* can be any application specific monitoring data
* </pre>
*
* <code>.google.protobuf.Any contents = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getContentsFieldBuilder() {
if (contentsBuilder_ == null) {
contentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getContents(),
getParentForChildren(),
isClean());
contents_ = null;
}
return contentsBuilder_;
}
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:grpc.instrumentation.v1alpha.CustomMonitoringData)
}
// @@protoc_insertion_point(class_scope:grpc.instrumentation.v1alpha.CustomMonitoringData)
private static final io.grpc.instrumentation.v1alpha.CustomMonitoringData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grpc.instrumentation.v1alpha.CustomMonitoringData();
}
public static io.grpc.instrumentation.v1alpha.CustomMonitoringData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CustomMonitoringData>
PARSER = new com.google.protobuf.AbstractParser<CustomMonitoringData>() {
public CustomMonitoringData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomMonitoringData(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<CustomMonitoringData> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CustomMonitoringData> getParserForType() {
return PARSER;
}
public io.grpc.instrumentation.v1alpha.CustomMonitoringData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}