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

io.envoyproxy.envoy.service.discovery.v3.ResourceLocator Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/service/discovery/v3/discovery.proto

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

/**
 * 
 * Specifies a resource to be subscribed to.
 * 
* * Protobuf type {@code envoy.service.discovery.v3.ResourceLocator} */ public final class ResourceLocator extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.discovery.v3.ResourceLocator) ResourceLocatorOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceLocator.newBuilder() to construct. private ResourceLocator(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceLocator() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResourceLocator(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceLocator( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { dynamicParameters_ = com.google.protobuf.MapField.newMapField( DynamicParametersDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry dynamicParameters__ = input.readMessage( DynamicParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); dynamicParameters_.getMutableMap().put( dynamicParameters__.getKey(), dynamicParameters__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_ResourceLocator_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetDynamicParameters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_ResourceLocator_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.class, io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
   * The resource name to subscribe to.
   * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
   * The resource name to subscribe to.
   * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DYNAMIC_PARAMETERS_FIELD_NUMBER = 2; private static final class DynamicParametersDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_ResourceLocator_DynamicParametersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> dynamicParameters_; private com.google.protobuf.MapField internalGetDynamicParameters() { if (dynamicParameters_ == null) { return com.google.protobuf.MapField.emptyMapField( DynamicParametersDefaultEntryHolder.defaultEntry); } return dynamicParameters_; } public int getDynamicParametersCount() { return internalGetDynamicParameters().getMap().size(); } /** *
   * A set of dynamic parameters used to match against the dynamic parameter
   * constraints on the resource. This allows clients to select between
   * multiple variants of the same resource.
   * 
* * map<string, string> dynamic_parameters = 2; */ @java.lang.Override public boolean containsDynamicParameters( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetDynamicParameters().getMap().containsKey(key); } /** * Use {@link #getDynamicParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDynamicParameters() { return getDynamicParametersMap(); } /** *
   * A set of dynamic parameters used to match against the dynamic parameter
   * constraints on the resource. This allows clients to select between
   * multiple variants of the same resource.
   * 
* * map<string, string> dynamic_parameters = 2; */ @java.lang.Override public java.util.Map getDynamicParametersMap() { return internalGetDynamicParameters().getMap(); } /** *
   * A set of dynamic parameters used to match against the dynamic parameter
   * constraints on the resource. This allows clients to select between
   * multiple variants of the same resource.
   * 
* * map<string, string> dynamic_parameters = 2; */ @java.lang.Override public java.lang.String getDynamicParametersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDynamicParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * A set of dynamic parameters used to match against the dynamic parameter
   * constraints on the resource. This allows clients to select between
   * multiple variants of the same resource.
   * 
* * map<string, string> dynamic_parameters = 2; */ @java.lang.Override public java.lang.String getDynamicParametersOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDynamicParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetDynamicParameters(), DynamicParametersDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (java.util.Map.Entry entry : internalGetDynamicParameters().getMap().entrySet()) { com.google.protobuf.MapEntry dynamicParameters__ = DynamicParametersDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, dynamicParameters__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.discovery.v3.ResourceLocator)) { return super.equals(obj); } io.envoyproxy.envoy.service.discovery.v3.ResourceLocator other = (io.envoyproxy.envoy.service.discovery.v3.ResourceLocator) obj; if (!getName() .equals(other.getName())) return false; if (!internalGetDynamicParameters().equals( other.internalGetDynamicParameters())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (!internalGetDynamicParameters().getMap().isEmpty()) { hash = (37 * hash) + DYNAMIC_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + internalGetDynamicParameters().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.service.discovery.v3.ResourceLocator 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; } /** *
   * Specifies a resource to be subscribed to.
   * 
* * Protobuf type {@code envoy.service.discovery.v3.ResourceLocator} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.discovery.v3.ResourceLocator) io.envoyproxy.envoy.service.discovery.v3.ResourceLocatorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_ResourceLocator_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetDynamicParameters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableDynamicParameters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_ResourceLocator_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.class, io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.Builder.class); } // Construct using io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; internalGetMutableDynamicParameters().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_ResourceLocator_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.ResourceLocator getDefaultInstanceForType() { return io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.ResourceLocator build() { io.envoyproxy.envoy.service.discovery.v3.ResourceLocator result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.ResourceLocator buildPartial() { io.envoyproxy.envoy.service.discovery.v3.ResourceLocator result = new io.envoyproxy.envoy.service.discovery.v3.ResourceLocator(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.dynamicParameters_ = internalGetDynamicParameters(); result.dynamicParameters_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.service.discovery.v3.ResourceLocator) { return mergeFrom((io.envoyproxy.envoy.service.discovery.v3.ResourceLocator)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.discovery.v3.ResourceLocator other) { if (other == io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } internalGetMutableDynamicParameters().mergeFrom( other.internalGetDynamicParameters()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.service.discovery.v3.ResourceLocator parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.discovery.v3.ResourceLocator) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
     * The resource name to subscribe to.
     * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The resource name to subscribe to.
     * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The resource name to subscribe to.
     * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * The resource name to subscribe to.
     * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * The resource name to subscribe to.
     * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> dynamicParameters_; private com.google.protobuf.MapField internalGetDynamicParameters() { if (dynamicParameters_ == null) { return com.google.protobuf.MapField.emptyMapField( DynamicParametersDefaultEntryHolder.defaultEntry); } return dynamicParameters_; } private com.google.protobuf.MapField internalGetMutableDynamicParameters() { onChanged();; if (dynamicParameters_ == null) { dynamicParameters_ = com.google.protobuf.MapField.newMapField( DynamicParametersDefaultEntryHolder.defaultEntry); } if (!dynamicParameters_.isMutable()) { dynamicParameters_ = dynamicParameters_.copy(); } return dynamicParameters_; } public int getDynamicParametersCount() { return internalGetDynamicParameters().getMap().size(); } /** *
     * A set of dynamic parameters used to match against the dynamic parameter
     * constraints on the resource. This allows clients to select between
     * multiple variants of the same resource.
     * 
* * map<string, string> dynamic_parameters = 2; */ @java.lang.Override public boolean containsDynamicParameters( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetDynamicParameters().getMap().containsKey(key); } /** * Use {@link #getDynamicParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDynamicParameters() { return getDynamicParametersMap(); } /** *
     * A set of dynamic parameters used to match against the dynamic parameter
     * constraints on the resource. This allows clients to select between
     * multiple variants of the same resource.
     * 
* * map<string, string> dynamic_parameters = 2; */ @java.lang.Override public java.util.Map getDynamicParametersMap() { return internalGetDynamicParameters().getMap(); } /** *
     * A set of dynamic parameters used to match against the dynamic parameter
     * constraints on the resource. This allows clients to select between
     * multiple variants of the same resource.
     * 
* * map<string, string> dynamic_parameters = 2; */ @java.lang.Override public java.lang.String getDynamicParametersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDynamicParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * A set of dynamic parameters used to match against the dynamic parameter
     * constraints on the resource. This allows clients to select between
     * multiple variants of the same resource.
     * 
* * map<string, string> dynamic_parameters = 2; */ @java.lang.Override public java.lang.String getDynamicParametersOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDynamicParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearDynamicParameters() { internalGetMutableDynamicParameters().getMutableMap() .clear(); return this; } /** *
     * A set of dynamic parameters used to match against the dynamic parameter
     * constraints on the resource. This allows clients to select between
     * multiple variants of the same resource.
     * 
* * map<string, string> dynamic_parameters = 2; */ public Builder removeDynamicParameters( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableDynamicParameters().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableDynamicParameters() { return internalGetMutableDynamicParameters().getMutableMap(); } /** *
     * A set of dynamic parameters used to match against the dynamic parameter
     * constraints on the resource. This allows clients to select between
     * multiple variants of the same resource.
     * 
* * map<string, string> dynamic_parameters = 2; */ public Builder putDynamicParameters( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableDynamicParameters().getMutableMap() .put(key, value); return this; } /** *
     * A set of dynamic parameters used to match against the dynamic parameter
     * constraints on the resource. This allows clients to select between
     * multiple variants of the same resource.
     * 
* * map<string, string> dynamic_parameters = 2; */ public Builder putAllDynamicParameters( java.util.Map values) { internalGetMutableDynamicParameters().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.service.discovery.v3.ResourceLocator) } // @@protoc_insertion_point(class_scope:envoy.service.discovery.v3.ResourceLocator) private static final io.envoyproxy.envoy.service.discovery.v3.ResourceLocator DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.discovery.v3.ResourceLocator(); } public static io.envoyproxy.envoy.service.discovery.v3.ResourceLocator getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceLocator parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceLocator(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.ResourceLocator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy