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.
* Identifies a specific MCP sink node instance. The node identifier is
* presented to the resource source, which may use this identifier
* to distinguish per sink configuration for serving. This
* information is not authoritative. Authoritative identity should come
* from the underlying transport layer (e.g. rpc credentials).
*
*
* Protobuf type {@code istio.mcp.v1alpha1.SinkNode}
*/
public static final class SinkNode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.SinkNode)
SinkNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use SinkNode.newBuilder() to construct.
private SinkNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SinkNode() {
id_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SinkNode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SinkNode(
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();
id_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
annotations_ = com.google.protobuf.MapField.newMapField(
AnnotationsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
annotations__ = input.readMessage(
AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
annotations_.getMutableMap().put(
annotations__.getKey(), annotations__.getValue());
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_SinkNode_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetAnnotations();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_SinkNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
istio.mcp.v1alpha1.Mcp.SinkNode.class, istio.mcp.v1alpha1.Mcp.SinkNode.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* Opaque annotations extending the node identifier.
*
*
* map<string, string> annotations = 2;
*/
public java.lang.String getAnnotationsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAnnotations().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAnnotations(),
AnnotationsDefaultEntryHolder.defaultEntry,
2);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
for (java.util.Map.Entry entry
: internalGetAnnotations().getMap().entrySet()) {
com.google.protobuf.MapEntry
annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, annotations__);
}
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 istio.mcp.v1alpha1.Mcp.SinkNode)) {
return super.equals(obj);
}
istio.mcp.v1alpha1.Mcp.SinkNode other = (istio.mcp.v1alpha1.Mcp.SinkNode) obj;
if (!getId()
.equals(other.getId())) return false;
if (!internalGetAnnotations().equals(
other.internalGetAnnotations())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
if (!internalGetAnnotations().getMap().isEmpty()) {
hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + internalGetAnnotations().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.SinkNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.SinkNode 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 istio.mcp.v1alpha1.Mcp.SinkNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.SinkNode 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 istio.mcp.v1alpha1.Mcp.SinkNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.SinkNode 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(istio.mcp.v1alpha1.Mcp.SinkNode 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;
}
/**
*
* Identifies a specific MCP sink node instance. The node identifier is
* presented to the resource source, which may use this identifier
* to distinguish per sink configuration for serving. This
* information is not authoritative. Authoritative identity should come
* from the underlying transport layer (e.g. rpc credentials).
*
*
* Protobuf type {@code istio.mcp.v1alpha1.SinkNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:istio.mcp.v1alpha1.SinkNode)
istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_SinkNode_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetAnnotations();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableAnnotations();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_SinkNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
istio.mcp.v1alpha1.Mcp.SinkNode.class, istio.mcp.v1alpha1.Mcp.SinkNode.Builder.class);
}
// Construct using istio.mcp.v1alpha1.Mcp.SinkNode.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
internalGetMutableAnnotations().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_SinkNode_descriptor;
}
@java.lang.Override
public istio.mcp.v1alpha1.Mcp.SinkNode getDefaultInstanceForType() {
return istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance();
}
@java.lang.Override
public istio.mcp.v1alpha1.Mcp.SinkNode build() {
istio.mcp.v1alpha1.Mcp.SinkNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public istio.mcp.v1alpha1.Mcp.SinkNode buildPartial() {
istio.mcp.v1alpha1.Mcp.SinkNode result = new istio.mcp.v1alpha1.Mcp.SinkNode(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.annotations_ = internalGetAnnotations();
result.annotations_.makeImmutable();
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 istio.mcp.v1alpha1.Mcp.SinkNode) {
return mergeFrom((istio.mcp.v1alpha1.Mcp.SinkNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(istio.mcp.v1alpha1.Mcp.SinkNode other) {
if (other == istio.mcp.v1alpha1.Mcp.SinkNode.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
internalGetMutableAnnotations().mergeFrom(
other.internalGetAnnotations());
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 {
istio.mcp.v1alpha1.Mcp.SinkNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (istio.mcp.v1alpha1.Mcp.SinkNode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* Opaque annotations extending the node identifier.
*
*
* map<string, string> annotations = 2;
*/
public java.lang.String getAnnotationsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAnnotations().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAnnotations() {
internalGetMutableAnnotations().getMutableMap()
.clear();
return this;
}
/**
*
* Opaque annotations extending the node identifier.
*
*
* map<string, string> annotations = 2;
*/
public Builder removeAnnotations(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableAnnotations().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableAnnotations() {
return internalGetMutableAnnotations().getMutableMap();
}
/**
*
* Opaque annotations extending the node identifier.
*
*
* map<string, string> annotations = 2;
*/
public Builder putAnnotations(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableAnnotations().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Opaque annotations extending the node identifier.
*
*
* map<string, string> annotations = 2;
*/
public Builder putAllAnnotations(
java.util.Map values) {
internalGetMutableAnnotations().getMutableMap()
.putAll(values);
return this;
}
@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:istio.mcp.v1alpha1.SinkNode)
}
// @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.SinkNode)
private static final istio.mcp.v1alpha1.Mcp.SinkNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new istio.mcp.v1alpha1.Mcp.SinkNode();
}
public static istio.mcp.v1alpha1.Mcp.SinkNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SinkNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SinkNode(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 istio.mcp.v1alpha1.Mcp.SinkNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MeshConfigRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:istio.mcp.v1alpha1.MeshConfigRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The version_info provided in the request messages will be the
* version_info received with the most recent successfully processed
* response or empty on the first request. It is expected that no
* new request is sent after a response is received until the client
* instance is ready to ACK/NACK the new configuration. ACK/NACK
* takes place by returning the new API config version as applied or
* the previous API config version respectively. Each type_url (see
* below) has an independent version associated with it.
*
* The version_info provided in the request messages will be the
* version_info received with the most recent successfully processed
* response or empty on the first request. It is expected that no
* new request is sent after a response is received until the client
* instance is ready to ACK/NACK the new configuration. ACK/NACK
* takes place by returning the new API config version as applied or
* the previous API config version respectively. Each type_url (see
* below) has an independent version associated with it.
*
* The nonce corresponding to MeshConfigResponse being
* ACK/NACKed. See above discussion on version_info and the
* MeshConfigResponse nonce comment. This may be empty if no nonce is
* available, e.g. at startup.
*
* The nonce corresponding to MeshConfigResponse being
* ACK/NACKed. See above discussion on version_info and the
* MeshConfigResponse nonce comment. This may be empty if no nonce is
* available, e.g. at startup.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
* A MeshConfigRequest requests a set of versioned resources of the
* same type for a given client.
*
*
* Protobuf type {@code istio.mcp.v1alpha1.MeshConfigRequest}
*/
public static final class MeshConfigRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.MeshConfigRequest)
MeshConfigRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use MeshConfigRequest.newBuilder() to construct.
private MeshConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MeshConfigRequest() {
versionInfo_ = "";
typeUrl_ = "";
responseNonce_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MeshConfigRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MeshConfigRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
versionInfo_ = s;
break;
}
case 18: {
istio.mcp.v1alpha1.Mcp.SinkNode.Builder subBuilder = null;
if (sinkNode_ != null) {
subBuilder = sinkNode_.toBuilder();
}
sinkNode_ = input.readMessage(istio.mcp.v1alpha1.Mcp.SinkNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sinkNode_);
sinkNode_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
typeUrl_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
responseNonce_ = s;
break;
}
case 42: {
com.google.rpc.Status.Builder subBuilder = null;
if (errorDetail_ != null) {
subBuilder = errorDetail_.toBuilder();
}
errorDetail_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(errorDetail_);
errorDetail_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
istio.mcp.v1alpha1.Mcp.MeshConfigRequest.class, istio.mcp.v1alpha1.Mcp.MeshConfigRequest.Builder.class);
}
public static final int VERSION_INFO_FIELD_NUMBER = 1;
private volatile java.lang.Object versionInfo_;
/**
*
* The version_info provided in the request messages will be the
* version_info received with the most recent successfully processed
* response or empty on the first request. It is expected that no
* new request is sent after a response is received until the client
* instance is ready to ACK/NACK the new configuration. ACK/NACK
* takes place by returning the new API config version as applied or
* the previous API config version respectively. Each type_url (see
* below) has an independent version associated with it.
*
* The version_info provided in the request messages will be the
* version_info received with the most recent successfully processed
* response or empty on the first request. It is expected that no
* new request is sent after a response is received until the client
* instance is ready to ACK/NACK the new configuration. ACK/NACK
* takes place by returning the new API config version as applied or
* the previous API config version respectively. Each type_url (see
* below) has an independent version associated with it.
*
*
* string version_info = 1;
*/
public com.google.protobuf.ByteString
getVersionInfoBytes() {
java.lang.Object ref = versionInfo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SINK_NODE_FIELD_NUMBER = 2;
private istio.mcp.v1alpha1.Mcp.SinkNode sinkNode_;
/**
*
* Type of the resource that is being requested, e.g.
* "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
*
*
* string type_url = 3;
*/
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 RESPONSE_NONCE_FIELD_NUMBER = 4;
private volatile java.lang.Object responseNonce_;
/**
*
* The nonce corresponding to MeshConfigResponse being
* ACK/NACKed. See above discussion on version_info and the
* MeshConfigResponse nonce comment. This may be empty if no nonce is
* available, e.g. at startup.
*
* The nonce corresponding to MeshConfigResponse being
* ACK/NACKed. See above discussion on version_info and the
* MeshConfigResponse nonce comment. This may be empty if no nonce is
* available, e.g. at startup.
*
*
* string response_nonce = 4;
*/
public com.google.protobuf.ByteString
getResponseNonceBytes() {
java.lang.Object ref = responseNonce_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
responseNonce_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERROR_DETAIL_FIELD_NUMBER = 5;
private com.google.rpc.Status errorDetail_;
/**
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
*
* .google.rpc.Status error_detail = 5;
*/
public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() {
return getErrorDetail();
}
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 (!getVersionInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionInfo_);
}
if (sinkNode_ != null) {
output.writeMessage(2, getSinkNode());
}
if (!getTypeUrlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeUrl_);
}
if (!getResponseNonceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responseNonce_);
}
if (errorDetail_ != null) {
output.writeMessage(5, getErrorDetail());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getVersionInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, versionInfo_);
}
if (sinkNode_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSinkNode());
}
if (!getTypeUrlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeUrl_);
}
if (!getResponseNonceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, responseNonce_);
}
if (errorDetail_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getErrorDetail());
}
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 istio.mcp.v1alpha1.Mcp.MeshConfigRequest)) {
return super.equals(obj);
}
istio.mcp.v1alpha1.Mcp.MeshConfigRequest other = (istio.mcp.v1alpha1.Mcp.MeshConfigRequest) obj;
if (!getVersionInfo()
.equals(other.getVersionInfo())) return false;
if (hasSinkNode() != other.hasSinkNode()) return false;
if (hasSinkNode()) {
if (!getSinkNode()
.equals(other.getSinkNode())) return false;
}
if (!getTypeUrl()
.equals(other.getTypeUrl())) return false;
if (!getResponseNonce()
.equals(other.getResponseNonce())) return false;
if (hasErrorDetail() != other.hasErrorDetail()) return false;
if (hasErrorDetail()) {
if (!getErrorDetail()
.equals(other.getErrorDetail())) 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) + VERSION_INFO_FIELD_NUMBER;
hash = (53 * hash) + getVersionInfo().hashCode();
if (hasSinkNode()) {
hash = (37 * hash) + SINK_NODE_FIELD_NUMBER;
hash = (53 * hash) + getSinkNode().hashCode();
}
hash = (37 * hash) + TYPE_URL_FIELD_NUMBER;
hash = (53 * hash) + getTypeUrl().hashCode();
hash = (37 * hash) + RESPONSE_NONCE_FIELD_NUMBER;
hash = (53 * hash) + getResponseNonce().hashCode();
if (hasErrorDetail()) {
hash = (37 * hash) + ERROR_DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getErrorDetail().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest 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 istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest 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 istio.mcp.v1alpha1.Mcp.MeshConfigRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest 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(istio.mcp.v1alpha1.Mcp.MeshConfigRequest 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;
}
/**
*
* A MeshConfigRequest requests a set of versioned resources of the
* same type for a given client.
*
*
* Protobuf type {@code istio.mcp.v1alpha1.MeshConfigRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:istio.mcp.v1alpha1.MeshConfigRequest)
istio.mcp.v1alpha1.Mcp.MeshConfigRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
istio.mcp.v1alpha1.Mcp.MeshConfigRequest.class, istio.mcp.v1alpha1.Mcp.MeshConfigRequest.Builder.class);
}
// Construct using istio.mcp.v1alpha1.Mcp.MeshConfigRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
versionInfo_ = "";
if (sinkNodeBuilder_ == null) {
sinkNode_ = null;
} else {
sinkNode_ = null;
sinkNodeBuilder_ = null;
}
typeUrl_ = "";
responseNonce_ = "";
if (errorDetailBuilder_ == null) {
errorDetail_ = null;
} else {
errorDetail_ = null;
errorDetailBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_descriptor;
}
@java.lang.Override
public istio.mcp.v1alpha1.Mcp.MeshConfigRequest getDefaultInstanceForType() {
return istio.mcp.v1alpha1.Mcp.MeshConfigRequest.getDefaultInstance();
}
@java.lang.Override
public istio.mcp.v1alpha1.Mcp.MeshConfigRequest build() {
istio.mcp.v1alpha1.Mcp.MeshConfigRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public istio.mcp.v1alpha1.Mcp.MeshConfigRequest buildPartial() {
istio.mcp.v1alpha1.Mcp.MeshConfigRequest result = new istio.mcp.v1alpha1.Mcp.MeshConfigRequest(this);
result.versionInfo_ = versionInfo_;
if (sinkNodeBuilder_ == null) {
result.sinkNode_ = sinkNode_;
} else {
result.sinkNode_ = sinkNodeBuilder_.build();
}
result.typeUrl_ = typeUrl_;
result.responseNonce_ = responseNonce_;
if (errorDetailBuilder_ == null) {
result.errorDetail_ = errorDetail_;
} else {
result.errorDetail_ = errorDetailBuilder_.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 istio.mcp.v1alpha1.Mcp.MeshConfigRequest) {
return mergeFrom((istio.mcp.v1alpha1.Mcp.MeshConfigRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(istio.mcp.v1alpha1.Mcp.MeshConfigRequest other) {
if (other == istio.mcp.v1alpha1.Mcp.MeshConfigRequest.getDefaultInstance()) return this;
if (!other.getVersionInfo().isEmpty()) {
versionInfo_ = other.versionInfo_;
onChanged();
}
if (other.hasSinkNode()) {
mergeSinkNode(other.getSinkNode());
}
if (!other.getTypeUrl().isEmpty()) {
typeUrl_ = other.typeUrl_;
onChanged();
}
if (!other.getResponseNonce().isEmpty()) {
responseNonce_ = other.responseNonce_;
onChanged();
}
if (other.hasErrorDetail()) {
mergeErrorDetail(other.getErrorDetail());
}
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 {
istio.mcp.v1alpha1.Mcp.MeshConfigRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (istio.mcp.v1alpha1.Mcp.MeshConfigRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object versionInfo_ = "";
/**
*
* The version_info provided in the request messages will be the
* version_info received with the most recent successfully processed
* response or empty on the first request. It is expected that no
* new request is sent after a response is received until the client
* instance is ready to ACK/NACK the new configuration. ACK/NACK
* takes place by returning the new API config version as applied or
* the previous API config version respectively. Each type_url (see
* below) has an independent version associated with it.
*
* The version_info provided in the request messages will be the
* version_info received with the most recent successfully processed
* response or empty on the first request. It is expected that no
* new request is sent after a response is received until the client
* instance is ready to ACK/NACK the new configuration. ACK/NACK
* takes place by returning the new API config version as applied or
* the previous API config version respectively. Each type_url (see
* below) has an independent version associated with it.
*
* The version_info provided in the request messages will be the
* version_info received with the most recent successfully processed
* response or empty on the first request. It is expected that no
* new request is sent after a response is received until the client
* instance is ready to ACK/NACK the new configuration. ACK/NACK
* takes place by returning the new API config version as applied or
* the previous API config version respectively. Each type_url (see
* below) has an independent version associated with it.
*
* The version_info provided in the request messages will be the
* version_info received with the most recent successfully processed
* response or empty on the first request. It is expected that no
* new request is sent after a response is received until the client
* instance is ready to ACK/NACK the new configuration. ACK/NACK
* takes place by returning the new API config version as applied or
* the previous API config version respectively. Each type_url (see
* below) has an independent version associated with it.
*
* The version_info provided in the request messages will be the
* version_info received with the most recent successfully processed
* response or empty on the first request. It is expected that no
* new request is sent after a response is received until the client
* instance is ready to ACK/NACK the new configuration. ACK/NACK
* takes place by returning the new API config version as applied or
* the previous API config version respectively. Each type_url (see
* below) has an independent version associated with it.
*
* The nonce corresponding to MeshConfigResponse being
* ACK/NACKed. See above discussion on version_info and the
* MeshConfigResponse nonce comment. This may be empty if no nonce is
* available, e.g. at startup.
*
* The nonce corresponding to MeshConfigResponse being
* ACK/NACKed. See above discussion on version_info and the
* MeshConfigResponse nonce comment. This may be empty if no nonce is
* available, e.g. at startup.
*
* The nonce corresponding to MeshConfigResponse being
* ACK/NACKed. See above discussion on version_info and the
* MeshConfigResponse nonce comment. This may be empty if no nonce is
* available, e.g. at startup.
*
* The nonce corresponding to MeshConfigResponse being
* ACK/NACKed. See above discussion on version_info and the
* MeshConfigResponse nonce comment. This may be empty if no nonce is
* available, e.g. at startup.
*
* The nonce corresponding to MeshConfigResponse being
* ACK/NACKed. See above discussion on version_info and the
* MeshConfigResponse nonce comment. This may be empty if no nonce is
* available, e.g. at startup.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
*
* .google.rpc.Status error_detail = 5;
*/
public Builder setErrorDetail(com.google.rpc.Status value) {
if (errorDetailBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorDetail_ = value;
onChanged();
} else {
errorDetailBuilder_.setMessage(value);
}
return this;
}
/**
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
* This is populated when the previous MeshConfigResponse failed to
* update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure. It
* is only intended for consumption during manual debugging, the
* string provided is not guaranteed to be stable across client
* versions.
*
*
* .google.rpc.Status error_detail = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getErrorDetailFieldBuilder() {
if (errorDetailBuilder_ == null) {
errorDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
getErrorDetail(),
getParentForChildren(),
isClean());
errorDetail_ = null;
}
return errorDetailBuilder_;
}
@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:istio.mcp.v1alpha1.MeshConfigRequest)
}
// @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.MeshConfigRequest)
private static final istio.mcp.v1alpha1.Mcp.MeshConfigRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new istio.mcp.v1alpha1.Mcp.MeshConfigRequest();
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MeshConfigRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MeshConfigRequest(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 istio.mcp.v1alpha1.Mcp.MeshConfigRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MeshConfigResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:istio.mcp.v1alpha1.MeshConfigResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type URL for resources wrapped in the provided resources(s). This
* must be consistent with the type_url in the wrapper messages if
* resources is non-empty.
*
* Type URL for resources wrapped in the provided resources(s). This
* must be consistent with the type_url in the wrapper messages if
* resources is non-empty.
*
* The nonce provides a way to explicitly ack a specific
* MeshConfigResponse in a following MeshConfigRequest. Additional
* messages may have been sent by client to the management server for
* the previous version on the stream prior to this
* MeshConfigResponse, that were unprocessed at response send
* time. The nonce allows the management server to ignore any
* further MeshConfigRequests for the previous version until a
* MeshConfigRequest bearing the nonce.
*
* The nonce provides a way to explicitly ack a specific
* MeshConfigResponse in a following MeshConfigRequest. Additional
* messages may have been sent by client to the management server for
* the previous version on the stream prior to this
* MeshConfigResponse, that were unprocessed at response send
* time. The nonce allows the management server to ignore any
* further MeshConfigRequests for the previous version until a
* MeshConfigRequest bearing the nonce.
*
* The response resources wrapped in the common MCP *Resource*
* message.
*
*
* repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
*/
public istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder(
int index) {
return resources_.get(index);
}
public static final int TYPE_URL_FIELD_NUMBER = 3;
private volatile java.lang.Object typeUrl_;
/**
*
* Type URL for resources wrapped in the provided resources(s). This
* must be consistent with the type_url in the wrapper messages if
* resources is non-empty.
*
* Type URL for resources wrapped in the provided resources(s). This
* must be consistent with the type_url in the wrapper messages if
* resources is non-empty.
*
*
* string type_url = 3;
*/
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 NONCE_FIELD_NUMBER = 4;
private volatile java.lang.Object nonce_;
/**
*
* The nonce provides a way to explicitly ack a specific
* MeshConfigResponse in a following MeshConfigRequest. Additional
* messages may have been sent by client to the management server for
* the previous version on the stream prior to this
* MeshConfigResponse, that were unprocessed at response send
* time. The nonce allows the management server to ignore any
* further MeshConfigRequests for the previous version until a
* MeshConfigRequest bearing the nonce.
*
* The nonce provides a way to explicitly ack a specific
* MeshConfigResponse in a following MeshConfigRequest. Additional
* messages may have been sent by client to the management server for
* the previous version on the stream prior to this
* MeshConfigResponse, that were unprocessed at response send
* time. The nonce allows the management server to ignore any
* further MeshConfigRequests for the previous version until a
* MeshConfigRequest bearing the nonce.
*
*
* string nonce = 4;
*/
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;
}
}
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 (!getVersionInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionInfo_);
}
for (int i = 0; i < resources_.size(); i++) {
output.writeMessage(2, resources_.get(i));
}
if (!getTypeUrlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeUrl_);
}
if (!getNonceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nonce_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getVersionInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, versionInfo_);
}
for (int i = 0; i < resources_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, resources_.get(i));
}
if (!getTypeUrlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeUrl_);
}
if (!getNonceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nonce_);
}
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 istio.mcp.v1alpha1.Mcp.MeshConfigResponse)) {
return super.equals(obj);
}
istio.mcp.v1alpha1.Mcp.MeshConfigResponse other = (istio.mcp.v1alpha1.Mcp.MeshConfigResponse) obj;
if (!getVersionInfo()
.equals(other.getVersionInfo())) return false;
if (!getResourcesList()
.equals(other.getResourcesList())) return false;
if (!getTypeUrl()
.equals(other.getTypeUrl())) return false;
if (!getNonce()
.equals(other.getNonce())) 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) + VERSION_INFO_FIELD_NUMBER;
hash = (53 * hash) + getVersionInfo().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();
hash = (37 * hash) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + getNonce().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse 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 istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse 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 istio.mcp.v1alpha1.Mcp.MeshConfigResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse 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(istio.mcp.v1alpha1.Mcp.MeshConfigResponse 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;
}
/**
*
* A MeshConfigResponse delivers a set of versioned resources of the
* same type in response to a MeshConfigRequest.
*
* Type URL for resources wrapped in the provided resources(s). This
* must be consistent with the type_url in the wrapper messages if
* resources is non-empty.
*
* Type URL for resources wrapped in the provided resources(s). This
* must be consistent with the type_url in the wrapper messages if
* resources is non-empty.
*
* Type URL for resources wrapped in the provided resources(s). This
* must be consistent with the type_url in the wrapper messages if
* resources is non-empty.
*
* Type URL for resources wrapped in the provided resources(s). This
* must be consistent with the type_url in the wrapper messages if
* resources is non-empty.
*
* Type URL for resources wrapped in the provided resources(s). This
* must be consistent with the type_url in the wrapper messages if
* resources is non-empty.
*
* The nonce provides a way to explicitly ack a specific
* MeshConfigResponse in a following MeshConfigRequest. Additional
* messages may have been sent by client to the management server for
* the previous version on the stream prior to this
* MeshConfigResponse, that were unprocessed at response send
* time. The nonce allows the management server to ignore any
* further MeshConfigRequests for the previous version until a
* MeshConfigRequest bearing the nonce.
*
* The nonce provides a way to explicitly ack a specific
* MeshConfigResponse in a following MeshConfigRequest. Additional
* messages may have been sent by client to the management server for
* the previous version on the stream prior to this
* MeshConfigResponse, that were unprocessed at response send
* time. The nonce allows the management server to ignore any
* further MeshConfigRequests for the previous version until a
* MeshConfigRequest bearing the nonce.
*
* The nonce provides a way to explicitly ack a specific
* MeshConfigResponse in a following MeshConfigRequest. Additional
* messages may have been sent by client to the management server for
* the previous version on the stream prior to this
* MeshConfigResponse, that were unprocessed at response send
* time. The nonce allows the management server to ignore any
* further MeshConfigRequests for the previous version until a
* MeshConfigRequest bearing the nonce.
*
* The nonce provides a way to explicitly ack a specific
* MeshConfigResponse in a following MeshConfigRequest. Additional
* messages may have been sent by client to the management server for
* the previous version on the stream prior to this
* MeshConfigResponse, that were unprocessed at response send
* time. The nonce allows the management server to ignore any
* further MeshConfigRequests for the previous version until a
* MeshConfigRequest bearing the nonce.
*
* The nonce provides a way to explicitly ack a specific
* MeshConfigResponse in a following MeshConfigRequest. Additional
* messages may have been sent by client to the management server for
* the previous version on the stream prior to this
* MeshConfigResponse, that were unprocessed at response send
* time. The nonce allows the management server to ignore any
* further MeshConfigRequests for the previous version until a
* MeshConfigRequest bearing the nonce.
*
*
* string nonce = 4;
*/
public Builder setNonceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nonce_ = value;
onChanged();
return this;
}
@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:istio.mcp.v1alpha1.MeshConfigResponse)
}
// @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.MeshConfigResponse)
private static final istio.mcp.v1alpha1.Mcp.MeshConfigResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new istio.mcp.v1alpha1.Mcp.MeshConfigResponse();
}
public static istio.mcp.v1alpha1.Mcp.MeshConfigResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MeshConfigResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MeshConfigResponse(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 istio.mcp.v1alpha1.Mcp.MeshConfigResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IncrementalMeshConfigRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:istio.mcp.v1alpha1.IncrementalMeshConfigRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
* When the IncrementalMeshConfigRequest is a ACK or NACK message in response
* to a previous IncrementalMeshConfigResponse, the response_nonce must be the
* nonce in the IncrementalMeshConfigResponse.
* Otherwise response_nonce must be omitted.
*
* When the IncrementalMeshConfigRequest is a ACK or NACK message in response
* to a previous IncrementalMeshConfigResponse, the response_nonce must be the
* nonce in the IncrementalMeshConfigResponse.
* Otherwise response_nonce must be omitted.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* IncrementalMeshConfigRequest are be sent in 2 situations:
* 1. Initial message in a MCP bidirectional gRPC stream.
* 2. As a ACK or NACK response to a previous IncrementalMeshConfigResponse.
* In this case the response_nonce is set to the nonce value in the Response.
* ACK or NACK is determined by the absence or presence of error_detail.
*
*
* Protobuf type {@code istio.mcp.v1alpha1.IncrementalMeshConfigRequest}
*/
public static final class IncrementalMeshConfigRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.IncrementalMeshConfigRequest)
IncrementalMeshConfigRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use IncrementalMeshConfigRequest.newBuilder() to construct.
private IncrementalMeshConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IncrementalMeshConfigRequest() {
typeUrl_ = "";
responseNonce_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IncrementalMeshConfigRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IncrementalMeshConfigRequest(
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: {
istio.mcp.v1alpha1.Mcp.SinkNode.Builder subBuilder = null;
if (sinkNode_ != null) {
subBuilder = sinkNode_.toBuilder();
}
sinkNode_ = input.readMessage(istio.mcp.v1alpha1.Mcp.SinkNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sinkNode_);
sinkNode_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
typeUrl_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
initialResourceVersions_ = com.google.protobuf.MapField.newMapField(
InitialResourceVersionsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
initialResourceVersions__ = input.readMessage(
InitialResourceVersionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
initialResourceVersions_.getMutableMap().put(
initialResourceVersions__.getKey(), initialResourceVersions__.getValue());
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
responseNonce_ = s;
break;
}
case 42: {
com.google.rpc.Status.Builder subBuilder = null;
if (errorDetail_ != null) {
subBuilder = errorDetail_.toBuilder();
}
errorDetail_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(errorDetail_);
errorDetail_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetInitialResourceVersions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.class, istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.Builder.class);
}
public static final int SINK_NODE_FIELD_NUMBER = 1;
private istio.mcp.v1alpha1.Mcp.SinkNode sinkNode_;
/**
*
* Type of the resource that is being requested, e.g.
* "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
*
*
* string type_url = 2;
*/
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 INITIAL_RESOURCE_VERSIONS_FIELD_NUMBER = 3;
private static final class InitialResourceVersionsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_InitialResourceVersionsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> initialResourceVersions_;
private com.google.protobuf.MapField
internalGetInitialResourceVersions() {
if (initialResourceVersions_ == null) {
return com.google.protobuf.MapField.emptyMapField(
InitialResourceVersionsDefaultEntryHolder.defaultEntry);
}
return initialResourceVersions_;
}
public int getInitialResourceVersionsCount() {
return internalGetInitialResourceVersions().getMap().size();
}
/**
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
*
* map<string, string> initial_resource_versions = 3;
*/
public boolean containsInitialResourceVersions(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetInitialResourceVersions().getMap().containsKey(key);
}
/**
* Use {@link #getInitialResourceVersionsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getInitialResourceVersions() {
return getInitialResourceVersionsMap();
}
/**
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
*
* map<string, string> initial_resource_versions = 3;
*/
public java.lang.String getInitialResourceVersionsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetInitialResourceVersions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int RESPONSE_NONCE_FIELD_NUMBER = 4;
private volatile java.lang.Object responseNonce_;
/**
*
* When the IncrementalMeshConfigRequest is a ACK or NACK message in response
* to a previous IncrementalMeshConfigResponse, the response_nonce must be the
* nonce in the IncrementalMeshConfigResponse.
* Otherwise response_nonce must be omitted.
*
* When the IncrementalMeshConfigRequest is a ACK or NACK message in response
* to a previous IncrementalMeshConfigResponse, the response_nonce must be the
* nonce in the IncrementalMeshConfigResponse.
* Otherwise response_nonce must be omitted.
*
*
* string response_nonce = 4;
*/
public com.google.protobuf.ByteString
getResponseNonceBytes() {
java.lang.Object ref = responseNonce_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
responseNonce_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERROR_DETAIL_FIELD_NUMBER = 5;
private com.google.rpc.Status errorDetail_;
/**
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* IncrementalMeshConfigRequest are be sent in 2 situations:
* 1. Initial message in a MCP bidirectional gRPC stream.
* 2. As a ACK or NACK response to a previous IncrementalMeshConfigResponse.
* In this case the response_nonce is set to the nonce value in the Response.
* ACK or NACK is determined by the absence or presence of error_detail.
*
*
* Protobuf type {@code istio.mcp.v1alpha1.IncrementalMeshConfigRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:istio.mcp.v1alpha1.IncrementalMeshConfigRequest)
istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetInitialResourceVersions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 3:
return internalGetMutableInitialResourceVersions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.class, istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.Builder.class);
}
// Construct using istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (sinkNodeBuilder_ == null) {
sinkNode_ = null;
} else {
sinkNode_ = null;
sinkNodeBuilder_ = null;
}
typeUrl_ = "";
internalGetMutableInitialResourceVersions().clear();
responseNonce_ = "";
if (errorDetailBuilder_ == null) {
errorDetail_ = null;
} else {
errorDetail_ = null;
errorDetailBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_descriptor;
}
@java.lang.Override
public istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest getDefaultInstanceForType() {
return istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.getDefaultInstance();
}
@java.lang.Override
public istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest build() {
istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest buildPartial() {
istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest result = new istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest(this);
int from_bitField0_ = bitField0_;
if (sinkNodeBuilder_ == null) {
result.sinkNode_ = sinkNode_;
} else {
result.sinkNode_ = sinkNodeBuilder_.build();
}
result.typeUrl_ = typeUrl_;
result.initialResourceVersions_ = internalGetInitialResourceVersions();
result.initialResourceVersions_.makeImmutable();
result.responseNonce_ = responseNonce_;
if (errorDetailBuilder_ == null) {
result.errorDetail_ = errorDetail_;
} else {
result.errorDetail_ = errorDetailBuilder_.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 istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest) {
return mergeFrom((istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest other) {
if (other == istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest.getDefaultInstance()) return this;
if (other.hasSinkNode()) {
mergeSinkNode(other.getSinkNode());
}
if (!other.getTypeUrl().isEmpty()) {
typeUrl_ = other.typeUrl_;
onChanged();
}
internalGetMutableInitialResourceVersions().mergeFrom(
other.internalGetInitialResourceVersions());
if (!other.getResponseNonce().isEmpty()) {
responseNonce_ = other.responseNonce_;
onChanged();
}
if (other.hasErrorDetail()) {
mergeErrorDetail(other.getErrorDetail());
}
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 {
istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private istio.mcp.v1alpha1.Mcp.SinkNode sinkNode_;
private com.google.protobuf.SingleFieldBuilderV3<
istio.mcp.v1alpha1.Mcp.SinkNode, istio.mcp.v1alpha1.Mcp.SinkNode.Builder, istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder> sinkNodeBuilder_;
/**
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
*
* map<string, string> initial_resource_versions = 3;
*/
public boolean containsInitialResourceVersions(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetInitialResourceVersions().getMap().containsKey(key);
}
/**
* Use {@link #getInitialResourceVersionsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getInitialResourceVersions() {
return getInitialResourceVersionsMap();
}
/**
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
*
* map<string, string> initial_resource_versions = 3;
*/
public java.lang.String getInitialResourceVersionsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetInitialResourceVersions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearInitialResourceVersions() {
internalGetMutableInitialResourceVersions().getMutableMap()
.clear();
return this;
}
/**
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
*
* map<string, string> initial_resource_versions = 3;
*/
public Builder removeInitialResourceVersions(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableInitialResourceVersions().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableInitialResourceVersions() {
return internalGetMutableInitialResourceVersions().getMutableMap();
}
/**
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
*
* map<string, string> initial_resource_versions = 3;
*/
public Builder putInitialResourceVersions(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableInitialResourceVersions().getMutableMap()
.put(key, value);
return this;
}
/**
*
* When the IncrementalMeshConfigRequest is the first in a stream,
* the initial_resource_versions must be populated. Otherwise,
* initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The
* values in the map are the associated resource level version info.
*
* When the IncrementalMeshConfigRequest is a ACK or NACK message in response
* to a previous IncrementalMeshConfigResponse, the response_nonce must be the
* nonce in the IncrementalMeshConfigResponse.
* Otherwise response_nonce must be omitted.
*
* When the IncrementalMeshConfigRequest is a ACK or NACK message in response
* to a previous IncrementalMeshConfigResponse, the response_nonce must be the
* nonce in the IncrementalMeshConfigResponse.
* Otherwise response_nonce must be omitted.
*
* When the IncrementalMeshConfigRequest is a ACK or NACK message in response
* to a previous IncrementalMeshConfigResponse, the response_nonce must be the
* nonce in the IncrementalMeshConfigResponse.
* Otherwise response_nonce must be omitted.
*
* When the IncrementalMeshConfigRequest is a ACK or NACK message in response
* to a previous IncrementalMeshConfigResponse, the response_nonce must be the
* nonce in the IncrementalMeshConfigResponse.
* Otherwise response_nonce must be omitted.
*
* When the IncrementalMeshConfigRequest is a ACK or NACK message in response
* to a previous IncrementalMeshConfigResponse, the response_nonce must be the
* nonce in the IncrementalMeshConfigResponse.
* Otherwise response_nonce must be omitted.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
*
* .google.rpc.Status error_detail = 5;
*/
public Builder setErrorDetail(com.google.rpc.Status value) {
if (errorDetailBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorDetail_ = value;
onChanged();
} else {
errorDetailBuilder_.setMessage(value);
}
return this;
}
/**
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
* This is populated when the previous IncrementalMeshConfigResponses
* failed to update configuration. The *message* field in *error_details*
* provides the client internal exception related to the failure.
*
*
* .google.rpc.Status error_detail = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getErrorDetailFieldBuilder() {
if (errorDetailBuilder_ == null) {
errorDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
getErrorDetail(),
getParentForChildren(),
isClean());
errorDetail_ = null;
}
return errorDetailBuilder_;
}
@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:istio.mcp.v1alpha1.IncrementalMeshConfigRequest)
}
// @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.IncrementalMeshConfigRequest)
private static final istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest();
}
public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IncrementalMeshConfigRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IncrementalMeshConfigRequest(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 istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IncrementalMeshConfigResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:istio.mcp.v1alpha1.IncrementalMeshConfigResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The version of the response data (used for debugging).
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
* IncrementalMeshConfigResponses do not need to include a full
* snapshot of the tracked resources. Instead they are a diff to the
* state of a MCP client. Per resource versions allow servers and
* clients to track state at the resource granularity. An MCP
* incremental session is always in the context of a gRPC
* bidirectional stream. This allows the MCP server to keep track of
* the state of MCP clients connected to it.
* In Incremental MCP the nonce field is required and used to pair
* IncrementalMeshConfigResponse to an IncrementalMeshConfigRequest
* ACK or NACK. Optionally, a response message level
* system_version_info is present for debugging purposes only.
*
*
* Protobuf type {@code istio.mcp.v1alpha1.IncrementalMeshConfigResponse}
*/
public static final class IncrementalMeshConfigResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.IncrementalMeshConfigResponse)
IncrementalMeshConfigResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use IncrementalMeshConfigResponse.newBuilder() to construct.
private IncrementalMeshConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IncrementalMeshConfigResponse() {
systemVersionInfo_ = "";
resources_ = java.util.Collections.emptyList();
removedResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
nonce_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IncrementalMeshConfigResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IncrementalMeshConfigResponse(
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(istio.mcp.v1alpha1.ResourceOuterClass.Resource.parser(), extensionRegistry));
break;
}
case 26: {
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 34: {
java.lang.String s = input.readStringRequireUtf8();
nonce_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.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();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse.class, istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse.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 version of the response data (used for debugging).
*
*
* string system_version_info = 1;
*/
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 wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
*
* repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
*/
public int getResourcesCount() {
return resources_.size();
}
/**
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
*
* repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
*/
public istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder(
int index) {
return resources_.get(index);
}
public static final int REMOVED_RESOURCES_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList removedResources_;
/**
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
*
* repeated string removed_resources = 3;
*/
public int getRemovedResourcesCount() {
return removedResources_.size();
}
/**
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
*
* repeated string removed_resources = 3;
*/
public com.google.protobuf.ByteString
getRemovedResourcesBytes(int index) {
return removedResources_.getByteString(index);
}
public static final int NONCE_FIELD_NUMBER = 4;
private volatile java.lang.Object nonce_;
/**
*
* The nonce provides a way for IncrementalMeshConfigRequests to
* uniquely reference an IncrementalMeshConfigResponse. The nonce is
* required.
*
* The nonce provides a way for IncrementalMeshConfigRequests to
* uniquely reference an IncrementalMeshConfigResponse. The nonce is
* required.
*
*
* string nonce = 4;
*/
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;
}
}
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 (!getSystemVersionInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, systemVersionInfo_);
}
for (int i = 0; i < resources_.size(); i++) {
output.writeMessage(2, resources_.get(i));
}
for (int i = 0; i < removedResources_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, removedResources_.getRaw(i));
}
if (!getNonceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nonce_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSystemVersionInfoBytes().isEmpty()) {
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));
}
{
int dataSize = 0;
for (int i = 0; i < removedResources_.size(); i++) {
dataSize += computeStringSizeNoTag(removedResources_.getRaw(i));
}
size += dataSize;
size += 1 * getRemovedResourcesList().size();
}
if (!getNonceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nonce_);
}
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 istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse)) {
return super.equals(obj);
}
istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse other = (istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse) obj;
if (!getSystemVersionInfo()
.equals(other.getSystemVersionInfo())) return false;
if (!getResourcesList()
.equals(other.getResourcesList())) return false;
if (!getRemovedResourcesList()
.equals(other.getRemovedResourcesList())) return false;
if (!getNonce()
.equals(other.getNonce())) 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();
}
if (getRemovedResourcesCount() > 0) {
hash = (37 * hash) + REMOVED_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getRemovedResourcesList().hashCode();
}
hash = (37 * hash) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + getNonce().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse 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 istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse 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 istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse 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(istio.mcp.v1alpha1.Mcp.IncrementalMeshConfigResponse 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;
}
/**
*
* IncrementalMeshConfigResponses do not need to include a full
* snapshot of the tracked resources. Instead they are a diff to the
* state of a MCP client. Per resource versions allow servers and
* clients to track state at the resource granularity. An MCP
* incremental session is always in the context of a gRPC
* bidirectional stream. This allows the MCP server to keep track of
* the state of MCP clients connected to it.
* In Incremental MCP the nonce field is required and used to pair
* IncrementalMeshConfigResponse to an IncrementalMeshConfigRequest
* ACK or NACK. Optionally, a response message level
* system_version_info is present for debugging purposes only.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
*
* repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
*/
public Builder setResources(
int index, istio.mcp.v1alpha1.ResourceOuterClass.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 wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
*
* repeated .istio.mcp.v1alpha1.Resource resources = 2 [(.gogoproto.nullable) = false];
*/
public Builder addResources(
int index, istio.mcp.v1alpha1.ResourceOuterClass.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 wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* The response resources wrapped in the common MCP *Resource*
* message. These are typed resources that match the type url in the
* IncrementalMeshConfigRequest.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
*
* repeated string removed_resources = 3;
*/
public int getRemovedResourcesCount() {
return removedResources_.size();
}
/**
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
*
* repeated string removed_resources = 3;
*/
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 MCP Client. Removed resources for missing
* resources can be ignored.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
* Resources names of resources that have be deleted and to be
* removed from the MCP Client. Removed resources for missing
* resources can be ignored.
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
* When the RequestResources is an ACK or NACK message in response to a previous RequestResources,
* the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must
* be omitted.
*
* When the RequestResources is an ACK or NACK message in response to a previous RequestResources,
* the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must
* be omitted.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* Request an incremental update for the specified collection. The source may choose to
* honor this request or ignore and and provide a full-state update in the corresponding
* `Resource` response.
*
* A RequestResource can be sent in two situations:
* Initial message in an MCP bidirectional change stream
* as an ACK or NACK response to a previous Resources. In
* this case the response_nonce is set to the nonce value
* in the Resources. ACK/NACK is determined by the presence
* of error_detail.
* * ACK (nonce!="",error_details==nil)
* * NACK (nonce!="",error_details!=nil)
* * New/Update request (nonce=="",error_details ignored)
*
*
* Protobuf type {@code istio.mcp.v1alpha1.RequestResources}
*/
public static final class RequestResources extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.RequestResources)
RequestResourcesOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestResources.newBuilder() to construct.
private RequestResources(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestResources() {
collection_ = "";
responseNonce_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestResources();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestResources(
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: {
istio.mcp.v1alpha1.Mcp.SinkNode.Builder subBuilder = null;
if (sinkNode_ != null) {
subBuilder = sinkNode_.toBuilder();
}
sinkNode_ = input.readMessage(istio.mcp.v1alpha1.Mcp.SinkNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sinkNode_);
sinkNode_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
collection_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
initialResourceVersions_ = com.google.protobuf.MapField.newMapField(
InitialResourceVersionsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
initialResourceVersions__ = input.readMessage(
InitialResourceVersionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
initialResourceVersions_.getMutableMap().put(
initialResourceVersions__.getKey(), initialResourceVersions__.getValue());
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
responseNonce_ = s;
break;
}
case 42: {
com.google.rpc.Status.Builder subBuilder = null;
if (errorDetail_ != null) {
subBuilder = errorDetail_.toBuilder();
}
errorDetail_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(errorDetail_);
errorDetail_ = subBuilder.buildPartial();
}
break;
}
case 48: {
incremental_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_RequestResources_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetInitialResourceVersions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_RequestResources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
istio.mcp.v1alpha1.Mcp.RequestResources.class, istio.mcp.v1alpha1.Mcp.RequestResources.Builder.class);
}
public static final int SINK_NODE_FIELD_NUMBER = 1;
private istio.mcp.v1alpha1.Mcp.SinkNode sinkNode_;
/**
*
* Type of resource collection that is being requested, e.g.
* istio/networking/v1alpha3/VirtualService
* k8s/<apiVersion>/<kind>
*
*
* string collection = 2;
*/
public com.google.protobuf.ByteString
getCollectionBytes() {
java.lang.Object ref = collection_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
collection_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INITIAL_RESOURCE_VERSIONS_FIELD_NUMBER = 3;
private static final class InitialResourceVersionsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_RequestResources_InitialResourceVersionsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> initialResourceVersions_;
private com.google.protobuf.MapField
internalGetInitialResourceVersions() {
if (initialResourceVersions_ == null) {
return com.google.protobuf.MapField.emptyMapField(
InitialResourceVersionsDefaultEntryHolder.defaultEntry);
}
return initialResourceVersions_;
}
public int getInitialResourceVersionsCount() {
return internalGetInitialResourceVersions().getMap().size();
}
/**
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
*
* map<string, string> initial_resource_versions = 3;
*/
public boolean containsInitialResourceVersions(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetInitialResourceVersions().getMap().containsKey(key);
}
/**
* Use {@link #getInitialResourceVersionsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getInitialResourceVersions() {
return getInitialResourceVersionsMap();
}
/**
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
*
* map<string, string> initial_resource_versions = 3;
*/
public java.lang.String getInitialResourceVersionsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetInitialResourceVersions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int RESPONSE_NONCE_FIELD_NUMBER = 4;
private volatile java.lang.Object responseNonce_;
/**
*
* When the RequestResources is an ACK or NACK message in response to a previous RequestResources,
* the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must
* be omitted.
*
* When the RequestResources is an ACK or NACK message in response to a previous RequestResources,
* the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must
* be omitted.
*
*
* string response_nonce = 4;
*/
public com.google.protobuf.ByteString
getResponseNonceBytes() {
java.lang.Object ref = responseNonce_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
responseNonce_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERROR_DETAIL_FIELD_NUMBER = 5;
private com.google.rpc.Status errorDetail_;
/**
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
*
* .google.rpc.Status error_detail = 5;
*/
public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() {
return getErrorDetail();
}
public static final int INCREMENTAL_FIELD_NUMBER = 6;
private boolean incremental_;
/**
*
* Request an incremental update for the specified collection. The source may choose to
* honor this request or ignore and and provide a full-state update in the corresponding
* `Resource` response.
*
* A RequestResource can be sent in two situations:
* Initial message in an MCP bidirectional change stream
* as an ACK or NACK response to a previous Resources. In
* this case the response_nonce is set to the nonce value
* in the Resources. ACK/NACK is determined by the presence
* of error_detail.
* * ACK (nonce!="",error_details==nil)
* * NACK (nonce!="",error_details!=nil)
* * New/Update request (nonce=="",error_details ignored)
*
*
* Protobuf type {@code istio.mcp.v1alpha1.RequestResources}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:istio.mcp.v1alpha1.RequestResources)
istio.mcp.v1alpha1.Mcp.RequestResourcesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_RequestResources_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetInitialResourceVersions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 3:
return internalGetMutableInitialResourceVersions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_RequestResources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
istio.mcp.v1alpha1.Mcp.RequestResources.class, istio.mcp.v1alpha1.Mcp.RequestResources.Builder.class);
}
// Construct using istio.mcp.v1alpha1.Mcp.RequestResources.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (sinkNodeBuilder_ == null) {
sinkNode_ = null;
} else {
sinkNode_ = null;
sinkNodeBuilder_ = null;
}
collection_ = "";
internalGetMutableInitialResourceVersions().clear();
responseNonce_ = "";
if (errorDetailBuilder_ == null) {
errorDetail_ = null;
} else {
errorDetail_ = null;
errorDetailBuilder_ = null;
}
incremental_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_RequestResources_descriptor;
}
@java.lang.Override
public istio.mcp.v1alpha1.Mcp.RequestResources getDefaultInstanceForType() {
return istio.mcp.v1alpha1.Mcp.RequestResources.getDefaultInstance();
}
@java.lang.Override
public istio.mcp.v1alpha1.Mcp.RequestResources build() {
istio.mcp.v1alpha1.Mcp.RequestResources result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public istio.mcp.v1alpha1.Mcp.RequestResources buildPartial() {
istio.mcp.v1alpha1.Mcp.RequestResources result = new istio.mcp.v1alpha1.Mcp.RequestResources(this);
int from_bitField0_ = bitField0_;
if (sinkNodeBuilder_ == null) {
result.sinkNode_ = sinkNode_;
} else {
result.sinkNode_ = sinkNodeBuilder_.build();
}
result.collection_ = collection_;
result.initialResourceVersions_ = internalGetInitialResourceVersions();
result.initialResourceVersions_.makeImmutable();
result.responseNonce_ = responseNonce_;
if (errorDetailBuilder_ == null) {
result.errorDetail_ = errorDetail_;
} else {
result.errorDetail_ = errorDetailBuilder_.build();
}
result.incremental_ = incremental_;
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 istio.mcp.v1alpha1.Mcp.RequestResources) {
return mergeFrom((istio.mcp.v1alpha1.Mcp.RequestResources)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(istio.mcp.v1alpha1.Mcp.RequestResources other) {
if (other == istio.mcp.v1alpha1.Mcp.RequestResources.getDefaultInstance()) return this;
if (other.hasSinkNode()) {
mergeSinkNode(other.getSinkNode());
}
if (!other.getCollection().isEmpty()) {
collection_ = other.collection_;
onChanged();
}
internalGetMutableInitialResourceVersions().mergeFrom(
other.internalGetInitialResourceVersions());
if (!other.getResponseNonce().isEmpty()) {
responseNonce_ = other.responseNonce_;
onChanged();
}
if (other.hasErrorDetail()) {
mergeErrorDetail(other.getErrorDetail());
}
if (other.getIncremental() != false) {
setIncremental(other.getIncremental());
}
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 {
istio.mcp.v1alpha1.Mcp.RequestResources parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (istio.mcp.v1alpha1.Mcp.RequestResources) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private istio.mcp.v1alpha1.Mcp.SinkNode sinkNode_;
private com.google.protobuf.SingleFieldBuilderV3<
istio.mcp.v1alpha1.Mcp.SinkNode, istio.mcp.v1alpha1.Mcp.SinkNode.Builder, istio.mcp.v1alpha1.Mcp.SinkNodeOrBuilder> sinkNodeBuilder_;
/**
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
*
* map<string, string> initial_resource_versions = 3;
*/
public boolean containsInitialResourceVersions(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetInitialResourceVersions().getMap().containsKey(key);
}
/**
* Use {@link #getInitialResourceVersionsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getInitialResourceVersions() {
return getInitialResourceVersionsMap();
}
/**
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
*
* map<string, string> initial_resource_versions = 3;
*/
public java.lang.String getInitialResourceVersionsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetInitialResourceVersions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearInitialResourceVersions() {
internalGetMutableInitialResourceVersions().getMutableMap()
.clear();
return this;
}
/**
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
*
* map<string, string> initial_resource_versions = 3;
*/
public Builder removeInitialResourceVersions(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableInitialResourceVersions().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableInitialResourceVersions() {
return internalGetMutableInitialResourceVersions().getMutableMap();
}
/**
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
*
* map<string, string> initial_resource_versions = 3;
*/
public Builder putInitialResourceVersions(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableInitialResourceVersions().getMutableMap()
.put(key, value);
return this;
}
/**
*
* When the RequestResources is the first in a stream, the initial_resource_versions must
* be populated. Otherwise, initial_resource_versions must be omitted. The keys are the
* resources names of the MCP resources known to the MCP client. The values in the map
* are the associated resource level version info.
*
* When the RequestResources is an ACK or NACK message in response to a previous RequestResources,
* the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must
* be omitted.
*
* When the RequestResources is an ACK or NACK message in response to a previous RequestResources,
* the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must
* be omitted.
*
* When the RequestResources is an ACK or NACK message in response to a previous RequestResources,
* the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must
* be omitted.
*
* When the RequestResources is an ACK or NACK message in response to a previous RequestResources,
* the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must
* be omitted.
*
* When the RequestResources is an ACK or NACK message in response to a previous RequestResources,
* the response_nonce must be the nonce in the RequestResources. Otherwise response_nonce must
* be omitted.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
*
* .google.rpc.Status error_detail = 5;
*/
public Builder setErrorDetail(com.google.rpc.Status value) {
if (errorDetailBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorDetail_ = value;
onChanged();
} else {
errorDetailBuilder_.setMessage(value);
}
return this;
}
/**
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* This is populated when the previously received resources could not be applied
* The *message* field in *error_details* provides the source internal error
* related to the failure.
*
* Request an incremental update for the specified collection. The source may choose to
* honor this request or ignore and and provide a full-state update in the corresponding
* `Resource` response.
*
* Request an incremental update for the specified collection. The source may choose to
* honor this request or ignore and and provide a full-state update in the corresponding
* `Resource` response.
*
* Request an incremental update for the specified collection. The source may choose to
* honor this request or ignore and and provide a full-state update in the corresponding
* `Resource` response.
*
*
* bool incremental = 6;
*/
public Builder clearIncremental() {
incremental_ = false;
onChanged();
return this;
}
@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:istio.mcp.v1alpha1.RequestResources)
}
// @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.RequestResources)
private static final istio.mcp.v1alpha1.Mcp.RequestResources DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new istio.mcp.v1alpha1.Mcp.RequestResources();
}
public static istio.mcp.v1alpha1.Mcp.RequestResources getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestResources parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestResources(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 istio.mcp.v1alpha1.Mcp.RequestResources getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourcesOrBuilder extends
// @@protoc_insertion_point(interface_extends:istio.mcp.v1alpha1.Resources)
com.google.protobuf.MessageOrBuilder {
/**
*
* The version of the response data (used for debugging).
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
* Resources do not need to include a full snapshot of the tracked
* resources. Instead they are a diff to the state of a MCP client.
* Per resource versions allow sources and sinks to track state at
* the resource granularity. An MCP incremental session is always
* in the context of a gRPC bidirectional stream. This allows the
* MCP source to keep track of the state of MCP sink connected to
* it.
* In Incremental MCP the nonce field is required and used to pair
* Resources to an RequestResources ACK or NACK.
*
*
* Protobuf type {@code istio.mcp.v1alpha1.Resources}
*/
public static final class Resources extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.Resources)
ResourcesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Resources.newBuilder() to construct.
private Resources(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Resources() {
systemVersionInfo_ = "";
collection_ = "";
resources_ = java.util.Collections.emptyList();
removedResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
nonce_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Resources();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Resources(
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: {
java.lang.String s = input.readStringRequireUtf8();
collection_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
resources_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
resources_.add(
input.readMessage(istio.mcp.v1alpha1.ResourceOuterClass.Resource.parser(), extensionRegistry));
break;
}
case 34: {
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 42: {
java.lang.String s = input.readStringRequireUtf8();
nonce_ = s;
break;
}
case 48: {
incremental_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.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();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_Resources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return istio.mcp.v1alpha1.Mcp.internal_static_istio_mcp_v1alpha1_Resources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
istio.mcp.v1alpha1.Mcp.Resources.class, istio.mcp.v1alpha1.Mcp.Resources.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).
*
* Type of resource collection that is being requested, e.g.
* istio/networking/v1alpha3/VirtualService
* k8s/<apiVersion>/<kind>
*
*
* string collection = 2;
*/
public com.google.protobuf.ByteString
getCollectionBytes() {
java.lang.Object ref = collection_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
collection_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCES_FIELD_NUMBER = 3;
private java.util.List resources_;
/**
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
*
* repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
*/
public int getResourcesCount() {
return resources_.size();
}
/**
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
*
* repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
*/
public istio.mcp.v1alpha1.ResourceOuterClass.ResourceOrBuilder getResourcesOrBuilder(
int index) {
return resources_.get(index);
}
public static final int REMOVED_RESOURCES_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList removedResources_;
/**
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
*
* repeated string removed_resources = 4;
*/
public int getRemovedResourcesCount() {
return removedResources_.size();
}
/**
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
*
* repeated string removed_resources = 4;
*/
public com.google.protobuf.ByteString
getRemovedResourcesBytes(int index) {
return removedResources_.getByteString(index);
}
public static final int NONCE_FIELD_NUMBER = 5;
private volatile java.lang.Object nonce_;
/**
*
* Required. The nonce provides a way for RequestChange to uniquely
* reference a RequestResources.
*
* Required. The nonce provides a way for RequestChange to uniquely
* reference a RequestResources.
*
*
* string nonce = 5;
*/
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 INCREMENTAL_FIELD_NUMBER = 6;
private boolean incremental_;
/**
*
* This resource response is an incremental update. The source should only send
* incremental updates if the sink requested them.
*
*
* bool incremental = 6;
*/
public boolean getIncremental() {
return incremental_;
}
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 (!getSystemVersionInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, systemVersionInfo_);
}
if (!getCollectionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collection_);
}
for (int i = 0; i < resources_.size(); i++) {
output.writeMessage(3, resources_.get(i));
}
for (int i = 0; i < removedResources_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, removedResources_.getRaw(i));
}
if (!getNonceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nonce_);
}
if (incremental_ != false) {
output.writeBool(6, incremental_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSystemVersionInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, systemVersionInfo_);
}
if (!getCollectionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, collection_);
}
for (int i = 0; i < resources_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, resources_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < removedResources_.size(); i++) {
dataSize += computeStringSizeNoTag(removedResources_.getRaw(i));
}
size += dataSize;
size += 1 * getRemovedResourcesList().size();
}
if (!getNonceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nonce_);
}
if (incremental_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, incremental_);
}
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 istio.mcp.v1alpha1.Mcp.Resources)) {
return super.equals(obj);
}
istio.mcp.v1alpha1.Mcp.Resources other = (istio.mcp.v1alpha1.Mcp.Resources) obj;
if (!getSystemVersionInfo()
.equals(other.getSystemVersionInfo())) return false;
if (!getCollection()
.equals(other.getCollection())) return false;
if (!getResourcesList()
.equals(other.getResourcesList())) return false;
if (!getRemovedResourcesList()
.equals(other.getRemovedResourcesList())) return false;
if (!getNonce()
.equals(other.getNonce())) return false;
if (getIncremental()
!= other.getIncremental()) 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();
hash = (37 * hash) + COLLECTION_FIELD_NUMBER;
hash = (53 * hash) + getCollection().hashCode();
if (getResourcesCount() > 0) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResourcesList().hashCode();
}
if (getRemovedResourcesCount() > 0) {
hash = (37 * hash) + REMOVED_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getRemovedResourcesList().hashCode();
}
hash = (37 * hash) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + getNonce().hashCode();
hash = (37 * hash) + INCREMENTAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIncremental());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static istio.mcp.v1alpha1.Mcp.Resources parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.Resources parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.Resources parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.Resources parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.Resources parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.mcp.v1alpha1.Mcp.Resources parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.mcp.v1alpha1.Mcp.Resources parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.Resources 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 istio.mcp.v1alpha1.Mcp.Resources parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.Resources 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 istio.mcp.v1alpha1.Mcp.Resources parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static istio.mcp.v1alpha1.Mcp.Resources 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(istio.mcp.v1alpha1.Mcp.Resources 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;
}
/**
*
* Resources do not need to include a full snapshot of the tracked
* resources. Instead they are a diff to the state of a MCP client.
* Per resource versions allow sources and sinks to track state at
* the resource granularity. An MCP incremental session is always
* in the context of a gRPC bidirectional stream. This allows the
* MCP source to keep track of the state of MCP sink connected to
* it.
* In Incremental MCP the nonce field is required and used to pair
* Resources to an RequestResources ACK or NACK.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
*
* repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
*/
public Builder setResources(
int index, istio.mcp.v1alpha1.ResourceOuterClass.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 wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
*
* repeated .istio.mcp.v1alpha1.Resource resources = 3 [(.gogoproto.nullable) = false];
*/
public Builder addResources(
int index, istio.mcp.v1alpha1.ResourceOuterClass.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 wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* The response resources wrapped in the common MCP *Resource* message.
* These are typed resources that match the type url in the
* RequestResources message.
* When `incremental` is true, this contains an array of resources to add/update
* for the specified collection. This modifies the existing collection at the sink
* When `incremental` is false, this contains the full set of resources for the
* specified collection. This replaces any previously delivered resources.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
*
* repeated string removed_resources = 4;
*/
public int getRemovedResourcesCount() {
return removedResources_.size();
}
/**
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
*
* repeated string removed_resources = 4;
*/
public Builder setRemovedResources(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRemovedResourcesIsMutable();
removedResources_.set(index, value);
onChanged();
return this;
}
/**
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*
* Names of resources that have been deleted and to be
* removed from the MCP sink node. Removed resources for missing
* resources can be ignored.
* When `incremental` is true, this contains an array of resource names to remove
* for the specified collection. This modifies the existing resource collection at
* the sink.
* When `incremental` is false, this field should be ignored.
*