All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/service/discovery/v3/discovery.proto

package io.envoyproxy.envoy.service.discovery.v3;

/**
 * 
 * [#next-free-field: 9]
 * 
* * Protobuf type {@code envoy.service.discovery.v3.DeltaDiscoveryResponse} */ public final class DeltaDiscoveryResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.discovery.v3.DeltaDiscoveryResponse) DeltaDiscoveryResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DeltaDiscoveryResponse.newBuilder() to construct. private DeltaDiscoveryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeltaDiscoveryResponse() { systemVersionInfo_ = ""; resources_ = java.util.Collections.emptyList(); typeUrl_ = ""; removedResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; removedResourceNames_ = java.util.Collections.emptyList(); nonce_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeltaDiscoveryResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeltaDiscoveryResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); systemVersionInfo_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } resources_.add( input.readMessage(io.envoyproxy.envoy.service.discovery.v3.Resource.parser(), extensionRegistry)); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); typeUrl_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); nonce_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { removedResources_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } removedResources_.add(s); break; } case 58: { io.envoyproxy.envoy.config.core.v3.ControlPlane.Builder subBuilder = null; if (controlPlane_ != null) { subBuilder = controlPlane_.toBuilder(); } controlPlane_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.ControlPlane.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(controlPlane_); controlPlane_ = subBuilder.buildPartial(); } break; } case 66: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { removedResourceNames_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } removedResourceNames_.add( input.readMessage(io.envoyproxy.envoy.service.discovery.v3.ResourceName.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { removedResources_ = removedResources_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) != 0)) { removedResourceNames_ = java.util.Collections.unmodifiableList(removedResourceNames_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DeltaDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DeltaDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse.class, io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse.Builder.class); } public static final int SYSTEM_VERSION_INFO_FIELD_NUMBER = 1; private volatile java.lang.Object systemVersionInfo_; /** *
   * The version of the response data (used for debugging).
   * 
* * string system_version_info = 1; * @return The systemVersionInfo. */ @java.lang.Override public java.lang.String getSystemVersionInfo() { java.lang.Object ref = systemVersionInfo_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); systemVersionInfo_ = s; return s; } } /** *
   * The version of the response data (used for debugging).
   * 
* * string system_version_info = 1; * @return The bytes for systemVersionInfo. */ @java.lang.Override public com.google.protobuf.ByteString getSystemVersionInfoBytes() { java.lang.Object ref = systemVersionInfo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); systemVersionInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCES_FIELD_NUMBER = 2; private java.util.List resources_; /** *
   * The response resources. These are typed resources, whose types must match
   * the type_url field.
   * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ @java.lang.Override public java.util.List getResourcesList() { return resources_; } /** *
   * The response resources. These are typed resources, whose types must match
   * the type_url field.
   * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ @java.lang.Override public java.util.List getResourcesOrBuilderList() { return resources_; } /** *
   * The response resources. These are typed resources, whose types must match
   * the type_url field.
   * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ @java.lang.Override public int getResourcesCount() { return resources_.size(); } /** *
   * The response resources. These are typed resources, whose types must match
   * the type_url field.
   * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.Resource getResources(int index) { return resources_.get(index); } /** *
   * The response resources. These are typed resources, whose types must match
   * the type_url field.
   * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.ResourceOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } public static final int TYPE_URL_FIELD_NUMBER = 4; private volatile java.lang.Object typeUrl_; /** *
   * 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; * @return The typeUrl. */ @java.lang.Override public java.lang.String getTypeUrl() { java.lang.Object ref = typeUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeUrl_ = s; return s; } } /** *
   * 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; * @return The bytes for typeUrl. */ @java.lang.Override public com.google.protobuf.ByteString getTypeUrlBytes() { java.lang.Object ref = typeUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REMOVED_RESOURCES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList removedResources_; /** *
   * 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; * @return A list containing the removedResources. */ public com.google.protobuf.ProtocolStringList getRemovedResourcesList() { return removedResources_; } /** *
   * 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; * @return The count of removedResources. */ public int getRemovedResourcesCount() { return removedResources_.size(); } /** *
   * 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; * @param index The index of the element to return. * @return The removedResources at the given index. */ public java.lang.String getRemovedResources(int index) { return removedResources_.get(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; * @param index The index of the value to return. * @return The bytes of the removedResources at the given index. */ public com.google.protobuf.ByteString getRemovedResourcesBytes(int index) { return removedResources_.getByteString(index); } public static final int REMOVED_RESOURCE_NAMES_FIELD_NUMBER = 8; private java.util.List removedResourceNames_; /** *
   * Alternative to removed_resources that allows specifying which variant of
   * a resource is being removed. This variant must be used for any resource
   * for which dynamic parameter constraints were sent to the client.
   * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ @java.lang.Override public java.util.List getRemovedResourceNamesList() { return removedResourceNames_; } /** *
   * Alternative to removed_resources that allows specifying which variant of
   * a resource is being removed. This variant must be used for any resource
   * for which dynamic parameter constraints were sent to the client.
   * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ @java.lang.Override public java.util.List getRemovedResourceNamesOrBuilderList() { return removedResourceNames_; } /** *
   * Alternative to removed_resources that allows specifying which variant of
   * a resource is being removed. This variant must be used for any resource
   * for which dynamic parameter constraints were sent to the client.
   * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ @java.lang.Override public int getRemovedResourceNamesCount() { return removedResourceNames_.size(); } /** *
   * Alternative to removed_resources that allows specifying which variant of
   * a resource is being removed. This variant must be used for any resource
   * for which dynamic parameter constraints were sent to the client.
   * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.ResourceName getRemovedResourceNames(int index) { return removedResourceNames_.get(index); } /** *
   * Alternative to removed_resources that allows specifying which variant of
   * a resource is being removed. This variant must be used for any resource
   * for which dynamic parameter constraints were sent to the client.
   * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.ResourceNameOrBuilder getRemovedResourceNamesOrBuilder( int index) { return removedResourceNames_.get(index); } public static final int NONCE_FIELD_NUMBER = 5; private volatile java.lang.Object nonce_; /** *
   * The nonce provides a way for DeltaDiscoveryRequests to uniquely
   * reference a DeltaDiscoveryResponse when (N)ACKing. The nonce is required.
   * 
* * string nonce = 5; * @return The nonce. */ @java.lang.Override public java.lang.String getNonce() { java.lang.Object ref = nonce_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nonce_ = s; return s; } } /** *
   * The nonce provides a way for DeltaDiscoveryRequests to uniquely
   * reference a DeltaDiscoveryResponse when (N)ACKing. The nonce is required.
   * 
* * string nonce = 5; * @return The bytes for nonce. */ @java.lang.Override public com.google.protobuf.ByteString getNonceBytes() { java.lang.Object ref = nonce_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nonce_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTROL_PLANE_FIELD_NUMBER = 7; private io.envoyproxy.envoy.config.core.v3.ControlPlane controlPlane_; /** *
   * [#not-implemented-hide:]
   * The control plane instance that sent the response.
   * 
* * .envoy.config.core.v3.ControlPlane control_plane = 7; * @return Whether the controlPlane field is set. */ @java.lang.Override public boolean hasControlPlane() { return controlPlane_ != null; } /** *
   * [#not-implemented-hide:]
   * The control plane instance that sent the response.
   * 
* * .envoy.config.core.v3.ControlPlane control_plane = 7; * @return The controlPlane. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.ControlPlane getControlPlane() { return controlPlane_ == null ? io.envoyproxy.envoy.config.core.v3.ControlPlane.getDefaultInstance() : controlPlane_; } /** *
   * [#not-implemented-hide:]
   * The control plane instance that sent the response.
   * 
* * .envoy.config.core.v3.ControlPlane control_plane = 7; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.ControlPlaneOrBuilder getControlPlaneOrBuilder() { return getControlPlane(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemVersionInfo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, systemVersionInfo_); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(2, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, typeUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nonce_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nonce_); } for (int i = 0; i < removedResources_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, removedResources_.getRaw(i)); } if (controlPlane_ != null) { output.writeMessage(7, getControlPlane()); } for (int i = 0; i < removedResourceNames_.size(); i++) { output.writeMessage(8, removedResourceNames_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(systemVersionInfo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, systemVersionInfo_); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, typeUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nonce_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nonce_); } { int dataSize = 0; for (int i = 0; i < removedResources_.size(); i++) { dataSize += computeStringSizeNoTag(removedResources_.getRaw(i)); } size += dataSize; size += 1 * getRemovedResourcesList().size(); } if (controlPlane_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getControlPlane()); } for (int i = 0; i < removedResourceNames_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, removedResourceNames_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse)) { return super.equals(obj); } io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse other = (io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse) obj; if (!getSystemVersionInfo() .equals(other.getSystemVersionInfo())) return false; if (!getResourcesList() .equals(other.getResourcesList())) return false; if (!getTypeUrl() .equals(other.getTypeUrl())) return false; if (!getRemovedResourcesList() .equals(other.getRemovedResourcesList())) return false; if (!getRemovedResourceNamesList() .equals(other.getRemovedResourceNamesList())) return false; if (!getNonce() .equals(other.getNonce())) return false; if (hasControlPlane() != other.hasControlPlane()) return false; if (hasControlPlane()) { if (!getControlPlane() .equals(other.getControlPlane())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SYSTEM_VERSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getSystemVersionInfo().hashCode(); if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } hash = (37 * hash) + TYPE_URL_FIELD_NUMBER; hash = (53 * hash) + getTypeUrl().hashCode(); if (getRemovedResourcesCount() > 0) { hash = (37 * hash) + REMOVED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getRemovedResourcesList().hashCode(); } if (getRemovedResourceNamesCount() > 0) { hash = (37 * hash) + REMOVED_RESOURCE_NAMES_FIELD_NUMBER; hash = (53 * hash) + getRemovedResourceNamesList().hashCode(); } hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + getNonce().hashCode(); if (hasControlPlane()) { hash = (37 * hash) + CONTROL_PLANE_FIELD_NUMBER; hash = (53 * hash) + getControlPlane().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * [#next-free-field: 9]
   * 
* * Protobuf type {@code envoy.service.discovery.v3.DeltaDiscoveryResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.discovery.v3.DeltaDiscoveryResponse) io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DeltaDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DeltaDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse.class, io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse.Builder.class); } // Construct using io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); getRemovedResourceNamesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); systemVersionInfo_ = ""; if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resourcesBuilder_.clear(); } typeUrl_ = ""; removedResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (removedResourceNamesBuilder_ == null) { removedResourceNames_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { removedResourceNamesBuilder_.clear(); } nonce_ = ""; if (controlPlaneBuilder_ == null) { controlPlane_ = null; } else { controlPlane_ = null; controlPlaneBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DeltaDiscoveryResponse_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse getDefaultInstanceForType() { return io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse build() { io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse buildPartial() { io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse result = new io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse(this); int from_bitField0_ = bitField0_; result.systemVersionInfo_ = systemVersionInfo_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000001); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } result.typeUrl_ = typeUrl_; if (((bitField0_ & 0x00000002) != 0)) { removedResources_ = removedResources_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.removedResources_ = removedResources_; if (removedResourceNamesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { removedResourceNames_ = java.util.Collections.unmodifiableList(removedResourceNames_); bitField0_ = (bitField0_ & ~0x00000004); } result.removedResourceNames_ = removedResourceNames_; } else { result.removedResourceNames_ = removedResourceNamesBuilder_.build(); } result.nonce_ = nonce_; if (controlPlaneBuilder_ == null) { result.controlPlane_ = controlPlane_; } else { result.controlPlane_ = controlPlaneBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse) { return mergeFrom((io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse other) { if (other == io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse.getDefaultInstance()) return this; if (!other.getSystemVersionInfo().isEmpty()) { systemVersionInfo_ = other.systemVersionInfo_; onChanged(); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (!other.getTypeUrl().isEmpty()) { typeUrl_ = other.typeUrl_; onChanged(); } if (!other.removedResources_.isEmpty()) { if (removedResources_.isEmpty()) { removedResources_ = other.removedResources_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRemovedResourcesIsMutable(); removedResources_.addAll(other.removedResources_); } onChanged(); } if (removedResourceNamesBuilder_ == null) { if (!other.removedResourceNames_.isEmpty()) { if (removedResourceNames_.isEmpty()) { removedResourceNames_ = other.removedResourceNames_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRemovedResourceNamesIsMutable(); removedResourceNames_.addAll(other.removedResourceNames_); } onChanged(); } } else { if (!other.removedResourceNames_.isEmpty()) { if (removedResourceNamesBuilder_.isEmpty()) { removedResourceNamesBuilder_.dispose(); removedResourceNamesBuilder_ = null; removedResourceNames_ = other.removedResourceNames_; bitField0_ = (bitField0_ & ~0x00000004); removedResourceNamesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRemovedResourceNamesFieldBuilder() : null; } else { removedResourceNamesBuilder_.addAllMessages(other.removedResourceNames_); } } } if (!other.getNonce().isEmpty()) { nonce_ = other.nonce_; onChanged(); } if (other.hasControlPlane()) { mergeControlPlane(other.getControlPlane()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object systemVersionInfo_ = ""; /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @return The systemVersionInfo. */ public java.lang.String getSystemVersionInfo() { java.lang.Object ref = systemVersionInfo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); systemVersionInfo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @return The bytes for systemVersionInfo. */ public com.google.protobuf.ByteString getSystemVersionInfoBytes() { java.lang.Object ref = systemVersionInfo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); systemVersionInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @param value The systemVersionInfo to set. * @return This builder for chaining. */ public Builder setSystemVersionInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } systemVersionInfo_ = value; onChanged(); return this; } /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @return This builder for chaining. */ public Builder clearSystemVersionInfo() { systemVersionInfo_ = getDefaultInstance().getSystemVersionInfo(); onChanged(); return this; } /** *
     * The version of the response data (used for debugging).
     * 
* * string system_version_info = 1; * @param value The bytes for systemVersionInfo to set. * @return This builder for chaining. */ public Builder setSystemVersionInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); systemVersionInfo_ = value; onChanged(); return this; } private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.Resource, io.envoyproxy.envoy.service.discovery.v3.Resource.Builder, io.envoyproxy.envoy.service.discovery.v3.ResourceOrBuilder> resourcesBuilder_; /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public io.envoyproxy.envoy.service.discovery.v3.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public Builder setResources( int index, io.envoyproxy.envoy.service.discovery.v3.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public Builder setResources( int index, io.envoyproxy.envoy.service.discovery.v3.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public Builder addResources(io.envoyproxy.envoy.service.discovery.v3.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public Builder addResources( int index, io.envoyproxy.envoy.service.discovery.v3.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public Builder addResources( io.envoyproxy.envoy.service.discovery.v3.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public Builder addResources( int index, io.envoyproxy.envoy.service.discovery.v3.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public io.envoyproxy.envoy.service.discovery.v3.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public io.envoyproxy.envoy.service.discovery.v3.ResourceOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public io.envoyproxy.envoy.service.discovery.v3.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( io.envoyproxy.envoy.service.discovery.v3.Resource.getDefaultInstance()); } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public io.envoyproxy.envoy.service.discovery.v3.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, io.envoyproxy.envoy.service.discovery.v3.Resource.getDefaultInstance()); } /** *
     * The response resources. These are typed resources, whose types must match
     * the type_url field.
     * 
* * repeated .envoy.service.discovery.v3.Resource resources = 2; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.Resource, io.envoyproxy.envoy.service.discovery.v3.Resource.Builder, io.envoyproxy.envoy.service.discovery.v3.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.Resource, io.envoyproxy.envoy.service.discovery.v3.Resource.Builder, io.envoyproxy.envoy.service.discovery.v3.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private java.lang.Object typeUrl_ = ""; /** *
     * 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; * @return The typeUrl. */ public java.lang.String getTypeUrl() { java.lang.Object ref = typeUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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; * @return The bytes for typeUrl. */ public com.google.protobuf.ByteString getTypeUrlBytes() { java.lang.Object ref = typeUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 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; * @param value The typeUrl to set. * @return This builder for chaining. */ public Builder setTypeUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeUrl_ = value; onChanged(); return this; } /** *
     * 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; * @return This builder for chaining. */ public Builder clearTypeUrl() { typeUrl_ = getDefaultInstance().getTypeUrl(); onChanged(); return this; } /** *
     * 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; * @param value The bytes for typeUrl to set. * @return This builder for chaining. */ public Builder setTypeUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeUrl_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList removedResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRemovedResourcesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { removedResources_ = new com.google.protobuf.LazyStringArrayList(removedResources_); bitField0_ |= 0x00000002; } } /** *
     * 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; * @return A list containing the removedResources. */ public com.google.protobuf.ProtocolStringList getRemovedResourcesList() { return removedResources_.getUnmodifiableView(); } /** *
     * 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; * @return The count of removedResources. */ public int getRemovedResourcesCount() { return removedResources_.size(); } /** *
     * 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; * @param index The index of the element to return. * @return The removedResources at the given index. */ public java.lang.String getRemovedResources(int index) { return removedResources_.get(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; * @param index The index of the value to return. * @return The bytes of the removedResources at the given index. */ public com.google.protobuf.ByteString getRemovedResourcesBytes(int index) { return removedResources_.getByteString(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; * @param index The index to set the value at. * @param value The removedResources to set. * @return This builder for chaining. */ public Builder setRemovedResources( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourcesIsMutable(); removedResources_.set(index, value); onChanged(); return this; } /** *
     * 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; * @param value The removedResources to add. * @return This builder for chaining. */ public Builder addRemovedResources( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourcesIsMutable(); removedResources_.add(value); onChanged(); return this; } /** *
     * 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; * @param values The removedResources to add. * @return This builder for chaining. */ public Builder addAllRemovedResources( java.lang.Iterable values) { ensureRemovedResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, removedResources_); onChanged(); return this; } /** *
     * 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; * @return This builder for chaining. */ public Builder clearRemovedResources() { removedResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * 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; * @param value The bytes of the removedResources to add. * @return This builder for chaining. */ public Builder addRemovedResourcesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRemovedResourcesIsMutable(); removedResources_.add(value); onChanged(); return this; } private java.util.List removedResourceNames_ = java.util.Collections.emptyList(); private void ensureRemovedResourceNamesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { removedResourceNames_ = new java.util.ArrayList(removedResourceNames_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.ResourceName, io.envoyproxy.envoy.service.discovery.v3.ResourceName.Builder, io.envoyproxy.envoy.service.discovery.v3.ResourceNameOrBuilder> removedResourceNamesBuilder_; /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public java.util.List getRemovedResourceNamesList() { if (removedResourceNamesBuilder_ == null) { return java.util.Collections.unmodifiableList(removedResourceNames_); } else { return removedResourceNamesBuilder_.getMessageList(); } } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public int getRemovedResourceNamesCount() { if (removedResourceNamesBuilder_ == null) { return removedResourceNames_.size(); } else { return removedResourceNamesBuilder_.getCount(); } } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public io.envoyproxy.envoy.service.discovery.v3.ResourceName getRemovedResourceNames(int index) { if (removedResourceNamesBuilder_ == null) { return removedResourceNames_.get(index); } else { return removedResourceNamesBuilder_.getMessage(index); } } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public Builder setRemovedResourceNames( int index, io.envoyproxy.envoy.service.discovery.v3.ResourceName value) { if (removedResourceNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourceNamesIsMutable(); removedResourceNames_.set(index, value); onChanged(); } else { removedResourceNamesBuilder_.setMessage(index, value); } return this; } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public Builder setRemovedResourceNames( int index, io.envoyproxy.envoy.service.discovery.v3.ResourceName.Builder builderForValue) { if (removedResourceNamesBuilder_ == null) { ensureRemovedResourceNamesIsMutable(); removedResourceNames_.set(index, builderForValue.build()); onChanged(); } else { removedResourceNamesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public Builder addRemovedResourceNames(io.envoyproxy.envoy.service.discovery.v3.ResourceName value) { if (removedResourceNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourceNamesIsMutable(); removedResourceNames_.add(value); onChanged(); } else { removedResourceNamesBuilder_.addMessage(value); } return this; } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public Builder addRemovedResourceNames( int index, io.envoyproxy.envoy.service.discovery.v3.ResourceName value) { if (removedResourceNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRemovedResourceNamesIsMutable(); removedResourceNames_.add(index, value); onChanged(); } else { removedResourceNamesBuilder_.addMessage(index, value); } return this; } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public Builder addRemovedResourceNames( io.envoyproxy.envoy.service.discovery.v3.ResourceName.Builder builderForValue) { if (removedResourceNamesBuilder_ == null) { ensureRemovedResourceNamesIsMutable(); removedResourceNames_.add(builderForValue.build()); onChanged(); } else { removedResourceNamesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public Builder addRemovedResourceNames( int index, io.envoyproxy.envoy.service.discovery.v3.ResourceName.Builder builderForValue) { if (removedResourceNamesBuilder_ == null) { ensureRemovedResourceNamesIsMutable(); removedResourceNames_.add(index, builderForValue.build()); onChanged(); } else { removedResourceNamesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public Builder addAllRemovedResourceNames( java.lang.Iterable values) { if (removedResourceNamesBuilder_ == null) { ensureRemovedResourceNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, removedResourceNames_); onChanged(); } else { removedResourceNamesBuilder_.addAllMessages(values); } return this; } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public Builder clearRemovedResourceNames() { if (removedResourceNamesBuilder_ == null) { removedResourceNames_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { removedResourceNamesBuilder_.clear(); } return this; } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public Builder removeRemovedResourceNames(int index) { if (removedResourceNamesBuilder_ == null) { ensureRemovedResourceNamesIsMutable(); removedResourceNames_.remove(index); onChanged(); } else { removedResourceNamesBuilder_.remove(index); } return this; } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public io.envoyproxy.envoy.service.discovery.v3.ResourceName.Builder getRemovedResourceNamesBuilder( int index) { return getRemovedResourceNamesFieldBuilder().getBuilder(index); } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public io.envoyproxy.envoy.service.discovery.v3.ResourceNameOrBuilder getRemovedResourceNamesOrBuilder( int index) { if (removedResourceNamesBuilder_ == null) { return removedResourceNames_.get(index); } else { return removedResourceNamesBuilder_.getMessageOrBuilder(index); } } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public java.util.List getRemovedResourceNamesOrBuilderList() { if (removedResourceNamesBuilder_ != null) { return removedResourceNamesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(removedResourceNames_); } } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public io.envoyproxy.envoy.service.discovery.v3.ResourceName.Builder addRemovedResourceNamesBuilder() { return getRemovedResourceNamesFieldBuilder().addBuilder( io.envoyproxy.envoy.service.discovery.v3.ResourceName.getDefaultInstance()); } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public io.envoyproxy.envoy.service.discovery.v3.ResourceName.Builder addRemovedResourceNamesBuilder( int index) { return getRemovedResourceNamesFieldBuilder().addBuilder( index, io.envoyproxy.envoy.service.discovery.v3.ResourceName.getDefaultInstance()); } /** *
     * Alternative to removed_resources that allows specifying which variant of
     * a resource is being removed. This variant must be used for any resource
     * for which dynamic parameter constraints were sent to the client.
     * 
* * repeated .envoy.service.discovery.v3.ResourceName removed_resource_names = 8; */ public java.util.List getRemovedResourceNamesBuilderList() { return getRemovedResourceNamesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.ResourceName, io.envoyproxy.envoy.service.discovery.v3.ResourceName.Builder, io.envoyproxy.envoy.service.discovery.v3.ResourceNameOrBuilder> getRemovedResourceNamesFieldBuilder() { if (removedResourceNamesBuilder_ == null) { removedResourceNamesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v3.ResourceName, io.envoyproxy.envoy.service.discovery.v3.ResourceName.Builder, io.envoyproxy.envoy.service.discovery.v3.ResourceNameOrBuilder>( removedResourceNames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); removedResourceNames_ = null; } return removedResourceNamesBuilder_; } private java.lang.Object nonce_ = ""; /** *
     * The nonce provides a way for DeltaDiscoveryRequests to uniquely
     * reference a DeltaDiscoveryResponse when (N)ACKing. The nonce is required.
     * 
* * string nonce = 5; * @return The nonce. */ public java.lang.String getNonce() { java.lang.Object ref = nonce_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nonce_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The nonce provides a way for DeltaDiscoveryRequests to uniquely
     * reference a DeltaDiscoveryResponse when (N)ACKing. The nonce is required.
     * 
* * string nonce = 5; * @return The bytes for nonce. */ public com.google.protobuf.ByteString getNonceBytes() { java.lang.Object ref = nonce_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nonce_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The nonce provides a way for DeltaDiscoveryRequests to uniquely
     * reference a DeltaDiscoveryResponse when (N)ACKing. The nonce is required.
     * 
* * string nonce = 5; * @param value The nonce to set. * @return This builder for chaining. */ public Builder setNonce( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nonce_ = value; onChanged(); return this; } /** *
     * The nonce provides a way for DeltaDiscoveryRequests to uniquely
     * reference a DeltaDiscoveryResponse when (N)ACKing. The nonce is required.
     * 
* * string nonce = 5; * @return This builder for chaining. */ public Builder clearNonce() { nonce_ = getDefaultInstance().getNonce(); onChanged(); return this; } /** *
     * The nonce provides a way for DeltaDiscoveryRequests to uniquely
     * reference a DeltaDiscoveryResponse when (N)ACKing. The nonce is required.
     * 
* * string nonce = 5; * @param value The bytes for nonce to set. * @return This builder for chaining. */ public Builder setNonceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nonce_ = value; onChanged(); return this; } private io.envoyproxy.envoy.config.core.v3.ControlPlane controlPlane_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.ControlPlane, io.envoyproxy.envoy.config.core.v3.ControlPlane.Builder, io.envoyproxy.envoy.config.core.v3.ControlPlaneOrBuilder> controlPlaneBuilder_; /** *
     * [#not-implemented-hide:]
     * The control plane instance that sent the response.
     * 
* * .envoy.config.core.v3.ControlPlane control_plane = 7; * @return Whether the controlPlane field is set. */ public boolean hasControlPlane() { return controlPlaneBuilder_ != null || controlPlane_ != null; } /** *
     * [#not-implemented-hide:]
     * The control plane instance that sent the response.
     * 
* * .envoy.config.core.v3.ControlPlane control_plane = 7; * @return The controlPlane. */ public io.envoyproxy.envoy.config.core.v3.ControlPlane getControlPlane() { if (controlPlaneBuilder_ == null) { return controlPlane_ == null ? io.envoyproxy.envoy.config.core.v3.ControlPlane.getDefaultInstance() : controlPlane_; } else { return controlPlaneBuilder_.getMessage(); } } /** *
     * [#not-implemented-hide:]
     * The control plane instance that sent the response.
     * 
* * .envoy.config.core.v3.ControlPlane control_plane = 7; */ public Builder setControlPlane(io.envoyproxy.envoy.config.core.v3.ControlPlane value) { if (controlPlaneBuilder_ == null) { if (value == null) { throw new NullPointerException(); } controlPlane_ = value; onChanged(); } else { controlPlaneBuilder_.setMessage(value); } return this; } /** *
     * [#not-implemented-hide:]
     * The control plane instance that sent the response.
     * 
* * .envoy.config.core.v3.ControlPlane control_plane = 7; */ public Builder setControlPlane( io.envoyproxy.envoy.config.core.v3.ControlPlane.Builder builderForValue) { if (controlPlaneBuilder_ == null) { controlPlane_ = builderForValue.build(); onChanged(); } else { controlPlaneBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * [#not-implemented-hide:]
     * The control plane instance that sent the response.
     * 
* * .envoy.config.core.v3.ControlPlane control_plane = 7; */ public Builder mergeControlPlane(io.envoyproxy.envoy.config.core.v3.ControlPlane value) { if (controlPlaneBuilder_ == null) { if (controlPlane_ != null) { controlPlane_ = io.envoyproxy.envoy.config.core.v3.ControlPlane.newBuilder(controlPlane_).mergeFrom(value).buildPartial(); } else { controlPlane_ = value; } onChanged(); } else { controlPlaneBuilder_.mergeFrom(value); } return this; } /** *
     * [#not-implemented-hide:]
     * The control plane instance that sent the response.
     * 
* * .envoy.config.core.v3.ControlPlane control_plane = 7; */ public Builder clearControlPlane() { if (controlPlaneBuilder_ == null) { controlPlane_ = null; onChanged(); } else { controlPlane_ = null; controlPlaneBuilder_ = null; } return this; } /** *
     * [#not-implemented-hide:]
     * The control plane instance that sent the response.
     * 
* * .envoy.config.core.v3.ControlPlane control_plane = 7; */ public io.envoyproxy.envoy.config.core.v3.ControlPlane.Builder getControlPlaneBuilder() { onChanged(); return getControlPlaneFieldBuilder().getBuilder(); } /** *
     * [#not-implemented-hide:]
     * The control plane instance that sent the response.
     * 
* * .envoy.config.core.v3.ControlPlane control_plane = 7; */ public io.envoyproxy.envoy.config.core.v3.ControlPlaneOrBuilder getControlPlaneOrBuilder() { if (controlPlaneBuilder_ != null) { return controlPlaneBuilder_.getMessageOrBuilder(); } else { return controlPlane_ == null ? io.envoyproxy.envoy.config.core.v3.ControlPlane.getDefaultInstance() : controlPlane_; } } /** *
     * [#not-implemented-hide:]
     * The control plane instance that sent the response.
     * 
* * .envoy.config.core.v3.ControlPlane control_plane = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.ControlPlane, io.envoyproxy.envoy.config.core.v3.ControlPlane.Builder, io.envoyproxy.envoy.config.core.v3.ControlPlaneOrBuilder> getControlPlaneFieldBuilder() { if (controlPlaneBuilder_ == null) { controlPlaneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.ControlPlane, io.envoyproxy.envoy.config.core.v3.ControlPlane.Builder, io.envoyproxy.envoy.config.core.v3.ControlPlaneOrBuilder>( getControlPlane(), getParentForChildren(), isClean()); controlPlane_ = null; } return controlPlaneBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.service.discovery.v3.DeltaDiscoveryResponse) } // @@protoc_insertion_point(class_scope:envoy.service.discovery.v3.DeltaDiscoveryResponse) private static final io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse(); } public static io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeltaDiscoveryResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeltaDiscoveryResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy