Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// 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).
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*