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

io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/config/endpoint/v3/endpoint_components.proto

// Protobuf Java Version: 3.25.5
package io.envoyproxy.envoy.config.endpoint.v3;

/**
 * 
 * [#not-implemented-hide:]
 * A configuration for a LEDS collection.
 * 
* * Protobuf type {@code envoy.config.endpoint.v3.LedsClusterLocalityConfig} */ public final class LedsClusterLocalityConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.endpoint.v3.LedsClusterLocalityConfig) LedsClusterLocalityConfigOrBuilder { private static final long serialVersionUID = 0L; // Use LedsClusterLocalityConfig.newBuilder() to construct. private LedsClusterLocalityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LedsClusterLocalityConfig() { ledsCollectionName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LedsClusterLocalityConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_LedsClusterLocalityConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_LedsClusterLocalityConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig.class, io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig.Builder.class); } private int bitField0_; public static final int LEDS_CONFIG_FIELD_NUMBER = 1; private io.envoyproxy.envoy.config.core.v3.ConfigSource ledsConfig_; /** *
   * Configuration for the source of LEDS updates for a Locality.
   * 
* * .envoy.config.core.v3.ConfigSource leds_config = 1; * @return Whether the ledsConfig field is set. */ @java.lang.Override public boolean hasLedsConfig() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Configuration for the source of LEDS updates for a Locality.
   * 
* * .envoy.config.core.v3.ConfigSource leds_config = 1; * @return The ledsConfig. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.ConfigSource getLedsConfig() { return ledsConfig_ == null ? io.envoyproxy.envoy.config.core.v3.ConfigSource.getDefaultInstance() : ledsConfig_; } /** *
   * Configuration for the source of LEDS updates for a Locality.
   * 
* * .envoy.config.core.v3.ConfigSource leds_config = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.ConfigSourceOrBuilder getLedsConfigOrBuilder() { return ledsConfig_ == null ? io.envoyproxy.envoy.config.core.v3.ConfigSource.getDefaultInstance() : ledsConfig_; } public static final int LEDS_COLLECTION_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object ledsCollectionName_ = ""; /** *
   * The xDS transport protocol glob collection resource name.
   * The service is only supported in delta xDS (incremental) mode.
   * 
* * string leds_collection_name = 2; * @return The ledsCollectionName. */ @java.lang.Override public java.lang.String getLedsCollectionName() { java.lang.Object ref = ledsCollectionName_; 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(); ledsCollectionName_ = s; return s; } } /** *
   * The xDS transport protocol glob collection resource name.
   * The service is only supported in delta xDS (incremental) mode.
   * 
* * string leds_collection_name = 2; * @return The bytes for ledsCollectionName. */ @java.lang.Override public com.google.protobuf.ByteString getLedsCollectionNameBytes() { java.lang.Object ref = ledsCollectionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ledsCollectionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getLedsConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ledsCollectionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ledsCollectionName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLedsConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ledsCollectionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ledsCollectionName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig)) { return super.equals(obj); } io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig other = (io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig) obj; if (hasLedsConfig() != other.hasLedsConfig()) return false; if (hasLedsConfig()) { if (!getLedsConfig() .equals(other.getLedsConfig())) return false; } if (!getLedsCollectionName() .equals(other.getLedsCollectionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasLedsConfig()) { hash = (37 * hash) + LEDS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getLedsConfig().hashCode(); } hash = (37 * hash) + LEDS_COLLECTION_NAME_FIELD_NUMBER; hash = (53 * hash) + getLedsCollectionName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig 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; } /** *
   * [#not-implemented-hide:]
   * A configuration for a LEDS collection.
   * 
* * Protobuf type {@code envoy.config.endpoint.v3.LedsClusterLocalityConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.endpoint.v3.LedsClusterLocalityConfig) io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_LedsClusterLocalityConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_LedsClusterLocalityConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig.class, io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig.Builder.class); } // Construct using io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLedsConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ledsConfig_ = null; if (ledsConfigBuilder_ != null) { ledsConfigBuilder_.dispose(); ledsConfigBuilder_ = null; } ledsCollectionName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_LedsClusterLocalityConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig build() { io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig buildPartial() { io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig result = new io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.ledsConfig_ = ledsConfigBuilder_ == null ? ledsConfig_ : ledsConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ledsCollectionName_ = ledsCollectionName_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig) { return mergeFrom((io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig other) { if (other == io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig.getDefaultInstance()) return this; if (other.hasLedsConfig()) { mergeLedsConfig(other.getLedsConfig()); } if (!other.getLedsCollectionName().isEmpty()) { ledsCollectionName_ = other.ledsCollectionName_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getLedsConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ledsCollectionName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private io.envoyproxy.envoy.config.core.v3.ConfigSource ledsConfig_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.ConfigSource, io.envoyproxy.envoy.config.core.v3.ConfigSource.Builder, io.envoyproxy.envoy.config.core.v3.ConfigSourceOrBuilder> ledsConfigBuilder_; /** *
     * Configuration for the source of LEDS updates for a Locality.
     * 
* * .envoy.config.core.v3.ConfigSource leds_config = 1; * @return Whether the ledsConfig field is set. */ public boolean hasLedsConfig() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Configuration for the source of LEDS updates for a Locality.
     * 
* * .envoy.config.core.v3.ConfigSource leds_config = 1; * @return The ledsConfig. */ public io.envoyproxy.envoy.config.core.v3.ConfigSource getLedsConfig() { if (ledsConfigBuilder_ == null) { return ledsConfig_ == null ? io.envoyproxy.envoy.config.core.v3.ConfigSource.getDefaultInstance() : ledsConfig_; } else { return ledsConfigBuilder_.getMessage(); } } /** *
     * Configuration for the source of LEDS updates for a Locality.
     * 
* * .envoy.config.core.v3.ConfigSource leds_config = 1; */ public Builder setLedsConfig(io.envoyproxy.envoy.config.core.v3.ConfigSource value) { if (ledsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ledsConfig_ = value; } else { ledsConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Configuration for the source of LEDS updates for a Locality.
     * 
* * .envoy.config.core.v3.ConfigSource leds_config = 1; */ public Builder setLedsConfig( io.envoyproxy.envoy.config.core.v3.ConfigSource.Builder builderForValue) { if (ledsConfigBuilder_ == null) { ledsConfig_ = builderForValue.build(); } else { ledsConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Configuration for the source of LEDS updates for a Locality.
     * 
* * .envoy.config.core.v3.ConfigSource leds_config = 1; */ public Builder mergeLedsConfig(io.envoyproxy.envoy.config.core.v3.ConfigSource value) { if (ledsConfigBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && ledsConfig_ != null && ledsConfig_ != io.envoyproxy.envoy.config.core.v3.ConfigSource.getDefaultInstance()) { getLedsConfigBuilder().mergeFrom(value); } else { ledsConfig_ = value; } } else { ledsConfigBuilder_.mergeFrom(value); } if (ledsConfig_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * Configuration for the source of LEDS updates for a Locality.
     * 
* * .envoy.config.core.v3.ConfigSource leds_config = 1; */ public Builder clearLedsConfig() { bitField0_ = (bitField0_ & ~0x00000001); ledsConfig_ = null; if (ledsConfigBuilder_ != null) { ledsConfigBuilder_.dispose(); ledsConfigBuilder_ = null; } onChanged(); return this; } /** *
     * Configuration for the source of LEDS updates for a Locality.
     * 
* * .envoy.config.core.v3.ConfigSource leds_config = 1; */ public io.envoyproxy.envoy.config.core.v3.ConfigSource.Builder getLedsConfigBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLedsConfigFieldBuilder().getBuilder(); } /** *
     * Configuration for the source of LEDS updates for a Locality.
     * 
* * .envoy.config.core.v3.ConfigSource leds_config = 1; */ public io.envoyproxy.envoy.config.core.v3.ConfigSourceOrBuilder getLedsConfigOrBuilder() { if (ledsConfigBuilder_ != null) { return ledsConfigBuilder_.getMessageOrBuilder(); } else { return ledsConfig_ == null ? io.envoyproxy.envoy.config.core.v3.ConfigSource.getDefaultInstance() : ledsConfig_; } } /** *
     * Configuration for the source of LEDS updates for a Locality.
     * 
* * .envoy.config.core.v3.ConfigSource leds_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.ConfigSource, io.envoyproxy.envoy.config.core.v3.ConfigSource.Builder, io.envoyproxy.envoy.config.core.v3.ConfigSourceOrBuilder> getLedsConfigFieldBuilder() { if (ledsConfigBuilder_ == null) { ledsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.ConfigSource, io.envoyproxy.envoy.config.core.v3.ConfigSource.Builder, io.envoyproxy.envoy.config.core.v3.ConfigSourceOrBuilder>( getLedsConfig(), getParentForChildren(), isClean()); ledsConfig_ = null; } return ledsConfigBuilder_; } private java.lang.Object ledsCollectionName_ = ""; /** *
     * The xDS transport protocol glob collection resource name.
     * The service is only supported in delta xDS (incremental) mode.
     * 
* * string leds_collection_name = 2; * @return The ledsCollectionName. */ public java.lang.String getLedsCollectionName() { java.lang.Object ref = ledsCollectionName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ledsCollectionName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The xDS transport protocol glob collection resource name.
     * The service is only supported in delta xDS (incremental) mode.
     * 
* * string leds_collection_name = 2; * @return The bytes for ledsCollectionName. */ public com.google.protobuf.ByteString getLedsCollectionNameBytes() { java.lang.Object ref = ledsCollectionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ledsCollectionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The xDS transport protocol glob collection resource name.
     * The service is only supported in delta xDS (incremental) mode.
     * 
* * string leds_collection_name = 2; * @param value The ledsCollectionName to set. * @return This builder for chaining. */ public Builder setLedsCollectionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ledsCollectionName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The xDS transport protocol glob collection resource name.
     * The service is only supported in delta xDS (incremental) mode.
     * 
* * string leds_collection_name = 2; * @return This builder for chaining. */ public Builder clearLedsCollectionName() { ledsCollectionName_ = getDefaultInstance().getLedsCollectionName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * The xDS transport protocol glob collection resource name.
     * The service is only supported in delta xDS (incremental) mode.
     * 
* * string leds_collection_name = 2; * @param value The bytes for ledsCollectionName to set. * @return This builder for chaining. */ public Builder setLedsCollectionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ledsCollectionName_ = value; bitField0_ |= 0x00000002; 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.config.endpoint.v3.LedsClusterLocalityConfig) } // @@protoc_insertion_point(class_scope:envoy.config.endpoint.v3.LedsClusterLocalityConfig) private static final io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig(); } public static io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LedsClusterLocalityConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.config.endpoint.v3.LedsClusterLocalityConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy