Class CollectionEntry.Builder

  • All Implemented Interfaces:
    CollectionEntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    CollectionEntry

    public static final class CollectionEntry.Builder
    extends com.google.protobuf.GeneratedMessage.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
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

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

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
      • buildPartialOneofs

        private void buildPartialOneofs​(CollectionEntry result)
      • 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>
      • isInitialized

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

        public CollectionEntry.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws java.io.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:
        java.io.IOException
      • 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;
      • 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;
      • 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.
      • 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;