Class CollectionEntry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.Builder>
com.github.xds.core.v3.CollectionEntry.Builder
All Implemented Interfaces:
CollectionEntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CollectionEntry

public static final class CollectionEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.Builder> implements CollectionEntryOrBuilder
 xDS collection resource wrapper. This encapsulates a xDS resource when
 appearing inside a list collection resource. List collection resources are
 regular Resource messages of type:

 .. code-block:: proto

   message <T>Collection {
     repeated CollectionEntry resources = 1;
   }
 
Protobuf type xds.core.v3.CollectionEntry
  • Method Details

    • getDescriptor

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

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

      public CollectionEntry.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.GeneratedMessageV3.Builder<CollectionEntry.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.GeneratedMessageV3.Builder<CollectionEntry.Builder>
    • getDefaultInstanceForType

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

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

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

      public CollectionEntry.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.Builder>
    • setField

      public CollectionEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.Builder>
    • clearField

      public CollectionEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.Builder>
    • clearOneof

      public CollectionEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.Builder>
    • setRepeatedField

      public CollectionEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.Builder>
    • addRepeatedField

      public CollectionEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.Builder>
    • mergeFrom

      public CollectionEntry.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<CollectionEntry.Builder>
    • mergeFrom

      public CollectionEntry.Builder mergeFrom(CollectionEntry other)
    • isInitialized

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

      public CollectionEntry.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<CollectionEntry.Builder>
      Throws:
      IOException
    • getResourceSpecifierCase

      public CollectionEntry.ResourceSpecifierCase getResourceSpecifierCase()
      Specified by:
      getResourceSpecifierCase in interface CollectionEntryOrBuilder
    • clearResourceSpecifier

      public CollectionEntry.Builder clearResourceSpecifier()
    • hasLocator

      public boolean hasLocator()
       A resource locator describing how the member resource is to be located.
       
      .xds.core.v3.ResourceLocator locator = 1;
      Specified by:
      hasLocator in interface CollectionEntryOrBuilder
      Returns:
      Whether the locator field is set.
    • getLocator

      public ResourceLocator getLocator()
       A resource locator describing how the member resource is to be located.
       
      .xds.core.v3.ResourceLocator locator = 1;
      Specified by:
      getLocator in interface CollectionEntryOrBuilder
      Returns:
      The locator.
    • setLocator

      public CollectionEntry.Builder setLocator(ResourceLocator value)
       A resource locator describing how the member resource is to be located.
       
      .xds.core.v3.ResourceLocator locator = 1;
    • setLocator

      public CollectionEntry.Builder setLocator(ResourceLocator.Builder builderForValue)
       A resource locator describing how the member resource is to be located.
       
      .xds.core.v3.ResourceLocator locator = 1;
    • mergeLocator

      public CollectionEntry.Builder mergeLocator(ResourceLocator value)
       A resource locator describing how the member resource is to be located.
       
      .xds.core.v3.ResourceLocator locator = 1;
    • clearLocator

      public CollectionEntry.Builder clearLocator()
       A resource locator describing how the member resource is to be located.
       
      .xds.core.v3.ResourceLocator locator = 1;
    • getLocatorBuilder

      public ResourceLocator.Builder getLocatorBuilder()
       A resource locator describing how the member resource is to be located.
       
      .xds.core.v3.ResourceLocator locator = 1;
    • getLocatorOrBuilder

      public ResourceLocatorOrBuilder getLocatorOrBuilder()
       A resource locator describing how the member resource is to be located.
       
      .xds.core.v3.ResourceLocator locator = 1;
      Specified by:
      getLocatorOrBuilder in interface CollectionEntryOrBuilder
    • hasInlineEntry

      public boolean hasInlineEntry()
       The resource is inlined in the list collection.
       
      .xds.core.v3.CollectionEntry.InlineEntry inline_entry = 2;
      Specified by:
      hasInlineEntry in interface CollectionEntryOrBuilder
      Returns:
      Whether the inlineEntry field is set.
    • getInlineEntry

      public CollectionEntry.InlineEntry getInlineEntry()
       The resource is inlined in the list collection.
       
      .xds.core.v3.CollectionEntry.InlineEntry inline_entry = 2;
      Specified by:
      getInlineEntry in interface CollectionEntryOrBuilder
      Returns:
      The inlineEntry.
    • setInlineEntry

       The resource is inlined in the list collection.
       
      .xds.core.v3.CollectionEntry.InlineEntry inline_entry = 2;
    • setInlineEntry

      public CollectionEntry.Builder setInlineEntry(CollectionEntry.InlineEntry.Builder builderForValue)
       The resource is inlined in the list collection.
       
      .xds.core.v3.CollectionEntry.InlineEntry inline_entry = 2;
    • mergeInlineEntry

      public CollectionEntry.Builder mergeInlineEntry(CollectionEntry.InlineEntry value)
       The resource is inlined in the list collection.
       
      .xds.core.v3.CollectionEntry.InlineEntry inline_entry = 2;
    • clearInlineEntry

      public CollectionEntry.Builder clearInlineEntry()
       The resource is inlined in the list collection.
       
      .xds.core.v3.CollectionEntry.InlineEntry inline_entry = 2;
    • getInlineEntryBuilder

      public CollectionEntry.InlineEntry.Builder getInlineEntryBuilder()
       The resource is inlined in the list collection.
       
      .xds.core.v3.CollectionEntry.InlineEntry inline_entry = 2;
    • getInlineEntryOrBuilder

      public CollectionEntry.InlineEntryOrBuilder getInlineEntryOrBuilder()
       The resource is inlined in the list collection.
       
      .xds.core.v3.CollectionEntry.InlineEntry inline_entry = 2;
      Specified by:
      getInlineEntryOrBuilder in interface CollectionEntryOrBuilder
    • setUnknownFields

      public final CollectionEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.Builder>
    • mergeUnknownFields

      public final CollectionEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.Builder>