Class ResourceLocator.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ResourceLocator.Builder>
com.google.protobuf.GeneratedMessage.Builder<ResourceLocator.Builder>
io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ResourceLocatorOrBuilder, Cloneable
Enclosing class:
ResourceLocator

public static final class ResourceLocator.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResourceLocator.Builder> implements ResourceLocatorOrBuilder
 Specifies a resource to be subscribed to.
 
Protobuf type envoy.service.discovery.v3.ResourceLocator
  • Field Details

    • bitField0_

      private int bitField0_
    • name_

      private Object name_
    • dynamicParameters_

      private com.google.protobuf.MapField<String,String> dynamicParameters_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ResourceLocator.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ResourceLocator.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ResourceLocator.Builder>
    • clear

      public ResourceLocator.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ResourceLocator.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ResourceLocator.Builder>
    • getDefaultInstanceForType

      public ResourceLocator getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ResourceLocator build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ResourceLocator buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartial0

      private void buildPartial0(ResourceLocator result)
    • mergeFrom

      public ResourceLocator.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceLocator.Builder>
    • mergeFrom

      public ResourceLocator.Builder mergeFrom(ResourceLocator other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ResourceLocator.Builder>
    • mergeFrom

      public ResourceLocator.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceLocator.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The resource name to subscribe to.
       
      string name = 1;
      Specified by:
      getName in interface ResourceLocatorOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name to subscribe to.
       
      string name = 1;
      Specified by:
      getNameBytes in interface ResourceLocatorOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ResourceLocator.Builder setName(String value)
       The resource name to subscribe to.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ResourceLocator.Builder clearName()
       The resource name to subscribe to.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ResourceLocator.Builder setNameBytes(com.google.protobuf.ByteString value)
       The resource name to subscribe to.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • internalGetDynamicParameters

      private com.google.protobuf.MapField<String,String> internalGetDynamicParameters()
    • internalGetMutableDynamicParameters

      private com.google.protobuf.MapField<String,String> internalGetMutableDynamicParameters()
    • getDynamicParametersCount

      public int getDynamicParametersCount()
      Description copied from interface: ResourceLocatorOrBuilder
       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;
      Specified by:
      getDynamicParametersCount in interface ResourceLocatorOrBuilder
    • containsDynamicParameters

      public boolean containsDynamicParameters(String key)
       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;
      Specified by:
      containsDynamicParameters in interface ResourceLocatorOrBuilder
    • getDynamicParameters

      @Deprecated public Map<String,String> getDynamicParameters()
      Deprecated.
      Specified by:
      getDynamicParameters in interface ResourceLocatorOrBuilder
    • getDynamicParametersMap

      public Map<String,String> 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;
      Specified by:
      getDynamicParametersMap in interface ResourceLocatorOrBuilder
    • getDynamicParametersOrDefault

      public String getDynamicParametersOrDefault(String key, String 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;
      Specified by:
      getDynamicParametersOrDefault in interface ResourceLocatorOrBuilder
    • getDynamicParametersOrThrow

      public String getDynamicParametersOrThrow(String key)
       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;
      Specified by:
      getDynamicParametersOrThrow in interface ResourceLocatorOrBuilder
    • clearDynamicParameters

      public ResourceLocator.Builder clearDynamicParameters()
    • removeDynamicParameters

      public ResourceLocator.Builder removeDynamicParameters(String key)
       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;
    • getMutableDynamicParameters

      @Deprecated public Map<String,String> getMutableDynamicParameters()
      Deprecated.
      Use alternate mutation accessors instead.
    • putDynamicParameters

      public ResourceLocator.Builder putDynamicParameters(String key, String value)
       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;
    • putAllDynamicParameters

      public ResourceLocator.Builder putAllDynamicParameters(Map<String,String> values)
       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;