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

io.envoyproxy.envoy.service.discovery.v2.Capability 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/discovery/v2/hds.proto

package io.envoyproxy.envoy.service.discovery.v2;

/**
 * 
 * Defines supported protocols etc, so the management server can assign proper
 * endpoints to healthcheck.
 * 
* * Protobuf type {@code envoy.service.discovery.v2.Capability} */ public final class Capability extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.discovery.v2.Capability) CapabilityOrBuilder { private static final long serialVersionUID = 0L; // Use Capability.newBuilder() to construct. private Capability(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Capability() { healthCheckProtocols_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Capability(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Capability( 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 8: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { healthCheckProtocols_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } healthCheckProtocols_.add(rawValue); break; } case 10: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { healthCheckProtocols_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } healthCheckProtocols_.add(rawValue); } input.popLimit(oldLimit); 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)) { healthCheckProtocols_ = java.util.Collections.unmodifiableList(healthCheckProtocols_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v2.HdsProto.internal_static_envoy_service_discovery_v2_Capability_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v2.HdsProto.internal_static_envoy_service_discovery_v2_Capability_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v2.Capability.class, io.envoyproxy.envoy.service.discovery.v2.Capability.Builder.class); } /** *
   * Different Envoy instances may have different capabilities (e.g. Redis)
   * and/or have ports enabled for different protocols.
   * 
* * Protobuf enum {@code envoy.service.discovery.v2.Capability.Protocol} */ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { /** * HTTP = 0; */ HTTP(0), /** * TCP = 1; */ TCP(1), /** * REDIS = 2; */ REDIS(2), UNRECOGNIZED(-1), ; /** * HTTP = 0; */ public static final int HTTP_VALUE = 0; /** * TCP = 1; */ public static final int TCP_VALUE = 1; /** * REDIS = 2; */ public static final int REDIS_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Protocol valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Protocol forNumber(int value) { switch (value) { case 0: return HTTP; case 1: return TCP; case 2: return REDIS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Protocol> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Protocol findValueByNumber(int number) { return Protocol.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v2.Capability.getDescriptor().getEnumTypes().get(0); } private static final Protocol[] VALUES = values(); public static Protocol valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Protocol(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:envoy.service.discovery.v2.Capability.Protocol) } public static final int HEALTH_CHECK_PROTOCOLS_FIELD_NUMBER = 1; private java.util.List healthCheckProtocols_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol> healthCheckProtocols_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol>() { public io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol convert(java.lang.Integer from) { @SuppressWarnings("deprecation") io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol result = io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol.valueOf(from); return result == null ? io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol.UNRECOGNIZED : result; } }; /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @return A list containing the healthCheckProtocols. */ @java.lang.Override public java.util.List getHealthCheckProtocolsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol>(healthCheckProtocols_, healthCheckProtocols_converter_); } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @return The count of healthCheckProtocols. */ @java.lang.Override public int getHealthCheckProtocolsCount() { return healthCheckProtocols_.size(); } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @param index The index of the element to return. * @return The healthCheckProtocols at the given index. */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol getHealthCheckProtocols(int index) { return healthCheckProtocols_converter_.convert(healthCheckProtocols_.get(index)); } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @return A list containing the enum numeric values on the wire for healthCheckProtocols. */ @java.lang.Override public java.util.List getHealthCheckProtocolsValueList() { return healthCheckProtocols_; } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of healthCheckProtocols at the given index. */ @java.lang.Override public int getHealthCheckProtocolsValue(int index) { return healthCheckProtocols_.get(index); } private int healthCheckProtocolsMemoizedSerializedSize; 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 { getSerializedSize(); if (getHealthCheckProtocolsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(healthCheckProtocolsMemoizedSerializedSize); } for (int i = 0; i < healthCheckProtocols_.size(); i++) { output.writeEnumNoTag(healthCheckProtocols_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < healthCheckProtocols_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(healthCheckProtocols_.get(i)); } size += dataSize; if (!getHealthCheckProtocolsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }healthCheckProtocolsMemoizedSerializedSize = dataSize; } 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.discovery.v2.Capability)) { return super.equals(obj); } io.envoyproxy.envoy.service.discovery.v2.Capability other = (io.envoyproxy.envoy.service.discovery.v2.Capability) obj; if (!healthCheckProtocols_.equals(other.healthCheckProtocols_)) 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 (getHealthCheckProtocolsCount() > 0) { hash = (37 * hash) + HEALTH_CHECK_PROTOCOLS_FIELD_NUMBER; hash = (53 * hash) + healthCheckProtocols_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.discovery.v2.Capability parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v2.Capability 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.discovery.v2.Capability parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v2.Capability 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.discovery.v2.Capability parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v2.Capability parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v2.Capability parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v2.Capability 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.discovery.v2.Capability parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v2.Capability 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.discovery.v2.Capability parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v2.Capability 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.discovery.v2.Capability 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; } /** *
   * Defines supported protocols etc, so the management server can assign proper
   * endpoints to healthcheck.
   * 
* * Protobuf type {@code envoy.service.discovery.v2.Capability} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.discovery.v2.Capability) io.envoyproxy.envoy.service.discovery.v2.CapabilityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v2.HdsProto.internal_static_envoy_service_discovery_v2_Capability_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v2.HdsProto.internal_static_envoy_service_discovery_v2_Capability_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v2.Capability.class, io.envoyproxy.envoy.service.discovery.v2.Capability.Builder.class); } // Construct using io.envoyproxy.envoy.service.discovery.v2.Capability.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); healthCheckProtocols_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.discovery.v2.HdsProto.internal_static_envoy_service_discovery_v2_Capability_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v2.Capability getDefaultInstanceForType() { return io.envoyproxy.envoy.service.discovery.v2.Capability.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v2.Capability build() { io.envoyproxy.envoy.service.discovery.v2.Capability result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v2.Capability buildPartial() { io.envoyproxy.envoy.service.discovery.v2.Capability result = new io.envoyproxy.envoy.service.discovery.v2.Capability(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { healthCheckProtocols_ = java.util.Collections.unmodifiableList(healthCheckProtocols_); bitField0_ = (bitField0_ & ~0x00000001); } result.healthCheckProtocols_ = healthCheckProtocols_; 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.discovery.v2.Capability) { return mergeFrom((io.envoyproxy.envoy.service.discovery.v2.Capability)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.discovery.v2.Capability other) { if (other == io.envoyproxy.envoy.service.discovery.v2.Capability.getDefaultInstance()) return this; if (!other.healthCheckProtocols_.isEmpty()) { if (healthCheckProtocols_.isEmpty()) { healthCheckProtocols_ = other.healthCheckProtocols_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureHealthCheckProtocolsIsMutable(); healthCheckProtocols_.addAll(other.healthCheckProtocols_); } onChanged(); } 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.discovery.v2.Capability parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.discovery.v2.Capability) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List healthCheckProtocols_ = java.util.Collections.emptyList(); private void ensureHealthCheckProtocolsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { healthCheckProtocols_ = new java.util.ArrayList(healthCheckProtocols_); bitField0_ |= 0x00000001; } } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @return A list containing the healthCheckProtocols. */ public java.util.List getHealthCheckProtocolsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol>(healthCheckProtocols_, healthCheckProtocols_converter_); } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @return The count of healthCheckProtocols. */ public int getHealthCheckProtocolsCount() { return healthCheckProtocols_.size(); } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @param index The index of the element to return. * @return The healthCheckProtocols at the given index. */ public io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol getHealthCheckProtocols(int index) { return healthCheckProtocols_converter_.convert(healthCheckProtocols_.get(index)); } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @param index The index to set the value at. * @param value The healthCheckProtocols to set. * @return This builder for chaining. */ public Builder setHealthCheckProtocols( int index, io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol value) { if (value == null) { throw new NullPointerException(); } ensureHealthCheckProtocolsIsMutable(); healthCheckProtocols_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @param value The healthCheckProtocols to add. * @return This builder for chaining. */ public Builder addHealthCheckProtocols(io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol value) { if (value == null) { throw new NullPointerException(); } ensureHealthCheckProtocolsIsMutable(); healthCheckProtocols_.add(value.getNumber()); onChanged(); return this; } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @param values The healthCheckProtocols to add. * @return This builder for chaining. */ public Builder addAllHealthCheckProtocols( java.lang.Iterable values) { ensureHealthCheckProtocolsIsMutable(); for (io.envoyproxy.envoy.service.discovery.v2.Capability.Protocol value : values) { healthCheckProtocols_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @return This builder for chaining. */ public Builder clearHealthCheckProtocols() { healthCheckProtocols_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @return A list containing the enum numeric values on the wire for healthCheckProtocols. */ public java.util.List getHealthCheckProtocolsValueList() { return java.util.Collections.unmodifiableList(healthCheckProtocols_); } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of healthCheckProtocols at the given index. */ public int getHealthCheckProtocolsValue(int index) { return healthCheckProtocols_.get(index); } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @param index The index to set the value at. * @param value The enum numeric value on the wire for healthCheckProtocols to set. * @return This builder for chaining. */ public Builder setHealthCheckProtocolsValue( int index, int value) { ensureHealthCheckProtocolsIsMutable(); healthCheckProtocols_.set(index, value); onChanged(); return this; } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @param value The enum numeric value on the wire for healthCheckProtocols to add. * @return This builder for chaining. */ public Builder addHealthCheckProtocolsValue(int value) { ensureHealthCheckProtocolsIsMutable(); healthCheckProtocols_.add(value); onChanged(); return this; } /** * repeated .envoy.service.discovery.v2.Capability.Protocol health_check_protocols = 1; * @param values The enum numeric values on the wire for healthCheckProtocols to add. * @return This builder for chaining. */ public Builder addAllHealthCheckProtocolsValue( java.lang.Iterable values) { ensureHealthCheckProtocolsIsMutable(); for (int value : values) { healthCheckProtocols_.add(value); } onChanged(); return this; } @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.discovery.v2.Capability) } // @@protoc_insertion_point(class_scope:envoy.service.discovery.v2.Capability) private static final io.envoyproxy.envoy.service.discovery.v2.Capability DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.discovery.v2.Capability(); } public static io.envoyproxy.envoy.service.discovery.v2.Capability getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Capability parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Capability(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.discovery.v2.Capability getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy