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

shade.polaris.io.grpc.lookup.v1.NameMatcher 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;

/**
 * 
 * Extract a key based on a given name (e.g. header name or query parameter
 * name).  The name must match one of the names listed in the "name" field.  If
 * the "required_match" field is true, one of the specified names must be
 * present for the keybuilder to match.
 * 
* * Protobuf type {@code grpc.lookup.v1.NameMatcher} */ public final class NameMatcher extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.lookup.v1.NameMatcher) NameMatcherOrBuilder { private static final long serialVersionUID = 0L; // Use NameMatcher.newBuilder() to construct. private NameMatcher(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NameMatcher() { key_ = ""; names_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NameMatcher(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_NameMatcher_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_NameMatcher_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.lookup.v1.NameMatcher.class, io.grpc.lookup.v1.NameMatcher.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** *
   * The name that will be used in the RLS key_map to refer to this value.
   * If required_match is true, you may omit this field or set it to an empty
   * string, in which case the matcher will require a match, but won't update
   * the key_map.
   * 
* * string key = 1; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** *
   * The name that will be used in the RLS key_map to refer to this value.
   * If required_match is true, you may omit this field or set it to an empty
   * string, in which case the matcher will require a match, but won't update
   * the key_map.
   * 
* * string key = 1; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList names_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Ordered list of names (headers or query parameter names) that can supply
   * this value; the first one with a non-empty value is used.
   * 
* * repeated string names = 2; * @return A list containing the names. */ public com.google.protobuf.ProtocolStringList getNamesList() { return names_; } /** *
   * Ordered list of names (headers or query parameter names) that can supply
   * this value; the first one with a non-empty value is used.
   * 
* * repeated string names = 2; * @return The count of names. */ public int getNamesCount() { return names_.size(); } /** *
   * Ordered list of names (headers or query parameter names) that can supply
   * this value; the first one with a non-empty value is used.
   * 
* * repeated string names = 2; * @param index The index of the element to return. * @return The names at the given index. */ public java.lang.String getNames(int index) { return names_.get(index); } /** *
   * Ordered list of names (headers or query parameter names) that can supply
   * this value; the first one with a non-empty value is used.
   * 
* * repeated string names = 2; * @param index The index of the value to return. * @return The bytes of the names at the given index. */ public com.google.protobuf.ByteString getNamesBytes(int index) { return names_.getByteString(index); } public static final int REQUIRED_MATCH_FIELD_NUMBER = 3; private boolean requiredMatch_ = false; /** *
   * If true, make this extraction required; the key builder will not match
   * if no value is found.
   * 
* * bool required_match = 3; * @return The requiredMatch. */ @java.lang.Override public boolean getRequiredMatch() { return requiredMatch_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } for (int i = 0; i < names_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i)); } if (requiredMatch_ != false) { output.writeBool(3, requiredMatch_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } { int dataSize = 0; for (int i = 0; i < names_.size(); i++) { dataSize += computeStringSizeNoTag(names_.getRaw(i)); } size += dataSize; size += 1 * getNamesList().size(); } if (requiredMatch_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, requiredMatch_); } 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.NameMatcher)) { return super.equals(obj); } io.grpc.lookup.v1.NameMatcher other = (io.grpc.lookup.v1.NameMatcher) obj; if (!getKey() .equals(other.getKey())) return false; if (!getNamesList() .equals(other.getNamesList())) return false; if (getRequiredMatch() != other.getRequiredMatch()) 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(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); if (getNamesCount() > 0) { hash = (37 * hash) + NAMES_FIELD_NUMBER; hash = (53 * hash) + getNamesList().hashCode(); } hash = (37 * hash) + REQUIRED_MATCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRequiredMatch()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.lookup.v1.NameMatcher parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lookup.v1.NameMatcher 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.NameMatcher parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lookup.v1.NameMatcher 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.NameMatcher parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lookup.v1.NameMatcher parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.lookup.v1.NameMatcher parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.lookup.v1.NameMatcher 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.NameMatcher parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.lookup.v1.NameMatcher 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.NameMatcher parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.lookup.v1.NameMatcher 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.NameMatcher 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; } /** *
   * Extract a key based on a given name (e.g. header name or query parameter
   * name).  The name must match one of the names listed in the "name" field.  If
   * the "required_match" field is true, one of the specified names must be
   * present for the keybuilder to match.
   * 
* * Protobuf type {@code grpc.lookup.v1.NameMatcher} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.lookup.v1.NameMatcher) io.grpc.lookup.v1.NameMatcherOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_NameMatcher_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_NameMatcher_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.lookup.v1.NameMatcher.class, io.grpc.lookup.v1.NameMatcher.Builder.class); } // Construct using io.grpc.lookup.v1.NameMatcher.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; names_ = com.google.protobuf.LazyStringArrayList.emptyList(); requiredMatch_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.lookup.v1.RlsConfigProto.internal_static_grpc_lookup_v1_NameMatcher_descriptor; } @java.lang.Override public io.grpc.lookup.v1.NameMatcher getDefaultInstanceForType() { return io.grpc.lookup.v1.NameMatcher.getDefaultInstance(); } @java.lang.Override public io.grpc.lookup.v1.NameMatcher build() { io.grpc.lookup.v1.NameMatcher result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.lookup.v1.NameMatcher buildPartial() { io.grpc.lookup.v1.NameMatcher result = new io.grpc.lookup.v1.NameMatcher(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grpc.lookup.v1.NameMatcher result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } if (((from_bitField0_ & 0x00000002) != 0)) { names_.makeImmutable(); result.names_ = names_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.requiredMatch_ = requiredMatch_; } } @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.NameMatcher) { return mergeFrom((io.grpc.lookup.v1.NameMatcher)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.lookup.v1.NameMatcher other) { if (other == io.grpc.lookup.v1.NameMatcher.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; onChanged(); } if (!other.names_.isEmpty()) { if (names_.isEmpty()) { names_ = other.names_; bitField0_ |= 0x00000002; } else { ensureNamesIsMutable(); names_.addAll(other.names_); } onChanged(); } if (other.getRequiredMatch() != false) { setRequiredMatch(other.getRequiredMatch()); } 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: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureNamesIsMutable(); names_.add(s); break; } // case 18 case 24: { requiredMatch_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 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.lang.Object key_ = ""; /** *
     * The name that will be used in the RLS key_map to refer to this value.
     * If required_match is true, you may omit this field or set it to an empty
     * string, in which case the matcher will require a match, but won't update
     * the key_map.
     * 
* * string key = 1; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name that will be used in the RLS key_map to refer to this value.
     * If required_match is true, you may omit this field or set it to an empty
     * string, in which case the matcher will require a match, but won't update
     * the key_map.
     * 
* * string key = 1; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name that will be used in the RLS key_map to refer to this value.
     * If required_match is true, you may omit this field or set it to an empty
     * string, in which case the matcher will require a match, but won't update
     * the key_map.
     * 
* * string key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The name that will be used in the RLS key_map to refer to this value.
     * If required_match is true, you may omit this field or set it to an empty
     * string, in which case the matcher will require a match, but won't update
     * the key_map.
     * 
* * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The name that will be used in the RLS key_map to refer to this value.
     * If required_match is true, you may omit this field or set it to an empty
     * string, in which case the matcher will require a match, but won't update
     * the key_map.
     * 
* * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList names_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureNamesIsMutable() { if (!names_.isModifiable()) { names_ = new com.google.protobuf.LazyStringArrayList(names_); } bitField0_ |= 0x00000002; } /** *
     * Ordered list of names (headers or query parameter names) that can supply
     * this value; the first one with a non-empty value is used.
     * 
* * repeated string names = 2; * @return A list containing the names. */ public com.google.protobuf.ProtocolStringList getNamesList() { names_.makeImmutable(); return names_; } /** *
     * Ordered list of names (headers or query parameter names) that can supply
     * this value; the first one with a non-empty value is used.
     * 
* * repeated string names = 2; * @return The count of names. */ public int getNamesCount() { return names_.size(); } /** *
     * Ordered list of names (headers or query parameter names) that can supply
     * this value; the first one with a non-empty value is used.
     * 
* * repeated string names = 2; * @param index The index of the element to return. * @return The names at the given index. */ public java.lang.String getNames(int index) { return names_.get(index); } /** *
     * Ordered list of names (headers or query parameter names) that can supply
     * this value; the first one with a non-empty value is used.
     * 
* * repeated string names = 2; * @param index The index of the value to return. * @return The bytes of the names at the given index. */ public com.google.protobuf.ByteString getNamesBytes(int index) { return names_.getByteString(index); } /** *
     * Ordered list of names (headers or query parameter names) that can supply
     * this value; the first one with a non-empty value is used.
     * 
* * repeated string names = 2; * @param index The index to set the value at. * @param value The names to set. * @return This builder for chaining. */ public Builder setNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNamesIsMutable(); names_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Ordered list of names (headers or query parameter names) that can supply
     * this value; the first one with a non-empty value is used.
     * 
* * repeated string names = 2; * @param value The names to add. * @return This builder for chaining. */ public Builder addNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNamesIsMutable(); names_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Ordered list of names (headers or query parameter names) that can supply
     * this value; the first one with a non-empty value is used.
     * 
* * repeated string names = 2; * @param values The names to add. * @return This builder for chaining. */ public Builder addAllNames( java.lang.Iterable values) { ensureNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, names_); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Ordered list of names (headers or query parameter names) that can supply
     * this value; the first one with a non-empty value is used.
     * 
* * repeated string names = 2; * @return This builder for chaining. */ public Builder clearNames() { names_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** *
     * Ordered list of names (headers or query parameter names) that can supply
     * this value; the first one with a non-empty value is used.
     * 
* * repeated string names = 2; * @param value The bytes of the names to add. * @return This builder for chaining. */ public Builder addNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureNamesIsMutable(); names_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private boolean requiredMatch_ ; /** *
     * If true, make this extraction required; the key builder will not match
     * if no value is found.
     * 
* * bool required_match = 3; * @return The requiredMatch. */ @java.lang.Override public boolean getRequiredMatch() { return requiredMatch_; } /** *
     * If true, make this extraction required; the key builder will not match
     * if no value is found.
     * 
* * bool required_match = 3; * @param value The requiredMatch to set. * @return This builder for chaining. */ public Builder setRequiredMatch(boolean value) { requiredMatch_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * If true, make this extraction required; the key builder will not match
     * if no value is found.
     * 
* * bool required_match = 3; * @return This builder for chaining. */ public Builder clearRequiredMatch() { bitField0_ = (bitField0_ & ~0x00000004); requiredMatch_ = false; 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.NameMatcher) } // @@protoc_insertion_point(class_scope:grpc.lookup.v1.NameMatcher) private static final io.grpc.lookup.v1.NameMatcher DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.lookup.v1.NameMatcher(); } public static io.grpc.lookup.v1.NameMatcher getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NameMatcher 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.NameMatcher getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy