public final class RequestResources extends com.google.protobuf.GeneratedMessageV3 implements 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 |
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.
|
private static class |
RequestResources.InitialResourceVersionsDefaultEntryHolder |
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| 限定符和类型 | 字段和说明 |
|---|---|
private java.lang.Object |
collection_ |
static int |
COLLECTION_FIELD_NUMBER |
private static RequestResources |
DEFAULT_INSTANCE |
static int |
ERROR_DETAIL_FIELD_NUMBER |
private com.google.rpc.Status |
errorDetail_ |
private boolean |
incremental_ |
static int |
INCREMENTAL_FIELD_NUMBER |
static int |
INITIAL_RESOURCE_VERSIONS_FIELD_NUMBER |
private com.google.protobuf.MapField<java.lang.String,java.lang.String> |
initialResourceVersions_ |
private byte |
memoizedIsInitialized |
private static com.google.protobuf.Parser<RequestResources> |
PARSER |
static int |
RESPONSE_NONCE_FIELD_NUMBER |
private java.lang.Object |
responseNonce_ |
private static long |
serialVersionUID |
static int |
SINK_NODE_FIELD_NUMBER |
private SinkNode |
sinkNode_ |
| 限定符 | 构造器和说明 |
|---|---|
private |
RequestResources() |
private |
RequestResources(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
private |
RequestResources(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsInitialResourceVersions(java.lang.String key)
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
boolean |
equals(java.lang.Object obj) |
java.lang.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 RequestResources |
getDefaultInstance() |
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.
|
java.util.Map<java.lang.String,java.lang.String> |
getInitialResourceVersions()
已过时。
|
int |
getInitialResourceVersionsCount()
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
java.util.Map<java.lang.String,java.lang.String> |
getInitialResourceVersionsMap()
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
java.lang.String |
getInitialResourceVersionsOrDefault(java.lang.String key,
java.lang.String defaultValue)
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
java.lang.String |
getInitialResourceVersionsOrThrow(java.lang.String key)
When the RequestResources is the first in a stream, the initial_resource_versions must
be populated.
|
com.google.protobuf.Parser<RequestResources> |
getParserForType() |
java.lang.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() |
SinkNode |
getSinkNode()
The sink node making the request.
|
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() |
private com.google.protobuf.MapField<java.lang.String,java.lang.String> |
internalGetInitialResourceVersions() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static RequestResources.Builder |
newBuilder() |
static RequestResources.Builder |
newBuilder(RequestResources prototype) |
RequestResources.Builder |
newBuilderForType() |
protected RequestResources.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RequestResources |
parseDelimitedFrom(java.io.InputStream input) |
static RequestResources |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RequestResources |
parseFrom(byte[] data) |
static RequestResources |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RequestResources |
parseFrom(java.nio.ByteBuffer data) |
static RequestResources |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RequestResources |
parseFrom(com.google.protobuf.ByteString data) |
static RequestResources |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RequestResources |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RequestResources |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RequestResources |
parseFrom(java.io.InputStream input) |
static RequestResources |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RequestResources> |
parser() |
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, makeExtensionsImmutable, 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, getSerializedSizeInternal, isInitializedInternal, makeImmutableInternal, mergeFromInternal, toByteArray, toByteString, writeDelimitedTo, writeTo, writeToInternalprivate static final long serialVersionUID
public static final int SINK_NODE_FIELD_NUMBER
private SinkNode sinkNode_
public static final int COLLECTION_FIELD_NUMBER
private volatile java.lang.Object collection_
public static final int INITIAL_RESOURCE_VERSIONS_FIELD_NUMBER
private com.google.protobuf.MapField<java.lang.String,java.lang.String> initialResourceVersions_
public static final int RESPONSE_NONCE_FIELD_NUMBER
private volatile java.lang.Object responseNonce_
public static final int ERROR_DETAIL_FIELD_NUMBER
private com.google.rpc.Status errorDetail_
public static final int INCREMENTAL_FIELD_NUMBER
private boolean incremental_
private byte memoizedIsInitialized
private static final RequestResources DEFAULT_INSTANCE
private static final com.google.protobuf.Parser<RequestResources> PARSER
private RequestResources(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
private RequestResources()
private RequestResources(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionprotected java.lang.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 在接口中 RequestResourcesOrBuilderpublic SinkNode getSinkNode()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;getSinkNode 在接口中 RequestResourcesOrBuilderpublic SinkNodeOrBuilder getSinkNodeOrBuilder()
The sink node making the request.
.istio.mcp.v1alpha1.SinkNode sink_node = 1;public java.lang.String getCollection()
Type of resource collection that is being requested, e.g. istio/networking/v1alpha3/VirtualService k8s/<apiVersion>/<kind>
string collection = 2;getCollection 在接口中 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 在接口中 RequestResourcesOrBuilderprivate com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetInitialResourceVersions()
public int getInitialResourceVersionsCount()
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(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getInitialResourceVersions()
getInitialResourceVersionsMap() instead.public java.util.Map<java.lang.String,java.lang.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 java.lang.String getInitialResourceVersionsOrDefault(java.lang.String key,
java.lang.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 java.lang.String getInitialResourceVersionsOrThrow(java.lang.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 java.lang.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 在接口中 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 在接口中 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 在接口中 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 在接口中 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 在接口中 RequestResourcesOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static RequestResources parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RequestResources parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RequestResources parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RequestResources parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RequestResources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RequestResources parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RequestResources parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static RequestResources parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static RequestResources parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static RequestResources parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static RequestResources parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static RequestResources parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic RequestResources.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static RequestResources.Builder newBuilder()
public static RequestResources.Builder newBuilder(RequestResources prototype)
public RequestResources.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected RequestResources.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static RequestResources getDefaultInstance()
public static com.google.protobuf.Parser<RequestResources> parser()
public com.google.protobuf.Parser<RequestResources> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public RequestResources getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2018–2020 Alibaba Group. All rights reserved.