public final class Resources extends com.google.protobuf.GeneratedMessageV3 implements ResourcesOrBuilder
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
istio.mcp.v1alpha1.Resources| 限定符和类型 | 类和说明 |
|---|---|
static class |
Resources.Builder
Resources do not need to include a full snapshot of the tracked
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| 限定符和类型 | 字段和说明 |
|---|---|
private java.lang.Object |
collection_ |
static int |
COLLECTION_FIELD_NUMBER |
private static Resources |
DEFAULT_INSTANCE |
private boolean |
incremental_ |
static int |
INCREMENTAL_FIELD_NUMBER |
private byte |
memoizedIsInitialized |
private java.lang.Object |
nonce_ |
static int |
NONCE_FIELD_NUMBER |
private static com.google.protobuf.Parser<Resources> |
PARSER |
static int |
REMOVED_RESOURCES_FIELD_NUMBER |
private com.google.protobuf.LazyStringList |
removedResources_ |
private java.util.List<Resource> |
resources_ |
static int |
RESOURCES_FIELD_NUMBER |
private static long |
serialVersionUID |
static int |
SYSTEM_VERSION_INFO_FIELD_NUMBER |
private java.lang.Object |
systemVersionInfo_ |
| 限定符 | 构造器和说明 |
|---|---|
private |
Resources() |
private |
Resources(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
private |
Resources(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 Resources |
getDefaultInstance() |
Resources |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getIncremental()
This resource response is an incremental update.
|
java.lang.String |
getNonce()
Required.
|
com.google.protobuf.ByteString |
getNonceBytes()
Required.
|
com.google.protobuf.Parser<Resources> |
getParserForType() |
java.lang.String |
getRemovedResources(int index)
Names of resources that have been deleted and to be
removed from the MCP sink node.
|
com.google.protobuf.ByteString |
getRemovedResourcesBytes(int index)
Names of resources that have been deleted and to be
removed from the MCP sink node.
|
int |
getRemovedResourcesCount()
Names of resources that have been deleted and to be
removed from the MCP sink node.
|
com.google.protobuf.ProtocolStringList |
getRemovedResourcesList()
Names of resources that have been deleted and to be
removed from the MCP sink node.
|
Resource |
getResources(int index)
The response resources wrapped in the common MCP *Resource* message.
|
int |
getResourcesCount()
The response resources wrapped in the common MCP *Resource* message.
|
java.util.List<Resource> |
getResourcesList()
The response resources wrapped in the common MCP *Resource* message.
|
ResourceOrBuilder |
getResourcesOrBuilder(int index)
The response resources wrapped in the common MCP *Resource* message.
|
java.util.List<? extends ResourceOrBuilder> |
getResourcesOrBuilderList()
The response resources wrapped in the common MCP *Resource* message.
|
int |
getSerializedSize() |
java.lang.String |
getSystemVersionInfo()
The version of the response data (used for debugging).
|
com.google.protobuf.ByteString |
getSystemVersionInfoBytes()
The version of the response data (used for debugging).
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Resources.Builder |
newBuilder() |
static Resources.Builder |
newBuilder(Resources prototype) |
Resources.Builder |
newBuilderForType() |
protected Resources.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Resources |
parseDelimitedFrom(java.io.InputStream input) |
static Resources |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Resources |
parseFrom(byte[] data) |
static Resources |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Resources |
parseFrom(java.nio.ByteBuffer data) |
static Resources |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Resources |
parseFrom(com.google.protobuf.ByteString data) |
static Resources |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Resources |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Resources |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Resources |
parseFrom(java.io.InputStream input) |
static Resources |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Resources> |
parser() |
Resources.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, internalGetMapField, 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 SYSTEM_VERSION_INFO_FIELD_NUMBER
private volatile java.lang.Object systemVersionInfo_
public static final int COLLECTION_FIELD_NUMBER
private volatile java.lang.Object collection_
public static final int RESOURCES_FIELD_NUMBER
private java.util.List<Resource> resources_
public static final int REMOVED_RESOURCES_FIELD_NUMBER
private com.google.protobuf.LazyStringList removedResources_
public static final int NONCE_FIELD_NUMBER
private volatile java.lang.Object nonce_
public static final int INCREMENTAL_FIELD_NUMBER
private boolean incremental_
private byte memoizedIsInitialized
private static final Resources DEFAULT_INSTANCE
private static final com.google.protobuf.Parser<Resources> PARSER
private Resources(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
private Resources()
private Resources(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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public java.lang.String getSystemVersionInfo()
The version of the response data (used for debugging).
string system_version_info = 1;getSystemVersionInfo 在接口中 ResourcesOrBuilderpublic com.google.protobuf.ByteString getSystemVersionInfoBytes()
The version of the response data (used for debugging).
string system_version_info = 1;getSystemVersionInfoBytes 在接口中 ResourcesOrBuilderpublic 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 在接口中 ResourcesOrBuilderpublic 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 在接口中 ResourcesOrBuilderpublic java.util.List<Resource> getResourcesList()
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;getResourcesList 在接口中 ResourcesOrBuilderpublic java.util.List<? extends ResourceOrBuilder> getResourcesOrBuilderList()
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;getResourcesOrBuilderList 在接口中 ResourcesOrBuilderpublic int getResourcesCount()
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;getResourcesCount 在接口中 ResourcesOrBuilderpublic Resource getResources(int index)
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;getResources 在接口中 ResourcesOrBuilderpublic ResourceOrBuilder getResourcesOrBuilder(int index)
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;getResourcesOrBuilder 在接口中 ResourcesOrBuilderpublic com.google.protobuf.ProtocolStringList getRemovedResourcesList()
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;getRemovedResourcesList 在接口中 ResourcesOrBuilderpublic int getRemovedResourcesCount()
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;getRemovedResourcesCount 在接口中 ResourcesOrBuilderpublic java.lang.String getRemovedResources(int index)
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;getRemovedResources 在接口中 ResourcesOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getRemovedResourcesBytes(int index)
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;getRemovedResourcesBytes 在接口中 ResourcesOrBuilderindex - The index of the value to return.public java.lang.String getNonce()
Required. The nonce provides a way for RequestChange to uniquely reference a RequestResources.
string nonce = 5;getNonce 在接口中 ResourcesOrBuilderpublic com.google.protobuf.ByteString getNonceBytes()
Required. The nonce provides a way for RequestChange to uniquely reference a RequestResources.
string nonce = 5;getNonceBytes 在接口中 ResourcesOrBuilderpublic boolean getIncremental()
This resource response is an incremental update. The source should only send incremental updates if the sink requested them.
bool incremental = 6;getIncremental 在接口中 ResourcesOrBuilderpublic 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 Resources parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Resources parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Resources parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Resources parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Resources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Resources parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Resources parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Resources parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Resources parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Resources parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Resources parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Resources parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Resources.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static Resources.Builder newBuilder()
public static Resources.Builder newBuilder(Resources prototype)
public Resources.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected Resources.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static Resources getDefaultInstance()
public static com.google.protobuf.Parser<Resources> parser()
public com.google.protobuf.Parser<Resources> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public Resources getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2018–2020 Alibaba Group. All rights reserved.