Interface ResourceLocator.DirectiveOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ResourceLocator.Directive, ResourceLocator.Directive.Builder
Enclosing class:
ResourceLocator

public static interface ResourceLocator.DirectiveOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    An alternative resource locator for fallback if the resource is unavailable.
    An alternative resource locator for fallback if the resource is unavailable.
     
    List collections support inlining of resources via the entry field in Resource.
    com.google.protobuf.ByteString
    List collections support inlining of resources via the entry field in Resource.
    boolean
    An alternative resource locator for fallback if the resource is unavailable.
    boolean
    List collections support inlining of resources via the entry field in Resource.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasAlt

      boolean hasAlt()
       An alternative resource locator for fallback if the resource is
       unavailable. For example, take the resource locator:
      
       xdstp://foo/some-type/some-route-table#alt=xdstp://bar/some-type/another-route-table
      
       If the data-plane load balancer is unable to reach `foo` to fetch the
       resource, it will fallback to `bar`. Alternative resources do not need
       to have equivalent content, but they should be functional substitutes.
       
      .xds.core.v3.ResourceLocator alt = 1;
      Returns:
      Whether the alt field is set.
    • getAlt

      ResourceLocator getAlt()
       An alternative resource locator for fallback if the resource is
       unavailable. For example, take the resource locator:
      
       xdstp://foo/some-type/some-route-table#alt=xdstp://bar/some-type/another-route-table
      
       If the data-plane load balancer is unable to reach `foo` to fetch the
       resource, it will fallback to `bar`. Alternative resources do not need
       to have equivalent content, but they should be functional substitutes.
       
      .xds.core.v3.ResourceLocator alt = 1;
      Returns:
      The alt.
    • getAltOrBuilder

      ResourceLocatorOrBuilder getAltOrBuilder()
       An alternative resource locator for fallback if the resource is
       unavailable. For example, take the resource locator:
      
       xdstp://foo/some-type/some-route-table#alt=xdstp://bar/some-type/another-route-table
      
       If the data-plane load balancer is unable to reach `foo` to fetch the
       resource, it will fallback to `bar`. Alternative resources do not need
       to have equivalent content, but they should be functional substitutes.
       
      .xds.core.v3.ResourceLocator alt = 1;
    • hasEntry

      boolean hasEntry()
       List collections support inlining of resources via the entry field in
       Resource. These inlined Resource objects may have an optional name
       field specified. When specified, the entry directive allows
       ResourceLocator to directly reference these inlined resources, e.g.
       xdstp://.../foo#entry=bar.
       
      string entry = 2 [(.validate.rules) = { ... }
      Returns:
      Whether the entry field is set.
    • getEntry

      String getEntry()
       List collections support inlining of resources via the entry field in
       Resource. These inlined Resource objects may have an optional name
       field specified. When specified, the entry directive allows
       ResourceLocator to directly reference these inlined resources, e.g.
       xdstp://.../foo#entry=bar.
       
      string entry = 2 [(.validate.rules) = { ... }
      Returns:
      The entry.
    • getEntryBytes

      com.google.protobuf.ByteString getEntryBytes()
       List collections support inlining of resources via the entry field in
       Resource. These inlined Resource objects may have an optional name
       field specified. When specified, the entry directive allows
       ResourceLocator to directly reference these inlined resources, e.g.
       xdstp://.../foo#entry=bar.
       
      string entry = 2 [(.validate.rules) = { ... }
      Returns:
      The bytes for entry.
    • getDirectiveCase