All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.nacos.istio.model.mcp.MeshConfigRequest Maven / Gradle / Ivy

There is a newer version: 2.3.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: mcp.proto

package com.alibaba.nacos.istio.model.mcp;

/**
 * 
 * A MeshConfigRequest requests a set of versioned resources of the
 * same type for a given client.
 * 
* * Protobuf type {@code istio.mcp.v1alpha1.MeshConfigRequest} */ public final class MeshConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:istio.mcp.v1alpha1.MeshConfigRequest) MeshConfigRequestOrBuilder { private static final long serialVersionUID = 0L; // Use MeshConfigRequest.newBuilder() to construct. private MeshConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MeshConfigRequest() { versionInfo_ = ""; typeUrl_ = ""; responseNonce_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MeshConfigRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MeshConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { java.lang.String s = input.readStringRequireUtf8(); versionInfo_ = s; break; } case 18: { 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 26: { java.lang.String s = input.readStringRequireUtf8(); typeUrl_ = s; 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_MeshConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.istio.model.mcp.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.istio.model.mcp.MeshConfigRequest.class, com.alibaba.nacos.istio.model.mcp.MeshConfigRequest.Builder.class); } public static final int VERSION_INFO_FIELD_NUMBER = 1; private volatile java.lang.Object versionInfo_; /** *
   * The version_info provided in the request messages will be the
   * version_info received with the most recent successfully processed
   * response or empty on the first request. It is expected that no
   * new request is sent after a response is received until the client
   * instance is ready to ACK/NACK the new configuration. ACK/NACK
   * takes place by returning the new API config version as applied or
   * the previous API config version respectively. Each type_url (see
   * below) has an independent version associated with it.
   * 
* * string version_info = 1; * @return The versionInfo. */ public java.lang.String getVersionInfo() { java.lang.Object ref = versionInfo_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; } } /** *
   * The version_info provided in the request messages will be the
   * version_info received with the most recent successfully processed
   * response or empty on the first request. It is expected that no
   * new request is sent after a response is received until the client
   * instance is ready to ACK/NACK the new configuration. ACK/NACK
   * takes place by returning the new API config version as applied or
   * the previous API config version respectively. Each type_url (see
   * below) has an independent version associated with it.
   * 
* * string version_info = 1; * @return The bytes for versionInfo. */ public com.google.protobuf.ByteString getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SINK_NODE_FIELD_NUMBER = 2; private com.alibaba.nacos.istio.model.mcp.SinkNode sinkNode_; /** *
   * The sink node making the request.
   * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; * @return Whether the sinkNode field is set. */ public boolean hasSinkNode() { return sinkNode_ != null; } /** *
   * The sink node making the request.
   * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; * @return The sinkNode. */ public com.alibaba.nacos.istio.model.mcp.SinkNode getSinkNode() { return sinkNode_ == null ? com.alibaba.nacos.istio.model.mcp.SinkNode.getDefaultInstance() : sinkNode_; } /** *
   * The sink node making the request.
   * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public com.alibaba.nacos.istio.model.mcp.SinkNodeOrBuilder getSinkNodeOrBuilder() { return getSinkNode(); } public static final int TYPE_URL_FIELD_NUMBER = 3; private volatile java.lang.Object typeUrl_; /** *
   * Type of the resource that is being requested, e.g.
   * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
   * 
* * string type_url = 3; * @return The typeUrl. */ public java.lang.String getTypeUrl() { java.lang.Object ref = typeUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeUrl_ = s; return s; } } /** *
   * Type of the resource that is being requested, e.g.
   * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
   * 
* * 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 RESPONSE_NONCE_FIELD_NUMBER = 4; private volatile java.lang.Object responseNonce_; /** *
   * The nonce corresponding to MeshConfigResponse being
   * ACK/NACKed. See above discussion on version_info and the
   * MeshConfigResponse nonce comment. This may be empty if no nonce is
   * available, e.g. at startup.
   * 
* * string response_nonce = 4; * @return The responseNonce. */ public java.lang.String getResponseNonce() { java.lang.Object ref = responseNonce_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); responseNonce_ = s; return s; } } /** *
   * The nonce corresponding to MeshConfigResponse being
   * ACK/NACKed. See above discussion on version_info and the
   * MeshConfigResponse nonce comment. This may be empty if no nonce is
   * available, e.g. at startup.
   * 
* * 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 MeshConfigResponse failed to
   * update configuration. The *message* field in *error_details*
   * provides the client internal exception related to the failure. It
   * is only intended for consumption during manual debugging, the
   * string provided is not guaranteed to be stable across client
   * versions.
   * 
* * .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 MeshConfigResponse failed to
   * update configuration. The *message* field in *error_details*
   * provides the client internal exception related to the failure. It
   * is only intended for consumption during manual debugging, the
   * string provided is not guaranteed to be stable across client
   * versions.
   * 
* * .google.rpc.Status error_detail = 5; * @return The errorDetail. */ public com.google.rpc.Status getErrorDetail() { return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_; } /** *
   * This is populated when the previous MeshConfigResponse failed to
   * update configuration. The *message* field in *error_details*
   * provides the client internal exception related to the failure. It
   * is only intended for consumption during manual debugging, the
   * string provided is not guaranteed to be stable across client
   * versions.
   * 
* * .google.rpc.Status error_detail = 5; */ public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() { return getErrorDetail(); } 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_); } if (sinkNode_ != null) { output.writeMessage(2, getSinkNode()); } if (!getTypeUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeUrl_); } if (!getResponseNonceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responseNonce_); } if (errorDetail_ != null) { output.writeMessage(5, getErrorDetail()); } 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_); } if (sinkNode_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSinkNode()); } if (!getTypeUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeUrl_); } if (!getResponseNonceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, responseNonce_); } if (errorDetail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getErrorDetail()); } 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.MeshConfigRequest)) { return super.equals(obj); } com.alibaba.nacos.istio.model.mcp.MeshConfigRequest other = (com.alibaba.nacos.istio.model.mcp.MeshConfigRequest) obj; if (!getVersionInfo() .equals(other.getVersionInfo())) return false; if (hasSinkNode() != other.hasSinkNode()) return false; if (hasSinkNode()) { if (!getSinkNode() .equals(other.getSinkNode())) return false; } if (!getTypeUrl() .equals(other.getTypeUrl())) return false; if (!getResponseNonce() .equals(other.getResponseNonce())) return false; if (hasErrorDetail() != other.hasErrorDetail()) return false; if (hasErrorDetail()) { if (!getErrorDetail() .equals(other.getErrorDetail())) 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 (hasSinkNode()) { hash = (37 * hash) + SINK_NODE_FIELD_NUMBER; hash = (53 * hash) + getSinkNode().hashCode(); } hash = (37 * hash) + TYPE_URL_FIELD_NUMBER; hash = (53 * hash) + getTypeUrl().hashCode(); hash = (37 * hash) + RESPONSE_NONCE_FIELD_NUMBER; hash = (53 * hash) + getResponseNonce().hashCode(); if (hasErrorDetail()) { hash = (37 * hash) + ERROR_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getErrorDetail().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.alibaba.nacos.istio.model.mcp.MeshConfigRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.istio.model.mcp.MeshConfigRequest 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.MeshConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.istio.model.mcp.MeshConfigRequest 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.MeshConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.istio.model.mcp.MeshConfigRequest 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.MeshConfigRequest 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.MeshConfigRequest 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.MeshConfigRequest 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.MeshConfigRequest 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.MeshConfigRequest 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.MeshConfigRequest 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.MeshConfigRequest 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 MeshConfigRequest requests a set of versioned resources of the
   * same type for a given client.
   * 
* * Protobuf type {@code istio.mcp.v1alpha1.MeshConfigRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:istio.mcp.v1alpha1.MeshConfigRequest) com.alibaba.nacos.istio.model.mcp.MeshConfigRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.istio.model.mcp.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.istio.model.mcp.Mcp.internal_static_istio_mcp_v1alpha1_MeshConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.istio.model.mcp.MeshConfigRequest.class, com.alibaba.nacos.istio.model.mcp.MeshConfigRequest.Builder.class); } // Construct using com.alibaba.nacos.istio.model.mcp.MeshConfigRequest.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(); versionInfo_ = ""; if (sinkNodeBuilder_ == null) { sinkNode_ = null; } else { sinkNode_ = null; sinkNodeBuilder_ = null; } typeUrl_ = ""; 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_MeshConfigRequest_descriptor; } @java.lang.Override public com.alibaba.nacos.istio.model.mcp.MeshConfigRequest getDefaultInstanceForType() { return com.alibaba.nacos.istio.model.mcp.MeshConfigRequest.getDefaultInstance(); } @java.lang.Override public com.alibaba.nacos.istio.model.mcp.MeshConfigRequest build() { com.alibaba.nacos.istio.model.mcp.MeshConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.alibaba.nacos.istio.model.mcp.MeshConfigRequest buildPartial() { com.alibaba.nacos.istio.model.mcp.MeshConfigRequest result = new com.alibaba.nacos.istio.model.mcp.MeshConfigRequest(this); result.versionInfo_ = versionInfo_; if (sinkNodeBuilder_ == null) { result.sinkNode_ = sinkNode_; } else { result.sinkNode_ = sinkNodeBuilder_.build(); } result.typeUrl_ = typeUrl_; 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.MeshConfigRequest) { return mergeFrom((com.alibaba.nacos.istio.model.mcp.MeshConfigRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.alibaba.nacos.istio.model.mcp.MeshConfigRequest other) { if (other == com.alibaba.nacos.istio.model.mcp.MeshConfigRequest.getDefaultInstance()) return this; if (!other.getVersionInfo().isEmpty()) { versionInfo_ = other.versionInfo_; onChanged(); } if (other.hasSinkNode()) { mergeSinkNode(other.getSinkNode()); } if (!other.getTypeUrl().isEmpty()) { typeUrl_ = other.typeUrl_; onChanged(); } 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.MeshConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.alibaba.nacos.istio.model.mcp.MeshConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object versionInfo_ = ""; /** *
     * The version_info provided in the request messages will be the
     * version_info received with the most recent successfully processed
     * response or empty on the first request. It is expected that no
     * new request is sent after a response is received until the client
     * instance is ready to ACK/NACK the new configuration. ACK/NACK
     * takes place by returning the new API config version as applied or
     * the previous API config version respectively. Each type_url (see
     * below) has an independent version associated with it.
     * 
* * string version_info = 1; * @return The versionInfo. */ public java.lang.String getVersionInfo() { java.lang.Object ref = versionInfo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The version_info provided in the request messages will be the
     * version_info received with the most recent successfully processed
     * response or empty on the first request. It is expected that no
     * new request is sent after a response is received until the client
     * instance is ready to ACK/NACK the new configuration. ACK/NACK
     * takes place by returning the new API config version as applied or
     * the previous API config version respectively. Each type_url (see
     * below) has an independent version associated with it.
     * 
* * string version_info = 1; * @return The bytes for versionInfo. */ public com.google.protobuf.ByteString getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The version_info provided in the request messages will be the
     * version_info received with the most recent successfully processed
     * response or empty on the first request. It is expected that no
     * new request is sent after a response is received until the client
     * instance is ready to ACK/NACK the new configuration. ACK/NACK
     * takes place by returning the new API config version as applied or
     * the previous API config version respectively. Each type_url (see
     * below) has an independent version associated with it.
     * 
* * string version_info = 1; * @param value The versionInfo to set. * @return This builder for chaining. */ public Builder setVersionInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } versionInfo_ = value; onChanged(); return this; } /** *
     * The version_info provided in the request messages will be the
     * version_info received with the most recent successfully processed
     * response or empty on the first request. It is expected that no
     * new request is sent after a response is received until the client
     * instance is ready to ACK/NACK the new configuration. ACK/NACK
     * takes place by returning the new API config version as applied or
     * the previous API config version respectively. Each type_url (see
     * below) has an independent version associated with it.
     * 
* * string version_info = 1; * @return This builder for chaining. */ public Builder clearVersionInfo() { versionInfo_ = getDefaultInstance().getVersionInfo(); onChanged(); return this; } /** *
     * The version_info provided in the request messages will be the
     * version_info received with the most recent successfully processed
     * response or empty on the first request. It is expected that no
     * new request is sent after a response is received until the client
     * instance is ready to ACK/NACK the new configuration. ACK/NACK
     * takes place by returning the new API config version as applied or
     * the previous API config version respectively. Each type_url (see
     * below) has an independent version associated with it.
     * 
* * string version_info = 1; * @param value The bytes for versionInfo to set. * @return This builder for chaining. */ public Builder setVersionInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); versionInfo_ = value; onChanged(); return this; } 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 = 2; * @return Whether the sinkNode field is set. */ public boolean hasSinkNode() { return sinkNodeBuilder_ != null || sinkNode_ != null; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; * @return The sinkNode. */ public com.alibaba.nacos.istio.model.mcp.SinkNode getSinkNode() { if (sinkNodeBuilder_ == null) { return sinkNode_ == null ? com.alibaba.nacos.istio.model.mcp.SinkNode.getDefaultInstance() : sinkNode_; } else { return sinkNodeBuilder_.getMessage(); } } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public Builder setSinkNode(com.alibaba.nacos.istio.model.mcp.SinkNode value) { if (sinkNodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sinkNode_ = value; onChanged(); } else { sinkNodeBuilder_.setMessage(value); } return this; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public Builder setSinkNode( com.alibaba.nacos.istio.model.mcp.SinkNode.Builder builderForValue) { if (sinkNodeBuilder_ == null) { sinkNode_ = builderForValue.build(); onChanged(); } else { sinkNodeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public Builder mergeSinkNode(com.alibaba.nacos.istio.model.mcp.SinkNode value) { if (sinkNodeBuilder_ == null) { if (sinkNode_ != null) { sinkNode_ = com.alibaba.nacos.istio.model.mcp.SinkNode.newBuilder(sinkNode_).mergeFrom(value).buildPartial(); } else { sinkNode_ = value; } onChanged(); } else { sinkNodeBuilder_.mergeFrom(value); } return this; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public Builder clearSinkNode() { if (sinkNodeBuilder_ == null) { sinkNode_ = null; onChanged(); } else { sinkNode_ = null; sinkNodeBuilder_ = null; } return this; } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public com.alibaba.nacos.istio.model.mcp.SinkNode.Builder getSinkNodeBuilder() { onChanged(); return getSinkNodeFieldBuilder().getBuilder(); } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ public com.alibaba.nacos.istio.model.mcp.SinkNodeOrBuilder getSinkNodeOrBuilder() { if (sinkNodeBuilder_ != null) { return sinkNodeBuilder_.getMessageOrBuilder(); } else { return sinkNode_ == null ? com.alibaba.nacos.istio.model.mcp.SinkNode.getDefaultInstance() : sinkNode_; } } /** *
     * The sink node making the request.
     * 
* * .istio.mcp.v1alpha1.SinkNode sink_node = 2; */ 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> getSinkNodeFieldBuilder() { if (sinkNodeBuilder_ == null) { sinkNodeBuilder_ = new 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>( getSinkNode(), getParentForChildren(), isClean()); sinkNode_ = null; } return sinkNodeBuilder_; } private java.lang.Object typeUrl_ = ""; /** *
     * Type of the resource that is being requested, e.g.
     * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
     * 
* * string type_url = 3; * @return The typeUrl. */ public java.lang.String getTypeUrl() { java.lang.Object ref = typeUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Type of the resource that is being requested, e.g.
     * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
     * 
* * 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 of the resource that is being requested, e.g.
     * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
     * 
* * 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 of the resource that is being requested, e.g.
     * "type.googleapis.com/istio.io.networking.v1alpha3.VirtualService".
     * 
* * string type_url = 3; * @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 = 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 responseNonce_ = ""; /** *
     * The nonce corresponding to MeshConfigResponse being
     * ACK/NACKed. See above discussion on version_info and the
     * MeshConfigResponse nonce comment. This may be empty if no nonce is
     * available, e.g. at startup.
     * 
* * string response_nonce = 4; * @return The responseNonce. */ public java.lang.String getResponseNonce() { java.lang.Object ref = responseNonce_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); responseNonce_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The nonce corresponding to MeshConfigResponse being
     * ACK/NACKed. See above discussion on version_info and the
     * MeshConfigResponse nonce comment. This may be empty if no nonce is
     * available, e.g. at startup.
     * 
* * 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; } } /** *
     * The nonce corresponding to MeshConfigResponse being
     * ACK/NACKed. See above discussion on version_info and the
     * MeshConfigResponse nonce comment. This may be empty if no nonce is
     * available, e.g. at startup.
     * 
* * 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; } /** *
     * The nonce corresponding to MeshConfigResponse being
     * ACK/NACKed. See above discussion on version_info and the
     * MeshConfigResponse nonce comment. This may be empty if no nonce is
     * available, e.g. at startup.
     * 
* * string response_nonce = 4; * @return This builder for chaining. */ public Builder clearResponseNonce() { responseNonce_ = getDefaultInstance().getResponseNonce(); onChanged(); return this; } /** *
     * The nonce corresponding to MeshConfigResponse being
     * ACK/NACKed. See above discussion on version_info and the
     * MeshConfigResponse nonce comment. This may be empty if no nonce is
     * available, e.g. at startup.
     * 
* * 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 MeshConfigResponse failed to
     * update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure. It
     * is only intended for consumption during manual debugging, the
     * string provided is not guaranteed to be stable across client
     * versions.
     * 
* * .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 MeshConfigResponse failed to
     * update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure. It
     * is only intended for consumption during manual debugging, the
     * string provided is not guaranteed to be stable across client
     * versions.
     * 
* * .google.rpc.Status error_detail = 5; * @return The errorDetail. */ public com.google.rpc.Status getErrorDetail() { if (errorDetailBuilder_ == null) { return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_; } else { return errorDetailBuilder_.getMessage(); } } /** *
     * This is populated when the previous MeshConfigResponse failed to
     * update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure. It
     * is only intended for consumption during manual debugging, the
     * string provided is not guaranteed to be stable across client
     * versions.
     * 
* * .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 MeshConfigResponse failed to
     * update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure. It
     * is only intended for consumption during manual debugging, the
     * string provided is not guaranteed to be stable across client
     * versions.
     * 
* * .google.rpc.Status error_detail = 5; */ public Builder setErrorDetail( com.google.rpc.Status.Builder builderForValue) { if (errorDetailBuilder_ == null) { errorDetail_ = builderForValue.build(); onChanged(); } else { errorDetailBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * This is populated when the previous MeshConfigResponse failed to
     * update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure. It
     * is only intended for consumption during manual debugging, the
     * string provided is not guaranteed to be stable across client
     * versions.
     * 
* * .google.rpc.Status error_detail = 5; */ public Builder mergeErrorDetail(com.google.rpc.Status value) { if (errorDetailBuilder_ == null) { if (errorDetail_ != null) { errorDetail_ = com.google.rpc.Status.newBuilder(errorDetail_).mergeFrom(value).buildPartial(); } else { errorDetail_ = value; } onChanged(); } else { errorDetailBuilder_.mergeFrom(value); } return this; } /** *
     * This is populated when the previous MeshConfigResponse failed to
     * update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure. It
     * is only intended for consumption during manual debugging, the
     * string provided is not guaranteed to be stable across client
     * versions.
     * 
* * .google.rpc.Status error_detail = 5; */ public Builder clearErrorDetail() { if (errorDetailBuilder_ == null) { errorDetail_ = null; onChanged(); } else { errorDetail_ = null; errorDetailBuilder_ = null; } return this; } /** *
     * This is populated when the previous MeshConfigResponse failed to
     * update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure. It
     * is only intended for consumption during manual debugging, the
     * string provided is not guaranteed to be stable across client
     * versions.
     * 
* * .google.rpc.Status error_detail = 5; */ public com.google.rpc.Status.Builder getErrorDetailBuilder() { onChanged(); return getErrorDetailFieldBuilder().getBuilder(); } /** *
     * This is populated when the previous MeshConfigResponse failed to
     * update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure. It
     * is only intended for consumption during manual debugging, the
     * string provided is not guaranteed to be stable across client
     * versions.
     * 
* * .google.rpc.Status error_detail = 5; */ public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() { if (errorDetailBuilder_ != null) { return errorDetailBuilder_.getMessageOrBuilder(); } else { return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_; } } /** *
     * This is populated when the previous MeshConfigResponse failed to
     * update configuration. The *message* field in *error_details*
     * provides the client internal exception related to the failure. It
     * is only intended for consumption during manual debugging, the
     * string provided is not guaranteed to be stable across client
     * versions.
     * 
* * .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.MeshConfigRequest) } // @@protoc_insertion_point(class_scope:istio.mcp.v1alpha1.MeshConfigRequest) private static final com.alibaba.nacos.istio.model.mcp.MeshConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.alibaba.nacos.istio.model.mcp.MeshConfigRequest(); } public static com.alibaba.nacos.istio.model.mcp.MeshConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MeshConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MeshConfigRequest(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.MeshConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy