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

io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/service/metrics/v3/metrics_service.proto

package io.envoyproxy.envoy.service.metrics.v3;

/**
 * Protobuf type {@code envoy.service.metrics.v3.StreamMetricsMessage}
 */
public final class StreamMetricsMessage extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:envoy.service.metrics.v3.StreamMetricsMessage)
    StreamMetricsMessageOrBuilder {
private static final long serialVersionUID = 0L;
  // Use StreamMetricsMessage.newBuilder() to construct.
  private StreamMetricsMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private StreamMetricsMessage() {
    envoyMetrics_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new StreamMetricsMessage();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private StreamMetricsMessage(
      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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.Builder subBuilder = null;
            if (identifier_ != null) {
              subBuilder = identifier_.toBuilder();
            }
            identifier_ = input.readMessage(io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(identifier_);
              identifier_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              envoyMetrics_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            envoyMetrics_.add(
                input.readMessage(io.prometheus.client.Metrics.MetricFamily.PARSER, extensionRegistry));
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (com.google.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        envoyMetrics_ = java.util.Collections.unmodifiableList(envoyMetrics_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.envoyproxy.envoy.service.metrics.v3.MetricsServiceProto.internal_static_envoy_service_metrics_v3_StreamMetricsMessage_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.envoyproxy.envoy.service.metrics.v3.MetricsServiceProto.internal_static_envoy_service_metrics_v3_StreamMetricsMessage_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.class, io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Builder.class);
  }

  public interface IdentifierOrBuilder extends
      // @@protoc_insertion_point(interface_extends:envoy.service.metrics.v3.StreamMetricsMessage.Identifier)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * The node sending metrics over the stream.
     * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } * @return Whether the node field is set. */ boolean hasNode(); /** *
     * The node sending metrics over the stream.
     * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } * @return The node. */ io.envoyproxy.envoy.config.core.v3.Node getNode(); /** *
     * The node sending metrics over the stream.
     * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.core.v3.NodeOrBuilder getNodeOrBuilder(); } /** * Protobuf type {@code envoy.service.metrics.v3.StreamMetricsMessage.Identifier} */ public static final class Identifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.metrics.v3.StreamMetricsMessage.Identifier) IdentifierOrBuilder { private static final long serialVersionUID = 0L; // Use Identifier.newBuilder() to construct. private Identifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Identifier() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Identifier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Identifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.envoyproxy.envoy.config.core.v3.Node.Builder subBuilder = null; if (node_ != null) { subBuilder = node_.toBuilder(); } node_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.Node.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(node_); node_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.envoyproxy.envoy.service.metrics.v3.MetricsServiceProto.internal_static_envoy_service_metrics_v3_StreamMetricsMessage_Identifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.metrics.v3.MetricsServiceProto.internal_static_envoy_service_metrics_v3_StreamMetricsMessage_Identifier_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.class, io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.Builder.class); } public static final int NODE_FIELD_NUMBER = 1; private io.envoyproxy.envoy.config.core.v3.Node node_; /** *
     * The node sending metrics over the stream.
     * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } * @return Whether the node field is set. */ @java.lang.Override public boolean hasNode() { return node_ != null; } /** *
     * The node sending metrics over the stream.
     * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } * @return The node. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.Node getNode() { return node_ == null ? io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_; } /** *
     * The node sending metrics over the stream.
     * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.NodeOrBuilder getNodeOrBuilder() { return getNode(); } 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 (node_ != null) { output.writeMessage(1, getNode()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (node_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNode()); } 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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier)) { return super.equals(obj); } io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier other = (io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier) obj; if (hasNode() != other.hasNode()) return false; if (hasNode()) { if (!getNode() .equals(other.getNode())) 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 (hasNode()) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNode().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier 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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier 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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier 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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier 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; } /** * Protobuf type {@code envoy.service.metrics.v3.StreamMetricsMessage.Identifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.metrics.v3.StreamMetricsMessage.Identifier) io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.IdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.metrics.v3.MetricsServiceProto.internal_static_envoy_service_metrics_v3_StreamMetricsMessage_Identifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.metrics.v3.MetricsServiceProto.internal_static_envoy_service_metrics_v3_StreamMetricsMessage_Identifier_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.class, io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.Builder.class); } // Construct using io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.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 (nodeBuilder_ == null) { node_ = null; } else { node_ = null; nodeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.metrics.v3.MetricsServiceProto.internal_static_envoy_service_metrics_v3_StreamMetricsMessage_Identifier_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier getDefaultInstanceForType() { return io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier build() { io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier buildPartial() { io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier result = new io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier(this); if (nodeBuilder_ == null) { result.node_ = node_; } else { result.node_ = nodeBuilder_.build(); } 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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier) { return mergeFrom((io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier other) { if (other == io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.getDefaultInstance()) return this; if (other.hasNode()) { mergeNode(other.getNode()); } 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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.envoyproxy.envoy.config.core.v3.Node node_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.Node, io.envoyproxy.envoy.config.core.v3.Node.Builder, io.envoyproxy.envoy.config.core.v3.NodeOrBuilder> nodeBuilder_; /** *
       * The node sending metrics over the stream.
       * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } * @return Whether the node field is set. */ public boolean hasNode() { return nodeBuilder_ != null || node_ != null; } /** *
       * The node sending metrics over the stream.
       * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } * @return The node. */ public io.envoyproxy.envoy.config.core.v3.Node getNode() { if (nodeBuilder_ == null) { return node_ == null ? io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_; } else { return nodeBuilder_.getMessage(); } } /** *
       * The node sending metrics over the stream.
       * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } */ public Builder setNode(io.envoyproxy.envoy.config.core.v3.Node value) { if (nodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } node_ = value; onChanged(); } else { nodeBuilder_.setMessage(value); } return this; } /** *
       * The node sending metrics over the stream.
       * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } */ public Builder setNode( io.envoyproxy.envoy.config.core.v3.Node.Builder builderForValue) { if (nodeBuilder_ == null) { node_ = builderForValue.build(); onChanged(); } else { nodeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The node sending metrics over the stream.
       * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } */ public Builder mergeNode(io.envoyproxy.envoy.config.core.v3.Node value) { if (nodeBuilder_ == null) { if (node_ != null) { node_ = io.envoyproxy.envoy.config.core.v3.Node.newBuilder(node_).mergeFrom(value).buildPartial(); } else { node_ = value; } onChanged(); } else { nodeBuilder_.mergeFrom(value); } return this; } /** *
       * The node sending metrics over the stream.
       * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } */ public Builder clearNode() { if (nodeBuilder_ == null) { node_ = null; onChanged(); } else { node_ = null; nodeBuilder_ = null; } return this; } /** *
       * The node sending metrics over the stream.
       * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.core.v3.Node.Builder getNodeBuilder() { onChanged(); return getNodeFieldBuilder().getBuilder(); } /** *
       * The node sending metrics over the stream.
       * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.core.v3.NodeOrBuilder getNodeOrBuilder() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilder(); } else { return node_ == null ? io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_; } } /** *
       * The node sending metrics over the stream.
       * 
* * .envoy.config.core.v3.Node node = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.Node, io.envoyproxy.envoy.config.core.v3.Node.Builder, io.envoyproxy.envoy.config.core.v3.NodeOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.Node, io.envoyproxy.envoy.config.core.v3.Node.Builder, io.envoyproxy.envoy.config.core.v3.NodeOrBuilder>( getNode(), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.service.metrics.v3.StreamMetricsMessage.Identifier) } // @@protoc_insertion_point(class_scope:envoy.service.metrics.v3.StreamMetricsMessage.Identifier) private static final io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier(); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Identifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Identifier(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int IDENTIFIER_FIELD_NUMBER = 1; private io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier_; /** *
   * Identifier data effectively is a structured metadata. As a performance optimization this will
   * only be sent in the first message on the stream.
   * 
* * .envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier = 1; * @return Whether the identifier field is set. */ @java.lang.Override public boolean hasIdentifier() { return identifier_ != null; } /** *
   * Identifier data effectively is a structured metadata. As a performance optimization this will
   * only be sent in the first message on the stream.
   * 
* * .envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier = 1; * @return The identifier. */ @java.lang.Override public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier getIdentifier() { return identifier_ == null ? io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.getDefaultInstance() : identifier_; } /** *
   * Identifier data effectively is a structured metadata. As a performance optimization this will
   * only be sent in the first message on the stream.
   * 
* * .envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier = 1; */ @java.lang.Override public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.IdentifierOrBuilder getIdentifierOrBuilder() { return getIdentifier(); } public static final int ENVOY_METRICS_FIELD_NUMBER = 2; private java.util.List envoyMetrics_; /** *
   * A list of metric entries
   * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ @java.lang.Override public java.util.List getEnvoyMetricsList() { return envoyMetrics_; } /** *
   * A list of metric entries
   * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ @java.lang.Override public java.util.List getEnvoyMetricsOrBuilderList() { return envoyMetrics_; } /** *
   * A list of metric entries
   * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ @java.lang.Override public int getEnvoyMetricsCount() { return envoyMetrics_.size(); } /** *
   * A list of metric entries
   * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ @java.lang.Override public io.prometheus.client.Metrics.MetricFamily getEnvoyMetrics(int index) { return envoyMetrics_.get(index); } /** *
   * A list of metric entries
   * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ @java.lang.Override public io.prometheus.client.Metrics.MetricFamilyOrBuilder getEnvoyMetricsOrBuilder( int index) { return envoyMetrics_.get(index); } 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()); } for (int i = 0; i < envoyMetrics_.size(); i++) { output.writeMessage(2, envoyMetrics_.get(i)); } 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()); } for (int i = 0; i < envoyMetrics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, envoyMetrics_.get(i)); } 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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage)) { return super.equals(obj); } io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage other = (io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage) obj; if (hasIdentifier() != other.hasIdentifier()) return false; if (hasIdentifier()) { if (!getIdentifier() .equals(other.getIdentifier())) return false; } if (!getEnvoyMetricsList() .equals(other.getEnvoyMetricsList())) 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 (getEnvoyMetricsCount() > 0) { hash = (37 * hash) + ENVOY_METRICS_FIELD_NUMBER; hash = (53 * hash) + getEnvoyMetricsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage 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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage 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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage 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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage 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; } /** * Protobuf type {@code envoy.service.metrics.v3.StreamMetricsMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.metrics.v3.StreamMetricsMessage) io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.metrics.v3.MetricsServiceProto.internal_static_envoy_service_metrics_v3_StreamMetricsMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.metrics.v3.MetricsServiceProto.internal_static_envoy_service_metrics_v3_StreamMetricsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.class, io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Builder.class); } // Construct using io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEnvoyMetricsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (identifierBuilder_ == null) { identifier_ = null; } else { identifier_ = null; identifierBuilder_ = null; } if (envoyMetricsBuilder_ == null) { envoyMetrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { envoyMetricsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.metrics.v3.MetricsServiceProto.internal_static_envoy_service_metrics_v3_StreamMetricsMessage_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage getDefaultInstanceForType() { return io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage build() { io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage buildPartial() { io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage result = new io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage(this); int from_bitField0_ = bitField0_; if (identifierBuilder_ == null) { result.identifier_ = identifier_; } else { result.identifier_ = identifierBuilder_.build(); } if (envoyMetricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { envoyMetrics_ = java.util.Collections.unmodifiableList(envoyMetrics_); bitField0_ = (bitField0_ & ~0x00000001); } result.envoyMetrics_ = envoyMetrics_; } else { result.envoyMetrics_ = envoyMetricsBuilder_.build(); } 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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage) { return mergeFrom((io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage other) { if (other == io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.getDefaultInstance()) return this; if (other.hasIdentifier()) { mergeIdentifier(other.getIdentifier()); } if (envoyMetricsBuilder_ == null) { if (!other.envoyMetrics_.isEmpty()) { if (envoyMetrics_.isEmpty()) { envoyMetrics_ = other.envoyMetrics_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEnvoyMetricsIsMutable(); envoyMetrics_.addAll(other.envoyMetrics_); } onChanged(); } } else { if (!other.envoyMetrics_.isEmpty()) { if (envoyMetricsBuilder_.isEmpty()) { envoyMetricsBuilder_.dispose(); envoyMetricsBuilder_ = null; envoyMetrics_ = other.envoyMetrics_; bitField0_ = (bitField0_ & ~0x00000001); envoyMetricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvoyMetricsFieldBuilder() : null; } else { envoyMetricsBuilder_.addAllMessages(other.envoyMetrics_); } } } 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.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier, io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.Builder, io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.IdentifierOrBuilder> identifierBuilder_; /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier = 1; * @return Whether the identifier field is set. */ public boolean hasIdentifier() { return identifierBuilder_ != null || identifier_ != null; } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier = 1; * @return The identifier. */ public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier getIdentifier() { if (identifierBuilder_ == null) { return identifier_ == null ? io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.getDefaultInstance() : identifier_; } else { return identifierBuilder_.getMessage(); } } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier = 1; */ public Builder setIdentifier(io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier value) { if (identifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } identifier_ = value; onChanged(); } else { identifierBuilder_.setMessage(value); } return this; } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier = 1; */ public Builder setIdentifier( io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.Builder builderForValue) { if (identifierBuilder_ == null) { identifier_ = builderForValue.build(); onChanged(); } else { identifierBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier = 1; */ public Builder mergeIdentifier(io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier value) { if (identifierBuilder_ == null) { if (identifier_ != null) { identifier_ = io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.newBuilder(identifier_).mergeFrom(value).buildPartial(); } else { identifier_ = value; } onChanged(); } else { identifierBuilder_.mergeFrom(value); } return this; } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier = 1; */ public Builder clearIdentifier() { if (identifierBuilder_ == null) { identifier_ = null; onChanged(); } else { identifier_ = null; identifierBuilder_ = null; } return this; } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier = 1; */ public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.Builder getIdentifierBuilder() { onChanged(); return getIdentifierFieldBuilder().getBuilder(); } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier = 1; */ public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.IdentifierOrBuilder getIdentifierOrBuilder() { if (identifierBuilder_ != null) { return identifierBuilder_.getMessageOrBuilder(); } else { return identifier_ == null ? io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.getDefaultInstance() : identifier_; } } /** *
     * Identifier data effectively is a structured metadata. As a performance optimization this will
     * only be sent in the first message on the stream.
     * 
* * .envoy.service.metrics.v3.StreamMetricsMessage.Identifier identifier = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier, io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.Builder, io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.IdentifierOrBuilder> getIdentifierFieldBuilder() { if (identifierBuilder_ == null) { identifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier, io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.Identifier.Builder, io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage.IdentifierOrBuilder>( getIdentifier(), getParentForChildren(), isClean()); identifier_ = null; } return identifierBuilder_; } private java.util.List envoyMetrics_ = java.util.Collections.emptyList(); private void ensureEnvoyMetricsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { envoyMetrics_ = new java.util.ArrayList(envoyMetrics_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.prometheus.client.Metrics.MetricFamily, io.prometheus.client.Metrics.MetricFamily.Builder, io.prometheus.client.Metrics.MetricFamilyOrBuilder> envoyMetricsBuilder_; /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public java.util.List getEnvoyMetricsList() { if (envoyMetricsBuilder_ == null) { return java.util.Collections.unmodifiableList(envoyMetrics_); } else { return envoyMetricsBuilder_.getMessageList(); } } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public int getEnvoyMetricsCount() { if (envoyMetricsBuilder_ == null) { return envoyMetrics_.size(); } else { return envoyMetricsBuilder_.getCount(); } } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public io.prometheus.client.Metrics.MetricFamily getEnvoyMetrics(int index) { if (envoyMetricsBuilder_ == null) { return envoyMetrics_.get(index); } else { return envoyMetricsBuilder_.getMessage(index); } } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public Builder setEnvoyMetrics( int index, io.prometheus.client.Metrics.MetricFamily value) { if (envoyMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvoyMetricsIsMutable(); envoyMetrics_.set(index, value); onChanged(); } else { envoyMetricsBuilder_.setMessage(index, value); } return this; } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public Builder setEnvoyMetrics( int index, io.prometheus.client.Metrics.MetricFamily.Builder builderForValue) { if (envoyMetricsBuilder_ == null) { ensureEnvoyMetricsIsMutable(); envoyMetrics_.set(index, builderForValue.build()); onChanged(); } else { envoyMetricsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public Builder addEnvoyMetrics(io.prometheus.client.Metrics.MetricFamily value) { if (envoyMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvoyMetricsIsMutable(); envoyMetrics_.add(value); onChanged(); } else { envoyMetricsBuilder_.addMessage(value); } return this; } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public Builder addEnvoyMetrics( int index, io.prometheus.client.Metrics.MetricFamily value) { if (envoyMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvoyMetricsIsMutable(); envoyMetrics_.add(index, value); onChanged(); } else { envoyMetricsBuilder_.addMessage(index, value); } return this; } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public Builder addEnvoyMetrics( io.prometheus.client.Metrics.MetricFamily.Builder builderForValue) { if (envoyMetricsBuilder_ == null) { ensureEnvoyMetricsIsMutable(); envoyMetrics_.add(builderForValue.build()); onChanged(); } else { envoyMetricsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public Builder addEnvoyMetrics( int index, io.prometheus.client.Metrics.MetricFamily.Builder builderForValue) { if (envoyMetricsBuilder_ == null) { ensureEnvoyMetricsIsMutable(); envoyMetrics_.add(index, builderForValue.build()); onChanged(); } else { envoyMetricsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public Builder addAllEnvoyMetrics( java.lang.Iterable values) { if (envoyMetricsBuilder_ == null) { ensureEnvoyMetricsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, envoyMetrics_); onChanged(); } else { envoyMetricsBuilder_.addAllMessages(values); } return this; } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public Builder clearEnvoyMetrics() { if (envoyMetricsBuilder_ == null) { envoyMetrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { envoyMetricsBuilder_.clear(); } return this; } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public Builder removeEnvoyMetrics(int index) { if (envoyMetricsBuilder_ == null) { ensureEnvoyMetricsIsMutable(); envoyMetrics_.remove(index); onChanged(); } else { envoyMetricsBuilder_.remove(index); } return this; } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public io.prometheus.client.Metrics.MetricFamily.Builder getEnvoyMetricsBuilder( int index) { return getEnvoyMetricsFieldBuilder().getBuilder(index); } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public io.prometheus.client.Metrics.MetricFamilyOrBuilder getEnvoyMetricsOrBuilder( int index) { if (envoyMetricsBuilder_ == null) { return envoyMetrics_.get(index); } else { return envoyMetricsBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public java.util.List getEnvoyMetricsOrBuilderList() { if (envoyMetricsBuilder_ != null) { return envoyMetricsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(envoyMetrics_); } } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public io.prometheus.client.Metrics.MetricFamily.Builder addEnvoyMetricsBuilder() { return getEnvoyMetricsFieldBuilder().addBuilder( io.prometheus.client.Metrics.MetricFamily.getDefaultInstance()); } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public io.prometheus.client.Metrics.MetricFamily.Builder addEnvoyMetricsBuilder( int index) { return getEnvoyMetricsFieldBuilder().addBuilder( index, io.prometheus.client.Metrics.MetricFamily.getDefaultInstance()); } /** *
     * A list of metric entries
     * 
* * repeated .io.prometheus.client.MetricFamily envoy_metrics = 2; */ public java.util.List getEnvoyMetricsBuilderList() { return getEnvoyMetricsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.prometheus.client.Metrics.MetricFamily, io.prometheus.client.Metrics.MetricFamily.Builder, io.prometheus.client.Metrics.MetricFamilyOrBuilder> getEnvoyMetricsFieldBuilder() { if (envoyMetricsBuilder_ == null) { envoyMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.prometheus.client.Metrics.MetricFamily, io.prometheus.client.Metrics.MetricFamily.Builder, io.prometheus.client.Metrics.MetricFamilyOrBuilder>( envoyMetrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); envoyMetrics_ = null; } return envoyMetricsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.service.metrics.v3.StreamMetricsMessage) } // @@protoc_insertion_point(class_scope:envoy.service.metrics.v3.StreamMetricsMessage) private static final io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage(); } public static io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamMetricsMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamMetricsMessage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.metrics.v3.StreamMetricsMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy