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

io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager 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/config/overload/v2alpha/overload.proto

package io.envoyproxy.envoy.config.overload.v2alpha;

/**
 * Protobuf type {@code envoy.config.overload.v2alpha.OverloadManager}
 */
public final class OverloadManager extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:envoy.config.overload.v2alpha.OverloadManager)
    OverloadManagerOrBuilder {
private static final long serialVersionUID = 0L;
  // Use OverloadManager.newBuilder() to construct.
  private OverloadManager(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private OverloadManager() {
    resourceMonitors_ = java.util.Collections.emptyList();
    actions_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private OverloadManager(
      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: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (refreshInterval_ != null) {
              subBuilder = refreshInterval_.toBuilder();
            }
            refreshInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(refreshInterval_);
              refreshInterval_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              resourceMonitors_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            resourceMonitors_.add(
                input.readMessage(io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor.parser(), extensionRegistry));
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              actions_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            actions_.add(
                input.readMessage(io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction.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)) {
        resourceMonitors_ = java.util.Collections.unmodifiableList(resourceMonitors_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        actions_ = java.util.Collections.unmodifiableList(actions_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.envoyproxy.envoy.config.overload.v2alpha.OverloadProto.internal_static_envoy_config_overload_v2alpha_OverloadManager_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.envoyproxy.envoy.config.overload.v2alpha.OverloadProto.internal_static_envoy_config_overload_v2alpha_OverloadManager_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager.class, io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager.Builder.class);
  }

  public static final int REFRESH_INTERVAL_FIELD_NUMBER = 1;
  private com.google.protobuf.Duration refreshInterval_;
  /**
   * 
   * The interval for refreshing resource usage.
   * 
* * .google.protobuf.Duration refresh_interval = 1; * @return Whether the refreshInterval field is set. */ @java.lang.Override public boolean hasRefreshInterval() { return refreshInterval_ != null; } /** *
   * The interval for refreshing resource usage.
   * 
* * .google.protobuf.Duration refresh_interval = 1; * @return The refreshInterval. */ @java.lang.Override public com.google.protobuf.Duration getRefreshInterval() { return refreshInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : refreshInterval_; } /** *
   * The interval for refreshing resource usage.
   * 
* * .google.protobuf.Duration refresh_interval = 1; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder() { return getRefreshInterval(); } public static final int RESOURCE_MONITORS_FIELD_NUMBER = 2; private java.util.List resourceMonitors_; /** *
   * The set of resources to monitor.
   * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getResourceMonitorsList() { return resourceMonitors_; } /** *
   * The set of resources to monitor.
   * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getResourceMonitorsOrBuilderList() { return resourceMonitors_; } /** *
   * The set of resources to monitor.
   * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ @java.lang.Override public int getResourceMonitorsCount() { return resourceMonitors_.size(); } /** *
   * The set of resources to monitor.
   * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor getResourceMonitors(int index) { return resourceMonitors_.get(index); } /** *
   * The set of resources to monitor.
   * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitorOrBuilder getResourceMonitorsOrBuilder( int index) { return resourceMonitors_.get(index); } public static final int ACTIONS_FIELD_NUMBER = 3; private java.util.List actions_; /** *
   * The set of overload actions.
   * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ @java.lang.Override public java.util.List getActionsList() { return actions_; } /** *
   * The set of overload actions.
   * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ @java.lang.Override public java.util.List getActionsOrBuilderList() { return actions_; } /** *
   * The set of overload actions.
   * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ @java.lang.Override public int getActionsCount() { return actions_.size(); } /** *
   * The set of overload actions.
   * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction getActions(int index) { return actions_.get(index); } /** *
   * The set of overload actions.
   * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.overload.v2alpha.OverloadActionOrBuilder getActionsOrBuilder( int index) { return actions_.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 (refreshInterval_ != null) { output.writeMessage(1, getRefreshInterval()); } for (int i = 0; i < resourceMonitors_.size(); i++) { output.writeMessage(2, resourceMonitors_.get(i)); } for (int i = 0; i < actions_.size(); i++) { output.writeMessage(3, actions_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (refreshInterval_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRefreshInterval()); } for (int i = 0; i < resourceMonitors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, resourceMonitors_.get(i)); } for (int i = 0; i < actions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, actions_.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.config.overload.v2alpha.OverloadManager)) { return super.equals(obj); } io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager other = (io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager) obj; if (hasRefreshInterval() != other.hasRefreshInterval()) return false; if (hasRefreshInterval()) { if (!getRefreshInterval() .equals(other.getRefreshInterval())) return false; } if (!getResourceMonitorsList() .equals(other.getResourceMonitorsList())) return false; if (!getActionsList() .equals(other.getActionsList())) 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 (hasRefreshInterval()) { hash = (37 * hash) + REFRESH_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getRefreshInterval().hashCode(); } if (getResourceMonitorsCount() > 0) { hash = (37 * hash) + RESOURCE_MONITORS_FIELD_NUMBER; hash = (53 * hash) + getResourceMonitorsList().hashCode(); } if (getActionsCount() > 0) { hash = (37 * hash) + ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getActionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager 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.config.overload.v2alpha.OverloadManager parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager 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.config.overload.v2alpha.OverloadManager parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager 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.config.overload.v2alpha.OverloadManager parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager 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.config.overload.v2alpha.OverloadManager parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager 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.config.overload.v2alpha.OverloadManager 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.config.overload.v2alpha.OverloadManager} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.overload.v2alpha.OverloadManager) io.envoyproxy.envoy.config.overload.v2alpha.OverloadManagerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.overload.v2alpha.OverloadProto.internal_static_envoy_config_overload_v2alpha_OverloadManager_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.overload.v2alpha.OverloadProto.internal_static_envoy_config_overload_v2alpha_OverloadManager_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager.class, io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager.Builder.class); } // Construct using io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResourceMonitorsFieldBuilder(); getActionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (refreshIntervalBuilder_ == null) { refreshInterval_ = null; } else { refreshInterval_ = null; refreshIntervalBuilder_ = null; } if (resourceMonitorsBuilder_ == null) { resourceMonitors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resourceMonitorsBuilder_.clear(); } if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { actionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.overload.v2alpha.OverloadProto.internal_static_envoy_config_overload_v2alpha_OverloadManager_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager getDefaultInstanceForType() { return io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager build() { io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager buildPartial() { io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager result = new io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager(this); int from_bitField0_ = bitField0_; if (refreshIntervalBuilder_ == null) { result.refreshInterval_ = refreshInterval_; } else { result.refreshInterval_ = refreshIntervalBuilder_.build(); } if (resourceMonitorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resourceMonitors_ = java.util.Collections.unmodifiableList(resourceMonitors_); bitField0_ = (bitField0_ & ~0x00000001); } result.resourceMonitors_ = resourceMonitors_; } else { result.resourceMonitors_ = resourceMonitorsBuilder_.build(); } if (actionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { actions_ = java.util.Collections.unmodifiableList(actions_); bitField0_ = (bitField0_ & ~0x00000002); } result.actions_ = actions_; } else { result.actions_ = actionsBuilder_.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.config.overload.v2alpha.OverloadManager) { return mergeFrom((io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager other) { if (other == io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager.getDefaultInstance()) return this; if (other.hasRefreshInterval()) { mergeRefreshInterval(other.getRefreshInterval()); } if (resourceMonitorsBuilder_ == null) { if (!other.resourceMonitors_.isEmpty()) { if (resourceMonitors_.isEmpty()) { resourceMonitors_ = other.resourceMonitors_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourceMonitorsIsMutable(); resourceMonitors_.addAll(other.resourceMonitors_); } onChanged(); } } else { if (!other.resourceMonitors_.isEmpty()) { if (resourceMonitorsBuilder_.isEmpty()) { resourceMonitorsBuilder_.dispose(); resourceMonitorsBuilder_ = null; resourceMonitors_ = other.resourceMonitors_; bitField0_ = (bitField0_ & ~0x00000001); resourceMonitorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourceMonitorsFieldBuilder() : null; } else { resourceMonitorsBuilder_.addAllMessages(other.resourceMonitors_); } } } if (actionsBuilder_ == null) { if (!other.actions_.isEmpty()) { if (actions_.isEmpty()) { actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureActionsIsMutable(); actions_.addAll(other.actions_); } onChanged(); } } else { if (!other.actions_.isEmpty()) { if (actionsBuilder_.isEmpty()) { actionsBuilder_.dispose(); actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000002); actionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActionsFieldBuilder() : null; } else { actionsBuilder_.addAllMessages(other.actions_); } } } 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.config.overload.v2alpha.OverloadManager parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.Duration refreshInterval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> refreshIntervalBuilder_; /** *
     * The interval for refreshing resource usage.
     * 
* * .google.protobuf.Duration refresh_interval = 1; * @return Whether the refreshInterval field is set. */ public boolean hasRefreshInterval() { return refreshIntervalBuilder_ != null || refreshInterval_ != null; } /** *
     * The interval for refreshing resource usage.
     * 
* * .google.protobuf.Duration refresh_interval = 1; * @return The refreshInterval. */ public com.google.protobuf.Duration getRefreshInterval() { if (refreshIntervalBuilder_ == null) { return refreshInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : refreshInterval_; } else { return refreshIntervalBuilder_.getMessage(); } } /** *
     * The interval for refreshing resource usage.
     * 
* * .google.protobuf.Duration refresh_interval = 1; */ public Builder setRefreshInterval(com.google.protobuf.Duration value) { if (refreshIntervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } refreshInterval_ = value; onChanged(); } else { refreshIntervalBuilder_.setMessage(value); } return this; } /** *
     * The interval for refreshing resource usage.
     * 
* * .google.protobuf.Duration refresh_interval = 1; */ public Builder setRefreshInterval( com.google.protobuf.Duration.Builder builderForValue) { if (refreshIntervalBuilder_ == null) { refreshInterval_ = builderForValue.build(); onChanged(); } else { refreshIntervalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The interval for refreshing resource usage.
     * 
* * .google.protobuf.Duration refresh_interval = 1; */ public Builder mergeRefreshInterval(com.google.protobuf.Duration value) { if (refreshIntervalBuilder_ == null) { if (refreshInterval_ != null) { refreshInterval_ = com.google.protobuf.Duration.newBuilder(refreshInterval_).mergeFrom(value).buildPartial(); } else { refreshInterval_ = value; } onChanged(); } else { refreshIntervalBuilder_.mergeFrom(value); } return this; } /** *
     * The interval for refreshing resource usage.
     * 
* * .google.protobuf.Duration refresh_interval = 1; */ public Builder clearRefreshInterval() { if (refreshIntervalBuilder_ == null) { refreshInterval_ = null; onChanged(); } else { refreshInterval_ = null; refreshIntervalBuilder_ = null; } return this; } /** *
     * The interval for refreshing resource usage.
     * 
* * .google.protobuf.Duration refresh_interval = 1; */ public com.google.protobuf.Duration.Builder getRefreshIntervalBuilder() { onChanged(); return getRefreshIntervalFieldBuilder().getBuilder(); } /** *
     * The interval for refreshing resource usage.
     * 
* * .google.protobuf.Duration refresh_interval = 1; */ public com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder() { if (refreshIntervalBuilder_ != null) { return refreshIntervalBuilder_.getMessageOrBuilder(); } else { return refreshInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : refreshInterval_; } } /** *
     * The interval for refreshing resource usage.
     * 
* * .google.protobuf.Duration refresh_interval = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRefreshIntervalFieldBuilder() { if (refreshIntervalBuilder_ == null) { refreshIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getRefreshInterval(), getParentForChildren(), isClean()); refreshInterval_ = null; } return refreshIntervalBuilder_; } private java.util.List resourceMonitors_ = java.util.Collections.emptyList(); private void ensureResourceMonitorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceMonitors_ = new java.util.ArrayList(resourceMonitors_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor, io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor.Builder, io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitorOrBuilder> resourceMonitorsBuilder_; /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public java.util.List getResourceMonitorsList() { if (resourceMonitorsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceMonitors_); } else { return resourceMonitorsBuilder_.getMessageList(); } } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public int getResourceMonitorsCount() { if (resourceMonitorsBuilder_ == null) { return resourceMonitors_.size(); } else { return resourceMonitorsBuilder_.getCount(); } } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor getResourceMonitors(int index) { if (resourceMonitorsBuilder_ == null) { return resourceMonitors_.get(index); } else { return resourceMonitorsBuilder_.getMessage(index); } } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public Builder setResourceMonitors( int index, io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor value) { if (resourceMonitorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceMonitorsIsMutable(); resourceMonitors_.set(index, value); onChanged(); } else { resourceMonitorsBuilder_.setMessage(index, value); } return this; } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public Builder setResourceMonitors( int index, io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor.Builder builderForValue) { if (resourceMonitorsBuilder_ == null) { ensureResourceMonitorsIsMutable(); resourceMonitors_.set(index, builderForValue.build()); onChanged(); } else { resourceMonitorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public Builder addResourceMonitors(io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor value) { if (resourceMonitorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceMonitorsIsMutable(); resourceMonitors_.add(value); onChanged(); } else { resourceMonitorsBuilder_.addMessage(value); } return this; } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public Builder addResourceMonitors( int index, io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor value) { if (resourceMonitorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceMonitorsIsMutable(); resourceMonitors_.add(index, value); onChanged(); } else { resourceMonitorsBuilder_.addMessage(index, value); } return this; } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public Builder addResourceMonitors( io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor.Builder builderForValue) { if (resourceMonitorsBuilder_ == null) { ensureResourceMonitorsIsMutable(); resourceMonitors_.add(builderForValue.build()); onChanged(); } else { resourceMonitorsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public Builder addResourceMonitors( int index, io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor.Builder builderForValue) { if (resourceMonitorsBuilder_ == null) { ensureResourceMonitorsIsMutable(); resourceMonitors_.add(index, builderForValue.build()); onChanged(); } else { resourceMonitorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public Builder addAllResourceMonitors( java.lang.Iterable values) { if (resourceMonitorsBuilder_ == null) { ensureResourceMonitorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resourceMonitors_); onChanged(); } else { resourceMonitorsBuilder_.addAllMessages(values); } return this; } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public Builder clearResourceMonitors() { if (resourceMonitorsBuilder_ == null) { resourceMonitors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resourceMonitorsBuilder_.clear(); } return this; } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public Builder removeResourceMonitors(int index) { if (resourceMonitorsBuilder_ == null) { ensureResourceMonitorsIsMutable(); resourceMonitors_.remove(index); onChanged(); } else { resourceMonitorsBuilder_.remove(index); } return this; } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor.Builder getResourceMonitorsBuilder( int index) { return getResourceMonitorsFieldBuilder().getBuilder(index); } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitorOrBuilder getResourceMonitorsOrBuilder( int index) { if (resourceMonitorsBuilder_ == null) { return resourceMonitors_.get(index); } else { return resourceMonitorsBuilder_.getMessageOrBuilder(index); } } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public java.util.List getResourceMonitorsOrBuilderList() { if (resourceMonitorsBuilder_ != null) { return resourceMonitorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resourceMonitors_); } } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor.Builder addResourceMonitorsBuilder() { return getResourceMonitorsFieldBuilder().addBuilder( io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor.getDefaultInstance()); } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor.Builder addResourceMonitorsBuilder( int index) { return getResourceMonitorsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor.getDefaultInstance()); } /** *
     * The set of resources to monitor.
     * 
* * repeated .envoy.config.overload.v2alpha.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... } */ public java.util.List getResourceMonitorsBuilderList() { return getResourceMonitorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor, io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor.Builder, io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitorOrBuilder> getResourceMonitorsFieldBuilder() { if (resourceMonitorsBuilder_ == null) { resourceMonitorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor, io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitor.Builder, io.envoyproxy.envoy.config.overload.v2alpha.ResourceMonitorOrBuilder>( resourceMonitors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resourceMonitors_ = null; } return resourceMonitorsBuilder_; } private java.util.List actions_ = java.util.Collections.emptyList(); private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction, io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction.Builder, io.envoyproxy.envoy.config.overload.v2alpha.OverloadActionOrBuilder> actionsBuilder_; /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public java.util.List getActionsList() { if (actionsBuilder_ == null) { return java.util.Collections.unmodifiableList(actions_); } else { return actionsBuilder_.getMessageList(); } } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public int getActionsCount() { if (actionsBuilder_ == null) { return actions_.size(); } else { return actionsBuilder_.getCount(); } } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction getActions(int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessage(index); } } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public Builder setActions( int index, io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.set(index, value); onChanged(); } else { actionsBuilder_.setMessage(index, value); } return this; } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public Builder setActions( int index, io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.set(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public Builder addActions(io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(value); onChanged(); } else { actionsBuilder_.addMessage(value); } return this; } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public Builder addActions( int index, io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(index, value); onChanged(); } else { actionsBuilder_.addMessage(index, value); } return this; } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public Builder addActions( io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public Builder addActions( int index, io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public Builder addAllActions( java.lang.Iterable values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); } return this; } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public Builder clearActions() { if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { actionsBuilder_.clear(); } return this; } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public Builder removeActions(int index) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.remove(index); onChanged(); } else { actionsBuilder_.remove(index); } return this; } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction.Builder getActionsBuilder( int index) { return getActionsFieldBuilder().getBuilder(index); } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public io.envoyproxy.envoy.config.overload.v2alpha.OverloadActionOrBuilder getActionsOrBuilder( int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public java.util.List getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(actions_); } } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction.Builder addActionsBuilder() { return getActionsFieldBuilder().addBuilder( io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction.getDefaultInstance()); } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction.Builder addActionsBuilder( int index) { return getActionsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction.getDefaultInstance()); } /** *
     * The set of overload actions.
     * 
* * repeated .envoy.config.overload.v2alpha.OverloadAction actions = 3; */ public java.util.List getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction, io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction.Builder, io.envoyproxy.envoy.config.overload.v2alpha.OverloadActionOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction, io.envoyproxy.envoy.config.overload.v2alpha.OverloadAction.Builder, io.envoyproxy.envoy.config.overload.v2alpha.OverloadActionOrBuilder>( actions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); actions_ = null; } return actionsBuilder_; } @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.config.overload.v2alpha.OverloadManager) } // @@protoc_insertion_point(class_scope:envoy.config.overload.v2alpha.OverloadManager) private static final io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager(); } public static io.envoyproxy.envoy.config.overload.v2alpha.OverloadManager getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OverloadManager parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OverloadManager(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.config.overload.v2alpha.OverloadManager getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy