Class DeltaDiscoveryResponse

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DeltaDiscoveryResponseOrBuilder, Serializable

    public final class DeltaDiscoveryResponse
    extends com.google.protobuf.GeneratedMessageV3
    implements DeltaDiscoveryResponseOrBuilder
     [#next-free-field: 7]
     
    Protobuf type envoy.api.v2.DeltaDiscoveryResponse
    See Also:
    Serialized Form
    • Field Detail

      • SYSTEM_VERSION_INFO_FIELD_NUMBER

        public static final int SYSTEM_VERSION_INFO_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REMOVED_RESOURCES_FIELD_NUMBER

        public static final int REMOVED_RESOURCES_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getSystemVersionInfoBytes

        public com.google.protobuf.ByteString getSystemVersionInfoBytes()
         The version of the response data (used for debugging).
         
        string system_version_info = 1;
        Specified by:
        getSystemVersionInfoBytes in interface DeltaDiscoveryResponseOrBuilder
        Returns:
        The bytes for systemVersionInfo.
      • getResourcesCount

        public int getResourcesCount()
         The response resources. These are typed resources, whose types must match
         the type_url field.
         
        repeated .envoy.api.v2.Resource resources = 2;
        Specified by:
        getResourcesCount in interface DeltaDiscoveryResponseOrBuilder
      • getResources

        public Resource getResources​(int index)
         The response resources. These are typed resources, whose types must match
         the type_url field.
         
        repeated .envoy.api.v2.Resource resources = 2;
        Specified by:
        getResources in interface DeltaDiscoveryResponseOrBuilder
      • getTypeUrl

        public String getTypeUrl()
         Type URL for resources. Identifies the xDS API when muxing over ADS.
         Must be consistent with the type_url in the Any within 'resources' if 'resources' is non-empty.
         
        string type_url = 4;
        Specified by:
        getTypeUrl in interface DeltaDiscoveryResponseOrBuilder
        Returns:
        The typeUrl.
      • getTypeUrlBytes

        public com.google.protobuf.ByteString getTypeUrlBytes()
         Type URL for resources. Identifies the xDS API when muxing over ADS.
         Must be consistent with the type_url in the Any within 'resources' if 'resources' is non-empty.
         
        string type_url = 4;
        Specified by:
        getTypeUrlBytes in interface DeltaDiscoveryResponseOrBuilder
        Returns:
        The bytes for typeUrl.
      • getRemovedResourcesList

        public com.google.protobuf.ProtocolStringList getRemovedResourcesList()
         Resources names of resources that have be deleted and to be removed from the xDS Client.
         Removed resources for missing resources can be ignored.
         
        repeated string removed_resources = 6;
        Specified by:
        getRemovedResourcesList in interface DeltaDiscoveryResponseOrBuilder
        Returns:
        A list containing the removedResources.
      • getRemovedResourcesCount

        public int getRemovedResourcesCount()
         Resources names of resources that have be deleted and to be removed from the xDS Client.
         Removed resources for missing resources can be ignored.
         
        repeated string removed_resources = 6;
        Specified by:
        getRemovedResourcesCount in interface DeltaDiscoveryResponseOrBuilder
        Returns:
        The count of removedResources.
      • getRemovedResources

        public String getRemovedResources​(int index)
         Resources names of resources that have be deleted and to be removed from the xDS Client.
         Removed resources for missing resources can be ignored.
         
        repeated string removed_resources = 6;
        Specified by:
        getRemovedResources in interface DeltaDiscoveryResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The removedResources at the given index.
      • getRemovedResourcesBytes

        public com.google.protobuf.ByteString getRemovedResourcesBytes​(int index)
         Resources names of resources that have be deleted and to be removed from the xDS Client.
         Removed resources for missing resources can be ignored.
         
        repeated string removed_resources = 6;
        Specified by:
        getRemovedResourcesBytes in interface DeltaDiscoveryResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the removedResources at the given index.
      • getNonce

        public String getNonce()
         The nonce provides a way for DeltaDiscoveryRequests to uniquely
         reference a DeltaDiscoveryResponse when (N)ACKing. The nonce is required.
         
        string nonce = 5;
        Specified by:
        getNonce in interface DeltaDiscoveryResponseOrBuilder
        Returns:
        The nonce.
      • getNonceBytes

        public com.google.protobuf.ByteString getNonceBytes()
         The nonce provides a way for DeltaDiscoveryRequests to uniquely
         reference a DeltaDiscoveryResponse when (N)ACKing. The nonce is required.
         
        string nonce = 5;
        Specified by:
        getNonceBytes in interface DeltaDiscoveryResponseOrBuilder
        Returns:
        The bytes for nonce.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static DeltaDiscoveryResponse parseFrom​(ByteBuffer data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DeltaDiscoveryResponse parseFrom​(ByteBuffer data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DeltaDiscoveryResponse parseFrom​(com.google.protobuf.ByteString data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DeltaDiscoveryResponse parseFrom​(com.google.protobuf.ByteString data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DeltaDiscoveryResponse parseFrom​(byte[] data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DeltaDiscoveryResponse parseFrom​(byte[] data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public DeltaDiscoveryResponse.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public DeltaDiscoveryResponse.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected DeltaDiscoveryResponse.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<DeltaDiscoveryResponse> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public DeltaDiscoveryResponse getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder