Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mcp.proto
package com.alibaba.nacos.istio.model.mcp;
/**
*
* 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 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: {
com.alibaba.nacos.istio.model.mcp.SinkNode.Builder subBuilder = null;
if (sinkNode_ != null) {
subBuilder = sinkNode_.toBuilder();
}
sinkNode_ = input.readMessage(com.alibaba.nacos.istio.model.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 com.alibaba.nacos.istio.model.mcp.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 com.alibaba.nacos.istio.model.mcp.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest.class, com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest.Builder.class);
}
public static final int SINK_NODE_FIELD_NUMBER = 1;
private com.alibaba.nacos.istio.model.mcp.SinkNode sinkNode_;
/**
*
* The sink node making the request.
*
*
* .istio.mcp.v1alpha1.SinkNode sink_node = 1;
* @return Whether the sinkNode field is set.
*/
public boolean hasSinkNode() {
return sinkNode_ != null;
}
/**
*
* Type of the resource that is being requested, e.g.
* "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
*
*
* string type_url = 2;
* @return The bytes for typeUrl.
*/
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(
com.alibaba.nacos.istio.model.mcp.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;
* @return The bytes for responseNonce.
*/
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.
*
*
* .google.rpc.Status error_detail = 5;
* @return Whether the errorDetail field is set.
*/
public boolean hasErrorDetail() {
return errorDetail_ != null;
}
/**
*
* 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)
com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.nacos.istio.model.mcp.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 com.alibaba.nacos.istio.model.mcp.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest.class, com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest.Builder.class);
}
// Construct using com.alibaba.nacos.istio.model.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 com.alibaba.nacos.istio.model.mcp.Mcp.internal_static_istio_mcp_v1alpha1_IncrementalMeshConfigRequest_descriptor;
}
@java.lang.Override
public com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest getDefaultInstanceForType() {
return com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest.getDefaultInstance();
}
@java.lang.Override
public com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest build() {
com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest buildPartial() {
com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest result = new com.alibaba.nacos.istio.model.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 com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest) {
return mergeFrom((com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest other) {
if (other == com.alibaba.nacos.istio.model.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 {
com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.alibaba.nacos.istio.model.mcp.SinkNode sinkNode_;
private com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.nacos.istio.model.mcp.SinkNode, com.alibaba.nacos.istio.model.mcp.SinkNode.Builder, com.alibaba.nacos.istio.model.mcp.SinkNodeOrBuilder> sinkNodeBuilder_;
/**
*
* The sink node making the request.
*
*
* .istio.mcp.v1alpha1.SinkNode sink_node = 1;
* @return Whether the sinkNode field is set.
*/
public boolean hasSinkNode() {
return sinkNodeBuilder_ != null || sinkNode_ != null;
}
/**
*
* Type of the resource that is being requested, e.g.
* "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
*
*
* string type_url = 2;
* @return The bytes for typeUrl.
*/
public com.google.protobuf.ByteString
getTypeUrlBytes() {
java.lang.Object ref = typeUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Type of the resource that is being requested, e.g.
* "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
*
*
* string type_url = 2;
* @param value The typeUrl to set.
* @return This builder for chaining.
*/
public Builder setTypeUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
typeUrl_ = value;
onChanged();
return this;
}
/**
*
* Type of the resource that is being requested, e.g.
* "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
*
*
* string type_url = 2;
* @return This builder for chaining.
*/
public Builder clearTypeUrl() {
typeUrl_ = getDefaultInstance().getTypeUrl();
onChanged();
return this;
}
/**
*
* Type of the resource that is being requested, e.g.
* "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
*
*
* string type_url = 2;
* @param value The bytes for typeUrl to set.
* @return This builder for chaining.
*/
public Builder setTypeUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
typeUrl_ = value;
onChanged();
return this;
}
private com.google.protobuf.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_;
}
private com.google.protobuf.MapField
internalGetMutableInitialResourceVersions() {
onChanged();;
if (initialResourceVersions_ == null) {
initialResourceVersions_ = com.google.protobuf.MapField.newMapField(
InitialResourceVersionsDefaultEntryHolder.defaultEntry);
}
if (!initialResourceVersions_.isMutable()) {
initialResourceVersions_ = initialResourceVersions_.copy();
}
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 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.
*
*
* string response_nonce = 4;
* @return The bytes for responseNonce.
*/
public com.google.protobuf.ByteString
getResponseNonceBytes() {
java.lang.Object ref = responseNonce_;
if (ref instanceof 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;
}
}
/**
*
* 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;
* @param value The responseNonce to set.
* @return This builder for chaining.
*/
public Builder setResponseNonce(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
responseNonce_ = value;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearResponseNonce() {
responseNonce_ = getDefaultInstance().getResponseNonce();
onChanged();
return this;
}
/**
*
* 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;
* @param value The bytes for responseNonce to set.
* @return This builder for chaining.
*/
public Builder setResponseNonceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
responseNonce_ = value;
onChanged();
return this;
}
private com.google.rpc.Status errorDetail_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorDetailBuilder_;
/**
*
* 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;
* @return Whether the errorDetail field is set.
*/
public boolean hasErrorDetail() {
return errorDetailBuilder_ != null || errorDetail_ != null;
}
/**
*
* 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 com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest();
}
public static com.alibaba.nacos.istio.model.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 com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}