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

shade.polaris.io.grpc.lookup.v1.RouteLookupClusterSpecifier Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grpc/lookup/v1/rls_config.proto

// Protobuf Java Version: 3.25.1
package io.grpc.lookup.v1;

/**
 * 
 * RouteLookupClusterSpecifier is used in xDS to represent a cluster specifier
 * plugin for RLS.
 * 
* * Protobuf type {@code grpc.lookup.v1.RouteLookupClusterSpecifier} */ public final class RouteLookupClusterSpecifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.lookup.v1.RouteLookupClusterSpecifier) RouteLookupClusterSpecifierOrBuilder { private static final long serialVersionUID = 0L; // Use RouteLookupClusterSpecifier.newBuilder() to construct. private RouteLookupClusterSpecifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RouteLookupClusterSpecifier() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RouteLookupClusterSpecifier(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_RouteLookupClusterSpecifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_RouteLookupClusterSpecifier_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.lookup.v1.RouteLookupClusterSpecifier.class, io.grpc.lookup.v1.RouteLookupClusterSpecifier.Builder.class); } private int bitField0_; public static final int ROUTE_LOOKUP_CONFIG_FIELD_NUMBER = 1; private io.grpc.lookup.v1.RouteLookupConfig routeLookupConfig_; /** *
   * The RLS config for this cluster specifier plugin instance.
   * 
* * .grpc.lookup.v1.RouteLookupConfig route_lookup_config = 1; * @return Whether the routeLookupConfig field is set. */ @java.lang.Override public boolean hasRouteLookupConfig() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The RLS config for this cluster specifier plugin instance.
   * 
* * .grpc.lookup.v1.RouteLookupConfig route_lookup_config = 1; * @return The routeLookupConfig. */ @java.lang.Override public io.grpc.lookup.v1.RouteLookupConfig getRouteLookupConfig() { return routeLookupConfig_ == null ? io.grpc.lookup.v1.RouteLookupConfig.getDefaultInstance() : routeLookupConfig_; } /** *
   * The RLS config for this cluster specifier plugin instance.
   * 
* * .grpc.lookup.v1.RouteLookupConfig route_lookup_config = 1; */ @java.lang.Override public io.grpc.lookup.v1.RouteLookupConfigOrBuilder getRouteLookupConfigOrBuilder() { return routeLookupConfig_ == null ? io.grpc.lookup.v1.RouteLookupConfig.getDefaultInstance() : routeLookupConfig_; } 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, getRouteLookupConfig()); } 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, getRouteLookupConfig()); } 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.grpc.lookup.v1.RouteLookupClusterSpecifier)) { return super.equals(obj); } io.grpc.lookup.v1.RouteLookupClusterSpecifier other = (io.grpc.lookup.v1.RouteLookupClusterSpecifier) obj; if (hasRouteLookupConfig() != other.hasRouteLookupConfig()) return false; if (hasRouteLookupConfig()) { if (!getRouteLookupConfig() .equals(other.getRouteLookupConfig())) 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 (hasRouteLookupConfig()) { hash = (37 * hash) + ROUTE_LOOKUP_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRouteLookupConfig().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.lookup.v1.RouteLookupClusterSpecifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lookup.v1.RouteLookupClusterSpecifier parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.lookup.v1.RouteLookupClusterSpecifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lookup.v1.RouteLookupClusterSpecifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.lookup.v1.RouteLookupClusterSpecifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lookup.v1.RouteLookupClusterSpecifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.lookup.v1.RouteLookupClusterSpecifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.lookup.v1.RouteLookupClusterSpecifier 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.grpc.lookup.v1.RouteLookupClusterSpecifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.lookup.v1.RouteLookupClusterSpecifier 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.grpc.lookup.v1.RouteLookupClusterSpecifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.lookup.v1.RouteLookupClusterSpecifier 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.grpc.lookup.v1.RouteLookupClusterSpecifier 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; } /** *
   * RouteLookupClusterSpecifier is used in xDS to represent a cluster specifier
   * plugin for RLS.
   * 
* * Protobuf type {@code grpc.lookup.v1.RouteLookupClusterSpecifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.lookup.v1.RouteLookupClusterSpecifier) io.grpc.lookup.v1.RouteLookupClusterSpecifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_RouteLookupClusterSpecifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_RouteLookupClusterSpecifier_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.lookup.v1.RouteLookupClusterSpecifier.class, io.grpc.lookup.v1.RouteLookupClusterSpecifier.Builder.class); } // Construct using io.grpc.lookup.v1.RouteLookupClusterSpecifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRouteLookupConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; routeLookupConfig_ = null; if (routeLookupConfigBuilder_ != null) { routeLookupConfigBuilder_.dispose(); routeLookupConfigBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_RouteLookupClusterSpecifier_descriptor; } @java.lang.Override public io.grpc.lookup.v1.RouteLookupClusterSpecifier getDefaultInstanceForType() { return io.grpc.lookup.v1.RouteLookupClusterSpecifier.getDefaultInstance(); } @java.lang.Override public io.grpc.lookup.v1.RouteLookupClusterSpecifier build() { io.grpc.lookup.v1.RouteLookupClusterSpecifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.lookup.v1.RouteLookupClusterSpecifier buildPartial() { io.grpc.lookup.v1.RouteLookupClusterSpecifier result = new io.grpc.lookup.v1.RouteLookupClusterSpecifier(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grpc.lookup.v1.RouteLookupClusterSpecifier result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.routeLookupConfig_ = routeLookupConfigBuilder_ == null ? routeLookupConfig_ : routeLookupConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.grpc.lookup.v1.RouteLookupClusterSpecifier) { return mergeFrom((io.grpc.lookup.v1.RouteLookupClusterSpecifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.lookup.v1.RouteLookupClusterSpecifier other) { if (other == io.grpc.lookup.v1.RouteLookupClusterSpecifier.getDefaultInstance()) return this; if (other.hasRouteLookupConfig()) { mergeRouteLookupConfig(other.getRouteLookupConfig()); } 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( getRouteLookupConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 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.grpc.lookup.v1.RouteLookupConfig routeLookupConfig_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.lookup.v1.RouteLookupConfig, io.grpc.lookup.v1.RouteLookupConfig.Builder, io.grpc.lookup.v1.RouteLookupConfigOrBuilder> routeLookupConfigBuilder_; /** *
     * The RLS config for this cluster specifier plugin instance.
     * 
* * .grpc.lookup.v1.RouteLookupConfig route_lookup_config = 1; * @return Whether the routeLookupConfig field is set. */ public boolean hasRouteLookupConfig() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The RLS config for this cluster specifier plugin instance.
     * 
* * .grpc.lookup.v1.RouteLookupConfig route_lookup_config = 1; * @return The routeLookupConfig. */ public io.grpc.lookup.v1.RouteLookupConfig getRouteLookupConfig() { if (routeLookupConfigBuilder_ == null) { return routeLookupConfig_ == null ? io.grpc.lookup.v1.RouteLookupConfig.getDefaultInstance() : routeLookupConfig_; } else { return routeLookupConfigBuilder_.getMessage(); } } /** *
     * The RLS config for this cluster specifier plugin instance.
     * 
* * .grpc.lookup.v1.RouteLookupConfig route_lookup_config = 1; */ public Builder setRouteLookupConfig(io.grpc.lookup.v1.RouteLookupConfig value) { if (routeLookupConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } routeLookupConfig_ = value; } else { routeLookupConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The RLS config for this cluster specifier plugin instance.
     * 
* * .grpc.lookup.v1.RouteLookupConfig route_lookup_config = 1; */ public Builder setRouteLookupConfig( io.grpc.lookup.v1.RouteLookupConfig.Builder builderForValue) { if (routeLookupConfigBuilder_ == null) { routeLookupConfig_ = builderForValue.build(); } else { routeLookupConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The RLS config for this cluster specifier plugin instance.
     * 
* * .grpc.lookup.v1.RouteLookupConfig route_lookup_config = 1; */ public Builder mergeRouteLookupConfig(io.grpc.lookup.v1.RouteLookupConfig value) { if (routeLookupConfigBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && routeLookupConfig_ != null && routeLookupConfig_ != io.grpc.lookup.v1.RouteLookupConfig.getDefaultInstance()) { getRouteLookupConfigBuilder().mergeFrom(value); } else { routeLookupConfig_ = value; } } else { routeLookupConfigBuilder_.mergeFrom(value); } if (routeLookupConfig_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The RLS config for this cluster specifier plugin instance.
     * 
* * .grpc.lookup.v1.RouteLookupConfig route_lookup_config = 1; */ public Builder clearRouteLookupConfig() { bitField0_ = (bitField0_ & ~0x00000001); routeLookupConfig_ = null; if (routeLookupConfigBuilder_ != null) { routeLookupConfigBuilder_.dispose(); routeLookupConfigBuilder_ = null; } onChanged(); return this; } /** *
     * The RLS config for this cluster specifier plugin instance.
     * 
* * .grpc.lookup.v1.RouteLookupConfig route_lookup_config = 1; */ public io.grpc.lookup.v1.RouteLookupConfig.Builder getRouteLookupConfigBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRouteLookupConfigFieldBuilder().getBuilder(); } /** *
     * The RLS config for this cluster specifier plugin instance.
     * 
* * .grpc.lookup.v1.RouteLookupConfig route_lookup_config = 1; */ public io.grpc.lookup.v1.RouteLookupConfigOrBuilder getRouteLookupConfigOrBuilder() { if (routeLookupConfigBuilder_ != null) { return routeLookupConfigBuilder_.getMessageOrBuilder(); } else { return routeLookupConfig_ == null ? io.grpc.lookup.v1.RouteLookupConfig.getDefaultInstance() : routeLookupConfig_; } } /** *
     * The RLS config for this cluster specifier plugin instance.
     * 
* * .grpc.lookup.v1.RouteLookupConfig route_lookup_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.lookup.v1.RouteLookupConfig, io.grpc.lookup.v1.RouteLookupConfig.Builder, io.grpc.lookup.v1.RouteLookupConfigOrBuilder> getRouteLookupConfigFieldBuilder() { if (routeLookupConfigBuilder_ == null) { routeLookupConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.lookup.v1.RouteLookupConfig, io.grpc.lookup.v1.RouteLookupConfig.Builder, io.grpc.lookup.v1.RouteLookupConfigOrBuilder>( getRouteLookupConfig(), getParentForChildren(), isClean()); routeLookupConfig_ = null; } return routeLookupConfigBuilder_; } @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:grpc.lookup.v1.RouteLookupClusterSpecifier) } // @@protoc_insertion_point(class_scope:grpc.lookup.v1.RouteLookupClusterSpecifier) private static final io.grpc.lookup.v1.RouteLookupClusterSpecifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.lookup.v1.RouteLookupClusterSpecifier(); } public static io.grpc.lookup.v1.RouteLookupClusterSpecifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RouteLookupClusterSpecifier 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.grpc.lookup.v1.RouteLookupClusterSpecifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy