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

io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck 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/health/v3/hds.proto

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

/**
 * 
 * The cluster name and locality is provided to Envoy for the endpoints that it
 * health checks to support statistics reporting, logging and debugging by the
 * Envoy instance (outside of HDS). For maximum usefulness, it should match the
 * same cluster structure as that provided by EDS.
 * [#next-free-field: 6]
 * 
* * Protobuf type {@code envoy.service.health.v3.ClusterHealthCheck} */ public final class ClusterHealthCheck extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.health.v3.ClusterHealthCheck) ClusterHealthCheckOrBuilder { private static final long serialVersionUID = 0L; // Use ClusterHealthCheck.newBuilder() to construct. private ClusterHealthCheck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClusterHealthCheck() { clusterName_ = ""; healthChecks_ = java.util.Collections.emptyList(); localityEndpoints_ = java.util.Collections.emptyList(); transportSocketMatches_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClusterHealthCheck(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClusterHealthCheck( 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: { java.lang.String s = input.readStringRequireUtf8(); clusterName_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { healthChecks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } healthChecks_.add( input.readMessage(io.envoyproxy.envoy.config.core.v3.HealthCheck.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { localityEndpoints_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } localityEndpoints_.add( input.readMessage(io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { transportSocketMatches_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } transportSocketMatches_.add( input.readMessage(io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch.parser(), extensionRegistry)); break; } case 42: { io.envoyproxy.envoy.config.core.v3.BindConfig.Builder subBuilder = null; if (upstreamBindConfig_ != null) { subBuilder = upstreamBindConfig_.toBuilder(); } upstreamBindConfig_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.BindConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(upstreamBindConfig_); upstreamBindConfig_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { healthChecks_ = java.util.Collections.unmodifiableList(healthChecks_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { localityEndpoints_ = java.util.Collections.unmodifiableList(localityEndpoints_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { transportSocketMatches_ = java.util.Collections.unmodifiableList(transportSocketMatches_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_ClusterHealthCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_ClusterHealthCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.class, io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object clusterName_; /** * string cluster_name = 1; * @return The clusterName. */ @java.lang.Override public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** * string cluster_name = 1; * @return The bytes for clusterName. */ @java.lang.Override public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEALTH_CHECKS_FIELD_NUMBER = 2; private java.util.List healthChecks_; /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ @java.lang.Override public java.util.List getHealthChecksList() { return healthChecks_; } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ @java.lang.Override public java.util.List getHealthChecksOrBuilderList() { return healthChecks_; } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ @java.lang.Override public int getHealthChecksCount() { return healthChecks_.size(); } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.HealthCheck getHealthChecks(int index) { return healthChecks_.get(index); } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.HealthCheckOrBuilder getHealthChecksOrBuilder( int index) { return healthChecks_.get(index); } public static final int LOCALITY_ENDPOINTS_FIELD_NUMBER = 3; private java.util.List localityEndpoints_; /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ @java.lang.Override public java.util.List getLocalityEndpointsList() { return localityEndpoints_; } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ @java.lang.Override public java.util.List getLocalityEndpointsOrBuilderList() { return localityEndpoints_; } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ @java.lang.Override public int getLocalityEndpointsCount() { return localityEndpoints_.size(); } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ @java.lang.Override public io.envoyproxy.envoy.service.health.v3.LocalityEndpoints getLocalityEndpoints(int index) { return localityEndpoints_.get(index); } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ @java.lang.Override public io.envoyproxy.envoy.service.health.v3.LocalityEndpointsOrBuilder getLocalityEndpointsOrBuilder( int index) { return localityEndpoints_.get(index); } public static final int TRANSPORT_SOCKET_MATCHES_FIELD_NUMBER = 4; private java.util.List transportSocketMatches_; /** *
   * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
   * on connection when health checking. For more details, see
   * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
   * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ @java.lang.Override public java.util.List getTransportSocketMatchesList() { return transportSocketMatches_; } /** *
   * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
   * on connection when health checking. For more details, see
   * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
   * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ @java.lang.Override public java.util.List getTransportSocketMatchesOrBuilderList() { return transportSocketMatches_; } /** *
   * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
   * on connection when health checking. For more details, see
   * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
   * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ @java.lang.Override public int getTransportSocketMatchesCount() { return transportSocketMatches_.size(); } /** *
   * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
   * on connection when health checking. For more details, see
   * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
   * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch getTransportSocketMatches(int index) { return transportSocketMatches_.get(index); } /** *
   * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
   * on connection when health checking. For more details, see
   * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
   * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatchOrBuilder getTransportSocketMatchesOrBuilder( int index) { return transportSocketMatches_.get(index); } public static final int UPSTREAM_BIND_CONFIG_FIELD_NUMBER = 5; private io.envoyproxy.envoy.config.core.v3.BindConfig upstreamBindConfig_; /** *
   * Optional configuration used to bind newly established upstream connections.
   * If the address and port are empty, no bind will be performed.
   * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 5; * @return Whether the upstreamBindConfig field is set. */ @java.lang.Override public boolean hasUpstreamBindConfig() { return upstreamBindConfig_ != null; } /** *
   * Optional configuration used to bind newly established upstream connections.
   * If the address and port are empty, no bind will be performed.
   * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 5; * @return The upstreamBindConfig. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.BindConfig getUpstreamBindConfig() { return upstreamBindConfig_ == null ? io.envoyproxy.envoy.config.core.v3.BindConfig.getDefaultInstance() : upstreamBindConfig_; } /** *
   * Optional configuration used to bind newly established upstream connections.
   * If the address and port are empty, no bind will be performed.
   * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 5; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.BindConfigOrBuilder getUpstreamBindConfigOrBuilder() { return getUpstreamBindConfig(); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterName_); } for (int i = 0; i < healthChecks_.size(); i++) { output.writeMessage(2, healthChecks_.get(i)); } for (int i = 0; i < localityEndpoints_.size(); i++) { output.writeMessage(3, localityEndpoints_.get(i)); } for (int i = 0; i < transportSocketMatches_.size(); i++) { output.writeMessage(4, transportSocketMatches_.get(i)); } if (upstreamBindConfig_ != null) { output.writeMessage(5, getUpstreamBindConfig()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_); } for (int i = 0; i < healthChecks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, healthChecks_.get(i)); } for (int i = 0; i < localityEndpoints_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, localityEndpoints_.get(i)); } for (int i = 0; i < transportSocketMatches_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, transportSocketMatches_.get(i)); } if (upstreamBindConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getUpstreamBindConfig()); } 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.health.v3.ClusterHealthCheck)) { return super.equals(obj); } io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck other = (io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck) obj; if (!getClusterName() .equals(other.getClusterName())) return false; if (!getHealthChecksList() .equals(other.getHealthChecksList())) return false; if (!getLocalityEndpointsList() .equals(other.getLocalityEndpointsList())) return false; if (!getTransportSocketMatchesList() .equals(other.getTransportSocketMatchesList())) return false; if (hasUpstreamBindConfig() != other.hasUpstreamBindConfig()) return false; if (hasUpstreamBindConfig()) { if (!getUpstreamBindConfig() .equals(other.getUpstreamBindConfig())) 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(); hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; hash = (53 * hash) + getClusterName().hashCode(); if (getHealthChecksCount() > 0) { hash = (37 * hash) + HEALTH_CHECKS_FIELD_NUMBER; hash = (53 * hash) + getHealthChecksList().hashCode(); } if (getLocalityEndpointsCount() > 0) { hash = (37 * hash) + LOCALITY_ENDPOINTS_FIELD_NUMBER; hash = (53 * hash) + getLocalityEndpointsList().hashCode(); } if (getTransportSocketMatchesCount() > 0) { hash = (37 * hash) + TRANSPORT_SOCKET_MATCHES_FIELD_NUMBER; hash = (53 * hash) + getTransportSocketMatchesList().hashCode(); } if (hasUpstreamBindConfig()) { hash = (37 * hash) + UPSTREAM_BIND_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getUpstreamBindConfig().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck 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.health.v3.ClusterHealthCheck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck 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.health.v3.ClusterHealthCheck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck 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.health.v3.ClusterHealthCheck parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck 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.health.v3.ClusterHealthCheck parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck 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.health.v3.ClusterHealthCheck 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; } /** *
   * The cluster name and locality is provided to Envoy for the endpoints that it
   * health checks to support statistics reporting, logging and debugging by the
   * Envoy instance (outside of HDS). For maximum usefulness, it should match the
   * same cluster structure as that provided by EDS.
   * [#next-free-field: 6]
   * 
* * Protobuf type {@code envoy.service.health.v3.ClusterHealthCheck} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.health.v3.ClusterHealthCheck) io.envoyproxy.envoy.service.health.v3.ClusterHealthCheckOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_ClusterHealthCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_ClusterHealthCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.class, io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.Builder.class); } // Construct using io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHealthChecksFieldBuilder(); getLocalityEndpointsFieldBuilder(); getTransportSocketMatchesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); clusterName_ = ""; if (healthChecksBuilder_ == null) { healthChecks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { healthChecksBuilder_.clear(); } if (localityEndpointsBuilder_ == null) { localityEndpoints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { localityEndpointsBuilder_.clear(); } if (transportSocketMatchesBuilder_ == null) { transportSocketMatches_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { transportSocketMatchesBuilder_.clear(); } if (upstreamBindConfigBuilder_ == null) { upstreamBindConfig_ = null; } else { upstreamBindConfig_ = null; upstreamBindConfigBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_ClusterHealthCheck_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck getDefaultInstanceForType() { return io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck build() { io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck buildPartial() { io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck result = new io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck(this); int from_bitField0_ = bitField0_; result.clusterName_ = clusterName_; if (healthChecksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { healthChecks_ = java.util.Collections.unmodifiableList(healthChecks_); bitField0_ = (bitField0_ & ~0x00000001); } result.healthChecks_ = healthChecks_; } else { result.healthChecks_ = healthChecksBuilder_.build(); } if (localityEndpointsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { localityEndpoints_ = java.util.Collections.unmodifiableList(localityEndpoints_); bitField0_ = (bitField0_ & ~0x00000002); } result.localityEndpoints_ = localityEndpoints_; } else { result.localityEndpoints_ = localityEndpointsBuilder_.build(); } if (transportSocketMatchesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { transportSocketMatches_ = java.util.Collections.unmodifiableList(transportSocketMatches_); bitField0_ = (bitField0_ & ~0x00000004); } result.transportSocketMatches_ = transportSocketMatches_; } else { result.transportSocketMatches_ = transportSocketMatchesBuilder_.build(); } if (upstreamBindConfigBuilder_ == null) { result.upstreamBindConfig_ = upstreamBindConfig_; } else { result.upstreamBindConfig_ = upstreamBindConfigBuilder_.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.health.v3.ClusterHealthCheck) { return mergeFrom((io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck other) { if (other == io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.getDefaultInstance()) return this; if (!other.getClusterName().isEmpty()) { clusterName_ = other.clusterName_; onChanged(); } if (healthChecksBuilder_ == null) { if (!other.healthChecks_.isEmpty()) { if (healthChecks_.isEmpty()) { healthChecks_ = other.healthChecks_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureHealthChecksIsMutable(); healthChecks_.addAll(other.healthChecks_); } onChanged(); } } else { if (!other.healthChecks_.isEmpty()) { if (healthChecksBuilder_.isEmpty()) { healthChecksBuilder_.dispose(); healthChecksBuilder_ = null; healthChecks_ = other.healthChecks_; bitField0_ = (bitField0_ & ~0x00000001); healthChecksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHealthChecksFieldBuilder() : null; } else { healthChecksBuilder_.addAllMessages(other.healthChecks_); } } } if (localityEndpointsBuilder_ == null) { if (!other.localityEndpoints_.isEmpty()) { if (localityEndpoints_.isEmpty()) { localityEndpoints_ = other.localityEndpoints_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLocalityEndpointsIsMutable(); localityEndpoints_.addAll(other.localityEndpoints_); } onChanged(); } } else { if (!other.localityEndpoints_.isEmpty()) { if (localityEndpointsBuilder_.isEmpty()) { localityEndpointsBuilder_.dispose(); localityEndpointsBuilder_ = null; localityEndpoints_ = other.localityEndpoints_; bitField0_ = (bitField0_ & ~0x00000002); localityEndpointsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocalityEndpointsFieldBuilder() : null; } else { localityEndpointsBuilder_.addAllMessages(other.localityEndpoints_); } } } if (transportSocketMatchesBuilder_ == null) { if (!other.transportSocketMatches_.isEmpty()) { if (transportSocketMatches_.isEmpty()) { transportSocketMatches_ = other.transportSocketMatches_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTransportSocketMatchesIsMutable(); transportSocketMatches_.addAll(other.transportSocketMatches_); } onChanged(); } } else { if (!other.transportSocketMatches_.isEmpty()) { if (transportSocketMatchesBuilder_.isEmpty()) { transportSocketMatchesBuilder_.dispose(); transportSocketMatchesBuilder_ = null; transportSocketMatches_ = other.transportSocketMatches_; bitField0_ = (bitField0_ & ~0x00000004); transportSocketMatchesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransportSocketMatchesFieldBuilder() : null; } else { transportSocketMatchesBuilder_.addAllMessages(other.transportSocketMatches_); } } } if (other.hasUpstreamBindConfig()) { mergeUpstreamBindConfig(other.getUpstreamBindConfig()); } 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.health.v3.ClusterHealthCheck parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object clusterName_ = ""; /** * string cluster_name = 1; * @return The clusterName. */ public java.lang.String getClusterName() { java.lang.Object ref = clusterName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cluster_name = 1; * @return The bytes for clusterName. */ public com.google.protobuf.ByteString getClusterNameBytes() { java.lang.Object ref = clusterName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cluster_name = 1; * @param value The clusterName to set. * @return This builder for chaining. */ public Builder setClusterName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clusterName_ = value; onChanged(); return this; } /** * string cluster_name = 1; * @return This builder for chaining. */ public Builder clearClusterName() { clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** * string cluster_name = 1; * @param value The bytes for clusterName to set. * @return This builder for chaining. */ public Builder setClusterNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterName_ = value; onChanged(); return this; } private java.util.List healthChecks_ = java.util.Collections.emptyList(); private void ensureHealthChecksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { healthChecks_ = new java.util.ArrayList(healthChecks_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.HealthCheck, io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder, io.envoyproxy.envoy.config.core.v3.HealthCheckOrBuilder> healthChecksBuilder_; /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public java.util.List getHealthChecksList() { if (healthChecksBuilder_ == null) { return java.util.Collections.unmodifiableList(healthChecks_); } else { return healthChecksBuilder_.getMessageList(); } } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public int getHealthChecksCount() { if (healthChecksBuilder_ == null) { return healthChecks_.size(); } else { return healthChecksBuilder_.getCount(); } } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public io.envoyproxy.envoy.config.core.v3.HealthCheck getHealthChecks(int index) { if (healthChecksBuilder_ == null) { return healthChecks_.get(index); } else { return healthChecksBuilder_.getMessage(index); } } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public Builder setHealthChecks( int index, io.envoyproxy.envoy.config.core.v3.HealthCheck value) { if (healthChecksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHealthChecksIsMutable(); healthChecks_.set(index, value); onChanged(); } else { healthChecksBuilder_.setMessage(index, value); } return this; } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public Builder setHealthChecks( int index, io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder builderForValue) { if (healthChecksBuilder_ == null) { ensureHealthChecksIsMutable(); healthChecks_.set(index, builderForValue.build()); onChanged(); } else { healthChecksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public Builder addHealthChecks(io.envoyproxy.envoy.config.core.v3.HealthCheck value) { if (healthChecksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHealthChecksIsMutable(); healthChecks_.add(value); onChanged(); } else { healthChecksBuilder_.addMessage(value); } return this; } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public Builder addHealthChecks( int index, io.envoyproxy.envoy.config.core.v3.HealthCheck value) { if (healthChecksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHealthChecksIsMutable(); healthChecks_.add(index, value); onChanged(); } else { healthChecksBuilder_.addMessage(index, value); } return this; } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public Builder addHealthChecks( io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder builderForValue) { if (healthChecksBuilder_ == null) { ensureHealthChecksIsMutable(); healthChecks_.add(builderForValue.build()); onChanged(); } else { healthChecksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public Builder addHealthChecks( int index, io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder builderForValue) { if (healthChecksBuilder_ == null) { ensureHealthChecksIsMutable(); healthChecks_.add(index, builderForValue.build()); onChanged(); } else { healthChecksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public Builder addAllHealthChecks( java.lang.Iterable values) { if (healthChecksBuilder_ == null) { ensureHealthChecksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, healthChecks_); onChanged(); } else { healthChecksBuilder_.addAllMessages(values); } return this; } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public Builder clearHealthChecks() { if (healthChecksBuilder_ == null) { healthChecks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { healthChecksBuilder_.clear(); } return this; } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public Builder removeHealthChecks(int index) { if (healthChecksBuilder_ == null) { ensureHealthChecksIsMutable(); healthChecks_.remove(index); onChanged(); } else { healthChecksBuilder_.remove(index); } return this; } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder getHealthChecksBuilder( int index) { return getHealthChecksFieldBuilder().getBuilder(index); } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public io.envoyproxy.envoy.config.core.v3.HealthCheckOrBuilder getHealthChecksOrBuilder( int index) { if (healthChecksBuilder_ == null) { return healthChecks_.get(index); } else { return healthChecksBuilder_.getMessageOrBuilder(index); } } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public java.util.List getHealthChecksOrBuilderList() { if (healthChecksBuilder_ != null) { return healthChecksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(healthChecks_); } } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder addHealthChecksBuilder() { return getHealthChecksFieldBuilder().addBuilder( io.envoyproxy.envoy.config.core.v3.HealthCheck.getDefaultInstance()); } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder addHealthChecksBuilder( int index) { return getHealthChecksFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.core.v3.HealthCheck.getDefaultInstance()); } /** * repeated .envoy.config.core.v3.HealthCheck health_checks = 2; */ public java.util.List getHealthChecksBuilderList() { return getHealthChecksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.HealthCheck, io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder, io.envoyproxy.envoy.config.core.v3.HealthCheckOrBuilder> getHealthChecksFieldBuilder() { if (healthChecksBuilder_ == null) { healthChecksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.HealthCheck, io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder, io.envoyproxy.envoy.config.core.v3.HealthCheckOrBuilder>( healthChecks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); healthChecks_ = null; } return healthChecksBuilder_; } private java.util.List localityEndpoints_ = java.util.Collections.emptyList(); private void ensureLocalityEndpointsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { localityEndpoints_ = new java.util.ArrayList(localityEndpoints_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.health.v3.LocalityEndpoints, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsOrBuilder> localityEndpointsBuilder_; /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public java.util.List getLocalityEndpointsList() { if (localityEndpointsBuilder_ == null) { return java.util.Collections.unmodifiableList(localityEndpoints_); } else { return localityEndpointsBuilder_.getMessageList(); } } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public int getLocalityEndpointsCount() { if (localityEndpointsBuilder_ == null) { return localityEndpoints_.size(); } else { return localityEndpointsBuilder_.getCount(); } } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public io.envoyproxy.envoy.service.health.v3.LocalityEndpoints getLocalityEndpoints(int index) { if (localityEndpointsBuilder_ == null) { return localityEndpoints_.get(index); } else { return localityEndpointsBuilder_.getMessage(index); } } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public Builder setLocalityEndpoints( int index, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints value) { if (localityEndpointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocalityEndpointsIsMutable(); localityEndpoints_.set(index, value); onChanged(); } else { localityEndpointsBuilder_.setMessage(index, value); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public Builder setLocalityEndpoints( int index, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder builderForValue) { if (localityEndpointsBuilder_ == null) { ensureLocalityEndpointsIsMutable(); localityEndpoints_.set(index, builderForValue.build()); onChanged(); } else { localityEndpointsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public Builder addLocalityEndpoints(io.envoyproxy.envoy.service.health.v3.LocalityEndpoints value) { if (localityEndpointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocalityEndpointsIsMutable(); localityEndpoints_.add(value); onChanged(); } else { localityEndpointsBuilder_.addMessage(value); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public Builder addLocalityEndpoints( int index, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints value) { if (localityEndpointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocalityEndpointsIsMutable(); localityEndpoints_.add(index, value); onChanged(); } else { localityEndpointsBuilder_.addMessage(index, value); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public Builder addLocalityEndpoints( io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder builderForValue) { if (localityEndpointsBuilder_ == null) { ensureLocalityEndpointsIsMutable(); localityEndpoints_.add(builderForValue.build()); onChanged(); } else { localityEndpointsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public Builder addLocalityEndpoints( int index, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder builderForValue) { if (localityEndpointsBuilder_ == null) { ensureLocalityEndpointsIsMutable(); localityEndpoints_.add(index, builderForValue.build()); onChanged(); } else { localityEndpointsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public Builder addAllLocalityEndpoints( java.lang.Iterable values) { if (localityEndpointsBuilder_ == null) { ensureLocalityEndpointsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, localityEndpoints_); onChanged(); } else { localityEndpointsBuilder_.addAllMessages(values); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public Builder clearLocalityEndpoints() { if (localityEndpointsBuilder_ == null) { localityEndpoints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { localityEndpointsBuilder_.clear(); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public Builder removeLocalityEndpoints(int index) { if (localityEndpointsBuilder_ == null) { ensureLocalityEndpointsIsMutable(); localityEndpoints_.remove(index); onChanged(); } else { localityEndpointsBuilder_.remove(index); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder getLocalityEndpointsBuilder( int index) { return getLocalityEndpointsFieldBuilder().getBuilder(index); } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public io.envoyproxy.envoy.service.health.v3.LocalityEndpointsOrBuilder getLocalityEndpointsOrBuilder( int index) { if (localityEndpointsBuilder_ == null) { return localityEndpoints_.get(index); } else { return localityEndpointsBuilder_.getMessageOrBuilder(index); } } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public java.util.List getLocalityEndpointsOrBuilderList() { if (localityEndpointsBuilder_ != null) { return localityEndpointsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(localityEndpoints_); } } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder addLocalityEndpointsBuilder() { return getLocalityEndpointsFieldBuilder().addBuilder( io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.getDefaultInstance()); } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder addLocalityEndpointsBuilder( int index) { return getLocalityEndpointsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.getDefaultInstance()); } /** * repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3; */ public java.util.List getLocalityEndpointsBuilderList() { return getLocalityEndpointsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.health.v3.LocalityEndpoints, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsOrBuilder> getLocalityEndpointsFieldBuilder() { if (localityEndpointsBuilder_ == null) { localityEndpointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.health.v3.LocalityEndpoints, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsOrBuilder>( localityEndpoints_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); localityEndpoints_ = null; } return localityEndpointsBuilder_; } private java.util.List transportSocketMatches_ = java.util.Collections.emptyList(); private void ensureTransportSocketMatchesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { transportSocketMatches_ = new java.util.ArrayList(transportSocketMatches_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch, io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch.Builder, io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatchOrBuilder> transportSocketMatchesBuilder_; /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public java.util.List getTransportSocketMatchesList() { if (transportSocketMatchesBuilder_ == null) { return java.util.Collections.unmodifiableList(transportSocketMatches_); } else { return transportSocketMatchesBuilder_.getMessageList(); } } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public int getTransportSocketMatchesCount() { if (transportSocketMatchesBuilder_ == null) { return transportSocketMatches_.size(); } else { return transportSocketMatchesBuilder_.getCount(); } } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch getTransportSocketMatches(int index) { if (transportSocketMatchesBuilder_ == null) { return transportSocketMatches_.get(index); } else { return transportSocketMatchesBuilder_.getMessage(index); } } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public Builder setTransportSocketMatches( int index, io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch value) { if (transportSocketMatchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransportSocketMatchesIsMutable(); transportSocketMatches_.set(index, value); onChanged(); } else { transportSocketMatchesBuilder_.setMessage(index, value); } return this; } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public Builder setTransportSocketMatches( int index, io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch.Builder builderForValue) { if (transportSocketMatchesBuilder_ == null) { ensureTransportSocketMatchesIsMutable(); transportSocketMatches_.set(index, builderForValue.build()); onChanged(); } else { transportSocketMatchesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public Builder addTransportSocketMatches(io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch value) { if (transportSocketMatchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransportSocketMatchesIsMutable(); transportSocketMatches_.add(value); onChanged(); } else { transportSocketMatchesBuilder_.addMessage(value); } return this; } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public Builder addTransportSocketMatches( int index, io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch value) { if (transportSocketMatchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransportSocketMatchesIsMutable(); transportSocketMatches_.add(index, value); onChanged(); } else { transportSocketMatchesBuilder_.addMessage(index, value); } return this; } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public Builder addTransportSocketMatches( io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch.Builder builderForValue) { if (transportSocketMatchesBuilder_ == null) { ensureTransportSocketMatchesIsMutable(); transportSocketMatches_.add(builderForValue.build()); onChanged(); } else { transportSocketMatchesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public Builder addTransportSocketMatches( int index, io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch.Builder builderForValue) { if (transportSocketMatchesBuilder_ == null) { ensureTransportSocketMatchesIsMutable(); transportSocketMatches_.add(index, builderForValue.build()); onChanged(); } else { transportSocketMatchesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public Builder addAllTransportSocketMatches( java.lang.Iterable values) { if (transportSocketMatchesBuilder_ == null) { ensureTransportSocketMatchesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transportSocketMatches_); onChanged(); } else { transportSocketMatchesBuilder_.addAllMessages(values); } return this; } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public Builder clearTransportSocketMatches() { if (transportSocketMatchesBuilder_ == null) { transportSocketMatches_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { transportSocketMatchesBuilder_.clear(); } return this; } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public Builder removeTransportSocketMatches(int index) { if (transportSocketMatchesBuilder_ == null) { ensureTransportSocketMatchesIsMutable(); transportSocketMatches_.remove(index); onChanged(); } else { transportSocketMatchesBuilder_.remove(index); } return this; } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch.Builder getTransportSocketMatchesBuilder( int index) { return getTransportSocketMatchesFieldBuilder().getBuilder(index); } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatchOrBuilder getTransportSocketMatchesOrBuilder( int index) { if (transportSocketMatchesBuilder_ == null) { return transportSocketMatches_.get(index); } else { return transportSocketMatchesBuilder_.getMessageOrBuilder(index); } } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public java.util.List getTransportSocketMatchesOrBuilderList() { if (transportSocketMatchesBuilder_ != null) { return transportSocketMatchesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transportSocketMatches_); } } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch.Builder addTransportSocketMatchesBuilder() { return getTransportSocketMatchesFieldBuilder().addBuilder( io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch.getDefaultInstance()); } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch.Builder addTransportSocketMatchesBuilder( int index) { return getTransportSocketMatchesFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch.getDefaultInstance()); } /** *
     * Optional map that gets filtered by :ref:`health_checks.transport_socket_match_criteria <envoy_v3_api_field_config.core.v3.HealthCheck.transport_socket_match_criteria>`
     * on connection when health checking. For more details, see
     * :ref:`config.cluster.v3.Cluster.transport_socket_matches <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket_matches>`.
     * 
* * repeated .envoy.config.cluster.v3.Cluster.TransportSocketMatch transport_socket_matches = 4; */ public java.util.List getTransportSocketMatchesBuilderList() { return getTransportSocketMatchesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch, io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch.Builder, io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatchOrBuilder> getTransportSocketMatchesFieldBuilder() { if (transportSocketMatchesBuilder_ == null) { transportSocketMatchesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch, io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatch.Builder, io.envoyproxy.envoy.config.cluster.v3.Cluster.TransportSocketMatchOrBuilder>( transportSocketMatches_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); transportSocketMatches_ = null; } return transportSocketMatchesBuilder_; } private io.envoyproxy.envoy.config.core.v3.BindConfig upstreamBindConfig_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.BindConfig, io.envoyproxy.envoy.config.core.v3.BindConfig.Builder, io.envoyproxy.envoy.config.core.v3.BindConfigOrBuilder> upstreamBindConfigBuilder_; /** *
     * Optional configuration used to bind newly established upstream connections.
     * If the address and port are empty, no bind will be performed.
     * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 5; * @return Whether the upstreamBindConfig field is set. */ public boolean hasUpstreamBindConfig() { return upstreamBindConfigBuilder_ != null || upstreamBindConfig_ != null; } /** *
     * Optional configuration used to bind newly established upstream connections.
     * If the address and port are empty, no bind will be performed.
     * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 5; * @return The upstreamBindConfig. */ public io.envoyproxy.envoy.config.core.v3.BindConfig getUpstreamBindConfig() { if (upstreamBindConfigBuilder_ == null) { return upstreamBindConfig_ == null ? io.envoyproxy.envoy.config.core.v3.BindConfig.getDefaultInstance() : upstreamBindConfig_; } else { return upstreamBindConfigBuilder_.getMessage(); } } /** *
     * Optional configuration used to bind newly established upstream connections.
     * If the address and port are empty, no bind will be performed.
     * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 5; */ public Builder setUpstreamBindConfig(io.envoyproxy.envoy.config.core.v3.BindConfig value) { if (upstreamBindConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } upstreamBindConfig_ = value; onChanged(); } else { upstreamBindConfigBuilder_.setMessage(value); } return this; } /** *
     * Optional configuration used to bind newly established upstream connections.
     * If the address and port are empty, no bind will be performed.
     * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 5; */ public Builder setUpstreamBindConfig( io.envoyproxy.envoy.config.core.v3.BindConfig.Builder builderForValue) { if (upstreamBindConfigBuilder_ == null) { upstreamBindConfig_ = builderForValue.build(); onChanged(); } else { upstreamBindConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Optional configuration used to bind newly established upstream connections.
     * If the address and port are empty, no bind will be performed.
     * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 5; */ public Builder mergeUpstreamBindConfig(io.envoyproxy.envoy.config.core.v3.BindConfig value) { if (upstreamBindConfigBuilder_ == null) { if (upstreamBindConfig_ != null) { upstreamBindConfig_ = io.envoyproxy.envoy.config.core.v3.BindConfig.newBuilder(upstreamBindConfig_).mergeFrom(value).buildPartial(); } else { upstreamBindConfig_ = value; } onChanged(); } else { upstreamBindConfigBuilder_.mergeFrom(value); } return this; } /** *
     * Optional configuration used to bind newly established upstream connections.
     * If the address and port are empty, no bind will be performed.
     * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 5; */ public Builder clearUpstreamBindConfig() { if (upstreamBindConfigBuilder_ == null) { upstreamBindConfig_ = null; onChanged(); } else { upstreamBindConfig_ = null; upstreamBindConfigBuilder_ = null; } return this; } /** *
     * Optional configuration used to bind newly established upstream connections.
     * If the address and port are empty, no bind will be performed.
     * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 5; */ public io.envoyproxy.envoy.config.core.v3.BindConfig.Builder getUpstreamBindConfigBuilder() { onChanged(); return getUpstreamBindConfigFieldBuilder().getBuilder(); } /** *
     * Optional configuration used to bind newly established upstream connections.
     * If the address and port are empty, no bind will be performed.
     * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 5; */ public io.envoyproxy.envoy.config.core.v3.BindConfigOrBuilder getUpstreamBindConfigOrBuilder() { if (upstreamBindConfigBuilder_ != null) { return upstreamBindConfigBuilder_.getMessageOrBuilder(); } else { return upstreamBindConfig_ == null ? io.envoyproxy.envoy.config.core.v3.BindConfig.getDefaultInstance() : upstreamBindConfig_; } } /** *
     * Optional configuration used to bind newly established upstream connections.
     * If the address and port are empty, no bind will be performed.
     * 
* * .envoy.config.core.v3.BindConfig upstream_bind_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.BindConfig, io.envoyproxy.envoy.config.core.v3.BindConfig.Builder, io.envoyproxy.envoy.config.core.v3.BindConfigOrBuilder> getUpstreamBindConfigFieldBuilder() { if (upstreamBindConfigBuilder_ == null) { upstreamBindConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.BindConfig, io.envoyproxy.envoy.config.core.v3.BindConfig.Builder, io.envoyproxy.envoy.config.core.v3.BindConfigOrBuilder>( getUpstreamBindConfig(), getParentForChildren(), isClean()); upstreamBindConfig_ = null; } return upstreamBindConfigBuilder_; } @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.health.v3.ClusterHealthCheck) } // @@protoc_insertion_point(class_scope:envoy.service.health.v3.ClusterHealthCheck) private static final io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck(); } public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClusterHealthCheck parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClusterHealthCheck(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.health.v3.ClusterHealthCheck getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy