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

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

There is a newer version: 2.0.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grpc/lookup/v1/rls_config.proto

package io.grpc.lookup.v1;

/**
 * Protobuf type {@code grpc.lookup.v1.RouteLookupConfig}
 */
public final class RouteLookupConfig extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:grpc.lookup.v1.RouteLookupConfig)
    RouteLookupConfigOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RouteLookupConfig.newBuilder() to construct.
  private RouteLookupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private RouteLookupConfig() {
    httpKeybuilders_ = java.util.Collections.emptyList();
    grpcKeybuilders_ = java.util.Collections.emptyList();
    lookupService_ = "";
    validTargets_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    defaultTarget_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new RouteLookupConfig();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_RouteLookupConfig_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_RouteLookupConfig_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grpc.lookup.v1.RouteLookupConfig.class, io.grpc.lookup.v1.RouteLookupConfig.Builder.class);
  }

  private int bitField0_;
  public static final int HTTP_KEYBUILDERS_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private java.util.List httpKeybuilders_;
  /**
   * 
   * Ordered specifications for constructing keys for HTTP requests.  Last
   * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
   * the lookup service; it should likely reply with a global default route
   * and raise an alert.
   * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ @java.lang.Override public java.util.List getHttpKeybuildersList() { return httpKeybuilders_; } /** *
   * Ordered specifications for constructing keys for HTTP requests.  Last
   * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
   * the lookup service; it should likely reply with a global default route
   * and raise an alert.
   * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ @java.lang.Override public java.util.List getHttpKeybuildersOrBuilderList() { return httpKeybuilders_; } /** *
   * Ordered specifications for constructing keys for HTTP requests.  Last
   * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
   * the lookup service; it should likely reply with a global default route
   * and raise an alert.
   * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ @java.lang.Override public int getHttpKeybuildersCount() { return httpKeybuilders_.size(); } /** *
   * Ordered specifications for constructing keys for HTTP requests.  Last
   * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
   * the lookup service; it should likely reply with a global default route
   * and raise an alert.
   * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ @java.lang.Override public io.grpc.lookup.v1.HttpKeyBuilder getHttpKeybuilders(int index) { return httpKeybuilders_.get(index); } /** *
   * Ordered specifications for constructing keys for HTTP requests.  Last
   * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
   * the lookup service; it should likely reply with a global default route
   * and raise an alert.
   * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ @java.lang.Override public io.grpc.lookup.v1.HttpKeyBuilderOrBuilder getHttpKeybuildersOrBuilder( int index) { return httpKeybuilders_.get(index); } public static final int GRPC_KEYBUILDERS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List grpcKeybuilders_; /** *
   * Unordered specifications for constructing keys for gRPC requests.  All
   * GrpcKeyBuilders on this list must have unique "name" fields so that the
   * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
   * matches, an empty key_map will be sent to the lookup service; it should
   * likely reply with a global default route and raise an alert.
   * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ @java.lang.Override public java.util.List getGrpcKeybuildersList() { return grpcKeybuilders_; } /** *
   * Unordered specifications for constructing keys for gRPC requests.  All
   * GrpcKeyBuilders on this list must have unique "name" fields so that the
   * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
   * matches, an empty key_map will be sent to the lookup service; it should
   * likely reply with a global default route and raise an alert.
   * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ @java.lang.Override public java.util.List getGrpcKeybuildersOrBuilderList() { return grpcKeybuilders_; } /** *
   * Unordered specifications for constructing keys for gRPC requests.  All
   * GrpcKeyBuilders on this list must have unique "name" fields so that the
   * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
   * matches, an empty key_map will be sent to the lookup service; it should
   * likely reply with a global default route and raise an alert.
   * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ @java.lang.Override public int getGrpcKeybuildersCount() { return grpcKeybuilders_.size(); } /** *
   * Unordered specifications for constructing keys for gRPC requests.  All
   * GrpcKeyBuilders on this list must have unique "name" fields so that the
   * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
   * matches, an empty key_map will be sent to the lookup service; it should
   * likely reply with a global default route and raise an alert.
   * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ @java.lang.Override public io.grpc.lookup.v1.GrpcKeyBuilder getGrpcKeybuilders(int index) { return grpcKeybuilders_.get(index); } /** *
   * Unordered specifications for constructing keys for gRPC requests.  All
   * GrpcKeyBuilders on this list must have unique "name" fields so that the
   * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
   * matches, an empty key_map will be sent to the lookup service; it should
   * likely reply with a global default route and raise an alert.
   * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ @java.lang.Override public io.grpc.lookup.v1.GrpcKeyBuilderOrBuilder getGrpcKeybuildersOrBuilder( int index) { return grpcKeybuilders_.get(index); } public static final int LOOKUP_SERVICE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object lookupService_ = ""; /** *
   * The name of the lookup service as a gRPC URI.  Typically, this will be
   * a subdomain of the target, such as "lookup.datastore.googleapis.com".
   * 
* * string lookup_service = 3; * @return The lookupService. */ @java.lang.Override public java.lang.String getLookupService() { java.lang.Object ref = lookupService_; 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(); lookupService_ = s; return s; } } /** *
   * The name of the lookup service as a gRPC URI.  Typically, this will be
   * a subdomain of the target, such as "lookup.datastore.googleapis.com".
   * 
* * string lookup_service = 3; * @return The bytes for lookupService. */ @java.lang.Override public com.google.protobuf.ByteString getLookupServiceBytes() { java.lang.Object ref = lookupService_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lookupService_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOOKUP_SERVICE_TIMEOUT_FIELD_NUMBER = 4; private com.google.protobuf.Duration lookupServiceTimeout_; /** *
   * Configure a timeout value for lookup service requests.
   * Defaults to 10 seconds if not specified.
   * 
* * .google.protobuf.Duration lookup_service_timeout = 4; * @return Whether the lookupServiceTimeout field is set. */ @java.lang.Override public boolean hasLookupServiceTimeout() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Configure a timeout value for lookup service requests.
   * Defaults to 10 seconds if not specified.
   * 
* * .google.protobuf.Duration lookup_service_timeout = 4; * @return The lookupServiceTimeout. */ @java.lang.Override public com.google.protobuf.Duration getLookupServiceTimeout() { return lookupServiceTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lookupServiceTimeout_; } /** *
   * Configure a timeout value for lookup service requests.
   * Defaults to 10 seconds if not specified.
   * 
* * .google.protobuf.Duration lookup_service_timeout = 4; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getLookupServiceTimeoutOrBuilder() { return lookupServiceTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lookupServiceTimeout_; } public static final int MAX_AGE_FIELD_NUMBER = 5; private com.google.protobuf.Duration maxAge_; /** *
   * How long are responses valid for (like HTTP Cache-Control).
   * If omitted or zero, the longest valid cache time is used.
   * This value is clamped to 5 minutes to avoid unflushable bad responses.
   * 
* * .google.protobuf.Duration max_age = 5; * @return Whether the maxAge field is set. */ @java.lang.Override public boolean hasMaxAge() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * How long are responses valid for (like HTTP Cache-Control).
   * If omitted or zero, the longest valid cache time is used.
   * This value is clamped to 5 minutes to avoid unflushable bad responses.
   * 
* * .google.protobuf.Duration max_age = 5; * @return The maxAge. */ @java.lang.Override public com.google.protobuf.Duration getMaxAge() { return maxAge_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxAge_; } /** *
   * How long are responses valid for (like HTTP Cache-Control).
   * If omitted or zero, the longest valid cache time is used.
   * This value is clamped to 5 minutes to avoid unflushable bad responses.
   * 
* * .google.protobuf.Duration max_age = 5; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxAgeOrBuilder() { return maxAge_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxAge_; } public static final int STALE_AGE_FIELD_NUMBER = 6; private com.google.protobuf.Duration staleAge_; /** *
   * After a response has been in the client cache for this amount of time
   * and is re-requested, start an asynchronous RPC to re-validate it.
   * This value should be less than max_age by at least the length of a
   * typical RTT to the Route Lookup Service to fully mask the RTT latency.
   * If omitted, keys are only re-requested after they have expired.
   * 
* * .google.protobuf.Duration stale_age = 6; * @return Whether the staleAge field is set. */ @java.lang.Override public boolean hasStaleAge() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * After a response has been in the client cache for this amount of time
   * and is re-requested, start an asynchronous RPC to re-validate it.
   * This value should be less than max_age by at least the length of a
   * typical RTT to the Route Lookup Service to fully mask the RTT latency.
   * If omitted, keys are only re-requested after they have expired.
   * 
* * .google.protobuf.Duration stale_age = 6; * @return The staleAge. */ @java.lang.Override public com.google.protobuf.Duration getStaleAge() { return staleAge_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staleAge_; } /** *
   * After a response has been in the client cache for this amount of time
   * and is re-requested, start an asynchronous RPC to re-validate it.
   * This value should be less than max_age by at least the length of a
   * typical RTT to the Route Lookup Service to fully mask the RTT latency.
   * If omitted, keys are only re-requested after they have expired.
   * 
* * .google.protobuf.Duration stale_age = 6; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getStaleAgeOrBuilder() { return staleAge_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staleAge_; } public static final int CACHE_SIZE_BYTES_FIELD_NUMBER = 7; private long cacheSizeBytes_ = 0L; /** *
   * Rough indicator of amount of memory to use for the client cache.  Some of
   * the data structure overhead is not accounted for, so actual memory consumed
   * will be somewhat greater than this value.  If this field is omitted or set
   * to zero, a client default will be used.  The value may be capped to a lower
   * amount based on client configuration.
   * 
* * int64 cache_size_bytes = 7; * @return The cacheSizeBytes. */ @java.lang.Override public long getCacheSizeBytes() { return cacheSizeBytes_; } public static final int VALID_TARGETS_FIELD_NUMBER = 8; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList validTargets_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * This is a list of all the possible targets that can be returned by the
   * lookup service.  If a target not on this list is returned, it will be
   * treated the same as an unhealthy target.
   * 
* * repeated string valid_targets = 8; * @return A list containing the validTargets. */ public com.google.protobuf.ProtocolStringList getValidTargetsList() { return validTargets_; } /** *
   * This is a list of all the possible targets that can be returned by the
   * lookup service.  If a target not on this list is returned, it will be
   * treated the same as an unhealthy target.
   * 
* * repeated string valid_targets = 8; * @return The count of validTargets. */ public int getValidTargetsCount() { return validTargets_.size(); } /** *
   * This is a list of all the possible targets that can be returned by the
   * lookup service.  If a target not on this list is returned, it will be
   * treated the same as an unhealthy target.
   * 
* * repeated string valid_targets = 8; * @param index The index of the element to return. * @return The validTargets at the given index. */ public java.lang.String getValidTargets(int index) { return validTargets_.get(index); } /** *
   * This is a list of all the possible targets that can be returned by the
   * lookup service.  If a target not on this list is returned, it will be
   * treated the same as an unhealthy target.
   * 
* * repeated string valid_targets = 8; * @param index The index of the value to return. * @return The bytes of the validTargets at the given index. */ public com.google.protobuf.ByteString getValidTargetsBytes(int index) { return validTargets_.getByteString(index); } public static final int DEFAULT_TARGET_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object defaultTarget_ = ""; /** *
   * This value provides a default target to use if needed.  If set, it will be
   * used if RLS returns an error, times out, or returns an invalid response.
   * Note that requests can be routed only to a subdomain of the original
   * target, e.g. "us_east_1.cloudbigtable.googleapis.com".
   * 
* * string default_target = 9; * @return The defaultTarget. */ @java.lang.Override public java.lang.String getDefaultTarget() { java.lang.Object ref = defaultTarget_; 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(); defaultTarget_ = s; return s; } } /** *
   * This value provides a default target to use if needed.  If set, it will be
   * used if RLS returns an error, times out, or returns an invalid response.
   * Note that requests can be routed only to a subdomain of the original
   * target, e.g. "us_east_1.cloudbigtable.googleapis.com".
   * 
* * string default_target = 9; * @return The bytes for defaultTarget. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultTargetBytes() { java.lang.Object ref = defaultTarget_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultTarget_ = 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 { for (int i = 0; i < httpKeybuilders_.size(); i++) { output.writeMessage(1, httpKeybuilders_.get(i)); } for (int i = 0; i < grpcKeybuilders_.size(); i++) { output.writeMessage(2, grpcKeybuilders_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lookupService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, lookupService_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getLookupServiceTimeout()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getMaxAge()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getStaleAge()); } if (cacheSizeBytes_ != 0L) { output.writeInt64(7, cacheSizeBytes_); } for (int i = 0; i < validTargets_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, validTargets_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultTarget_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, defaultTarget_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < httpKeybuilders_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, httpKeybuilders_.get(i)); } for (int i = 0; i < grpcKeybuilders_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, grpcKeybuilders_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lookupService_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, lookupService_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLookupServiceTimeout()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMaxAge()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getStaleAge()); } if (cacheSizeBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, cacheSizeBytes_); } { int dataSize = 0; for (int i = 0; i < validTargets_.size(); i++) { dataSize += computeStringSizeNoTag(validTargets_.getRaw(i)); } size += dataSize; size += 1 * getValidTargetsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultTarget_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, defaultTarget_); } 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.RouteLookupConfig)) { return super.equals(obj); } io.grpc.lookup.v1.RouteLookupConfig other = (io.grpc.lookup.v1.RouteLookupConfig) obj; if (!getHttpKeybuildersList() .equals(other.getHttpKeybuildersList())) return false; if (!getGrpcKeybuildersList() .equals(other.getGrpcKeybuildersList())) return false; if (!getLookupService() .equals(other.getLookupService())) return false; if (hasLookupServiceTimeout() != other.hasLookupServiceTimeout()) return false; if (hasLookupServiceTimeout()) { if (!getLookupServiceTimeout() .equals(other.getLookupServiceTimeout())) return false; } if (hasMaxAge() != other.hasMaxAge()) return false; if (hasMaxAge()) { if (!getMaxAge() .equals(other.getMaxAge())) return false; } if (hasStaleAge() != other.hasStaleAge()) return false; if (hasStaleAge()) { if (!getStaleAge() .equals(other.getStaleAge())) return false; } if (getCacheSizeBytes() != other.getCacheSizeBytes()) return false; if (!getValidTargetsList() .equals(other.getValidTargetsList())) return false; if (!getDefaultTarget() .equals(other.getDefaultTarget())) 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 (getHttpKeybuildersCount() > 0) { hash = (37 * hash) + HTTP_KEYBUILDERS_FIELD_NUMBER; hash = (53 * hash) + getHttpKeybuildersList().hashCode(); } if (getGrpcKeybuildersCount() > 0) { hash = (37 * hash) + GRPC_KEYBUILDERS_FIELD_NUMBER; hash = (53 * hash) + getGrpcKeybuildersList().hashCode(); } hash = (37 * hash) + LOOKUP_SERVICE_FIELD_NUMBER; hash = (53 * hash) + getLookupService().hashCode(); if (hasLookupServiceTimeout()) { hash = (37 * hash) + LOOKUP_SERVICE_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getLookupServiceTimeout().hashCode(); } if (hasMaxAge()) { hash = (37 * hash) + MAX_AGE_FIELD_NUMBER; hash = (53 * hash) + getMaxAge().hashCode(); } if (hasStaleAge()) { hash = (37 * hash) + STALE_AGE_FIELD_NUMBER; hash = (53 * hash) + getStaleAge().hashCode(); } hash = (37 * hash) + CACHE_SIZE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCacheSizeBytes()); if (getValidTargetsCount() > 0) { hash = (37 * hash) + VALID_TARGETS_FIELD_NUMBER; hash = (53 * hash) + getValidTargetsList().hashCode(); } hash = (37 * hash) + DEFAULT_TARGET_FIELD_NUMBER; hash = (53 * hash) + getDefaultTarget().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.lookup.v1.RouteLookupConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lookup.v1.RouteLookupConfig 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.RouteLookupConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lookup.v1.RouteLookupConfig 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.RouteLookupConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lookup.v1.RouteLookupConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.lookup.v1.RouteLookupConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.lookup.v1.RouteLookupConfig 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.RouteLookupConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.lookup.v1.RouteLookupConfig 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.RouteLookupConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.lookup.v1.RouteLookupConfig 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.RouteLookupConfig 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; } /** * Protobuf type {@code grpc.lookup.v1.RouteLookupConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.lookup.v1.RouteLookupConfig) io.grpc.lookup.v1.RouteLookupConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_RouteLookupConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_RouteLookupConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.lookup.v1.RouteLookupConfig.class, io.grpc.lookup.v1.RouteLookupConfig.Builder.class); } // Construct using io.grpc.lookup.v1.RouteLookupConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHttpKeybuildersFieldBuilder(); getGrpcKeybuildersFieldBuilder(); getLookupServiceTimeoutFieldBuilder(); getMaxAgeFieldBuilder(); getStaleAgeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (httpKeybuildersBuilder_ == null) { httpKeybuilders_ = java.util.Collections.emptyList(); } else { httpKeybuilders_ = null; httpKeybuildersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (grpcKeybuildersBuilder_ == null) { grpcKeybuilders_ = java.util.Collections.emptyList(); } else { grpcKeybuilders_ = null; grpcKeybuildersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); lookupService_ = ""; lookupServiceTimeout_ = null; if (lookupServiceTimeoutBuilder_ != null) { lookupServiceTimeoutBuilder_.dispose(); lookupServiceTimeoutBuilder_ = null; } maxAge_ = null; if (maxAgeBuilder_ != null) { maxAgeBuilder_.dispose(); maxAgeBuilder_ = null; } staleAge_ = null; if (staleAgeBuilder_ != null) { staleAgeBuilder_.dispose(); staleAgeBuilder_ = null; } cacheSizeBytes_ = 0L; validTargets_ = com.google.protobuf.LazyStringArrayList.emptyList(); defaultTarget_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_RouteLookupConfig_descriptor; } @java.lang.Override public io.grpc.lookup.v1.RouteLookupConfig getDefaultInstanceForType() { return io.grpc.lookup.v1.RouteLookupConfig.getDefaultInstance(); } @java.lang.Override public io.grpc.lookup.v1.RouteLookupConfig build() { io.grpc.lookup.v1.RouteLookupConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.lookup.v1.RouteLookupConfig buildPartial() { io.grpc.lookup.v1.RouteLookupConfig result = new io.grpc.lookup.v1.RouteLookupConfig(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.grpc.lookup.v1.RouteLookupConfig result) { if (httpKeybuildersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { httpKeybuilders_ = java.util.Collections.unmodifiableList(httpKeybuilders_); bitField0_ = (bitField0_ & ~0x00000001); } result.httpKeybuilders_ = httpKeybuilders_; } else { result.httpKeybuilders_ = httpKeybuildersBuilder_.build(); } if (grpcKeybuildersBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { grpcKeybuilders_ = java.util.Collections.unmodifiableList(grpcKeybuilders_); bitField0_ = (bitField0_ & ~0x00000002); } result.grpcKeybuilders_ = grpcKeybuilders_; } else { result.grpcKeybuilders_ = grpcKeybuildersBuilder_.build(); } } private void buildPartial0(io.grpc.lookup.v1.RouteLookupConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { result.lookupService_ = lookupService_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.lookupServiceTimeout_ = lookupServiceTimeoutBuilder_ == null ? lookupServiceTimeout_ : lookupServiceTimeoutBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.maxAge_ = maxAgeBuilder_ == null ? maxAge_ : maxAgeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.staleAge_ = staleAgeBuilder_ == null ? staleAge_ : staleAgeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.cacheSizeBytes_ = cacheSizeBytes_; } if (((from_bitField0_ & 0x00000080) != 0)) { validTargets_.makeImmutable(); result.validTargets_ = validTargets_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.defaultTarget_ = defaultTarget_; } 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.RouteLookupConfig) { return mergeFrom((io.grpc.lookup.v1.RouteLookupConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.lookup.v1.RouteLookupConfig other) { if (other == io.grpc.lookup.v1.RouteLookupConfig.getDefaultInstance()) return this; if (httpKeybuildersBuilder_ == null) { if (!other.httpKeybuilders_.isEmpty()) { if (httpKeybuilders_.isEmpty()) { httpKeybuilders_ = other.httpKeybuilders_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureHttpKeybuildersIsMutable(); httpKeybuilders_.addAll(other.httpKeybuilders_); } onChanged(); } } else { if (!other.httpKeybuilders_.isEmpty()) { if (httpKeybuildersBuilder_.isEmpty()) { httpKeybuildersBuilder_.dispose(); httpKeybuildersBuilder_ = null; httpKeybuilders_ = other.httpKeybuilders_; bitField0_ = (bitField0_ & ~0x00000001); httpKeybuildersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHttpKeybuildersFieldBuilder() : null; } else { httpKeybuildersBuilder_.addAllMessages(other.httpKeybuilders_); } } } if (grpcKeybuildersBuilder_ == null) { if (!other.grpcKeybuilders_.isEmpty()) { if (grpcKeybuilders_.isEmpty()) { grpcKeybuilders_ = other.grpcKeybuilders_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureGrpcKeybuildersIsMutable(); grpcKeybuilders_.addAll(other.grpcKeybuilders_); } onChanged(); } } else { if (!other.grpcKeybuilders_.isEmpty()) { if (grpcKeybuildersBuilder_.isEmpty()) { grpcKeybuildersBuilder_.dispose(); grpcKeybuildersBuilder_ = null; grpcKeybuilders_ = other.grpcKeybuilders_; bitField0_ = (bitField0_ & ~0x00000002); grpcKeybuildersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGrpcKeybuildersFieldBuilder() : null; } else { grpcKeybuildersBuilder_.addAllMessages(other.grpcKeybuilders_); } } } if (!other.getLookupService().isEmpty()) { lookupService_ = other.lookupService_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasLookupServiceTimeout()) { mergeLookupServiceTimeout(other.getLookupServiceTimeout()); } if (other.hasMaxAge()) { mergeMaxAge(other.getMaxAge()); } if (other.hasStaleAge()) { mergeStaleAge(other.getStaleAge()); } if (other.getCacheSizeBytes() != 0L) { setCacheSizeBytes(other.getCacheSizeBytes()); } if (!other.validTargets_.isEmpty()) { if (validTargets_.isEmpty()) { validTargets_ = other.validTargets_; bitField0_ |= 0x00000080; } else { ensureValidTargetsIsMutable(); validTargets_.addAll(other.validTargets_); } onChanged(); } if (!other.getDefaultTarget().isEmpty()) { defaultTarget_ = other.defaultTarget_; bitField0_ |= 0x00000100; 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: { io.grpc.lookup.v1.HttpKeyBuilder m = input.readMessage( io.grpc.lookup.v1.HttpKeyBuilder.parser(), extensionRegistry); if (httpKeybuildersBuilder_ == null) { ensureHttpKeybuildersIsMutable(); httpKeybuilders_.add(m); } else { httpKeybuildersBuilder_.addMessage(m); } break; } // case 10 case 18: { io.grpc.lookup.v1.GrpcKeyBuilder m = input.readMessage( io.grpc.lookup.v1.GrpcKeyBuilder.parser(), extensionRegistry); if (grpcKeybuildersBuilder_ == null) { ensureGrpcKeybuildersIsMutable(); grpcKeybuilders_.add(m); } else { grpcKeybuildersBuilder_.addMessage(m); } break; } // case 18 case 26: { lookupService_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getLookupServiceTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getMaxAgeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getStaleAgeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 56: { cacheSizeBytes_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { java.lang.String s = input.readStringRequireUtf8(); ensureValidTargetsIsMutable(); validTargets_.add(s); break; } // case 66 case 74: { defaultTarget_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 74 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 java.util.List httpKeybuilders_ = java.util.Collections.emptyList(); private void ensureHttpKeybuildersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { httpKeybuilders_ = new java.util.ArrayList(httpKeybuilders_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.lookup.v1.HttpKeyBuilder, io.grpc.lookup.v1.HttpKeyBuilder.Builder, io.grpc.lookup.v1.HttpKeyBuilderOrBuilder> httpKeybuildersBuilder_; /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public java.util.List getHttpKeybuildersList() { if (httpKeybuildersBuilder_ == null) { return java.util.Collections.unmodifiableList(httpKeybuilders_); } else { return httpKeybuildersBuilder_.getMessageList(); } } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public int getHttpKeybuildersCount() { if (httpKeybuildersBuilder_ == null) { return httpKeybuilders_.size(); } else { return httpKeybuildersBuilder_.getCount(); } } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public io.grpc.lookup.v1.HttpKeyBuilder getHttpKeybuilders(int index) { if (httpKeybuildersBuilder_ == null) { return httpKeybuilders_.get(index); } else { return httpKeybuildersBuilder_.getMessage(index); } } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public Builder setHttpKeybuilders( int index, io.grpc.lookup.v1.HttpKeyBuilder value) { if (httpKeybuildersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHttpKeybuildersIsMutable(); httpKeybuilders_.set(index, value); onChanged(); } else { httpKeybuildersBuilder_.setMessage(index, value); } return this; } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public Builder setHttpKeybuilders( int index, io.grpc.lookup.v1.HttpKeyBuilder.Builder builderForValue) { if (httpKeybuildersBuilder_ == null) { ensureHttpKeybuildersIsMutable(); httpKeybuilders_.set(index, builderForValue.build()); onChanged(); } else { httpKeybuildersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public Builder addHttpKeybuilders(io.grpc.lookup.v1.HttpKeyBuilder value) { if (httpKeybuildersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHttpKeybuildersIsMutable(); httpKeybuilders_.add(value); onChanged(); } else { httpKeybuildersBuilder_.addMessage(value); } return this; } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public Builder addHttpKeybuilders( int index, io.grpc.lookup.v1.HttpKeyBuilder value) { if (httpKeybuildersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHttpKeybuildersIsMutable(); httpKeybuilders_.add(index, value); onChanged(); } else { httpKeybuildersBuilder_.addMessage(index, value); } return this; } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public Builder addHttpKeybuilders( io.grpc.lookup.v1.HttpKeyBuilder.Builder builderForValue) { if (httpKeybuildersBuilder_ == null) { ensureHttpKeybuildersIsMutable(); httpKeybuilders_.add(builderForValue.build()); onChanged(); } else { httpKeybuildersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public Builder addHttpKeybuilders( int index, io.grpc.lookup.v1.HttpKeyBuilder.Builder builderForValue) { if (httpKeybuildersBuilder_ == null) { ensureHttpKeybuildersIsMutable(); httpKeybuilders_.add(index, builderForValue.build()); onChanged(); } else { httpKeybuildersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public Builder addAllHttpKeybuilders( java.lang.Iterable values) { if (httpKeybuildersBuilder_ == null) { ensureHttpKeybuildersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, httpKeybuilders_); onChanged(); } else { httpKeybuildersBuilder_.addAllMessages(values); } return this; } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public Builder clearHttpKeybuilders() { if (httpKeybuildersBuilder_ == null) { httpKeybuilders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { httpKeybuildersBuilder_.clear(); } return this; } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public Builder removeHttpKeybuilders(int index) { if (httpKeybuildersBuilder_ == null) { ensureHttpKeybuildersIsMutable(); httpKeybuilders_.remove(index); onChanged(); } else { httpKeybuildersBuilder_.remove(index); } return this; } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public io.grpc.lookup.v1.HttpKeyBuilder.Builder getHttpKeybuildersBuilder( int index) { return getHttpKeybuildersFieldBuilder().getBuilder(index); } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public io.grpc.lookup.v1.HttpKeyBuilderOrBuilder getHttpKeybuildersOrBuilder( int index) { if (httpKeybuildersBuilder_ == null) { return httpKeybuilders_.get(index); } else { return httpKeybuildersBuilder_.getMessageOrBuilder(index); } } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public java.util.List getHttpKeybuildersOrBuilderList() { if (httpKeybuildersBuilder_ != null) { return httpKeybuildersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(httpKeybuilders_); } } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public io.grpc.lookup.v1.HttpKeyBuilder.Builder addHttpKeybuildersBuilder() { return getHttpKeybuildersFieldBuilder().addBuilder( io.grpc.lookup.v1.HttpKeyBuilder.getDefaultInstance()); } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public io.grpc.lookup.v1.HttpKeyBuilder.Builder addHttpKeybuildersBuilder( int index) { return getHttpKeybuildersFieldBuilder().addBuilder( index, io.grpc.lookup.v1.HttpKeyBuilder.getDefaultInstance()); } /** *
     * Ordered specifications for constructing keys for HTTP requests.  Last
     * match wins.  If no HttpKeyBuilder matches, an empty key_map will be sent to
     * the lookup service; it should likely reply with a global default route
     * and raise an alert.
     * 
* * repeated .grpc.lookup.v1.HttpKeyBuilder http_keybuilders = 1; */ public java.util.List getHttpKeybuildersBuilderList() { return getHttpKeybuildersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.lookup.v1.HttpKeyBuilder, io.grpc.lookup.v1.HttpKeyBuilder.Builder, io.grpc.lookup.v1.HttpKeyBuilderOrBuilder> getHttpKeybuildersFieldBuilder() { if (httpKeybuildersBuilder_ == null) { httpKeybuildersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.lookup.v1.HttpKeyBuilder, io.grpc.lookup.v1.HttpKeyBuilder.Builder, io.grpc.lookup.v1.HttpKeyBuilderOrBuilder>( httpKeybuilders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); httpKeybuilders_ = null; } return httpKeybuildersBuilder_; } private java.util.List grpcKeybuilders_ = java.util.Collections.emptyList(); private void ensureGrpcKeybuildersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { grpcKeybuilders_ = new java.util.ArrayList(grpcKeybuilders_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.lookup.v1.GrpcKeyBuilder, io.grpc.lookup.v1.GrpcKeyBuilder.Builder, io.grpc.lookup.v1.GrpcKeyBuilderOrBuilder> grpcKeybuildersBuilder_; /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public java.util.List getGrpcKeybuildersList() { if (grpcKeybuildersBuilder_ == null) { return java.util.Collections.unmodifiableList(grpcKeybuilders_); } else { return grpcKeybuildersBuilder_.getMessageList(); } } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public int getGrpcKeybuildersCount() { if (grpcKeybuildersBuilder_ == null) { return grpcKeybuilders_.size(); } else { return grpcKeybuildersBuilder_.getCount(); } } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public io.grpc.lookup.v1.GrpcKeyBuilder getGrpcKeybuilders(int index) { if (grpcKeybuildersBuilder_ == null) { return grpcKeybuilders_.get(index); } else { return grpcKeybuildersBuilder_.getMessage(index); } } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public Builder setGrpcKeybuilders( int index, io.grpc.lookup.v1.GrpcKeyBuilder value) { if (grpcKeybuildersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGrpcKeybuildersIsMutable(); grpcKeybuilders_.set(index, value); onChanged(); } else { grpcKeybuildersBuilder_.setMessage(index, value); } return this; } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public Builder setGrpcKeybuilders( int index, io.grpc.lookup.v1.GrpcKeyBuilder.Builder builderForValue) { if (grpcKeybuildersBuilder_ == null) { ensureGrpcKeybuildersIsMutable(); grpcKeybuilders_.set(index, builderForValue.build()); onChanged(); } else { grpcKeybuildersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public Builder addGrpcKeybuilders(io.grpc.lookup.v1.GrpcKeyBuilder value) { if (grpcKeybuildersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGrpcKeybuildersIsMutable(); grpcKeybuilders_.add(value); onChanged(); } else { grpcKeybuildersBuilder_.addMessage(value); } return this; } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public Builder addGrpcKeybuilders( int index, io.grpc.lookup.v1.GrpcKeyBuilder value) { if (grpcKeybuildersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGrpcKeybuildersIsMutable(); grpcKeybuilders_.add(index, value); onChanged(); } else { grpcKeybuildersBuilder_.addMessage(index, value); } return this; } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public Builder addGrpcKeybuilders( io.grpc.lookup.v1.GrpcKeyBuilder.Builder builderForValue) { if (grpcKeybuildersBuilder_ == null) { ensureGrpcKeybuildersIsMutable(); grpcKeybuilders_.add(builderForValue.build()); onChanged(); } else { grpcKeybuildersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public Builder addGrpcKeybuilders( int index, io.grpc.lookup.v1.GrpcKeyBuilder.Builder builderForValue) { if (grpcKeybuildersBuilder_ == null) { ensureGrpcKeybuildersIsMutable(); grpcKeybuilders_.add(index, builderForValue.build()); onChanged(); } else { grpcKeybuildersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public Builder addAllGrpcKeybuilders( java.lang.Iterable values) { if (grpcKeybuildersBuilder_ == null) { ensureGrpcKeybuildersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, grpcKeybuilders_); onChanged(); } else { grpcKeybuildersBuilder_.addAllMessages(values); } return this; } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public Builder clearGrpcKeybuilders() { if (grpcKeybuildersBuilder_ == null) { grpcKeybuilders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { grpcKeybuildersBuilder_.clear(); } return this; } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public Builder removeGrpcKeybuilders(int index) { if (grpcKeybuildersBuilder_ == null) { ensureGrpcKeybuildersIsMutable(); grpcKeybuilders_.remove(index); onChanged(); } else { grpcKeybuildersBuilder_.remove(index); } return this; } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public io.grpc.lookup.v1.GrpcKeyBuilder.Builder getGrpcKeybuildersBuilder( int index) { return getGrpcKeybuildersFieldBuilder().getBuilder(index); } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public io.grpc.lookup.v1.GrpcKeyBuilderOrBuilder getGrpcKeybuildersOrBuilder( int index) { if (grpcKeybuildersBuilder_ == null) { return grpcKeybuilders_.get(index); } else { return grpcKeybuildersBuilder_.getMessageOrBuilder(index); } } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public java.util.List getGrpcKeybuildersOrBuilderList() { if (grpcKeybuildersBuilder_ != null) { return grpcKeybuildersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(grpcKeybuilders_); } } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public io.grpc.lookup.v1.GrpcKeyBuilder.Builder addGrpcKeybuildersBuilder() { return getGrpcKeybuildersFieldBuilder().addBuilder( io.grpc.lookup.v1.GrpcKeyBuilder.getDefaultInstance()); } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public io.grpc.lookup.v1.GrpcKeyBuilder.Builder addGrpcKeybuildersBuilder( int index) { return getGrpcKeybuildersFieldBuilder().addBuilder( index, io.grpc.lookup.v1.GrpcKeyBuilder.getDefaultInstance()); } /** *
     * Unordered specifications for constructing keys for gRPC requests.  All
     * GrpcKeyBuilders on this list must have unique "name" fields so that the
     * client is free to prebuild a hash map keyed by name.  If no GrpcKeyBuilder
     * matches, an empty key_map will be sent to the lookup service; it should
     * likely reply with a global default route and raise an alert.
     * 
* * repeated .grpc.lookup.v1.GrpcKeyBuilder grpc_keybuilders = 2; */ public java.util.List getGrpcKeybuildersBuilderList() { return getGrpcKeybuildersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.lookup.v1.GrpcKeyBuilder, io.grpc.lookup.v1.GrpcKeyBuilder.Builder, io.grpc.lookup.v1.GrpcKeyBuilderOrBuilder> getGrpcKeybuildersFieldBuilder() { if (grpcKeybuildersBuilder_ == null) { grpcKeybuildersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.lookup.v1.GrpcKeyBuilder, io.grpc.lookup.v1.GrpcKeyBuilder.Builder, io.grpc.lookup.v1.GrpcKeyBuilderOrBuilder>( grpcKeybuilders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); grpcKeybuilders_ = null; } return grpcKeybuildersBuilder_; } private java.lang.Object lookupService_ = ""; /** *
     * The name of the lookup service as a gRPC URI.  Typically, this will be
     * a subdomain of the target, such as "lookup.datastore.googleapis.com".
     * 
* * string lookup_service = 3; * @return The lookupService. */ public java.lang.String getLookupService() { java.lang.Object ref = lookupService_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lookupService_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the lookup service as a gRPC URI.  Typically, this will be
     * a subdomain of the target, such as "lookup.datastore.googleapis.com".
     * 
* * string lookup_service = 3; * @return The bytes for lookupService. */ public com.google.protobuf.ByteString getLookupServiceBytes() { java.lang.Object ref = lookupService_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lookupService_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name of the lookup service as a gRPC URI.  Typically, this will be
     * a subdomain of the target, such as "lookup.datastore.googleapis.com".
     * 
* * string lookup_service = 3; * @param value The lookupService to set. * @return This builder for chaining. */ public Builder setLookupService( java.lang.String value) { if (value == null) { throw new NullPointerException(); } lookupService_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The name of the lookup service as a gRPC URI.  Typically, this will be
     * a subdomain of the target, such as "lookup.datastore.googleapis.com".
     * 
* * string lookup_service = 3; * @return This builder for chaining. */ public Builder clearLookupService() { lookupService_ = getDefaultInstance().getLookupService(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * The name of the lookup service as a gRPC URI.  Typically, this will be
     * a subdomain of the target, such as "lookup.datastore.googleapis.com".
     * 
* * string lookup_service = 3; * @param value The bytes for lookupService to set. * @return This builder for chaining. */ public Builder setLookupServiceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lookupService_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.Duration lookupServiceTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lookupServiceTimeoutBuilder_; /** *
     * Configure a timeout value for lookup service requests.
     * Defaults to 10 seconds if not specified.
     * 
* * .google.protobuf.Duration lookup_service_timeout = 4; * @return Whether the lookupServiceTimeout field is set. */ public boolean hasLookupServiceTimeout() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Configure a timeout value for lookup service requests.
     * Defaults to 10 seconds if not specified.
     * 
* * .google.protobuf.Duration lookup_service_timeout = 4; * @return The lookupServiceTimeout. */ public com.google.protobuf.Duration getLookupServiceTimeout() { if (lookupServiceTimeoutBuilder_ == null) { return lookupServiceTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lookupServiceTimeout_; } else { return lookupServiceTimeoutBuilder_.getMessage(); } } /** *
     * Configure a timeout value for lookup service requests.
     * Defaults to 10 seconds if not specified.
     * 
* * .google.protobuf.Duration lookup_service_timeout = 4; */ public Builder setLookupServiceTimeout(com.google.protobuf.Duration value) { if (lookupServiceTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lookupServiceTimeout_ = value; } else { lookupServiceTimeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Configure a timeout value for lookup service requests.
     * Defaults to 10 seconds if not specified.
     * 
* * .google.protobuf.Duration lookup_service_timeout = 4; */ public Builder setLookupServiceTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (lookupServiceTimeoutBuilder_ == null) { lookupServiceTimeout_ = builderForValue.build(); } else { lookupServiceTimeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Configure a timeout value for lookup service requests.
     * Defaults to 10 seconds if not specified.
     * 
* * .google.protobuf.Duration lookup_service_timeout = 4; */ public Builder mergeLookupServiceTimeout(com.google.protobuf.Duration value) { if (lookupServiceTimeoutBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && lookupServiceTimeout_ != null && lookupServiceTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getLookupServiceTimeoutBuilder().mergeFrom(value); } else { lookupServiceTimeout_ = value; } } else { lookupServiceTimeoutBuilder_.mergeFrom(value); } if (lookupServiceTimeout_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * Configure a timeout value for lookup service requests.
     * Defaults to 10 seconds if not specified.
     * 
* * .google.protobuf.Duration lookup_service_timeout = 4; */ public Builder clearLookupServiceTimeout() { bitField0_ = (bitField0_ & ~0x00000008); lookupServiceTimeout_ = null; if (lookupServiceTimeoutBuilder_ != null) { lookupServiceTimeoutBuilder_.dispose(); lookupServiceTimeoutBuilder_ = null; } onChanged(); return this; } /** *
     * Configure a timeout value for lookup service requests.
     * Defaults to 10 seconds if not specified.
     * 
* * .google.protobuf.Duration lookup_service_timeout = 4; */ public com.google.protobuf.Duration.Builder getLookupServiceTimeoutBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLookupServiceTimeoutFieldBuilder().getBuilder(); } /** *
     * Configure a timeout value for lookup service requests.
     * Defaults to 10 seconds if not specified.
     * 
* * .google.protobuf.Duration lookup_service_timeout = 4; */ public com.google.protobuf.DurationOrBuilder getLookupServiceTimeoutOrBuilder() { if (lookupServiceTimeoutBuilder_ != null) { return lookupServiceTimeoutBuilder_.getMessageOrBuilder(); } else { return lookupServiceTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lookupServiceTimeout_; } } /** *
     * Configure a timeout value for lookup service requests.
     * Defaults to 10 seconds if not specified.
     * 
* * .google.protobuf.Duration lookup_service_timeout = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getLookupServiceTimeoutFieldBuilder() { if (lookupServiceTimeoutBuilder_ == null) { lookupServiceTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getLookupServiceTimeout(), getParentForChildren(), isClean()); lookupServiceTimeout_ = null; } return lookupServiceTimeoutBuilder_; } private com.google.protobuf.Duration maxAge_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxAgeBuilder_; /** *
     * How long are responses valid for (like HTTP Cache-Control).
     * If omitted or zero, the longest valid cache time is used.
     * This value is clamped to 5 minutes to avoid unflushable bad responses.
     * 
* * .google.protobuf.Duration max_age = 5; * @return Whether the maxAge field is set. */ public boolean hasMaxAge() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * How long are responses valid for (like HTTP Cache-Control).
     * If omitted or zero, the longest valid cache time is used.
     * This value is clamped to 5 minutes to avoid unflushable bad responses.
     * 
* * .google.protobuf.Duration max_age = 5; * @return The maxAge. */ public com.google.protobuf.Duration getMaxAge() { if (maxAgeBuilder_ == null) { return maxAge_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxAge_; } else { return maxAgeBuilder_.getMessage(); } } /** *
     * How long are responses valid for (like HTTP Cache-Control).
     * If omitted or zero, the longest valid cache time is used.
     * This value is clamped to 5 minutes to avoid unflushable bad responses.
     * 
* * .google.protobuf.Duration max_age = 5; */ public Builder setMaxAge(com.google.protobuf.Duration value) { if (maxAgeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxAge_ = value; } else { maxAgeBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * How long are responses valid for (like HTTP Cache-Control).
     * If omitted or zero, the longest valid cache time is used.
     * This value is clamped to 5 minutes to avoid unflushable bad responses.
     * 
* * .google.protobuf.Duration max_age = 5; */ public Builder setMaxAge( com.google.protobuf.Duration.Builder builderForValue) { if (maxAgeBuilder_ == null) { maxAge_ = builderForValue.build(); } else { maxAgeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * How long are responses valid for (like HTTP Cache-Control).
     * If omitted or zero, the longest valid cache time is used.
     * This value is clamped to 5 minutes to avoid unflushable bad responses.
     * 
* * .google.protobuf.Duration max_age = 5; */ public Builder mergeMaxAge(com.google.protobuf.Duration value) { if (maxAgeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && maxAge_ != null && maxAge_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxAgeBuilder().mergeFrom(value); } else { maxAge_ = value; } } else { maxAgeBuilder_.mergeFrom(value); } if (maxAge_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     * How long are responses valid for (like HTTP Cache-Control).
     * If omitted or zero, the longest valid cache time is used.
     * This value is clamped to 5 minutes to avoid unflushable bad responses.
     * 
* * .google.protobuf.Duration max_age = 5; */ public Builder clearMaxAge() { bitField0_ = (bitField0_ & ~0x00000010); maxAge_ = null; if (maxAgeBuilder_ != null) { maxAgeBuilder_.dispose(); maxAgeBuilder_ = null; } onChanged(); return this; } /** *
     * How long are responses valid for (like HTTP Cache-Control).
     * If omitted or zero, the longest valid cache time is used.
     * This value is clamped to 5 minutes to avoid unflushable bad responses.
     * 
* * .google.protobuf.Duration max_age = 5; */ public com.google.protobuf.Duration.Builder getMaxAgeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getMaxAgeFieldBuilder().getBuilder(); } /** *
     * How long are responses valid for (like HTTP Cache-Control).
     * If omitted or zero, the longest valid cache time is used.
     * This value is clamped to 5 minutes to avoid unflushable bad responses.
     * 
* * .google.protobuf.Duration max_age = 5; */ public com.google.protobuf.DurationOrBuilder getMaxAgeOrBuilder() { if (maxAgeBuilder_ != null) { return maxAgeBuilder_.getMessageOrBuilder(); } else { return maxAge_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxAge_; } } /** *
     * How long are responses valid for (like HTTP Cache-Control).
     * If omitted or zero, the longest valid cache time is used.
     * This value is clamped to 5 minutes to avoid unflushable bad responses.
     * 
* * .google.protobuf.Duration max_age = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxAgeFieldBuilder() { if (maxAgeBuilder_ == null) { maxAgeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxAge(), getParentForChildren(), isClean()); maxAge_ = null; } return maxAgeBuilder_; } private com.google.protobuf.Duration staleAge_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> staleAgeBuilder_; /** *
     * After a response has been in the client cache for this amount of time
     * and is re-requested, start an asynchronous RPC to re-validate it.
     * This value should be less than max_age by at least the length of a
     * typical RTT to the Route Lookup Service to fully mask the RTT latency.
     * If omitted, keys are only re-requested after they have expired.
     * 
* * .google.protobuf.Duration stale_age = 6; * @return Whether the staleAge field is set. */ public boolean hasStaleAge() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * After a response has been in the client cache for this amount of time
     * and is re-requested, start an asynchronous RPC to re-validate it.
     * This value should be less than max_age by at least the length of a
     * typical RTT to the Route Lookup Service to fully mask the RTT latency.
     * If omitted, keys are only re-requested after they have expired.
     * 
* * .google.protobuf.Duration stale_age = 6; * @return The staleAge. */ public com.google.protobuf.Duration getStaleAge() { if (staleAgeBuilder_ == null) { return staleAge_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staleAge_; } else { return staleAgeBuilder_.getMessage(); } } /** *
     * After a response has been in the client cache for this amount of time
     * and is re-requested, start an asynchronous RPC to re-validate it.
     * This value should be less than max_age by at least the length of a
     * typical RTT to the Route Lookup Service to fully mask the RTT latency.
     * If omitted, keys are only re-requested after they have expired.
     * 
* * .google.protobuf.Duration stale_age = 6; */ public Builder setStaleAge(com.google.protobuf.Duration value) { if (staleAgeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } staleAge_ = value; } else { staleAgeBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * After a response has been in the client cache for this amount of time
     * and is re-requested, start an asynchronous RPC to re-validate it.
     * This value should be less than max_age by at least the length of a
     * typical RTT to the Route Lookup Service to fully mask the RTT latency.
     * If omitted, keys are only re-requested after they have expired.
     * 
* * .google.protobuf.Duration stale_age = 6; */ public Builder setStaleAge( com.google.protobuf.Duration.Builder builderForValue) { if (staleAgeBuilder_ == null) { staleAge_ = builderForValue.build(); } else { staleAgeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * After a response has been in the client cache for this amount of time
     * and is re-requested, start an asynchronous RPC to re-validate it.
     * This value should be less than max_age by at least the length of a
     * typical RTT to the Route Lookup Service to fully mask the RTT latency.
     * If omitted, keys are only re-requested after they have expired.
     * 
* * .google.protobuf.Duration stale_age = 6; */ public Builder mergeStaleAge(com.google.protobuf.Duration value) { if (staleAgeBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && staleAge_ != null && staleAge_ != com.google.protobuf.Duration.getDefaultInstance()) { getStaleAgeBuilder().mergeFrom(value); } else { staleAge_ = value; } } else { staleAgeBuilder_.mergeFrom(value); } if (staleAge_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     * After a response has been in the client cache for this amount of time
     * and is re-requested, start an asynchronous RPC to re-validate it.
     * This value should be less than max_age by at least the length of a
     * typical RTT to the Route Lookup Service to fully mask the RTT latency.
     * If omitted, keys are only re-requested after they have expired.
     * 
* * .google.protobuf.Duration stale_age = 6; */ public Builder clearStaleAge() { bitField0_ = (bitField0_ & ~0x00000020); staleAge_ = null; if (staleAgeBuilder_ != null) { staleAgeBuilder_.dispose(); staleAgeBuilder_ = null; } onChanged(); return this; } /** *
     * After a response has been in the client cache for this amount of time
     * and is re-requested, start an asynchronous RPC to re-validate it.
     * This value should be less than max_age by at least the length of a
     * typical RTT to the Route Lookup Service to fully mask the RTT latency.
     * If omitted, keys are only re-requested after they have expired.
     * 
* * .google.protobuf.Duration stale_age = 6; */ public com.google.protobuf.Duration.Builder getStaleAgeBuilder() { bitField0_ |= 0x00000020; onChanged(); return getStaleAgeFieldBuilder().getBuilder(); } /** *
     * After a response has been in the client cache for this amount of time
     * and is re-requested, start an asynchronous RPC to re-validate it.
     * This value should be less than max_age by at least the length of a
     * typical RTT to the Route Lookup Service to fully mask the RTT latency.
     * If omitted, keys are only re-requested after they have expired.
     * 
* * .google.protobuf.Duration stale_age = 6; */ public com.google.protobuf.DurationOrBuilder getStaleAgeOrBuilder() { if (staleAgeBuilder_ != null) { return staleAgeBuilder_.getMessageOrBuilder(); } else { return staleAge_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staleAge_; } } /** *
     * After a response has been in the client cache for this amount of time
     * and is re-requested, start an asynchronous RPC to re-validate it.
     * This value should be less than max_age by at least the length of a
     * typical RTT to the Route Lookup Service to fully mask the RTT latency.
     * If omitted, keys are only re-requested after they have expired.
     * 
* * .google.protobuf.Duration stale_age = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getStaleAgeFieldBuilder() { if (staleAgeBuilder_ == null) { staleAgeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getStaleAge(), getParentForChildren(), isClean()); staleAge_ = null; } return staleAgeBuilder_; } private long cacheSizeBytes_ ; /** *
     * Rough indicator of amount of memory to use for the client cache.  Some of
     * the data structure overhead is not accounted for, so actual memory consumed
     * will be somewhat greater than this value.  If this field is omitted or set
     * to zero, a client default will be used.  The value may be capped to a lower
     * amount based on client configuration.
     * 
* * int64 cache_size_bytes = 7; * @return The cacheSizeBytes. */ @java.lang.Override public long getCacheSizeBytes() { return cacheSizeBytes_; } /** *
     * Rough indicator of amount of memory to use for the client cache.  Some of
     * the data structure overhead is not accounted for, so actual memory consumed
     * will be somewhat greater than this value.  If this field is omitted or set
     * to zero, a client default will be used.  The value may be capped to a lower
     * amount based on client configuration.
     * 
* * int64 cache_size_bytes = 7; * @param value The cacheSizeBytes to set. * @return This builder for chaining. */ public Builder setCacheSizeBytes(long value) { cacheSizeBytes_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Rough indicator of amount of memory to use for the client cache.  Some of
     * the data structure overhead is not accounted for, so actual memory consumed
     * will be somewhat greater than this value.  If this field is omitted or set
     * to zero, a client default will be used.  The value may be capped to a lower
     * amount based on client configuration.
     * 
* * int64 cache_size_bytes = 7; * @return This builder for chaining. */ public Builder clearCacheSizeBytes() { bitField0_ = (bitField0_ & ~0x00000040); cacheSizeBytes_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList validTargets_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureValidTargetsIsMutable() { if (!validTargets_.isModifiable()) { validTargets_ = new com.google.protobuf.LazyStringArrayList(validTargets_); } bitField0_ |= 0x00000080; } /** *
     * This is a list of all the possible targets that can be returned by the
     * lookup service.  If a target not on this list is returned, it will be
     * treated the same as an unhealthy target.
     * 
* * repeated string valid_targets = 8; * @return A list containing the validTargets. */ public com.google.protobuf.ProtocolStringList getValidTargetsList() { validTargets_.makeImmutable(); return validTargets_; } /** *
     * This is a list of all the possible targets that can be returned by the
     * lookup service.  If a target not on this list is returned, it will be
     * treated the same as an unhealthy target.
     * 
* * repeated string valid_targets = 8; * @return The count of validTargets. */ public int getValidTargetsCount() { return validTargets_.size(); } /** *
     * This is a list of all the possible targets that can be returned by the
     * lookup service.  If a target not on this list is returned, it will be
     * treated the same as an unhealthy target.
     * 
* * repeated string valid_targets = 8; * @param index The index of the element to return. * @return The validTargets at the given index. */ public java.lang.String getValidTargets(int index) { return validTargets_.get(index); } /** *
     * This is a list of all the possible targets that can be returned by the
     * lookup service.  If a target not on this list is returned, it will be
     * treated the same as an unhealthy target.
     * 
* * repeated string valid_targets = 8; * @param index The index of the value to return. * @return The bytes of the validTargets at the given index. */ public com.google.protobuf.ByteString getValidTargetsBytes(int index) { return validTargets_.getByteString(index); } /** *
     * This is a list of all the possible targets that can be returned by the
     * lookup service.  If a target not on this list is returned, it will be
     * treated the same as an unhealthy target.
     * 
* * repeated string valid_targets = 8; * @param index The index to set the value at. * @param value The validTargets to set. * @return This builder for chaining. */ public Builder setValidTargets( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValidTargetsIsMutable(); validTargets_.set(index, value); bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * This is a list of all the possible targets that can be returned by the
     * lookup service.  If a target not on this list is returned, it will be
     * treated the same as an unhealthy target.
     * 
* * repeated string valid_targets = 8; * @param value The validTargets to add. * @return This builder for chaining. */ public Builder addValidTargets( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValidTargetsIsMutable(); validTargets_.add(value); bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * This is a list of all the possible targets that can be returned by the
     * lookup service.  If a target not on this list is returned, it will be
     * treated the same as an unhealthy target.
     * 
* * repeated string valid_targets = 8; * @param values The validTargets to add. * @return This builder for chaining. */ public Builder addAllValidTargets( java.lang.Iterable values) { ensureValidTargetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, validTargets_); bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * This is a list of all the possible targets that can be returned by the
     * lookup service.  If a target not on this list is returned, it will be
     * treated the same as an unhealthy target.
     * 
* * repeated string valid_targets = 8; * @return This builder for chaining. */ public Builder clearValidTargets() { validTargets_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000080);; onChanged(); return this; } /** *
     * This is a list of all the possible targets that can be returned by the
     * lookup service.  If a target not on this list is returned, it will be
     * treated the same as an unhealthy target.
     * 
* * repeated string valid_targets = 8; * @param value The bytes of the validTargets to add. * @return This builder for chaining. */ public Builder addValidTargetsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValidTargetsIsMutable(); validTargets_.add(value); bitField0_ |= 0x00000080; onChanged(); return this; } private java.lang.Object defaultTarget_ = ""; /** *
     * This value provides a default target to use if needed.  If set, it will be
     * used if RLS returns an error, times out, or returns an invalid response.
     * Note that requests can be routed only to a subdomain of the original
     * target, e.g. "us_east_1.cloudbigtable.googleapis.com".
     * 
* * string default_target = 9; * @return The defaultTarget. */ public java.lang.String getDefaultTarget() { java.lang.Object ref = defaultTarget_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultTarget_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * This value provides a default target to use if needed.  If set, it will be
     * used if RLS returns an error, times out, or returns an invalid response.
     * Note that requests can be routed only to a subdomain of the original
     * target, e.g. "us_east_1.cloudbigtable.googleapis.com".
     * 
* * string default_target = 9; * @return The bytes for defaultTarget. */ public com.google.protobuf.ByteString getDefaultTargetBytes() { java.lang.Object ref = defaultTarget_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultTarget_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * This value provides a default target to use if needed.  If set, it will be
     * used if RLS returns an error, times out, or returns an invalid response.
     * Note that requests can be routed only to a subdomain of the original
     * target, e.g. "us_east_1.cloudbigtable.googleapis.com".
     * 
* * string default_target = 9; * @param value The defaultTarget to set. * @return This builder for chaining. */ public Builder setDefaultTarget( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultTarget_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * This value provides a default target to use if needed.  If set, it will be
     * used if RLS returns an error, times out, or returns an invalid response.
     * Note that requests can be routed only to a subdomain of the original
     * target, e.g. "us_east_1.cloudbigtable.googleapis.com".
     * 
* * string default_target = 9; * @return This builder for chaining. */ public Builder clearDefaultTarget() { defaultTarget_ = getDefaultInstance().getDefaultTarget(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** *
     * This value provides a default target to use if needed.  If set, it will be
     * used if RLS returns an error, times out, or returns an invalid response.
     * Note that requests can be routed only to a subdomain of the original
     * target, e.g. "us_east_1.cloudbigtable.googleapis.com".
     * 
* * string default_target = 9; * @param value The bytes for defaultTarget to set. * @return This builder for chaining. */ public Builder setDefaultTargetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultTarget_ = value; bitField0_ |= 0x00000100; 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:grpc.lookup.v1.RouteLookupConfig) } // @@protoc_insertion_point(class_scope:grpc.lookup.v1.RouteLookupConfig) private static final io.grpc.lookup.v1.RouteLookupConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.lookup.v1.RouteLookupConfig(); } public static io.grpc.lookup.v1.RouteLookupConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RouteLookupConfig 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.RouteLookupConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy