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.
* The response resources wrapped in the common MCP *Resource*
* message.
*
*
* repeated .istio.mcp.v1alpha1.Resource resources = 2;
*/
public com.alibaba.nacos.istio.model.mcp.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;
* @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 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;
* @return The bytes for nonce.
*/
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 com.alibaba.nacos.istio.model.mcp.MeshConfigResponse)) {
return super.equals(obj);
}
com.alibaba.nacos.istio.model.mcp.MeshConfigResponse other = (com.alibaba.nacos.istio.model.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 com.alibaba.nacos.istio.model.mcp.MeshConfigResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.nacos.istio.model.mcp.MeshConfigResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.nacos.istio.model.mcp.MeshConfigResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.nacos.istio.model.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 com.alibaba.nacos.istio.model.mcp.MeshConfigResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.nacos.istio.model.mcp.MeshConfigResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.nacos.istio.model.mcp.MeshConfigResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.nacos.istio.model.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 com.alibaba.nacos.istio.model.mcp.MeshConfigResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.alibaba.nacos.istio.model.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 com.alibaba.nacos.istio.model.mcp.MeshConfigResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.nacos.istio.model.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(com.alibaba.nacos.istio.model.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.
*
*
* string type_url = 3;
* @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 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;
* @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 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;
* @return This builder for chaining.
*/
public Builder clearTypeUrl() {
typeUrl_ = getDefaultInstance().getTypeUrl();
onChanged();
return this;
}
/**
*
* 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;
* @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 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;
* @return The bytes for nonce.
*/
public com.google.protobuf.ByteString
getNonceBytes() {
java.lang.Object ref = nonce_;
if (ref instanceof 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;
}
}
/**
*
* 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;
* @param value The nonce to set.
* @return This builder for chaining.
*/
public Builder setNonce(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nonce_ = value;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearNonce() {
nonce_ = getDefaultInstance().getNonce();
onChanged();
return this;
}
/**
*
* 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;
* @param value The bytes for nonce to set.
* @return This builder for chaining.
*/
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 com.alibaba.nacos.istio.model.mcp.MeshConfigResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.nacos.istio.model.mcp.MeshConfigResponse();
}
public static com.alibaba.nacos.istio.model.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 com.alibaba.nacos.istio.model.mcp.MeshConfigResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}