io.envoyproxy.envoy.api.v2.ClusterLoadAssignmentOrBuilder Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/api/v2/endpoint.proto
package io.envoyproxy.envoy.api.v2;
public interface ClusterLoadAssignmentOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.api.v2.ClusterLoadAssignment)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the cluster. This will be the :ref:`service_name
* <envoy_api_field_Cluster.EdsClusterConfig.service_name>` value if specified
* in the cluster :ref:`EdsClusterConfig
* <envoy_api_msg_Cluster.EdsClusterConfig>`.
*
*
* string cluster_name = 1 [(.validate.rules) = { ... }
* @return The clusterName.
*/
java.lang.String getClusterName();
/**
*
* Name of the cluster. This will be the :ref:`service_name
* <envoy_api_field_Cluster.EdsClusterConfig.service_name>` value if specified
* in the cluster :ref:`EdsClusterConfig
* <envoy_api_msg_Cluster.EdsClusterConfig>`.
*
*
* string cluster_name = 1 [(.validate.rules) = { ... }
* @return The bytes for clusterName.
*/
com.google.protobuf.ByteString
getClusterNameBytes();
/**
*
* List of endpoints to load balance to.
*
*
* repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
*/
java.util.List
getEndpointsList();
/**
*
* List of endpoints to load balance to.
*
*
* repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
*/
io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpoints getEndpoints(int index);
/**
*
* List of endpoints to load balance to.
*
*
* repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
*/
int getEndpointsCount();
/**
*
* List of endpoints to load balance to.
*
*
* repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
*/
java.util.List extends io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpointsOrBuilder>
getEndpointsOrBuilderList();
/**
*
* List of endpoints to load balance to.
*
*
* repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
*/
io.envoyproxy.envoy.api.v2.endpoint.LocalityLbEndpointsOrBuilder getEndpointsOrBuilder(
int index);
/**
*
* Map of named endpoints that can be referenced in LocalityLbEndpoints.
* [#not-implemented-hide:]
*
*
* map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
*/
int getNamedEndpointsCount();
/**
*
* Map of named endpoints that can be referenced in LocalityLbEndpoints.
* [#not-implemented-hide:]
*
*
* map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
*/
boolean containsNamedEndpoints(
java.lang.String key);
/**
* Use {@link #getNamedEndpointsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getNamedEndpoints();
/**
*
* Map of named endpoints that can be referenced in LocalityLbEndpoints.
* [#not-implemented-hide:]
*
*
* map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
*/
java.util.Map
getNamedEndpointsMap();
/**
*
* Map of named endpoints that can be referenced in LocalityLbEndpoints.
* [#not-implemented-hide:]
*
*
* map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
*/
/* nullable */
io.envoyproxy.envoy.api.v2.endpoint.Endpoint getNamedEndpointsOrDefault(
java.lang.String key,
/* nullable */
io.envoyproxy.envoy.api.v2.endpoint.Endpoint defaultValue);
/**
*
* Map of named endpoints that can be referenced in LocalityLbEndpoints.
* [#not-implemented-hide:]
*
*
* map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
*/
io.envoyproxy.envoy.api.v2.endpoint.Endpoint getNamedEndpointsOrThrow(
java.lang.String key);
/**
*
* Load balancing policy settings.
*
*
* .envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;
* @return Whether the policy field is set.
*/
boolean hasPolicy();
/**
*
* Load balancing policy settings.
*
*
* .envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;
* @return The policy.
*/
io.envoyproxy.envoy.api.v2.ClusterLoadAssignment.Policy getPolicy();
/**
*
* Load balancing policy settings.
*
*
* .envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;
*/
io.envoyproxy.envoy.api.v2.ClusterLoadAssignment.PolicyOrBuilder getPolicyOrBuilder();
}