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

io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/service/load_stats/v3/lrs.proto

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

/**
 * 
 * A load report Envoy sends to the management server.
 * 
* * Protobuf type {@code envoy.service.load_stats.v3.LoadStatsRequest} */ public final class LoadStatsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.load_stats.v3.LoadStatsRequest) LoadStatsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use LoadStatsRequest.newBuilder() to construct. private LoadStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LoadStatsRequest() { clusterStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LoadStatsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LoadStatsRequest( 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.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; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { clusterStats_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } clusterStats_.add( input.readMessage(io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.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)) { clusterStats_ = java.util.Collections.unmodifiableList(clusterStats_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.load_stats.v3.LrsProto.internal_static_envoy_service_load_stats_v3_LoadStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.load_stats.v3.LrsProto.internal_static_envoy_service_load_stats_v3_LoadStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest.class, io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest.Builder.class); } public static final int NODE_FIELD_NUMBER = 1; private io.envoyproxy.envoy.config.core.v3.Node node_; /** *
   * Node identifier for Envoy instance.
   * 
* * .envoy.config.core.v3.Node node = 1; * @return Whether the node field is set. */ @java.lang.Override public boolean hasNode() { return node_ != null; } /** *
   * Node identifier for Envoy instance.
   * 
* * .envoy.config.core.v3.Node node = 1; * @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_; } /** *
   * Node identifier for Envoy instance.
   * 
* * .envoy.config.core.v3.Node node = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.NodeOrBuilder getNodeOrBuilder() { return getNode(); } public static final int CLUSTER_STATS_FIELD_NUMBER = 2; private java.util.List clusterStats_; /** *
   * A list of load stats to report.
   * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ @java.lang.Override public java.util.List getClusterStatsList() { return clusterStats_; } /** *
   * A list of load stats to report.
   * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ @java.lang.Override public java.util.List getClusterStatsOrBuilderList() { return clusterStats_; } /** *
   * A list of load stats to report.
   * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ @java.lang.Override public int getClusterStatsCount() { return clusterStats_.size(); } /** *
   * A list of load stats to report.
   * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.ClusterStats getClusterStats(int index) { return clusterStats_.get(index); } /** *
   * A list of load stats to report.
   * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.ClusterStatsOrBuilder getClusterStatsOrBuilder( int index) { return clusterStats_.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 (node_ != null) { output.writeMessage(1, getNode()); } for (int i = 0; i < clusterStats_.size(); i++) { output.writeMessage(2, clusterStats_.get(i)); } 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()); } for (int i = 0; i < clusterStats_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, clusterStats_.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.load_stats.v3.LoadStatsRequest)) { return super.equals(obj); } io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest other = (io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest) obj; if (hasNode() != other.hasNode()) return false; if (hasNode()) { if (!getNode() .equals(other.getNode())) return false; } if (!getClusterStatsList() .equals(other.getClusterStatsList())) 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(); } if (getClusterStatsCount() > 0) { hash = (37 * hash) + CLUSTER_STATS_FIELD_NUMBER; hash = (53 * hash) + getClusterStatsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest 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.load_stats.v3.LoadStatsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest 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.load_stats.v3.LoadStatsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest 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.load_stats.v3.LoadStatsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest 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.load_stats.v3.LoadStatsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest 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.load_stats.v3.LoadStatsRequest 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; } /** *
   * A load report Envoy sends to the management server.
   * 
* * Protobuf type {@code envoy.service.load_stats.v3.LoadStatsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.load_stats.v3.LoadStatsRequest) io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.load_stats.v3.LrsProto.internal_static_envoy_service_load_stats_v3_LoadStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.load_stats.v3.LrsProto.internal_static_envoy_service_load_stats_v3_LoadStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest.class, io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest.Builder.class); } // Construct using io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getClusterStatsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (nodeBuilder_ == null) { node_ = null; } else { node_ = null; nodeBuilder_ = null; } if (clusterStatsBuilder_ == null) { clusterStats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { clusterStatsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.load_stats.v3.LrsProto.internal_static_envoy_service_load_stats_v3_LoadStatsRequest_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest getDefaultInstanceForType() { return io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest build() { io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest buildPartial() { io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest result = new io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest(this); int from_bitField0_ = bitField0_; if (nodeBuilder_ == null) { result.node_ = node_; } else { result.node_ = nodeBuilder_.build(); } if (clusterStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { clusterStats_ = java.util.Collections.unmodifiableList(clusterStats_); bitField0_ = (bitField0_ & ~0x00000001); } result.clusterStats_ = clusterStats_; } else { result.clusterStats_ = clusterStatsBuilder_.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.load_stats.v3.LoadStatsRequest) { return mergeFrom((io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest other) { if (other == io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest.getDefaultInstance()) return this; if (other.hasNode()) { mergeNode(other.getNode()); } if (clusterStatsBuilder_ == null) { if (!other.clusterStats_.isEmpty()) { if (clusterStats_.isEmpty()) { clusterStats_ = other.clusterStats_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureClusterStatsIsMutable(); clusterStats_.addAll(other.clusterStats_); } onChanged(); } } else { if (!other.clusterStats_.isEmpty()) { if (clusterStatsBuilder_.isEmpty()) { clusterStatsBuilder_.dispose(); clusterStatsBuilder_ = null; clusterStats_ = other.clusterStats_; bitField0_ = (bitField0_ & ~0x00000001); clusterStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getClusterStatsFieldBuilder() : null; } else { clusterStatsBuilder_.addAllMessages(other.clusterStats_); } } } 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.load_stats.v3.LoadStatsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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_; /** *
     * Node identifier for Envoy instance.
     * 
* * .envoy.config.core.v3.Node node = 1; * @return Whether the node field is set. */ public boolean hasNode() { return nodeBuilder_ != null || node_ != null; } /** *
     * Node identifier for Envoy instance.
     * 
* * .envoy.config.core.v3.Node node = 1; * @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(); } } /** *
     * Node identifier for Envoy instance.
     * 
* * .envoy.config.core.v3.Node node = 1; */ 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; } /** *
     * Node identifier for Envoy instance.
     * 
* * .envoy.config.core.v3.Node node = 1; */ 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; } /** *
     * Node identifier for Envoy instance.
     * 
* * .envoy.config.core.v3.Node node = 1; */ 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; } /** *
     * Node identifier for Envoy instance.
     * 
* * .envoy.config.core.v3.Node node = 1; */ public Builder clearNode() { if (nodeBuilder_ == null) { node_ = null; onChanged(); } else { node_ = null; nodeBuilder_ = null; } return this; } /** *
     * Node identifier for Envoy instance.
     * 
* * .envoy.config.core.v3.Node node = 1; */ public io.envoyproxy.envoy.config.core.v3.Node.Builder getNodeBuilder() { onChanged(); return getNodeFieldBuilder().getBuilder(); } /** *
     * Node identifier for Envoy instance.
     * 
* * .envoy.config.core.v3.Node node = 1; */ 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_; } } /** *
     * Node identifier for Envoy instance.
     * 
* * .envoy.config.core.v3.Node node = 1; */ 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_; } private java.util.List clusterStats_ = java.util.Collections.emptyList(); private void ensureClusterStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { clusterStats_ = new java.util.ArrayList(clusterStats_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.ClusterStats, io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.ClusterStatsOrBuilder> clusterStatsBuilder_; /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public java.util.List getClusterStatsList() { if (clusterStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(clusterStats_); } else { return clusterStatsBuilder_.getMessageList(); } } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public int getClusterStatsCount() { if (clusterStatsBuilder_ == null) { return clusterStats_.size(); } else { return clusterStatsBuilder_.getCount(); } } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public io.envoyproxy.envoy.config.endpoint.v3.ClusterStats getClusterStats(int index) { if (clusterStatsBuilder_ == null) { return clusterStats_.get(index); } else { return clusterStatsBuilder_.getMessage(index); } } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public Builder setClusterStats( int index, io.envoyproxy.envoy.config.endpoint.v3.ClusterStats value) { if (clusterStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClusterStatsIsMutable(); clusterStats_.set(index, value); onChanged(); } else { clusterStatsBuilder_.setMessage(index, value); } return this; } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public Builder setClusterStats( int index, io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.Builder builderForValue) { if (clusterStatsBuilder_ == null) { ensureClusterStatsIsMutable(); clusterStats_.set(index, builderForValue.build()); onChanged(); } else { clusterStatsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public Builder addClusterStats(io.envoyproxy.envoy.config.endpoint.v3.ClusterStats value) { if (clusterStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClusterStatsIsMutable(); clusterStats_.add(value); onChanged(); } else { clusterStatsBuilder_.addMessage(value); } return this; } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public Builder addClusterStats( int index, io.envoyproxy.envoy.config.endpoint.v3.ClusterStats value) { if (clusterStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClusterStatsIsMutable(); clusterStats_.add(index, value); onChanged(); } else { clusterStatsBuilder_.addMessage(index, value); } return this; } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public Builder addClusterStats( io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.Builder builderForValue) { if (clusterStatsBuilder_ == null) { ensureClusterStatsIsMutable(); clusterStats_.add(builderForValue.build()); onChanged(); } else { clusterStatsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public Builder addClusterStats( int index, io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.Builder builderForValue) { if (clusterStatsBuilder_ == null) { ensureClusterStatsIsMutable(); clusterStats_.add(index, builderForValue.build()); onChanged(); } else { clusterStatsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public Builder addAllClusterStats( java.lang.Iterable values) { if (clusterStatsBuilder_ == null) { ensureClusterStatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, clusterStats_); onChanged(); } else { clusterStatsBuilder_.addAllMessages(values); } return this; } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public Builder clearClusterStats() { if (clusterStatsBuilder_ == null) { clusterStats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { clusterStatsBuilder_.clear(); } return this; } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public Builder removeClusterStats(int index) { if (clusterStatsBuilder_ == null) { ensureClusterStatsIsMutable(); clusterStats_.remove(index); onChanged(); } else { clusterStatsBuilder_.remove(index); } return this; } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.Builder getClusterStatsBuilder( int index) { return getClusterStatsFieldBuilder().getBuilder(index); } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public io.envoyproxy.envoy.config.endpoint.v3.ClusterStatsOrBuilder getClusterStatsOrBuilder( int index) { if (clusterStatsBuilder_ == null) { return clusterStats_.get(index); } else { return clusterStatsBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public java.util.List getClusterStatsOrBuilderList() { if (clusterStatsBuilder_ != null) { return clusterStatsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(clusterStats_); } } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.Builder addClusterStatsBuilder() { return getClusterStatsFieldBuilder().addBuilder( io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.getDefaultInstance()); } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.Builder addClusterStatsBuilder( int index) { return getClusterStatsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.getDefaultInstance()); } /** *
     * A list of load stats to report.
     * 
* * repeated .envoy.config.endpoint.v3.ClusterStats cluster_stats = 2; */ public java.util.List getClusterStatsBuilderList() { return getClusterStatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.ClusterStats, io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.ClusterStatsOrBuilder> getClusterStatsFieldBuilder() { if (clusterStatsBuilder_ == null) { clusterStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.endpoint.v3.ClusterStats, io.envoyproxy.envoy.config.endpoint.v3.ClusterStats.Builder, io.envoyproxy.envoy.config.endpoint.v3.ClusterStatsOrBuilder>( clusterStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); clusterStats_ = null; } return clusterStatsBuilder_; } @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.load_stats.v3.LoadStatsRequest) } // @@protoc_insertion_point(class_scope:envoy.service.load_stats.v3.LoadStatsRequest) private static final io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest(); } public static io.envoyproxy.envoy.service.load_stats.v3.LoadStatsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LoadStatsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LoadStatsRequest(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.load_stats.v3.LoadStatsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy