public static final class Mcp.RequestResources extends com.google.protobuf.GeneratedMessageV3 implements Mcp.RequestResourcesOrBuilder
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
istio.mcp.v1alpha1.RequestResources| 限定符和类型 | 类和说明 |
|---|---|
static class |
Mcp.RequestResources.Builder
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.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 限定符和类型 | 字段和说明 |
|---|---|
static int |
COLLECTION_FIELD_NUMBER |
static int |
ERROR_DETAIL_FIELD_NUMBER |
static int |
INCREMENTAL_FIELD_NUMBER |
static int |
INITIAL_RESOURCE_VERSIONS_FIELD_NUMBER |
static int |
RESPONSE_NONCE_FIELD_NUMBER |
static int |
SINK_NODE_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsInitialResourceVersions(String key)
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
boolean |
equals(Object obj) |
String |
getCollection()
Type of resource collection that is being requested, e.g.
|
com.google.protobuf.ByteString |
getCollectionBytes()
Type of resource collection that is being requested, e.g.
|
static Mcp.RequestResources |
getDefaultInstance() |
Mcp.RequestResources |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.rpc.Status |
getErrorDetail()
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.
|
com.google.rpc.StatusOrBuilder |
getErrorDetailOrBuilder()
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.
|
boolean |
getIncremental()
Request an incremental update for the specified collection.
|
Map<String,String> |
getInitialResourceVersions()
已过时。
|
int |
getInitialResourceVersionsCount()
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
Map<String,String> |
getInitialResourceVersionsMap()
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
String |
getInitialResourceVersionsOrDefault(String key,
String defaultValue)
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
String |
getInitialResourceVersionsOrThrow(String key)
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
com.google.protobuf.Parser<Mcp.RequestResources> |
getParserForType() |
String |
getResponseNonce()
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.
|
com.google.protobuf.ByteString |
getResponseNonceBytes()
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.
|
int |
getSerializedSize() |
Mcp.SinkNode |
getSinkNode()
The sink node making the request.
|
Mcp.SinkNodeOrBuilder |
getSinkNodeOrBuilder()
The sink node making the request.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasErrorDetail()
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.
|
int |
hashCode() |
boolean |
hasSinkNode()
The sink node making the request.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Mcp.RequestResources.Builder |
newBuilder() |
static Mcp.RequestResources.Builder |
newBuilder(Mcp.RequestResources prototype) |
Mcp.RequestResources.Builder |
newBuilderForType() |
protected Mcp.RequestResources.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Mcp.RequestResources |
parseDelimitedFrom(InputStream input) |
static Mcp.RequestResources |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mcp.RequestResources |
parseFrom(byte[] data) |
static Mcp.RequestResources |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mcp.RequestResources |
parseFrom(ByteBuffer data) |
static Mcp.RequestResources |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mcp.RequestResources |
parseFrom(com.google.protobuf.ByteString data) |
static Mcp.RequestResources |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mcp.RequestResources |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Mcp.RequestResources |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mcp.RequestResources |
parseFrom(InputStream input) |
static Mcp.RequestResources |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Mcp.RequestResources> |
parser() |
Mcp.RequestResources.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int SINK_NODE_FIELD_NUMBER
public static final int COLLECTION_FIELD_NUMBER
public static final int INITIAL_RESOURCE_VERSIONS_FIELD_NUMBER
public static final int RESPONSE_NONCE_FIELD_NUMBER
public static final int ERROR_DETAIL_FIELD_NUMBER
public static final int INCREMENTAL_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 在类中 com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public boolean hasSinkNode()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;hasSinkNode 在接口中 Mcp.RequestResourcesOrBuilderpublic Mcp.SinkNode getSinkNode()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;getSinkNode 在接口中 Mcp.RequestResourcesOrBuilderpublic Mcp.SinkNodeOrBuilder getSinkNodeOrBuilder()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;public String getCollection()
Type of resource collection that is being requested, e.g. istio/networking/v1alpha3/VirtualService k8s/<apiVersion>/<kind>
string collection = 2;getCollection 在接口中 Mcp.RequestResourcesOrBuilderpublic com.google.protobuf.ByteString getCollectionBytes()
Type of resource collection that is being requested, e.g. istio/networking/v1alpha3/VirtualService k8s/<apiVersion>/<kind>
string collection = 2;getCollectionBytes 在接口中 Mcp.RequestResourcesOrBuilderpublic int getInitialResourceVersionsCount()
Mcp.RequestResourcesOrBuilderWhen 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(String key)
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;@Deprecated public Map<String,String> getInitialResourceVersions()
getInitialResourceVersionsMap() instead.public Map<String,String> 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.
map<string, string> initial_resource_versions = 3;public String getInitialResourceVersionsOrDefault(String key, String defaultValue)
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 String getInitialResourceVersionsOrThrow(String key)
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 String getResponseNonce()
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;getResponseNonce 在接口中 Mcp.RequestResourcesOrBuilderpublic com.google.protobuf.ByteString getResponseNonceBytes()
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;getResponseNonceBytes 在接口中 Mcp.RequestResourcesOrBuilderpublic boolean hasErrorDetail()
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;hasErrorDetail 在接口中 Mcp.RequestResourcesOrBuilderpublic com.google.rpc.Status getErrorDetail()
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;getErrorDetail 在接口中 Mcp.RequestResourcesOrBuilderpublic com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder()
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 boolean getIncremental()
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;getIncremental 在接口中 Mcp.RequestResourcesOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static Mcp.RequestResources parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Mcp.RequestResources parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Mcp.RequestResources parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Mcp.RequestResources parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Mcp.RequestResources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Mcp.RequestResources parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Mcp.RequestResources parseFrom(InputStream input) throws IOException
IOExceptionpublic static Mcp.RequestResources parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Mcp.RequestResources parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Mcp.RequestResources parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Mcp.RequestResources parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Mcp.RequestResources parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Mcp.RequestResources.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static Mcp.RequestResources.Builder newBuilder()
public static Mcp.RequestResources.Builder newBuilder(Mcp.RequestResources prototype)
public Mcp.RequestResources.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected Mcp.RequestResources.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static Mcp.RequestResources getDefaultInstance()
public static com.google.protobuf.Parser<Mcp.RequestResources> parser()
public com.google.protobuf.Parser<Mcp.RequestResources> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public Mcp.RequestResources getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2018–2023 Alibaba Group. All rights reserved.