@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public static com.google.protobuf.UInt32Value of(int value) { return newBuilder().setValue(value).build(); }
/** * <pre> * Soft limit on size of the cluster’s connections read and write buffers. If * unspecified, an implementation defined default is applied (1MiB). * </pre> * * <code>.google.protobuf.UInt32Value per_connection_buffer_limit_bytes = 5;</code> */ public Builder mergePerConnectionBufferLimitBytes(com.google.protobuf.UInt32Value value) { if (perConnectionBufferLimitBytesBuilder_ == null) { if (perConnectionBufferLimitBytes_ != null) { perConnectionBufferLimitBytes_ = com.google.protobuf.UInt32Value.newBuilder(perConnectionBufferLimitBytes_).mergeFrom(value).buildPartial(); } else { perConnectionBufferLimitBytes_ = value; } onChanged(); } else { perConnectionBufferLimitBytesBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * [#not-implemented-hide:] Non-serving port for health checking. * </pre> * * <code>.google.protobuf.UInt32Value alt_port = 6;</code> */ public Builder mergeAltPort(com.google.protobuf.UInt32Value value) { if (altPortBuilder_ == null) { if (altPort_ != null) { altPort_ = com.google.protobuf.UInt32Value.newBuilder(altPort_).mergeFrom(value).buildPartial(); } else { altPort_ = value; } onChanged(); } else { altPortBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * Minimum response length, in bytes, which will trigger compression. The default value is 30. * </pre> * * <code>.google.protobuf.UInt32Value content_length = 2 [(.validate.rules) = { ... }</code> */ public Builder mergeContentLength(com.google.protobuf.UInt32Value value) { if (contentLengthBuilder_ == null) { if (contentLength_ != null) { contentLength_ = com.google.protobuf.UInt32Value.newBuilder(contentLength_).mergeFrom(value).buildPartial(); } else { contentLength_ = value; } onChanged(); } else { contentLengthBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * Length of prefix, e.g. 0, 32. * </pre> * * <code>.google.protobuf.UInt32Value prefix_len = 2 [(.validate.rules) = { ... }</code> */ public Builder mergePrefixLen(com.google.protobuf.UInt32Value value) { if (prefixLenBuilder_ == null) { if (prefixLen_ != null) { prefixLen_ = com.google.protobuf.UInt32Value.newBuilder(prefixLen_).mergeFrom(value).buildPartial(); } else { prefixLen_ = value; } onChanged(); } else { prefixLenBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The % chance that a host will be actually ejected when an outlier status * is detected through consecutive gateway failures. This setting can be * used to disable ejection or to ramp it up slowly. Defaults to 0. * </pre> * * <code>.google.protobuf.UInt32Value enforcing_consecutive_gateway_failure = 11 [(.validate.rules) = { ... }</code> */ public Builder mergeEnforcingConsecutiveGatewayFailure(com.google.protobuf.UInt32Value value) { if (enforcingConsecutiveGatewayFailureBuilder_ == null) { if (enforcingConsecutiveGatewayFailure_ != null) { enforcingConsecutiveGatewayFailure_ = com.google.protobuf.UInt32Value.newBuilder(enforcingConsecutiveGatewayFailure_).mergeFrom(value).buildPartial(); } else { enforcingConsecutiveGatewayFailure_ = value; } onChanged(); } else { enforcingConsecutiveGatewayFailureBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * When a request matches the route, the choice of an upstream cluster is determined by its * weight. The sum of weights across all entries in the clusters array determines the total * weight. * </pre> * * <code>.google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }</code> */ public Builder mergeWeight(com.google.protobuf.UInt32Value value) { if (weightBuilder_ == null) { if (weight_ != null) { weight_ = com.google.protobuf.UInt32Value.newBuilder(weight_).mergeFrom(value).buildPartial(); } else { weight_ = value; } onChanged(); } else { weightBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * Optional destination port to consider when use_original_dst is set on the * listener in determining a filter chain match. * </pre> * * <code>.google.protobuf.UInt32Value destination_port = 8 [(.validate.rules) = { ... }</code> */ public Builder mergeDestinationPort(com.google.protobuf.UInt32Value value) { if (destinationPortBuilder_ == null) { if (destinationPort_ != null) { destinationPort_ = com.google.protobuf.UInt32Value.newBuilder(destinationPort_).mergeFrom(value).buildPartial(); } else { destinationPort_ = value; } onChanged(); } else { destinationPortBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The maximum number of pending requests that Envoy will allow to the * upstream cluster. If not specified, the default is 1024. * </pre> * * <code>.google.protobuf.UInt32Value max_pending_requests = 3;</code> */ public Builder mergeMaxPendingRequests(com.google.protobuf.UInt32Value value) { if (maxPendingRequestsBuilder_ == null) { if (maxPendingRequests_ != null) { maxPendingRequests_ = com.google.protobuf.UInt32Value.newBuilder(maxPendingRequests_).mergeFrom(value).buildPartial(); } else { maxPendingRequests_ = value; } onChanged(); } else { maxPendingRequestsBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * Maximum number of tokens to be used for rate limting discovery request calls. If not set, a * default value of 100 will be used. * </pre> * * <code>.google.protobuf.UInt32Value max_tokens = 1;</code> */ public Builder mergeMaxTokens(com.google.protobuf.UInt32Value value) { if (maxTokensBuilder_ == null) { if (maxTokens_ != null) { maxTokens_ = com.google.protobuf.UInt32Value.newBuilder(maxTokens_).mergeFrom(value).buildPartial(); } else { maxTokens_ = value; } onChanged(); } else { maxTokensBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * Similar to *initial_stream_window_size*, but for connection-level flow-control * window. Currently, this has the same minimum/maximum/default as *initial_stream_window_size*. * </pre> * * <code>.google.protobuf.UInt32Value initial_connection_window_size = 4 [(.validate.rules) = { ... }</code> */ public Builder mergeInitialConnectionWindowSize(com.google.protobuf.UInt32Value value) { if (initialConnectionWindowSizeBuilder_ == null) { if (initialConnectionWindowSize_ != null) { initialConnectionWindowSize_ = com.google.protobuf.UInt32Value.newBuilder(initialConnectionWindowSize_).mergeFrom(value).buildPartial(); } else { initialConnectionWindowSize_ = value; } onChanged(); } else { initialConnectionWindowSizeBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * Value from 1 to 9 that controls the amount of internal memory used by zlib. Higher values * use more memory, but are faster and produce better compression results. The default value is 5. * </pre> * * <code>.google.protobuf.UInt32Value memory_level = 1 [(.validate.rules) = { ... }</code> */ public Builder mergeMemoryLevel(com.google.protobuf.UInt32Value value) { if (memoryLevelBuilder_ == null) { if (memoryLevel_ != null) { memoryLevel_ = com.google.protobuf.UInt32Value.newBuilder(memoryLevel_).mergeFrom(value).buildPartial(); } else { memoryLevel_ = value; } onChanged(); } else { memoryLevelBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The maximum number of parallel retries that Envoy will allow to the * upstream cluster. If not specified, the default is 3. * </pre> * * <code>.google.protobuf.UInt32Value max_retries = 5;</code> */ public Builder mergeMaxRetries(com.google.protobuf.UInt32Value value) { if (maxRetriesBuilder_ == null) { if (maxRetries_ != null) { maxRetries_ = com.google.protobuf.UInt32Value.newBuilder(maxRetries_).mergeFrom(value).buildPartial(); } else { maxRetries_ = value; } onChanged(); } else { maxRetriesBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * `Maximum table size <http://httpwg.org/specs/rfc7541.html#rfc.section.4.2>`_ * (in octets) that the encoder is permitted to use for the dynamic HPACK table. Valid values * range from 0 to 4294967295 (2^32 - 1) and defaults to 4096. 0 effectively disables header * compression. * </pre> * * <code>.google.protobuf.UInt32Value hpack_table_size = 1;</code> */ public Builder mergeHpackTableSize(com.google.protobuf.UInt32Value value) { if (hpackTableSizeBuilder_ == null) { if (hpackTableSize_ != null) { hpackTableSize_ = com.google.protobuf.UInt32Value.newBuilder(hpackTableSize_).mergeFrom(value).buildPartial(); } else { hpackTableSize_ = value; } onChanged(); } else { hpackTableSizeBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The number of hosts in a cluster that must have enough request volume to * detect success rate outliers. If the number of hosts is less than this * setting, outlier detection via success rate statistics is not performed * for any host in the cluster. Defaults to 5. * </pre> * * <code>.google.protobuf.UInt32Value success_rate_minimum_hosts = 7;</code> */ public Builder mergeSuccessRateMinimumHosts(com.google.protobuf.UInt32Value value) { if (successRateMinimumHostsBuilder_ == null) { if (successRateMinimumHosts_ != null) { successRateMinimumHosts_ = com.google.protobuf.UInt32Value.newBuilder(successRateMinimumHosts_).mergeFrom(value).buildPartial(); } else { successRateMinimumHosts_ = value; } onChanged(); } else { successRateMinimumHostsBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The maximum number of connections that Envoy will make to the upstream * cluster. If not specified, the default is 1024. * </pre> * * <code>.google.protobuf.UInt32Value max_connections = 2;</code> */ public Builder mergeMaxConnections(com.google.protobuf.UInt32Value value) { if (maxConnectionsBuilder_ == null) { if (maxConnections_ != null) { maxConnections_ = com.google.protobuf.UInt32Value.newBuilder(maxConnections_).mergeFrom(value).buildPartial(); } else { maxConnections_ = value; } onChanged(); } else { maxConnectionsBuilder_.mergeFrom(value); } return this; } /**
/** Sets special configuration needed for 3rd party Endpoints APIs. */ private void applyThirdPartyApiSettings(Service.Builder serviceBuilder) { serviceBuilder.getControlBuilder().setEnvironment(ControlConfigUtil.PROD_SERVICE_CONTROL); // Set the config version to 3. serviceBuilder.setConfigVersion( UInt32Value.newBuilder().setValue(TOOLS_CONFIG_VERSION).build()); }
/** Sets special configuration needed for 3rd party Endpoints APIs. */ private void applyThirdPartyApiSettings(Service.Builder serviceBuilder) { serviceBuilder.getControlBuilder().setEnvironment(ControlConfigUtil.PROD_SERVICE_CONTROL); // Set the config version to 3. serviceBuilder.setConfigVersion( UInt32Value.newBuilder().setValue(TOOLS_CONFIG_VERSION).build()); }
/** * <code>.google.protobuf.UInt32Value uint32_wrapper = 6;</code> */ public Builder mergeUint32Wrapper(com.google.protobuf.UInt32Value value) { if (uint32WrapperBuilder_ == null) { if (uint32Wrapper_ != null) { uint32Wrapper_ = com.google.protobuf.UInt32Value.newBuilder(uint32Wrapper_).mergeFrom(value).buildPartial(); } else { uint32Wrapper_ = value; } onChanged(); } else { uint32WrapperBuilder_.mergeFrom(value); } return this; } /**