// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/instrumentation/v1alpha/monitoring.proto
package io.grpc.instrumentation.v1alpha;
/**
* <pre>
* This message contains all information relevant to a single View. It is the
* return type for GetStats and WatchStats, and used in CanonicalRpcStats.
* </pre>
*
* Protobuf type {@code grpc.instrumentation.v1alpha.StatsResponse}
*/
public final class StatsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.instrumentation.v1alpha.StatsResponse)
StatsResponseOrBuilder {
// Use StatsResponse.newBuilder() to construct.
private StatsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private StatsResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private StatsResponse(
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.instrumentation.stats.proto.CensusProto.MeasurementDescriptor.Builder subBuilder = null;
if (measurementDescriptor_ != null) {
subBuilder = measurementDescriptor_.toBuilder();
}
measurementDescriptor_ = input.readMessage(com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(measurementDescriptor_);
measurementDescriptor_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor.Builder subBuilder = null;
if (viewDescriptor_ != null) {
subBuilder = viewDescriptor_.toBuilder();
}
viewDescriptor_ = input.readMessage(com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(viewDescriptor_);
viewDescriptor_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.google.instrumentation.stats.proto.CensusProto.View.Builder subBuilder = null;
if (view_ != null) {
subBuilder = view_.toBuilder();
}
view_ = input.readMessage(com.google.instrumentation.stats.proto.CensusProto.View.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(view_);
view_ = 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_StatsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.instrumentation.v1alpha.MonitoringProto.internal_static_grpc_instrumentation_v1alpha_StatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.instrumentation.v1alpha.StatsResponse.class, io.grpc.instrumentation.v1alpha.StatsResponse.Builder.class);
}
public static final int MEASUREMENT_DESCRIPTOR_FIELD_NUMBER = 1;
private com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor measurementDescriptor_;
/**
* <pre>
* A StatsResponse can optionally contain the MeasurementDescriptor and
* ViewDescriptor for the View. These will be sent in the first WatchStats
* response, or all GetStats and GetCanonicalRpcStats responses. These will
* not be set for {Get,Watch}Stats if
* dont_include_descriptors_in_first_response is set to true in the
* StatsRequest.
* </pre>
*
* <code>.google.instrumentation.MeasurementDescriptor measurement_descriptor = 1;</code>
*/
public boolean hasMeasurementDescriptor() {
return measurementDescriptor_ != null;
}
/**
* <pre>
* A StatsResponse can optionally contain the MeasurementDescriptor and
* ViewDescriptor for the View. These will be sent in the first WatchStats
* response, or all GetStats and GetCanonicalRpcStats responses. These will
* not be set for {Get,Watch}Stats if
* dont_include_descriptors_in_first_response is set to true in the
* StatsRequest.
* </pre>
*
* <code>.google.instrumentation.MeasurementDescriptor measurement_descriptor = 1;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor getMeasurementDescriptor() {
return measurementDescriptor_ == null ? com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor.getDefaultInstance() : measurementDescriptor_;
}
/**
* <pre>
* A StatsResponse can optionally contain the MeasurementDescriptor and
* ViewDescriptor for the View. These will be sent in the first WatchStats
* response, or all GetStats and GetCanonicalRpcStats responses. These will
* not be set for {Get,Watch}Stats if
* dont_include_descriptors_in_first_response is set to true in the
* StatsRequest.
* </pre>
*
* <code>.google.instrumentation.MeasurementDescriptor measurement_descriptor = 1;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptorOrBuilder getMeasurementDescriptorOrBuilder() {
return getMeasurementDescriptor();
}
public static final int VIEW_DESCRIPTOR_FIELD_NUMBER = 2;
private com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor viewDescriptor_;
/**
* <code>.google.instrumentation.ViewDescriptor view_descriptor = 2;</code>
*/
public boolean hasViewDescriptor() {
return viewDescriptor_ != null;
}
/**
* <code>.google.instrumentation.ViewDescriptor view_descriptor = 2;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor getViewDescriptor() {
return viewDescriptor_ == null ? com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor.getDefaultInstance() : viewDescriptor_;
}
/**
* <code>.google.instrumentation.ViewDescriptor view_descriptor = 2;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.ViewDescriptorOrBuilder getViewDescriptorOrBuilder() {
return getViewDescriptor();
}
public static final int VIEW_FIELD_NUMBER = 3;
private com.google.instrumentation.stats.proto.CensusProto.View view_;
/**
* <pre>
* The View data.
* </pre>
*
* <code>.google.instrumentation.View view = 3;</code>
*/
public boolean hasView() {
return view_ != null;
}
/**
* <pre>
* The View data.
* </pre>
*
* <code>.google.instrumentation.View view = 3;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.View getView() {
return view_ == null ? com.google.instrumentation.stats.proto.CensusProto.View.getDefaultInstance() : view_;
}
/**
* <pre>
* The View data.
* </pre>
*
* <code>.google.instrumentation.View view = 3;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.ViewOrBuilder getViewOrBuilder() {
return getView();
}
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 (measurementDescriptor_ != null) {
output.writeMessage(1, getMeasurementDescriptor());
}
if (viewDescriptor_ != null) {
output.writeMessage(2, getViewDescriptor());
}
if (view_ != null) {
output.writeMessage(3, getView());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (measurementDescriptor_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMeasurementDescriptor());
}
if (viewDescriptor_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getViewDescriptor());
}
if (view_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getView());
}
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.StatsResponse)) {
return super.equals(obj);
}
io.grpc.instrumentation.v1alpha.StatsResponse other = (io.grpc.instrumentation.v1alpha.StatsResponse) obj;
boolean result = true;
result = result && (hasMeasurementDescriptor() == other.hasMeasurementDescriptor());
if (hasMeasurementDescriptor()) {
result = result && getMeasurementDescriptor()
.equals(other.getMeasurementDescriptor());
}
result = result && (hasViewDescriptor() == other.hasViewDescriptor());
if (hasViewDescriptor()) {
result = result && getViewDescriptor()
.equals(other.getViewDescriptor());
}
result = result && (hasView() == other.hasView());
if (hasView()) {
result = result && getView()
.equals(other.getView());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMeasurementDescriptor()) {
hash = (37 * hash) + MEASUREMENT_DESCRIPTOR_FIELD_NUMBER;
hash = (53 * hash) + getMeasurementDescriptor().hashCode();
}
if (hasViewDescriptor()) {
hash = (37 * hash) + VIEW_DESCRIPTOR_FIELD_NUMBER;
hash = (53 * hash) + getViewDescriptor().hashCode();
}
if (hasView()) {
hash = (37 * hash) + VIEW_FIELD_NUMBER;
hash = (53 * hash) + getView().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grpc.instrumentation.v1alpha.StatsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.instrumentation.v1alpha.StatsResponse 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.StatsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.instrumentation.v1alpha.StatsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.instrumentation.v1alpha.StatsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.instrumentation.v1alpha.StatsResponse 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.StatsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.instrumentation.v1alpha.StatsResponse 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.StatsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.instrumentation.v1alpha.StatsResponse 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.StatsResponse 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>
* This message contains all information relevant to a single View. It is the
* return type for GetStats and WatchStats, and used in CanonicalRpcStats.
* </pre>
*
* Protobuf type {@code grpc.instrumentation.v1alpha.StatsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.instrumentation.v1alpha.StatsResponse)
io.grpc.instrumentation.v1alpha.StatsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.instrumentation.v1alpha.MonitoringProto.internal_static_grpc_instrumentation_v1alpha_StatsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.instrumentation.v1alpha.MonitoringProto.internal_static_grpc_instrumentation_v1alpha_StatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.instrumentation.v1alpha.StatsResponse.class, io.grpc.instrumentation.v1alpha.StatsResponse.Builder.class);
}
// Construct using io.grpc.instrumentation.v1alpha.StatsResponse.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 (measurementDescriptorBuilder_ == null) {
measurementDescriptor_ = null;
} else {
measurementDescriptor_ = null;
measurementDescriptorBuilder_ = null;
}
if (viewDescriptorBuilder_ == null) {
viewDescriptor_ = null;
} else {
viewDescriptor_ = null;
viewDescriptorBuilder_ = null;
}
if (viewBuilder_ == null) {
view_ = null;
} else {
view_ = null;
viewBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.grpc.instrumentation.v1alpha.MonitoringProto.internal_static_grpc_instrumentation_v1alpha_StatsResponse_descriptor;
}
public io.grpc.instrumentation.v1alpha.StatsResponse getDefaultInstanceForType() {
return io.grpc.instrumentation.v1alpha.StatsResponse.getDefaultInstance();
}
public io.grpc.instrumentation.v1alpha.StatsResponse build() {
io.grpc.instrumentation.v1alpha.StatsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.grpc.instrumentation.v1alpha.StatsResponse buildPartial() {
io.grpc.instrumentation.v1alpha.StatsResponse result = new io.grpc.instrumentation.v1alpha.StatsResponse(this);
if (measurementDescriptorBuilder_ == null) {
result.measurementDescriptor_ = measurementDescriptor_;
} else {
result.measurementDescriptor_ = measurementDescriptorBuilder_.build();
}
if (viewDescriptorBuilder_ == null) {
result.viewDescriptor_ = viewDescriptor_;
} else {
result.viewDescriptor_ = viewDescriptorBuilder_.build();
}
if (viewBuilder_ == null) {
result.view_ = view_;
} else {
result.view_ = viewBuilder_.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.StatsResponse) {
return mergeFrom((io.grpc.instrumentation.v1alpha.StatsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grpc.instrumentation.v1alpha.StatsResponse other) {
if (other == io.grpc.instrumentation.v1alpha.StatsResponse.getDefaultInstance()) return this;
if (other.hasMeasurementDescriptor()) {
mergeMeasurementDescriptor(other.getMeasurementDescriptor());
}
if (other.hasViewDescriptor()) {
mergeViewDescriptor(other.getViewDescriptor());
}
if (other.hasView()) {
mergeView(other.getView());
}
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.StatsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.grpc.instrumentation.v1alpha.StatsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor measurementDescriptor_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor, com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor.Builder, com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptorOrBuilder> measurementDescriptorBuilder_;
/**
* <pre>
* A StatsResponse can optionally contain the MeasurementDescriptor and
* ViewDescriptor for the View. These will be sent in the first WatchStats
* response, or all GetStats and GetCanonicalRpcStats responses. These will
* not be set for {Get,Watch}Stats if
* dont_include_descriptors_in_first_response is set to true in the
* StatsRequest.
* </pre>
*
* <code>.google.instrumentation.MeasurementDescriptor measurement_descriptor = 1;</code>
*/
public boolean hasMeasurementDescriptor() {
return measurementDescriptorBuilder_ != null || measurementDescriptor_ != null;
}
/**
* <pre>
* A StatsResponse can optionally contain the MeasurementDescriptor and
* ViewDescriptor for the View. These will be sent in the first WatchStats
* response, or all GetStats and GetCanonicalRpcStats responses. These will
* not be set for {Get,Watch}Stats if
* dont_include_descriptors_in_first_response is set to true in the
* StatsRequest.
* </pre>
*
* <code>.google.instrumentation.MeasurementDescriptor measurement_descriptor = 1;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor getMeasurementDescriptor() {
if (measurementDescriptorBuilder_ == null) {
return measurementDescriptor_ == null ? com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor.getDefaultInstance() : measurementDescriptor_;
} else {
return measurementDescriptorBuilder_.getMessage();
}
}
/**
* <pre>
* A StatsResponse can optionally contain the MeasurementDescriptor and
* ViewDescriptor for the View. These will be sent in the first WatchStats
* response, or all GetStats and GetCanonicalRpcStats responses. These will
* not be set for {Get,Watch}Stats if
* dont_include_descriptors_in_first_response is set to true in the
* StatsRequest.
* </pre>
*
* <code>.google.instrumentation.MeasurementDescriptor measurement_descriptor = 1;</code>
*/
public Builder setMeasurementDescriptor(com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor value) {
if (measurementDescriptorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
measurementDescriptor_ = value;
onChanged();
} else {
measurementDescriptorBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* A StatsResponse can optionally contain the MeasurementDescriptor and
* ViewDescriptor for the View. These will be sent in the first WatchStats
* response, or all GetStats and GetCanonicalRpcStats responses. These will
* not be set for {Get,Watch}Stats if
* dont_include_descriptors_in_first_response is set to true in the
* StatsRequest.
* </pre>
*
* <code>.google.instrumentation.MeasurementDescriptor measurement_descriptor = 1;</code>
*/
public Builder setMeasurementDescriptor(
com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor.Builder builderForValue) {
if (measurementDescriptorBuilder_ == null) {
measurementDescriptor_ = builderForValue.build();
onChanged();
} else {
measurementDescriptorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* A StatsResponse can optionally contain the MeasurementDescriptor and
* ViewDescriptor for the View. These will be sent in the first WatchStats
* response, or all GetStats and GetCanonicalRpcStats responses. These will
* not be set for {Get,Watch}Stats if
* dont_include_descriptors_in_first_response is set to true in the
* StatsRequest.
* </pre>
*
* <code>.google.instrumentation.MeasurementDescriptor measurement_descriptor = 1;</code>
*/
public Builder mergeMeasurementDescriptor(com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor value) {
if (measurementDescriptorBuilder_ == null) {
if (measurementDescriptor_ != null) {
measurementDescriptor_ =
com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor.newBuilder(measurementDescriptor_).mergeFrom(value).buildPartial();
} else {
measurementDescriptor_ = value;
}
onChanged();
} else {
measurementDescriptorBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* A StatsResponse can optionally contain the MeasurementDescriptor and
* ViewDescriptor for the View. These will be sent in the first WatchStats
* response, or all GetStats and GetCanonicalRpcStats responses. These will
* not be set for {Get,Watch}Stats if
* dont_include_descriptors_in_first_response is set to true in the
* StatsRequest.
* </pre>
*
* <code>.google.instrumentation.MeasurementDescriptor measurement_descriptor = 1;</code>
*/
public Builder clearMeasurementDescriptor() {
if (measurementDescriptorBuilder_ == null) {
measurementDescriptor_ = null;
onChanged();
} else {
measurementDescriptor_ = null;
measurementDescriptorBuilder_ = null;
}
return this;
}
/**
* <pre>
* A StatsResponse can optionally contain the MeasurementDescriptor and
* ViewDescriptor for the View. These will be sent in the first WatchStats
* response, or all GetStats and GetCanonicalRpcStats responses. These will
* not be set for {Get,Watch}Stats if
* dont_include_descriptors_in_first_response is set to true in the
* StatsRequest.
* </pre>
*
* <code>.google.instrumentation.MeasurementDescriptor measurement_descriptor = 1;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor.Builder getMeasurementDescriptorBuilder() {
onChanged();
return getMeasurementDescriptorFieldBuilder().getBuilder();
}
/**
* <pre>
* A StatsResponse can optionally contain the MeasurementDescriptor and
* ViewDescriptor for the View. These will be sent in the first WatchStats
* response, or all GetStats and GetCanonicalRpcStats responses. These will
* not be set for {Get,Watch}Stats if
* dont_include_descriptors_in_first_response is set to true in the
* StatsRequest.
* </pre>
*
* <code>.google.instrumentation.MeasurementDescriptor measurement_descriptor = 1;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptorOrBuilder getMeasurementDescriptorOrBuilder() {
if (measurementDescriptorBuilder_ != null) {
return measurementDescriptorBuilder_.getMessageOrBuilder();
} else {
return measurementDescriptor_ == null ?
com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor.getDefaultInstance() : measurementDescriptor_;
}
}
/**
* <pre>
* A StatsResponse can optionally contain the MeasurementDescriptor and
* ViewDescriptor for the View. These will be sent in the first WatchStats
* response, or all GetStats and GetCanonicalRpcStats responses. These will
* not be set for {Get,Watch}Stats if
* dont_include_descriptors_in_first_response is set to true in the
* StatsRequest.
* </pre>
*
* <code>.google.instrumentation.MeasurementDescriptor measurement_descriptor = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor, com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor.Builder, com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptorOrBuilder>
getMeasurementDescriptorFieldBuilder() {
if (measurementDescriptorBuilder_ == null) {
measurementDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor, com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptor.Builder, com.google.instrumentation.stats.proto.CensusProto.MeasurementDescriptorOrBuilder>(
getMeasurementDescriptor(),
getParentForChildren(),
isClean());
measurementDescriptor_ = null;
}
return measurementDescriptorBuilder_;
}
private com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor viewDescriptor_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor, com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor.Builder, com.google.instrumentation.stats.proto.CensusProto.ViewDescriptorOrBuilder> viewDescriptorBuilder_;
/**
* <code>.google.instrumentation.ViewDescriptor view_descriptor = 2;</code>
*/
public boolean hasViewDescriptor() {
return viewDescriptorBuilder_ != null || viewDescriptor_ != null;
}
/**
* <code>.google.instrumentation.ViewDescriptor view_descriptor = 2;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor getViewDescriptor() {
if (viewDescriptorBuilder_ == null) {
return viewDescriptor_ == null ? com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor.getDefaultInstance() : viewDescriptor_;
} else {
return viewDescriptorBuilder_.getMessage();
}
}
/**
* <code>.google.instrumentation.ViewDescriptor view_descriptor = 2;</code>
*/
public Builder setViewDescriptor(com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor value) {
if (viewDescriptorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
viewDescriptor_ = value;
onChanged();
} else {
viewDescriptorBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.instrumentation.ViewDescriptor view_descriptor = 2;</code>
*/
public Builder setViewDescriptor(
com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor.Builder builderForValue) {
if (viewDescriptorBuilder_ == null) {
viewDescriptor_ = builderForValue.build();
onChanged();
} else {
viewDescriptorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.instrumentation.ViewDescriptor view_descriptor = 2;</code>
*/
public Builder mergeViewDescriptor(com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor value) {
if (viewDescriptorBuilder_ == null) {
if (viewDescriptor_ != null) {
viewDescriptor_ =
com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor.newBuilder(viewDescriptor_).mergeFrom(value).buildPartial();
} else {
viewDescriptor_ = value;
}
onChanged();
} else {
viewDescriptorBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.instrumentation.ViewDescriptor view_descriptor = 2;</code>
*/
public Builder clearViewDescriptor() {
if (viewDescriptorBuilder_ == null) {
viewDescriptor_ = null;
onChanged();
} else {
viewDescriptor_ = null;
viewDescriptorBuilder_ = null;
}
return this;
}
/**
* <code>.google.instrumentation.ViewDescriptor view_descriptor = 2;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor.Builder getViewDescriptorBuilder() {
onChanged();
return getViewDescriptorFieldBuilder().getBuilder();
}
/**
* <code>.google.instrumentation.ViewDescriptor view_descriptor = 2;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.ViewDescriptorOrBuilder getViewDescriptorOrBuilder() {
if (viewDescriptorBuilder_ != null) {
return viewDescriptorBuilder_.getMessageOrBuilder();
} else {
return viewDescriptor_ == null ?
com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor.getDefaultInstance() : viewDescriptor_;
}
}
/**
* <code>.google.instrumentation.ViewDescriptor view_descriptor = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor, com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor.Builder, com.google.instrumentation.stats.proto.CensusProto.ViewDescriptorOrBuilder>
getViewDescriptorFieldBuilder() {
if (viewDescriptorBuilder_ == null) {
viewDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor, com.google.instrumentation.stats.proto.CensusProto.ViewDescriptor.Builder, com.google.instrumentation.stats.proto.CensusProto.ViewDescriptorOrBuilder>(
getViewDescriptor(),
getParentForChildren(),
isClean());
viewDescriptor_ = null;
}
return viewDescriptorBuilder_;
}
private com.google.instrumentation.stats.proto.CensusProto.View view_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.instrumentation.stats.proto.CensusProto.View, com.google.instrumentation.stats.proto.CensusProto.View.Builder, com.google.instrumentation.stats.proto.CensusProto.ViewOrBuilder> viewBuilder_;
/**
* <pre>
* The View data.
* </pre>
*
* <code>.google.instrumentation.View view = 3;</code>
*/
public boolean hasView() {
return viewBuilder_ != null || view_ != null;
}
/**
* <pre>
* The View data.
* </pre>
*
* <code>.google.instrumentation.View view = 3;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.View getView() {
if (viewBuilder_ == null) {
return view_ == null ? com.google.instrumentation.stats.proto.CensusProto.View.getDefaultInstance() : view_;
} else {
return viewBuilder_.getMessage();
}
}
/**
* <pre>
* The View data.
* </pre>
*
* <code>.google.instrumentation.View view = 3;</code>
*/
public Builder setView(com.google.instrumentation.stats.proto.CensusProto.View value) {
if (viewBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
view_ = value;
onChanged();
} else {
viewBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* The View data.
* </pre>
*
* <code>.google.instrumentation.View view = 3;</code>
*/
public Builder setView(
com.google.instrumentation.stats.proto.CensusProto.View.Builder builderForValue) {
if (viewBuilder_ == null) {
view_ = builderForValue.build();
onChanged();
} else {
viewBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* The View data.
* </pre>
*
* <code>.google.instrumentation.View view = 3;</code>
*/
public Builder mergeView(com.google.instrumentation.stats.proto.CensusProto.View value) {
if (viewBuilder_ == null) {
if (view_ != null) {
view_ =
com.google.instrumentation.stats.proto.CensusProto.View.newBuilder(view_).mergeFrom(value).buildPartial();
} else {
view_ = value;
}
onChanged();
} else {
viewBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* The View data.
* </pre>
*
* <code>.google.instrumentation.View view = 3;</code>
*/
public Builder clearView() {
if (viewBuilder_ == null) {
view_ = null;
onChanged();
} else {
view_ = null;
viewBuilder_ = null;
}
return this;
}
/**
* <pre>
* The View data.
* </pre>
*
* <code>.google.instrumentation.View view = 3;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.View.Builder getViewBuilder() {
onChanged();
return getViewFieldBuilder().getBuilder();
}
/**
* <pre>
* The View data.
* </pre>
*
* <code>.google.instrumentation.View view = 3;</code>
*/
public com.google.instrumentation.stats.proto.CensusProto.ViewOrBuilder getViewOrBuilder() {
if (viewBuilder_ != null) {
return viewBuilder_.getMessageOrBuilder();
} else {
return view_ == null ?
com.google.instrumentation.stats.proto.CensusProto.View.getDefaultInstance() : view_;
}
}
/**
* <pre>
* The View data.
* </pre>
*
* <code>.google.instrumentation.View view = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.instrumentation.stats.proto.CensusProto.View, com.google.instrumentation.stats.proto.CensusProto.View.Builder, com.google.instrumentation.stats.proto.CensusProto.ViewOrBuilder>
getViewFieldBuilder() {
if (viewBuilder_ == null) {
viewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.instrumentation.stats.proto.CensusProto.View, com.google.instrumentation.stats.proto.CensusProto.View.Builder, com.google.instrumentation.stats.proto.CensusProto.ViewOrBuilder>(
getView(),
getParentForChildren(),
isClean());
view_ = null;
}
return viewBuilder_;
}
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.StatsResponse)
}
// @@protoc_insertion_point(class_scope:grpc.instrumentation.v1alpha.StatsResponse)
private static final io.grpc.instrumentation.v1alpha.StatsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grpc.instrumentation.v1alpha.StatsResponse();
}
public static io.grpc.instrumentation.v1alpha.StatsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<StatsResponse>
PARSER = new com.google.protobuf.AbstractParser<StatsResponse>() {
public StatsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StatsResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<StatsResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<StatsResponse> getParserForType() {
return PARSER;
}
public io.grpc.instrumentation.v1alpha.StatsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}